Tentatively add new indexes (to be checked against profile).
[irspy-moved-to-github.git] / zebra / zeerex2index.xsl
index 8eab014..aba7d31 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: zeerex2index.xsl,v 1.1 2006-04-13 14:53:18 mike Exp $ -->
+<!-- $Id: zeerex2index.xsl,v 1.2 2006-05-12 22:04:34 mike Exp $ -->
 <!-- See the ZeeRex profile at http://srw.cheshire3.org/profiles/ZeeRex/ -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:z="http://indexdata.dk/zebra/xslt/1"
@@ -15,6 +15,7 @@
                e:serverInfo/e:port, '/',
                e:serverInfo/e:database)}"
            type="update">
+
    <z:index name="rec:id" type="0">
     <xsl:value-of select="concat(
                          e:serverInfo/e:host, ':',
    <z:index name="net:path" type="0">
     <xsl:value-of select="e:serverInfo/e:database"/>
    </z:index>
+
    <z:index name="dc:title" type="w">
     <xsl:value-of select="e:databaseInfo/e:title"/>
    </z:index>
    <z:index name="dc:creator" type="w">
     <xsl:value-of select="e:databaseInfo/e:author"/>
    </z:index>
+
+   <!-- ### index-name will be wrong -->
+   <z:index name="rec:date-modified" type="d">
+    <!-- ### Can Zebra handle this ISO-format date? -->
+    <xsl:value-of select="e:metaInfo/e:dateModified"/>
+   </z:index>
+
+   <!-- ### indexes -->
+
+   <!-- ### index-name will be wrong -->
+   <z:index name="zeerex:recordSyntax" type="0">
+    <xsl:value-of select="e:recordInfo/recordSyntax/@name"/>
+   </z:index>
+   <!-- ### schemas -->
+
+   <!-- ### supportsInfo -->
   </z:record>
  </xsl:template>
 </xsl:stylesheet>