Parse journal subparts
authorJakub Skoczen <jakub@indexdata.dk>
Fri, 11 Dec 2009 11:15:10 +0000 (12:15 +0100)
committerJakub Skoczen <jakub@indexdata.dk>
Fri, 11 Dec 2009 11:15:10 +0000 (12:15 +0100)
etc/marc21.xsl

index 8d8953a..71178b7 100644 (file)
       </xsl:for-each>
 
       <xsl:for-each select="marc:datafield[@tag='773']">
-       <pz:metadata type="citation">
-         <xsl:for-each select="*">
-           <xsl:value-of select="normalize-space(.)"/>
-           <xsl:text> </xsl:text>
-         </xsl:for-each>
-       </pz:metadata>
+       <pz:metadata type="citation">
+             <xsl:for-each select="*">
+               <xsl:value-of select="normalize-space(.)"/>
+               <xsl:text> </xsl:text>
+         </xsl:for-each>
+        </pz:metadata>
+        <xsl:if test="marc:subfield[@code='t']">
+         <pz:metadata type="journal-title">
+               <xsl:value-of select="marc:subfield[@code='t']"/>
+          </pz:metadata>          
+        </xsl:if>
+        <xsl:if test="marc:subfield[@code='g']">
+         <pz:metadata type="journal-subpart">
+               <xsl:value-of select="marc:subfield[@code='g']"/>
+          </pz:metadata>          
+        </xsl:if>
       </xsl:for-each>
 
       <xsl:for-each select="marc:datafield[@tag='852']">