Adds 'available' to holdings information
[pazpar2-moved-to-github.git] / etc / opac.xsl
index 617a18b..6fe5ecd 100644 (file)
          <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
        </xsl:choose>
       </pz:metadata>
+      <pz:metadata type="available">
+        <xsl:choose>
+          <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="publicNote">