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 957-963 Link Here
957
            <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>
957
            <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>
958
	      </xsl:when>
958
	      </xsl:when>
959
	      <xsl:otherwise>
959
	      <xsl:otherwise>
960
                <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
960
              <xsl:attribute name="href">
961
                  <xsl:if test="not(contains(marc:subfield[@code='u'],'://'))">
962
                      <xsl:choose>
963
                          <xsl:when test="@ind1=7">
964
                              <xsl:value-of select="marc:subfield[@code='2']"/><xsl:text>://</xsl:text>
965
                          </xsl:when>
966
                          <xsl:when test="@ind1=1">
967
                              <xsl:text>ftp://</xsl:text>
968
                          </xsl:when>
969
                          <xsl:otherwise>
970
                              <xsl:text>http://</xsl:text>
971
                          </xsl:otherwise>
972
                      </xsl:choose>
973
                  </xsl:if>
974
                  <xsl:value-of select="marc:subfield[@code='u']"/>
975
              </xsl:attribute>
961
	      </xsl:otherwise>
976
	      </xsl:otherwise>
962
	    </xsl:choose>
977
	    </xsl:choose>
963
            <xsl:if test="$OPACURLOpenInNewWindow='1'">
978
            <xsl:if test="$OPACURLOpenInNewWindow='1'">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-2 / +16 lines)
Lines 1129-1135 Link Here
1129
                      <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>
1129
                      <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>
1130
				</xsl:when>
1130
				</xsl:when>
1131
				<xsl:otherwise>
1131
				<xsl:otherwise>
1132
				  <xsl:attribute name="href"><xsl:value-of select="marc:subfield[@code='u']"/></xsl:attribute>
1132
                    <xsl:attribute name="href">
1133
                        <xsl:if test="not(contains(marc:subfield[@code='u'],'://'))">
1134
                            <xsl:choose>
1135
                                <xsl:when test="@ind1=7">
1136
                                    <xsl:value-of select="marc:subfield[@code='2']"/><xsl:text>://</xsl:text>
1137
                                </xsl:when>
1138
                                <xsl:when test="@ind1=1">
1139
                                    <xsl:text>ftp://</xsl:text>
1140
                                </xsl:when>
1141
                                <xsl:otherwise>
1142
                                    <xsl:text>http://</xsl:text>
1143
                                </xsl:otherwise>
1144
                            </xsl:choose>
1145
                        </xsl:if>
1146
                        <xsl:value-of select="marc:subfield[@code='u']"/>
1147
                    </xsl:attribute>
1133
				</xsl:otherwise>
1148
				</xsl:otherwise>
1134
			      </xsl:choose>
1149
			      </xsl:choose>
1135
                                    <xsl:choose>
1150
                                    <xsl:choose>
1136
- 

Return to bug 21887