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

(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl (-4 / +15 lines)
Lines 244-250 Link Here
244
                <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
244
                <xsl:text>/cgi-bin/koha/opac-search.pl?q=an:</xsl:text>
245
                <xsl:value-of select="."/>
245
                <xsl:value-of select="."/>
246
              </xsl:attribute>
246
              </xsl:attribute>
247
              <xsl:value-of select="$display"/>
247
              <xsl:choose>
248
                <xsl:when test="string-length($display) &gt; 0">
249
                  <xsl:call-template name="chopPunctuation">
250
                    <xsl:with-param name="chopString">
251
                      <xsl:value-of select="$display"/>
252
                    </xsl:with-param>
253
                  </xsl:call-template>
254
                </xsl:when>
255
                <xsl:otherwise>
256
                  <xsl:value-of select="."/>
257
                </xsl:otherwise>
258
              </xsl:choose>
248
            </a>
259
            </a>
249
            <xsl:variable name="ncommas"
260
            <xsl:variable name="ncommas"
250
                 select="string-length($ends) - string-length(translate($ends, ',', ''))" />
261
                 select="string-length($ends) - string-length(translate($ends, ',', ''))" />
Lines 254-260 Link Here
254
          </xsl:if>
265
          </xsl:if>
255
        </xsl:for-each>
266
        </xsl:for-each>
256
      </xsl:when>
267
      </xsl:when>
257
      <xsl:otherwise>
268
      <xsl:when test="marc:subfield[@code=a]">
258
        <a>
269
        <a>
259
          <xsl:attribute name="href">
270
          <xsl:attribute name="href">
260
            <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
271
            <xsl:text>/cgi-bin/koha/opac-search.pl?q=su:</xsl:text>
Lines 270-276 Link Here
270
            </xsl:with-param>
281
            </xsl:with-param>
271
          </xsl:call-template>
282
          </xsl:call-template>
272
        </a>
283
        </a>
273
      </xsl:otherwise>
284
      </xsl:when>
285
      <xsl:otherwise/>
274
    </xsl:choose>
286
    </xsl:choose>
275
    <xsl:if test="not(position()=last())">
287
    <xsl:if test="not(position()=last())">
276
      <xsl:text> | </xsl:text>
288
      <xsl:text> | </xsl:text>
277
- 

Return to bug 8513