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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +16 lines)
Lines 906-912 Link Here
906
            <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
906
            <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
907
	      </xsl:when>
907
	      </xsl:when>
908
	      <xsl:otherwise>
908
	      <xsl:otherwise>
909
                <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
909
              <xsl:attribute name="href">
910
                  <xsl:if test="not(contains(marc:subfield[@code='u'],'://'))">
911
                      <xsl:choose>
912
                          <xsl:when test="@ind1=7">
913
                              <xsl:value-of select="marc:subfield[@code='2']"/><xsl:text>://</xsl:text>
914
                          </xsl:when>
915
                          <xsl:when test="@ind1=1">
916
                              <xsl:text>ftp://</xsl:text>
917
                          </xsl:when>
918
                          <xsl:otherwise>
919
                              <xsl:text>http://</xsl:text>
920
                          </xsl:otherwise>
921
                      </xsl:choose>
922
                  </xsl:if>
923
                  <xsl:value-of select="marc:subfield[@code='u']"/>
924
              </xsl:attribute>
910
	      </xsl:otherwise>
925
	      </xsl:otherwise>
911
	    </xsl:choose>
926
	    </xsl:choose>
912
            <xsl:if test="$OPACURLOpenInNewWindow='1'">
927
            <xsl:if test="$OPACURLOpenInNewWindow='1'">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-2 / +16 lines)
Lines 1078-1084 Link Here
1078
                      <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1078
                      <xsl:attribute name="href">/cgi-bin/koha/tracklinks.pl?uri=<xsl:value-of select="str:encode-uri(marc:subfield[@code='u'], true())"/>&amp;biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
1079
				</xsl:when>
1079
				</xsl:when>
1080
				<xsl:otherwise>
1080
				<xsl:otherwise>
1081
				  <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
1081
                    <xsl:attribute name="href">
1082
                        <xsl:if test="not(contains(marc:subfield[@code='u'],'://'))">
1083
                            <xsl:choose>
1084
                                <xsl:when test="@ind1=7">
1085
                                    <xsl:value-of select="marc:subfield[@code='2']"/><xsl:text>://</xsl:text>
1086
                                </xsl:when>
1087
                                <xsl:when test="@ind1=1">
1088
                                    <xsl:text>ftp://</xsl:text>
1089
                                </xsl:when>
1090
                                <xsl:otherwise>
1091
                                    <xsl:text>http://</xsl:text>
1092
                                </xsl:otherwise>
1093
                            </xsl:choose>
1094
                        </xsl:if>
1095
                        <xsl:value-of select="marc:subfield[@code='u']"/>
1096
                    </xsl:attribute>
1082
				</xsl:otherwise>
1097
				</xsl:otherwise>
1083
			      </xsl:choose>
1098
			      </xsl:choose>
1084
                                    <xsl:choose>
1099
                                    <xsl:choose>
1085
- 

Return to bug 21887