epub fix for multiple authors (#3655)
authorJan Szejko <j-sz@o2.pl>
Thu, 21 Jan 2016 12:17:39 +0000 (13:17 +0100)
committerJan Szejko <j-sz@o2.pl>
Thu, 21 Jan 2016 12:17:39 +0000 (13:17 +0100)
librarian/epub/xsltContent.xsl
librarian/epub/xsltLast.xsl

index c211448..fa033ee 100644 (file)
           <xsl:apply-templates select="//dc:identifier.url" />
         </dc:subject>
         <dc:creator opf:role="aut">
           <xsl:apply-templates select="//dc:identifier.url" />
         </dc:subject>
         <dc:creator opf:role="aut">
-               <xsl:attribute name="opf:file-as">
-               <xsl:value-of select="//dc:creator" />
-            </xsl:attribute>
-            <xsl:apply-templates select="//dc:creator" mode="person" />
+          <xsl:attribute name="opf:file-as">
+            <xsl:value-of select="//dc:creator" />
+          </xsl:attribute>
+          <xsl:for-each select="//dc:creator/text()">
+              <xsl:value-of select="wl:person_name(.)"/>
+              <xsl:if test="not(position() = last())">, </xsl:if>
+          </xsl:for-each>
         </dc:creator>
         <dc:publisher>
           <xsl:apply-templates select="//dc:publisher" />
         </dc:creator>
         <dc:publisher>
           <xsl:apply-templates select="//dc:publisher" />
index 41afd36..34d42f7 100644 (file)
@@ -48,7 +48,7 @@
                   <xsl:value-of select="//dc:identifier.url" />
               </xsl:attribute>
               <xsl:attribute name="title">
                   <xsl:value-of select="//dc:identifier.url" />
               </xsl:attribute>
               <xsl:attribute name="title">
-                  <xsl:value-of select="wl:person_name(//dc:creator/text())" />, <xsl:value-of select="//dc:title" />
+                  <xsl:for-each select="//dc:creator/text()"><xsl:value-of select="wl:person_name(.)"/>, </xsl:for-each><xsl:value-of select="//dc:title" />
               </xsl:attribute>
               <xsl:value-of select="//dc:identifier.url" />
           </a></p>
               </xsl:attribute>
               <xsl:value-of select="//dc:identifier.url" />
           </a></p>