Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
authorDennis Schafroth <dennis@indexdata.com>
Tue, 9 Aug 2011 10:37:21 +0000 (12:37 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Tue, 9 Aug 2011 10:37:21 +0000 (12:37 +0200)
Conflicts:
etc/tmarc.xsl

Fix or between d901 and d907 for iii-id

1  2 
etc/tmarc.xsl

diff --combined etc/tmarc.xsl
          <xsl:value-of select="$has_fulltext"/>
        </pz:metadata>
  
 -      <xsl:for-each select="tmarc:d907 or tmarc:d901">
 +      <xsl:for-each select="tmarc:d901 ! tmarc:d907">
          <pz:metadata type="iii-id">
            <xsl:value-of select="tmarc:sa" />
          </pz:metadata>
        </pz:metadata>
        </xsl:for-each>
  
+       <!-- OhioLINK holdings -->
+       <xsl:for-each select="tmarc:d945">
+       <pz:metadata type="locallocation">
+           <xsl:choose>
+             <xsl:when test="tmarc:sa">
+               <xsl:value-of select="tmarc:sa"/>
+             </xsl:when>
+             <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+           </xsl:choose>
+       </pz:metadata>
+       <pz:metadata type="callnumber">
+           <xsl:choose>
+           <xsl:when test="tmarc:sb">
+               <xsl:value-of select="tmarc:sb"/>
+             </xsl:when>
+             <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+           </xsl:choose>
+       </pz:metadata>
+       <pz:metadata type="publicnote">
+           <xsl:choose>
+             <xsl:when test="tmarc:sc">
+               <xsl:value-of select="tmarc:sc"/>
+             </xsl:when>
+             <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+           </xsl:choose>
+       </pz:metadata>
+       <pz:metadata type="available">
+           <xsl:choose>
+             <xsl:when test="tmarc:ss = 'N'">Available</xsl:when>
+             <xsl:when test="tmarc:ss != 'N'">
+               <xsl:choose>
+               <xsl:when test="tmarc:sd">
+                   <xsl:value-of select="tmarc:sd"/>
+               </xsl:when>
+               <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+               </xsl:choose>
+             </xsl:when>
+             <xsl:otherwise>PAZPAR2_NULL_VALUE</xsl:otherwise>
+           </xsl:choose>
+       </pz:metadata>      
+       </xsl:for-each>
        <xsl:for-each select="tmarc:d948">
          <pz:metadata type="holding">
            <xsl:for-each select="tmarc:s">