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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+48 lines)
Lines 918-923 Link Here
918
        </span>
918
        </span>
919
    </xsl:if>
919
    </xsl:if>
920
920
921
<!-- MARC21 777 - Issued With Entry -->
922
    <xsl:if test="marc:datafield[@tag=777]">
923
        <xsl:for-each select="marc:datafield[@tag=777]">
924
            <xsl:if test="@ind1 != 1">
925
                <span class="results_summary issued_with">
926
                    <span class="label">
927
                        <xsl:choose>
928
                            <xsl:when test="@ind2=8 and marc:subfield[@code='i']">
929
                                <xsl:value-of select="marc:subfield[@code='i']"/>
930
                            </xsl:when>
931
                            <xsl:otherwise>
932
                                <xsl:text>Issued with:</xsl:text>
933
                            </xsl:otherwise>
934
                        </xsl:choose>
935
                        <xsl:text> </xsl:text>
936
                    </span>
937
                    <xsl:variable name="f777">
938
                        <xsl:call-template name="chopPunctuation">
939
                            <xsl:with-param name="chopString">
940
                                <xsl:call-template name="subfieldSelect">
941
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
942
                                </xsl:call-template>
943
                            </xsl:with-param>
944
                        </xsl:call-template>
945
                    </xsl:variable>
946
                    <xsl:choose>
947
                        <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
948
                            <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
949
                            <xsl:value-of select="translate($f777, '()', '')"/>
950
                            </a>
951
                        </xsl:when>
952
                        <xsl:otherwise>
953
                            <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/></xsl:attribute>
954
                            <xsl:value-of select="$f777"/>
955
                            </a>
956
                        </xsl:otherwise>
957
                    </xsl:choose>
958
                    <xsl:if test="marc:subfield[@code='g']">
959
                        <xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/>
960
                    </xsl:if>
961
                </span>
962
                <xsl:if test="marc:subfield[@code='n']">
963
                    <xsl:text> </xsl:text><span class="results_summary in_note"><xsl:value-of select="marc:subfield[@code='n']"/></span>
964
                </xsl:if>
965
            </xsl:if>
966
        </xsl:for-each>
967
    </xsl:if>
968
921
<!-- DDC classification -->
969
<!-- DDC classification -->
922
    <xsl:if test="marc:datafield[@tag=082]">
970
    <xsl:if test="marc:datafield[@tag=082]">
923
        <span class="results_summary ddc">
971
        <span class="results_summary ddc">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +48 lines)
Lines 970-975 Link Here
970
        </span>
970
        </span>
971
    </xsl:if>
971
    </xsl:if>
972
972
973
<!-- MARC21 777 - Issued With Entry -->
974
    <xsl:if test="marc:datafield[@tag=777]">
975
        <xsl:for-each select="marc:datafield[@tag=777]">
976
            <xsl:if test="@ind1 != 1">
977
                <span class="results_summary issued_with">
978
                    <span class="label">
979
                        <xsl:choose>
980
                            <xsl:when test="@ind2=8 and marc:subfield[@code='i']">
981
                                <xsl:value-of select="marc:subfield[@code='i']"/>
982
                            </xsl:when>
983
                            <xsl:otherwise>
984
                                <xsl:text>Issued with:</xsl:text>
985
                            </xsl:otherwise>
986
                        </xsl:choose>
987
                        <xsl:text> </xsl:text>
988
                    </span>
989
                    <xsl:variable name="f777">
990
                        <xsl:call-template name="chopPunctuation">
991
                            <xsl:with-param name="chopString">
992
                                <xsl:call-template name="subfieldSelect">
993
                                    <xsl:with-param name="codes">a_t</xsl:with-param>
994
                                </xsl:call-template>
995
                            </xsl:with-param>
996
                        </xsl:call-template>
997
                    </xsl:variable>
998
                    <xsl:choose>
999
                        <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
1000
                            <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=control-number:<xsl:call-template name="extractControlNumber"><xsl:with-param name="subfieldW" select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1001
                            <xsl:value-of select="translate($f777, '()', '')"/>
1002
                            </a>
1003
                        </xsl:when>
1004
                        <xsl:otherwise>
1005
                            <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="str:encode-uri(marc:subfield[@code='t'], true())"/></xsl:attribute>
1006
                            <xsl:value-of select="$f777"/>
1007
                            </a>
1008
                        </xsl:otherwise>
1009
                    </xsl:choose>
1010
                    <xsl:if test="marc:subfield[@code='g']">
1011
                        <xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/>
1012
                    </xsl:if>
1013
                </span>
1014
                <xsl:if test="marc:subfield[@code='n']">
1015
                    <xsl:text> </xsl:text><span class="results_summary in_note"><xsl:value-of select="marc:subfield[@code='n']"/></span>
1016
                </xsl:if>
1017
            </xsl:if>
1018
        </xsl:for-each>
1019
    </xsl:if>
1020
973
<!-- DDC classification -->
1021
<!-- DDC classification -->
974
    <xsl:if test="marc:datafield[@tag=082]">
1022
    <xsl:if test="marc:datafield[@tag=082]">
975
        <span class="results_summary ddc">
1023
        <span class="results_summary ddc">
976
- 

Return to bug 15780