removing by statement and adding responsibility from 245c
authorMarijana Glavica <mglavica@ffzg.hr>
Tue, 27 Dec 2011 23:08:45 +0000 (00:08 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 2 Jan 2012 22:46:17 +0000 (23:46 +0100)
koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl

index 9c6c307..34220ad 100644 (file)
         </xsl:for-each>
         </xsl:if>
     </a>
+           <xsl:if test="marc:datafield[@tag=245]">
+               <xsl:for-each select="marc:datafield[@tag=245]">
+                       <xsl:if test="marc:subfield[@code='c']">
+                                          <span style="font-weight: normal; color: #000000">
+                           &nbsp;/ <xsl:call-template name="subfieldSelect">
+                               <xsl:with-param name="codes">c</xsl:with-param>
+                           </xsl:call-template>
+                                               </span>
+                       </xsl:if>
+                   <xsl:text> </xsl:text>
+               </xsl:for-each>
+           </xsl:if>
     <p>
 
     <!-- Author Statement: Alternate Graphic Representation (MARC 880) -->
       </xsl:call-template>
     </xsl:if>
 
-    <xsl:choose>
-    <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
-
-    by <span class="author">
-        <xsl:for-each select="marc:datafield[@tag=100 or @tag=700]">
-            <xsl:choose>
-            <xsl:when test="position()=last()">
-                <xsl:call-template name="nameABCDQ"/>.
-            </xsl:when>
-            <xsl:otherwise>
-                <xsl:call-template name="nameABCDQ"/>;
-            </xsl:otherwise>
-            </xsl:choose>
-        </xsl:for-each>
-
-        <xsl:for-each select="marc:datafield[@tag=110 or @tag=710]">
-            <xsl:choose>
-            <xsl:when test="position()=1">
-               <xsl:text> -- </xsl:text>
-            </xsl:when>
-            </xsl:choose>
-            <xsl:choose>
-            <xsl:when test="position()=last()">
-                <xsl:call-template name="nameABCDN"/> 
-            </xsl:when>
-            <xsl:otherwise>
-                <xsl:call-template name="nameABCDN"/>;
-            </xsl:otherwise>
-            </xsl:choose>
-        </xsl:for-each>
-
-        <xsl:for-each select="marc:datafield[@tag=111 or @tag=711]">
-            <xsl:choose>
-            <xsl:when test="position()=1">
-               <xsl:text> -- </xsl:text>
-            </xsl:when>
-            </xsl:choose>
-            <xsl:choose>
-            <xsl:when test="marc:subfield[@code='n']">
-               <xsl:text> </xsl:text>
-               <xsl:call-template name="subfieldSelect">
-                  <xsl:with-param name="codes">n</xsl:with-param> 
-               </xsl:call-template>
-               <xsl:text> </xsl:text>
-            </xsl:when>
-            </xsl:choose>
-            <xsl:choose>
-            <xsl:when test="position()=last()">
-                <xsl:call-template name="nameACDEQ"/>.
-            </xsl:when>
-            <xsl:otherwise>
-                <xsl:call-template name="nameACDEQ"/>;
-            </xsl:otherwise>
-            </xsl:choose>
-        </xsl:for-each>
-    </span>
-    </xsl:when>
-    </xsl:choose>
     </p>
 
     <xsl:if test="marc:datafield[@tag=250]">