Merge in changes that were made for CMC.
authorMike Taylor <mike@miketaylor.org.uk>
Fri, 26 Mar 2010 17:09:57 +0000 (17:09 +0000)
committerMike Taylor <mike@miketaylor.org.uk>
Fri, 26 Mar 2010 17:09:57 +0000 (17:09 +0000)
* The "date" input field is now mapped to both "date" and
  "publication_date".  Previously it was only "publication_date",
  which is different from what all pazpar2's other .xsl files produce,
  with the result that a UI that uses "md-date" would not see dates
  from CF targets.  Adding "date" output as well fixed bug #3218 for
  CMC, and will also fix the (presumably as-yet unnoticed)
  date-display bugs in other Masterkey applications that use CF
  targets.  It did not remove the "publication_date" output in case we
  have other Masterkey UIs that expect to see this date.

* Add support for the CF's "location" and "callno" fields.

etc/cf.xsl

index 959c82c..ac8d0dd 100644 (file)
@@ -30,6 +30,9 @@
     <pz:metadata type="publication-date">
       <xsl:value-of select="."/>
     </pz:metadata>
+    <pz:metadata type="date">
+      <xsl:value-of select="."/>
+    </pz:metadata>
   </xsl:template>
 
   <xsl:template match="url">
     </pz:metadata>
   </xsl:template>
 
+  <xsl:template match="location">
+    <pz:metadata type="locallocation">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
+  <xsl:template match="callno">
+    <pz:metadata type="callnumber">
+      <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
   <xsl:template match="thumburl">
     <pz:metadata type="thumburl">
       <xsl:value-of select="."/>