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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-15 / +3 lines)
Lines 834-851 Link Here
834
834
835
    </xsl:template>
835
    </xsl:template>
836
836
837
    <xsl:template name="nameABCDQ">
837
    <xsl:template name="nameABCQ">
838
            <xsl:call-template name="chopPunctuation">
838
            <xsl:call-template name="chopPunctuation">
839
                <xsl:with-param name="chopString">
839
                <xsl:with-param name="chopString">
840
                    <xsl:call-template name="subfieldSelect">
840
                    <xsl:call-template name="subfieldSelect">
841
                        <xsl:with-param name="codes">aq</xsl:with-param>
841
                        <xsl:with-param name="codes">abcq</xsl:with-param>
842
                    </xsl:call-template>
842
                    </xsl:call-template>
843
                </xsl:with-param>
843
                </xsl:with-param>
844
                <xsl:with-param name="punctuation">
844
                <xsl:with-param name="punctuation">
845
                    <xsl:text>:,;/ </xsl:text>
845
                    <xsl:text>:,;/ </xsl:text>
846
                </xsl:with-param>
846
                </xsl:with-param>
847
            </xsl:call-template>
847
            </xsl:call-template>
848
        <xsl:call-template name="termsOfAddress"/>
849
    </xsl:template>
848
    </xsl:template>
850
849
851
    <xsl:template name="nameABCDN">
850
    <xsl:template name="nameABCDN">
Lines 874-890 Link Here
874
                <xsl:with-param name="codes">acdeq</xsl:with-param>
873
                <xsl:with-param name="codes">acdeq</xsl:with-param>
875
            </xsl:call-template>
874
            </xsl:call-template>
876
    </xsl:template>
875
    </xsl:template>
877
    <xsl:template name="termsOfAddress">
878
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
879
            <xsl:call-template name="chopPunctuation">
880
                <xsl:with-param name="chopString">
881
                    <xsl:call-template name="subfieldSelect">
882
                        <xsl:with-param name="codes">bc</xsl:with-param>
883
                    </xsl:call-template>
884
                </xsl:with-param>
885
            </xsl:call-template>
886
        </xsl:if>
887
    </xsl:template>
888
876
889
    <xsl:template name="part">
877
    <xsl:template name="part">
890
        <xsl:variable name="partNumber">
878
        <xsl:variable name="partNumber">
Lines 950-956 Link Here
950
            </xsl:otherwise>
938
            </xsl:otherwise>
951
        </xsl:choose>
939
        </xsl:choose>
952
	<xsl:choose>
940
	<xsl:choose>
953
          <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when>
941
          <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when>
954
          <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
942
          <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
955
          <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
943
          <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
956
	</xsl:choose>
944
	</xsl:choose>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-16 / +3 lines)
Lines 347-353 Link Here
347
        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
347
        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
348
        </xsl:otherwise>
348
        </xsl:otherwise>
349
    </xsl:choose>
349
    </xsl:choose>
350
    <xsl:call-template name="nameABCDQ"/></a>
350
    <xsl:call-template name="nameABCQ"/></a>
351
    <xsl:choose>
351
    <xsl:choose>
352
    <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
352
    <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
353
    </xsl:for-each>
353
    </xsl:for-each>
Lines 867-884 Link Here
867
                        </xsl:if>
867
                        </xsl:if>
868
    </xsl:template>
868
    </xsl:template>
869
869
870
    <xsl:template name="nameABCDQ">
870
    <xsl:template name="nameABCQ">
871
            <xsl:call-template name="chopPunctuation">
871
            <xsl:call-template name="chopPunctuation">
872
                <xsl:with-param name="chopString">
872
                <xsl:with-param name="chopString">
873
                    <xsl:call-template name="subfieldSelect">
873
                    <xsl:call-template name="subfieldSelect">
874
                        <xsl:with-param name="codes">aq</xsl:with-param>
874
                        <xsl:with-param name="codes">abcq</xsl:with-param>
875
                    </xsl:call-template>
875
                    </xsl:call-template>
876
                </xsl:with-param>
876
                </xsl:with-param>
877
                <xsl:with-param name="punctuation">
877
                <xsl:with-param name="punctuation">
878
                    <xsl:text>:,;/ </xsl:text>
878
                    <xsl:text>:,;/ </xsl:text>
879
                </xsl:with-param>
879
                </xsl:with-param>
880
            </xsl:call-template>
880
            </xsl:call-template>
881
        <xsl:call-template name="termsOfAddress"/>
882
    </xsl:template>
881
    </xsl:template>
883
882
884
    <xsl:template name="nameABCDN">
883
    <xsl:template name="nameABCDN">
Lines 903-920 Link Here
903
            </xsl:call-template>
902
            </xsl:call-template>
904
    </xsl:template>
903
    </xsl:template>
905
904
906
    <xsl:template name="termsOfAddress">
907
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
908
            <xsl:call-template name="chopPunctuation">
909
                <xsl:with-param name="chopString">
910
                    <xsl:call-template name="subfieldSelect">
911
                        <xsl:with-param name="codes">bc</xsl:with-param>
912
                    </xsl:call-template>
913
                </xsl:with-param>
914
            </xsl:call-template>
915
        </xsl:if>
916
    </xsl:template>
917
918
    <xsl:template name="nameDate">
905
    <xsl:template name="nameDate">
919
        <xsl:for-each select="marc:subfield[@code='d']">
906
        <xsl:for-each select="marc:subfield[@code='d']">
920
            <xsl:call-template name="chopPunctuation">
907
            <xsl:call-template name="chopPunctuation">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-15 / +3 lines)
Lines 966-972 Link Here
966
                    </xsl:otherwise>
966
                    </xsl:otherwise>
967
                </xsl:choose>
967
                </xsl:choose>
968
                <xsl:choose>
968
                <xsl:choose>
969
                    <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when>
969
                    <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when>
970
                    <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
970
                    <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
971
                    <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
971
                    <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
972
                </xsl:choose>
972
                </xsl:choose>
Lines 992-1009 Link Here
992
        <xsl:text>.</xsl:text>
992
        <xsl:text>.</xsl:text>
993
    </xsl:template>
993
    </xsl:template>
994
994
995
    <xsl:template name="nameABCDQ">
995
    <xsl:template name="nameABCQ">
996
            <xsl:call-template name="chopPunctuation">
996
            <xsl:call-template name="chopPunctuation">
997
                <xsl:with-param name="chopString">
997
                <xsl:with-param name="chopString">
998
                    <xsl:call-template name="subfieldSelect">
998
                    <xsl:call-template name="subfieldSelect">
999
                        <xsl:with-param name="codes">aq</xsl:with-param>
999
                        <xsl:with-param name="codes">abcq</xsl:with-param>
1000
                    </xsl:call-template>
1000
                    </xsl:call-template>
1001
                </xsl:with-param>
1001
                </xsl:with-param>
1002
                <xsl:with-param name="punctuation">
1002
                <xsl:with-param name="punctuation">
1003
                    <xsl:text>:,;/ </xsl:text>
1003
                    <xsl:text>:,;/ </xsl:text>
1004
                </xsl:with-param>
1004
                </xsl:with-param>
1005
            </xsl:call-template>
1005
            </xsl:call-template>
1006
        <xsl:call-template name="termsOfAddress"/>
1007
    </xsl:template>
1006
    </xsl:template>
1008
1007
1009
    <xsl:template name="nameABCDN">
1008
    <xsl:template name="nameABCDN">
Lines 1032-1048 Link Here
1032
                <xsl:with-param name="codes">acdeq</xsl:with-param>
1031
                <xsl:with-param name="codes">acdeq</xsl:with-param>
1033
            </xsl:call-template>
1032
            </xsl:call-template>
1034
    </xsl:template>
1033
    </xsl:template>
1035
    <xsl:template name="termsOfAddress">
1036
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
1037
            <xsl:call-template name="chopPunctuation">
1038
                <xsl:with-param name="chopString">
1039
                    <xsl:call-template name="subfieldSelect">
1040
                        <xsl:with-param name="codes">bc</xsl:with-param>
1041
                    </xsl:call-template>
1042
                </xsl:with-param>
1043
            </xsl:call-template>
1044
        </xsl:if>
1045
    </xsl:template>
1046
1034
1047
    <xsl:template name="part">
1035
    <xsl:template name="part">
1048
        <xsl:variable name="partNumber">
1036
        <xsl:variable name="partNumber">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl (-17 / +3 lines)
Lines 455-461 Link Here
455
        <xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']">
455
        <xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']">
456
            <xsl:choose>
456
            <xsl:choose>
457
            <xsl:when test="position()=last()">
457
            <xsl:when test="position()=last()">
458
                <xsl:call-template name="nameABCDQ"/>.
458
                <xsl:call-template name="nameABCQ"/>.
459
            </xsl:when>
459
            </xsl:when>
460
            <xsl:otherwise>
460
            <xsl:otherwise>
461
                <xsl:call-template name="nameABCDQ"/>;
461
                <xsl:call-template name="nameABCDQ"/>;
Lines 1180-1197 Link Here
1180
       </xsl:choose>
1180
       </xsl:choose>
1181
    </xsl:template>
1181
    </xsl:template>
1182
1182
1183
    <xsl:template name="nameABCDQ">
1183
    <xsl:template name="nameABCQ">
1184
            <xsl:call-template name="chopPunctuation">
1184
            <xsl:call-template name="chopPunctuation">
1185
                <xsl:with-param name="chopString">
1185
                <xsl:with-param name="chopString">
1186
                    <xsl:call-template name="subfieldSelect">
1186
                    <xsl:call-template name="subfieldSelect">
1187
                        <xsl:with-param name="codes">aq</xsl:with-param>
1187
                        <xsl:with-param name="codes">abcq</xsl:with-param>
1188
                    </xsl:call-template>
1188
                    </xsl:call-template>
1189
                </xsl:with-param>
1189
                </xsl:with-param>
1190
                <xsl:with-param name="punctuation">
1190
                <xsl:with-param name="punctuation">
1191
                    <xsl:text>:,;/ </xsl:text>
1191
                    <xsl:text>:,;/ </xsl:text>
1192
                </xsl:with-param>
1192
                </xsl:with-param>
1193
            </xsl:call-template>
1193
            </xsl:call-template>
1194
        <xsl:call-template name="termsOfAddress"/>
1195
    </xsl:template>
1194
    </xsl:template>
1196
1195
1197
    <xsl:template name="nameABCDN">
1196
    <xsl:template name="nameABCDN">
Lines 1216-1233 Link Here
1216
            </xsl:call-template>
1215
            </xsl:call-template>
1217
    </xsl:template>
1216
    </xsl:template>
1218
1217
1219
    <xsl:template name="termsOfAddress">
1220
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
1221
            <xsl:call-template name="chopPunctuation">
1222
                <xsl:with-param name="chopString">
1223
                    <xsl:call-template name="subfieldSelect">
1224
                        <xsl:with-param name="codes">bc</xsl:with-param>
1225
                    </xsl:call-template>
1226
                </xsl:with-param>
1227
            </xsl:call-template>
1228
        </xsl:if>
1229
    </xsl:template>
1230
1231
    <xsl:template name="nameDate">
1218
    <xsl:template name="nameDate">
1232
        <xsl:for-each select="marc:subfield[@code='d']">
1219
        <xsl:for-each select="marc:subfield[@code='d']">
1233
            <xsl:call-template name="chopPunctuation">
1220
            <xsl:call-template name="chopPunctuation">
1234
- 

Return to bug 9820