cf.xsl forwards flat affiliation structure PAZ-992
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Thu, 19 Mar 2015 21:17:46 +0000 (22:17 +0100)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Thu, 19 Mar 2015 21:17:46 +0000 (22:17 +0100)
etc/xsl/cf.xsl

index 5f0c4ea..f0d6455 100644 (file)
     </pz:metadata>
   </xsl:template>
 
+  <xsl:template match="affiliation">
+    <pz:metadata type="affiliation-person" empty="PAZPAR2_NULL_VALUE">
+      <xsl:value-of select="person"/>
+    </pz:metadata>
+    <pz:metadata type="affiliation-institution" empty="PAZPAR2_NULL_VALUE">
+      <xsl:value-of select="institution"/>
+    </pz:metadata>
+  </xsl:template>
+
   <!-- put both page and pages-number for page -->
   <xsl:template match="page">
     <pz:metadata type="pages-number">