Update pz22usi.xsl
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 15 Jun 2011 12:48:08 +0000 (14:48 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 15 Jun 2011 12:48:08 +0000 (14:48 +0200)
xml/xslt/pz22usi.xsl

index f6300e1..f9c62ca 100644 (file)
          <issuance>monographic</issuance>
        </xsl:if>
       </originInfo>
+      <!-- What about mods:typeOfResource? -->
       <location>
-       <url usage="primary"><xsl:value-of select="pz:metadata[@type='electronic-url']"/></url>
+       <!-- It would be good to make only the first of these "primary" -->
+       <xsl:for-each select="pz:metadata[@type='electronic-url']">
+         <url usage="primary"><xsl:value-of select="."/></url>
+       </xsl:for-each>
        <url access="preview">$THUMBURL</url>
       </location>
       <titleInfo>
@@ -82,6 +86,8 @@
        <part>
          <detail type="volume">
            <number><xsl:value-of select="pz:metadata[@type='volume']"/></number>
+           <!-- or -->
+           <number><xsl:value-of select="pz:metadata[@type='journal-subpart']"/></number>
          </detail>
          <detail type="issue">
            <number>$ISSUE</number>
        </part>
       </relatedItem>
       <physicalDescription>
+       <xsl:if test="pz:metadata[@type='medium'] = 'web'">
+         <form authority="marcform">electronic</form>
+       </xsl:if>
        <form><xsl:value-of select="pz:metadata[@type='physical-format']"/></form>
        <internetMediaType>$FORMAT</internetMediaType>
        <extent><xsl:value-of select="pz:metadata[@type='physical-extent']"/></extent>
       </physicalDescription>
-      <id:citation>$CITATION</id:citation>
-      <identifier type="issn">$ISSN</identifier>
+      <id:citation><xsl:value-of select="pz:metadata[@type='citation']"/></id:citation>
+      <identifier type="issn"><xsl:value-of select="pz:metadata[@type='issn']"/></identifier>
       <identifier type="isbn"><xsl:value-of select="pz:metadata[@type='isbn']"/></identifier>
       <identifier><xsl:value-of select="pz:metadata[@type='id']"/></identifier>
       <accessCondition type="copyright">$COPYRIGHT</accessCondition>