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 831-848 Link Here
831
831
832
    </xsl:template>
832
    </xsl:template>
833
833
834
    <xsl:template name="nameABCDQ">
834
    <xsl:template name="nameABCQ">
835
            <xsl:call-template name="chopPunctuation">
835
            <xsl:call-template name="chopPunctuation">
836
                <xsl:with-param name="chopString">
836
                <xsl:with-param name="chopString">
837
                    <xsl:call-template name="subfieldSelect">
837
                    <xsl:call-template name="subfieldSelect">
838
                        <xsl:with-param name="codes">aq</xsl:with-param>
838
                        <xsl:with-param name="codes">abcq</xsl:with-param>
839
                    </xsl:call-template>
839
                    </xsl:call-template>
840
                </xsl:with-param>
840
                </xsl:with-param>
841
                <xsl:with-param name="punctuation">
841
                <xsl:with-param name="punctuation">
842
                    <xsl:text>:,;/ </xsl:text>
842
                    <xsl:text>:,;/ </xsl:text>
843
                </xsl:with-param>
843
                </xsl:with-param>
844
            </xsl:call-template>
844
            </xsl:call-template>
845
        <xsl:call-template name="termsOfAddress"/>
846
    </xsl:template>
845
    </xsl:template>
847
846
848
    <xsl:template name="nameABCDN">
847
    <xsl:template name="nameABCDN">
Lines 871-887 Link Here
871
                <xsl:with-param name="codes">acdeq</xsl:with-param>
870
                <xsl:with-param name="codes">acdeq</xsl:with-param>
872
            </xsl:call-template>
871
            </xsl:call-template>
873
    </xsl:template>
872
    </xsl:template>
874
    <xsl:template name="termsOfAddress">
875
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
876
            <xsl:call-template name="chopPunctuation">
877
                <xsl:with-param name="chopString">
878
                    <xsl:call-template name="subfieldSelect">
879
                        <xsl:with-param name="codes">bc</xsl:with-param>
880
                    </xsl:call-template>
881
                </xsl:with-param>
882
            </xsl:call-template>
883
        </xsl:if>
884
    </xsl:template>
885
873
886
    <xsl:template name="part">
874
    <xsl:template name="part">
887
        <xsl:variable name="partNumber">
875
        <xsl:variable name="partNumber">
Lines 947-953 Link Here
947
            </xsl:otherwise>
935
            </xsl:otherwise>
948
        </xsl:choose>
936
        </xsl:choose>
949
	<xsl:choose>
937
	<xsl:choose>
950
          <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when>
938
          <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when>
951
          <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
939
          <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
952
          <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
940
          <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
953
	</xsl:choose>
941
	</xsl:choose>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-16 / +3 lines)
Lines 346-352 Link Here
346
        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
346
        <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute>
347
        </xsl:otherwise>
347
        </xsl:otherwise>
348
    </xsl:choose>
348
    </xsl:choose>
349
    <xsl:call-template name="nameABCDQ"/></a>
349
    <xsl:call-template name="nameABCQ"/></a>
350
    <xsl:choose>
350
    <xsl:choose>
351
    <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
351
    <xsl:when test="position()=last()"><xsl:text>. </xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
352
    </xsl:for-each>
352
    </xsl:for-each>
Lines 863-880 Link Here
863
                        </xsl:if>
863
                        </xsl:if>
864
    </xsl:template>
864
    </xsl:template>
865
865
866
    <xsl:template name="nameABCDQ">
866
    <xsl:template name="nameABCQ">
867
            <xsl:call-template name="chopPunctuation">
867
            <xsl:call-template name="chopPunctuation">
868
                <xsl:with-param name="chopString">
868
                <xsl:with-param name="chopString">
869
                    <xsl:call-template name="subfieldSelect">
869
                    <xsl:call-template name="subfieldSelect">
870
                        <xsl:with-param name="codes">aq</xsl:with-param>
870
                        <xsl:with-param name="codes">abcq</xsl:with-param>
871
                    </xsl:call-template>
871
                    </xsl:call-template>
872
                </xsl:with-param>
872
                </xsl:with-param>
873
                <xsl:with-param name="punctuation">
873
                <xsl:with-param name="punctuation">
874
                    <xsl:text>:,;/ </xsl:text>
874
                    <xsl:text>:,;/ </xsl:text>
875
                </xsl:with-param>
875
                </xsl:with-param>
876
            </xsl:call-template>
876
            </xsl:call-template>
877
        <xsl:call-template name="termsOfAddress"/>
878
    </xsl:template>
877
    </xsl:template>
879
878
880
    <xsl:template name="nameABCDN">
879
    <xsl:template name="nameABCDN">
Lines 899-916 Link Here
899
            </xsl:call-template>
898
            </xsl:call-template>
900
    </xsl:template>
899
    </xsl:template>
901
900
902
    <xsl:template name="termsOfAddress">
903
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
904
            <xsl:call-template name="chopPunctuation">
905
                <xsl:with-param name="chopString">
906
                    <xsl:call-template name="subfieldSelect">
907
                        <xsl:with-param name="codes">bc</xsl:with-param>
908
                    </xsl:call-template>
909
                </xsl:with-param>
910
            </xsl:call-template>
911
        </xsl:if>
912
    </xsl:template>
913
914
    <xsl:template name="nameDate">
901
    <xsl:template name="nameDate">
915
        <xsl:for-each select="marc:subfield[@code='d']">
902
        <xsl:for-each select="marc:subfield[@code='d']">
916
            <xsl:call-template name="chopPunctuation">
903
            <xsl:call-template name="chopPunctuation">
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-15 / +3 lines)
Lines 965-971 Link Here
965
                    </xsl:otherwise>
965
                    </xsl:otherwise>
966
                </xsl:choose>
966
                </xsl:choose>
967
                <xsl:choose>
967
                <xsl:choose>
968
                    <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCDQ"/></xsl:when>
968
                    <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when>
969
                    <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
969
                    <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
970
                    <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
970
                    <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
971
                </xsl:choose>
971
                </xsl:choose>
Lines 991-1008 Link Here
991
        <xsl:text>.</xsl:text>
991
        <xsl:text>.</xsl:text>
992
    </xsl:template>
992
    </xsl:template>
993
993
994
    <xsl:template name="nameABCDQ">
994
    <xsl:template name="nameABCQ">
995
            <xsl:call-template name="chopPunctuation">
995
            <xsl:call-template name="chopPunctuation">
996
                <xsl:with-param name="chopString">
996
                <xsl:with-param name="chopString">
997
                    <xsl:call-template name="subfieldSelect">
997
                    <xsl:call-template name="subfieldSelect">
998
                        <xsl:with-param name="codes">aq</xsl:with-param>
998
                        <xsl:with-param name="codes">abcq</xsl:with-param>
999
                    </xsl:call-template>
999
                    </xsl:call-template>
1000
                </xsl:with-param>
1000
                </xsl:with-param>
1001
                <xsl:with-param name="punctuation">
1001
                <xsl:with-param name="punctuation">
1002
                    <xsl:text>:,;/ </xsl:text>
1002
                    <xsl:text>:,;/ </xsl:text>
1003
                </xsl:with-param>
1003
                </xsl:with-param>
1004
            </xsl:call-template>
1004
            </xsl:call-template>
1005
        <xsl:call-template name="termsOfAddress"/>
1006
    </xsl:template>
1005
    </xsl:template>
1007
1006
1008
    <xsl:template name="nameABCDN">
1007
    <xsl:template name="nameABCDN">
Lines 1031-1047 Link Here
1031
                <xsl:with-param name="codes">acdeq</xsl:with-param>
1030
                <xsl:with-param name="codes">acdeq</xsl:with-param>
1032
            </xsl:call-template>
1031
            </xsl:call-template>
1033
    </xsl:template>
1032
    </xsl:template>
1034
    <xsl:template name="termsOfAddress">
1035
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
1036
            <xsl:call-template name="chopPunctuation">
1037
                <xsl:with-param name="chopString">
1038
                    <xsl:call-template name="subfieldSelect">
1039
                        <xsl:with-param name="codes">bc</xsl:with-param>
1040
                    </xsl:call-template>
1041
                </xsl:with-param>
1042
            </xsl:call-template>
1043
        </xsl:if>
1044
    </xsl:template>
1045
1033
1046
    <xsl:template name="part">
1034
    <xsl:template name="part">
1047
        <xsl:variable name="partNumber">
1035
        <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 1163-1180 Link Here
1163
       </xsl:choose>
1163
       </xsl:choose>
1164
    </xsl:template>
1164
    </xsl:template>
1165
1165
1166
    <xsl:template name="nameABCDQ">
1166
    <xsl:template name="nameABCQ">
1167
            <xsl:call-template name="chopPunctuation">
1167
            <xsl:call-template name="chopPunctuation">
1168
                <xsl:with-param name="chopString">
1168
                <xsl:with-param name="chopString">
1169
                    <xsl:call-template name="subfieldSelect">
1169
                    <xsl:call-template name="subfieldSelect">
1170
                        <xsl:with-param name="codes">aq</xsl:with-param>
1170
                        <xsl:with-param name="codes">abcq</xsl:with-param>
1171
                    </xsl:call-template>
1171
                    </xsl:call-template>
1172
                </xsl:with-param>
1172
                </xsl:with-param>
1173
                <xsl:with-param name="punctuation">
1173
                <xsl:with-param name="punctuation">
1174
                    <xsl:text>:,;/ </xsl:text>
1174
                    <xsl:text>:,;/ </xsl:text>
1175
                </xsl:with-param>
1175
                </xsl:with-param>
1176
            </xsl:call-template>
1176
            </xsl:call-template>
1177
        <xsl:call-template name="termsOfAddress"/>
1178
    </xsl:template>
1177
    </xsl:template>
1179
1178
1180
    <xsl:template name="nameABCDN">
1179
    <xsl:template name="nameABCDN">
Lines 1199-1216 Link Here
1199
            </xsl:call-template>
1198
            </xsl:call-template>
1200
    </xsl:template>
1199
    </xsl:template>
1201
1200
1202
    <xsl:template name="termsOfAddress">
1203
        <xsl:if test="marc:subfield[@code='b' or @code='c']">
1204
            <xsl:call-template name="chopPunctuation">
1205
                <xsl:with-param name="chopString">
1206
                    <xsl:call-template name="subfieldSelect">
1207
                        <xsl:with-param name="codes">bc</xsl:with-param>
1208
                    </xsl:call-template>
1209
                </xsl:with-param>
1210
            </xsl:call-template>
1211
        </xsl:if>
1212
    </xsl:template>
1213
1214
    <xsl:template name="nameDate">
1201
    <xsl:template name="nameDate">
1215
        <xsl:for-each select="marc:subfield[@code='d']">
1202
        <xsl:for-each select="marc:subfield[@code='d']">
1216
            <xsl:call-template name="chopPunctuation">
1203
            <xsl:call-template name="chopPunctuation">
1217
- 

Return to bug 9820