Pazpar2 1.4.4-2 for squeeze
[pazpar2-moved-to-github.git] / etc / cf.xsl
index 5ee8c67..4b8aebe 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">
@@ -42,6 +45,9 @@
     <pz:metadata type="title">
       <xsl:value-of select="."/>
     </pz:metadata>
+    <pz:metadata type="title-complete">
+      <xsl:value-of select="." />
+    </pz:metadata>
   </xsl:template>
 
   <xsl:template match="author">
   </xsl:template>
 
   <xsl:template match="item">
-    <pz:metadata type="location">
+    <pz:metadata type="locallocation">
       <xsl:choose>
-       <xsl:when test="location">
+       <xsl:when test="string-length(location)">
          <xsl:value-of select="location"/>
        </xsl:when>
        <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
       </xsl:choose>
     </pz:metadata>
-    <pz:metadata type="callno">
+    <pz:metadata type="callnumber">
       <xsl:choose>
-       <xsl:when test="callno">
+       <xsl:when test="string-length(callno)">
          <xsl:value-of select="callno"/>
        </xsl:when>
        <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
       </xsl:choose>
     </pz:metadata>
-    <pz:metadata type="avaliable">
+    <pz:metadata type="available">
       <xsl:choose>
-       <xsl:when test="available">
+       <xsl:when test="string-length(available)">
          <xsl:value-of select="available"/>
        </xsl:when>
        <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
       </xsl:choose>
     </pz:metadata>
+    <pz:metadata type="publicnote">
+      <xsl:choose>
+       <xsl:when test="string-length(publicnote)">
+         <xsl:value-of select="publicnote"/>
+       </xsl:when>
+       <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+      </xsl:choose>
+    </pz:metadata>
   </xsl:template>
 
   <xsl:template match="due">
     </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="."/>