View | Details | Raw Unified | Return to bug 8661
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-23 / +14 lines)
Lines 137-152 Link Here
137
                </xsl:call-template>
137
                </xsl:call-template>
138
            </h5>
138
            </h5>
139
        </xsl:if>
139
        </xsl:if>
140
        <xsl:choose>
140
141
            <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]">
141
    <!-- Author Statement -->
142
                <h5 class="author">by
142
    <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
143
                    <xsl:call-template name="showAuthor">
143
    <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
144
                        <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/>
145
                        <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
146
                    </xsl:call-template>
147
                </h5>
148
            </xsl:when>
149
        </xsl:choose>
150
144
151
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
145
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
152
        <xsl:if test="$materialTypeCode!=''">
146
        <xsl:if test="$materialTypeCode!=''">
Lines 893-909 Link Here
893
    <xsl:template name="showAuthor">
887
    <xsl:template name="showAuthor">
894
        <xsl:param name="authorfield" />
888
        <xsl:param name="authorfield" />
895
        <xsl:param name="UseAuthoritiesForTracings" />
889
        <xsl:param name="UseAuthoritiesForTracings" />
890
    <xsl:if test="count($authorfield)&gt;0">
891
        <h5 class="author">
896
        <xsl:for-each select="$authorfield">
892
        <xsl:for-each select="$authorfield">
897
            <xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose>
898
            <xsl:choose>
893
            <xsl:choose>
899
                <xsl:when test="not(@tag=111 or @tag=711)" />
894
          <xsl:when test="position()&gt;1"/>
900
                <xsl:when test="marc:subfield[@code='n']">
895
          <xsl:when test="@tag&lt;700">Author(s): </xsl:when>
901
                    <xsl:text> </xsl:text>
896
          <xsl:otherwise>Additional author(s): </xsl:otherwise>
902
                    <xsl:call-template name="subfieldSelect">
903
                        <xsl:with-param name="codes">n</xsl:with-param>
904
                    </xsl:call-template>
905
                    <xsl:text> </xsl:text>
906
                </xsl:when>
907
            </xsl:choose>
897
            </xsl:choose>
908
            <a>
898
            <a>
909
                <xsl:choose>
899
                <xsl:choose>
Lines 921-934 Link Here
921
                </xsl:choose>
911
                </xsl:choose>
922
                <!-- add relator code too between brackets-->
912
                <!-- add relator code too between brackets-->
923
                <xsl:if test="marc:subfield[@code='4' or @code='e']">
913
                <xsl:if test="marc:subfield[@code='4' or @code='e']">
924
                    <span class="relatorcode">
925
                    <xsl:text> [</xsl:text>
914
                    <xsl:text> [</xsl:text>
926
                    <xsl:choose>
915
                    <xsl:choose>
927
                        <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when>
916
                        <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when>
928
                        <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise>
917
                        <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise>
929
                    </xsl:choose>
918
                    </xsl:choose>
930
                    <xsl:text>]</xsl:text>
919
                    <xsl:text>]</xsl:text>
931
                    </span>
932
                </xsl:if>
920
                </xsl:if>
933
            </a>
921
            </a>
934
            <xsl:if test="marc:subfield[@code=9]">
922
            <xsl:if test="marc:subfield[@code=9]">
Lines 937-944 Link Here
937
                    <img style="vertical-align:middle" height="15" width="15" src="/opac-tmpl/prog/images/filefind.png"/>
925
                    <img style="vertical-align:middle" height="15" width="15" src="/opac-tmpl/prog/images/filefind.png"/>
938
                </a>
926
                </a>
939
            </xsl:if>
927
            </xsl:if>
928
        <xsl:choose>
929
          <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise>
930
        </xsl:choose>
940
        </xsl:for-each>
931
        </xsl:for-each>
941
        <xsl:text>.</xsl:text>
932
        </h5>
933
        </xsl:if>
942
    </xsl:template>
934
    </xsl:template>
943
935
944
    <xsl:template name="nameABCDQ">
936
    <xsl:template name="nameABCDQ">
945
- 

Return to bug 8661