primo-pz2.xsl: Create individual author metadata elements
authorHeikki Levanto <heikki@indexdata.dk>
Wed, 3 Sep 2014 10:57:25 +0000 (12:57 +0200)
committerHeikki Levanto <heikki@indexdata.dk>
Wed, 3 Sep 2014 10:57:25 +0000 (12:57 +0200)
Used to make one author, with different names separated by semicolons,
from the display section of the result. Now takes all creatorcontrib
elements from the search section, which are individual author names.

doc/common
etc/xsl/primo-pz2.xsl

index f6a5ec8..6cdcfde 160000 (submodule)
@@ -1 +1 @@
-Subproject commit f6a5ec8c243e2a6829a2917cb30c849612d6fd01
+Subproject commit 6cdcfde2c770531a571d755ed070059ee7ab4fc9
index 43a92a1..ec764a8 100644 (file)
   </xsl:template>
 
   <xsl:template match="prim:display">
+
+<!--
     <xsl:for-each select="prim:creator">
        <pz:metadata type="author">
         <xsl:value-of select="." />
       </pz:metadata>
-    </xsl:for-each>  
+    </xsl:for-each>
+-->
     <xsl:for-each select="prim:type">
       <xsl:variable name="type" select="."/>
       <pz:metadata type="medium">
   </xsl:template>
 
   <xsl:template match="prim:search">
+
+    <xsl:for-each select="prim:creatorcontrib">
+       <pz:metadata type="author">
+        <xsl:value-of select="." />
+      </pz:metadata>
+    </xsl:for-each>
+
     <xsl:for-each select="prim:description">
       <pz:metadata type="description">
        <xsl:value-of select="." />