Add support for missing fields that the CF can provide as indicated by
authorMike Taylor <mike@miketaylor.org.uk>
Wed, 13 Jan 2010 13:51:46 +0000 (13:51 +0000)
committerMike Taylor <mike@miketaylor.org.uk>
Wed, 13 Jan 2010 13:51:46 +0000 (13:51 +0000)
$CF/builder/templates/search.cft: publisher, available, due, location,
callno, and score.

etc/cf.xsl

index d0ed4c1..0f878e0 100644 (file)
     </pz:record>
   </xsl:template>
 
+  <!--
+      The elements mapped in the following clauses should be kept more
+      or less in sync with those named in builder/templates/search.cft
+      in the "cf" git module.
+  -->
+
   <xsl:template match="url">
     <pz:metadata type="electronic-url">
       <xsl:value-of select="."/>
     </pz:metadata>
   </xsl:template>
 
+  <xsl:template match="publisher">
+    <pz:metadata type="publisher">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
+  <xsl:template match="available">
+    <pz:metadata type="available">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
+  <xsl:template match="due">
+    <pz:metadata type="due">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
+  <xsl:template match="location">
+    <pz:metadata type="location">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
+  <xsl:template match="callno">
+    <pz:metadata type="callno">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
+  <xsl:template match="score">
+    <pz:metadata type="score">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
   <xsl:template match="text()"/>
 
 </xsl:stylesheet>