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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl (-3 / +4 lines)
Lines 6-12 Link Here
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
7
  xmlns:items="http://www.koha-community.org/items"
7
  xmlns:items="http://www.koha-community.org/items"
8
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9
  exclude-result-prefixes="marc items">
9
  xmlns:str="http://exslt.org/strings"
10
  exclude-result-prefixes="marc items str">
10
11
11
  <xsl:template name="datafield">
12
  <xsl:template name="datafield">
12
    <xsl:param name="tag"/>
13
    <xsl:param name="tag"/>
Lines 252-258 Link Here
252
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
253
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
253
              </xsl:when>
254
              </xsl:when>
254
              <xsl:otherwise>
255
              <xsl:otherwise>
255
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
256
                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/></xsl:attribute>
256
              </xsl:otherwise>
257
              </xsl:otherwise>
257
            </xsl:choose>
258
            </xsl:choose>
258
            <xsl:call-template name="chopPunctuation">
259
            <xsl:call-template name="chopPunctuation">
Lines 289-295 Link Here
289
                  <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
290
                  <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
290
                </xsl:when>
291
                </xsl:when>
291
                <xsl:otherwise>
292
                <xsl:otherwise>
292
                  <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='b']"/></xsl:attribute>
293
                  <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/><xsl:text> </xsl:text><xsl:value-of select="marc:subfield[@code='b']"/></xsl:attribute>
293
                </xsl:otherwise>
294
                </xsl:otherwise>
294
              </xsl:choose>
295
              </xsl:choose>
295
              <xsl:if test="marc:subfield[@code='a']">
296
              <xsl:if test="marc:subfield[@code='a']">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl (-6 / +6 lines)
Lines 6-12 Link Here
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
7
  xmlns:items="http://www.koha-community.org/items"
7
  xmlns:items="http://www.koha-community.org/items"
8
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9
  exclude-result-prefixes="marc items">
9
  xmlns:str="http://exslt.org/strings"
10
  exclude-result-prefixes="marc items str">
10
11
11
  <xsl:template name="datafield">
12
  <xsl:template name="datafield">
12
    <xsl:param name="tag"/>
13
    <xsl:param name="tag"/>
Lines 291-297 Link Here
291
        <a>
292
        <a>
292
          <xsl:attribute name="href">
293
          <xsl:attribute name="href">
293
            <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
294
            <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
294
            <xsl:value-of select="marc:subfield[@code='a']"/>
295
            <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
295
          </xsl:attribute>
296
          </xsl:attribute>
296
          <xsl:call-template name="chopPunctuation">
297
          <xsl:call-template name="chopPunctuation">
297
            <xsl:with-param name="chopString">
298
            <xsl:with-param name="chopString">
Lines 355-363 Link Here
355
                <xsl:otherwise>
356
                <xsl:otherwise>
356
                  <xsl:attribute name="href">
357
                  <xsl:attribute name="href">
357
                    <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:</xsl:text>
358
                    <xsl:text>/cgi-bin/koha/opac-search.pl?q=au:</xsl:text>
358
                    <xsl:value-of select="marc:subfield[@code='a']"/>
359
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code='a'], true())"/>
359
                    <xsl:text> </xsl:text>
360
                    <xsl:text>%20</xsl:text>
360
                    <xsl:value-of select="marc:subfield[@code='b']"/>
361
                    <xsl:value-of select="str:encode-uri(marc:subfield[@code='b'], true())"/>
361
                  </xsl:attribute>
362
                  </xsl:attribute>
362
                </xsl:otherwise>
363
                </xsl:otherwise>
363
              </xsl:choose>
364
              </xsl:choose>
364
- 

Return to bug 14716