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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+72 lines)
Lines 826-831 Link Here
826
        </xsl:for-each>
826
        </xsl:for-each>
827
        </xsl:if>
827
        </xsl:if>
828
828
829
        <!-- 787 -->
830
        <xsl:if test="marc:datafield[@tag=787]">
831
        <xsl:for-each select="marc:datafield[@tag=787]">
832
        <xsl:if test="@ind1=0">
833
        <span class="results_summary in"><span class="label">
834
        <xsl:choose>
835
        <xsl:when test="@ind2=' '">
836
            Related item:
837
        </xsl:when>
838
        <xsl:when test="@ind2=8">
839
            <xsl:if test="marc:subfield[@code='i']">
840
                <xsl:value-of select="marc:subfield[@code='i']"/>
841
            </xsl:if>
842
        </xsl:when>
843
        </xsl:choose>
844
        </span>
845
                <xsl:variable name="f787">
846
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
847
                        <xsl:with-param name="codes">at</xsl:with-param>
848
                    </xsl:call-template></xsl:with-param></xsl:call-template>
849
                </xsl:variable>
850
            <xsl:choose>
851
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
852
                     <xsl:if test="marc:subfield[@code='t']">
853
                        <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>
854
                        <xsl:value-of select="marc:subfield[@code='t']"/>
855
                        </a>
856
                         <xsl:if test="marc:subfield[@code='d']">
857
                           <span class="label"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='d']"/></span>
858
                        </xsl:if>
859
                        <xsl:if test="marc:subfield[@code='g']"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
860
                    </xsl:if>
861
                </xsl:when>
862
                 <xsl:when test="$UseControlNumber = '0'">
863
                      <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=ti,phr<xsl:value-of select="marc:subfield[@code='t']"/></xsl:attribute>
864
                     <xsl:value-of select="marc:subfield[@code='t']"/>
865
                     </a>
866
                     <xsl:if test="marc:subfield[@code='d']">
867
                        <span class="label"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='d']"/></span>
868
                     </xsl:if>
869
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
870
                 </xsl:when>
871
                 <xsl:otherwise>
872
                     <a><xsl:if test="marc:subfield[@code='t']"><xsl:text></xsl:text><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if></a>
873
                     <xsl:if test="marc:subfield[@code='d']">
874
                        <span class="label"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='d']"/></span>
875
                     </xsl:if>
876
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
877
                 </xsl:otherwise>
878
                <xsl:when test="marc:subfield[@code='0']">
879
                    <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
880
                        <xsl:value-of select="$f787"/>
881
                    </a>
882
                </xsl:when>
883
                 <xsl:otherwise>
884
                 <a><xsl:if test="marc:subfield[@code='t']"><xsl:text></xsl:text><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if></a>
885
                     <xsl:if test="marc:subfield[@code='d']">
886
                        <span class="label"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='d']"/></span>
887
                     </xsl:if>
888
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
889
                 </xsl:otherwise>
890
            </xsl:choose>
891
        </span>
892
893
        <xsl:if test="marc:subfield[@code='n']">
894
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
895
        </xsl:if>
896
897
        </xsl:if>
898
        </xsl:for-each>
899
        </xsl:if>
900
829
        <xsl:if test="$OPACBaseURL!=''">
901
        <xsl:if test="$OPACBaseURL!=''">
830
        <span class="results_summary"><span class="label">OPAC view: </span>
902
        <span class="results_summary"><span class="label">OPAC view: </span>
831
            <a><xsl:attribute name="href">http://<xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>Open in new window</a>.
903
            <a><xsl:attribute name="href">http://<xsl:value-of select="$OPACBaseURL"/>/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:datafield[@tag=999]/marc:subfield[@code='c']"/></xsl:attribute><xsl:attribute name="target">_blank</xsl:attribute>Open in new window</a>.
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +67 lines)
Lines 939-944 Link Here
939
        </xsl:for-each>
939
        </xsl:for-each>
940
        </xsl:if>
940
        </xsl:if>
941
941
942
        <!-- 787 -->
943
        <xsl:if test="marc:datafield[@tag=787]">
944
        <xsl:for-each select="marc:datafield[@tag=787]">
945
        <xsl:if test="@ind1=0">
946
        <span class="results_summary in"><span class="label">
947
        <xsl:choose>
948
        <xsl:when test="@ind2=' '">
949
            Related item:
950
        </xsl:when>
951
        <xsl:when test="@ind2=8">
952
            <xsl:if test="marc:subfield[@code='i']">
953
                <xsl:value-of select="marc:subfield[@code='i']"/>
954
            </xsl:if>
955
        </xsl:when>
956
        </xsl:choose>
957
        </span>
958
                <xsl:variable name="f787">
959
                    <xsl:call-template name="chopPunctuation"><xsl:with-param name="chopString"><xsl:call-template name="subfieldSelect">
960
                        <xsl:with-param name="codes">a_t</xsl:with-param>
961
                    </xsl:call-template></xsl:with-param></xsl:call-template>
962
                </xsl:variable>
963
            <xsl:choose>
964
                <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']">
965
                    <xsl:if test="marc:subfield[@code='t']">
966
                        <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>
967
                            <xsl:value-of select="marc:subfield[@code='t']"/>
968
                        </a>
969
                        <xsl:if test="marc:subfield[@code='d']">
970
                        <span class="label"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='d']"/></span>
971
                        </xsl:if>
972
                        <xsl:if test="marc:subfield[@code='g']"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
973
                    </xsl:if>
974
                </xsl:when>
975
                 <xsl:when test="$UseControlNumber = '0'">
976
                      <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="marc:subfield[@code='t']"/></xsl:attribute>
977
                     <xsl:value-of select="marc:subfield[@code='t']"/>
978
                     </a>
979
                     <xsl:if test="marc:subfield[@code='d']">
980
                        <span class="label"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='d']"/></span>
981
                     </xsl:if>
982
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text></xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
983
                 </xsl:when>
984
                 <xsl:otherwise>
985
                     <a><xsl:if test="marc:subfield[@code='t']"><xsl:text></xsl:text><xsl:value-of select="marc:subfield[@code='t']"/></xsl:if></a>
986
                     <xsl:if test="marc:subfield[@code='d']">
987
                        <span class="label"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='d']"/></span>
988
                     </xsl:if>
989
                     <xsl:if test="marc:subfield[@code='g']"><xsl:text> - </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
990
                 </xsl:otherwise>
991
                <xsl:when test="marc:subfield[@code='0']">
992
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="marc:subfield[@code='0']"/></xsl:attribute>
993
                        <xsl:value-of select="$f787"/>
994
                    </a>
995
                </xsl:when>
996
                <xsl:otherwise>
997
                    <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of select="translate($f773, '()', '')"/></xsl:attribute>
998
                        <xsl:value-of select="$f787"/>
999
                    </a>
1000
                    <xsl:if test="marc:subfield[@code='g']"><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='g']"/></xsl:if>
1001
                </xsl:otherwise>
1002
            </xsl:choose>
1003
        </span>
1004
1005
		 </xsl:if>
1006
		 </xsl:for-each>
1007
		 </xsl:if>
1008
942
    </xsl:template>
1009
    </xsl:template>
943
1010
944
    <xsl:template name="showAuthor">
1011
    <xsl:template name="showAuthor">
945
- 

Return to bug 8948