Source specific date transformations
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Fri, 7 Sep 2012 16:02:40 +0000 (18:02 +0200)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Fri, 7 Sep 2012 16:02:40 +0000 (18:02 +0200)
etc/tmarc.xsl

index ce1b5a0..c8eb90c 100644 (file)
         </pz:metadata>
       </xsl:for-each>
 
+      <xsl:for-each select="tmarc:d903">
+        <xsl:if test="tmarc:sa">
+          <pz:metadata type="publication-date">
+            <xsl:value-of select="substring(tmarc:sa,1,4)"/>
+          </pz:metadata>
+          <pz:metadata type="date">
+            <xsl:value-of select="substring(tmarc:sa,1,4)"/>
+          </pz:metadata>
+        </xsl:if>
+      </xsl:for-each>
 
       <!-- <xsl:if test="$fulltext_b"> <pz:metadata type="fulltext"> <xsl:value-of 
         select="$fulltext_b"/> </pz:metadata> </xsl:if> -->