|
Lines 15-20
Link Here
|
| 15 |
|
15 |
|
| 16 |
<!-- Sysprefs --> |
16 |
<!-- Sysprefs --> |
| 17 |
<xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/> |
17 |
<xsl:variable name="OPACBaseURL" select="marc:sysprefs/marc:syspref[@name='OPACBaseURL']"/> |
|
|
18 |
<xsl:variable name="SubjectModifier"><xsl:if test="marc:sysprefs/marc:syspref[@name='TraceCompleteSubfields']='1'">,complete-subfield</xsl:if></xsl:variable> |
| 19 |
<xsl:variable name="TraceSubjectSubdivisions" select="marc:sysprefs/marc:syspref[@name='TraceSubjectSubdivisions']"/> |
| 18 |
|
20 |
|
| 19 |
<xsl:variable name="leader" select="marc:leader"/> |
21 |
<xsl:variable name="leader" select="marc:leader"/> |
| 20 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
22 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
|
Lines 293-308
Link Here
|
| 293 |
</span> |
295 |
</span> |
| 294 |
</xsl:if> |
296 |
</xsl:if> |
| 295 |
|
297 |
|
|
|
298 |
<!-- Subjects --> |
| 299 |
|
| 296 |
<xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']"> |
300 |
<xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']"> |
| 297 |
<span class="results_summary"><span class="label">Emner: </span> |
301 |
<span class="results_summary subjects"><span class="label">Emne(r): </span> |
| 298 |
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']"> |
302 |
<xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']"> |
| 299 |
<a> |
303 |
<a> |
| 300 |
<xsl:choose> |
304 |
<xsl:choose> |
| 301 |
<xsl:when test="marc:subfield[@code=9]"> |
305 |
<xsl:when test="marc:subfield[@code=9] and $UseAuthoritiesForTracings='1'"> |
| 302 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
306 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute> |
| 303 |
</xsl:when> |
307 |
</xsl:when> |
|
|
308 |
<xsl:when test="$TraceSubjectSubdivisions='1'"> |
| 309 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:call-template name="subfieldSelect"> |
| 310 |
<xsl:with-param name="codes">abcdvxyz</xsl:with-param> |
| 311 |
<xsl:with-param name="delimeter"> and </xsl:with-param> |
| 312 |
<xsl:with-param name="prefix">(su<xsl:value-of select="$SubjectModifier"/>:{</xsl:with-param> |
| 313 |
<xsl:with-param name="suffix">})</xsl:with-param> |
| 314 |
</xsl:call-template> |
| 315 |
</xsl:attribute> |
| 316 |
</xsl:when> |
| 304 |
<xsl:otherwise> |
317 |
<xsl:otherwise> |
| 305 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute> |
318 |
<xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su<xsl:value-of select="$SubjectModifier"/>:{<xsl:value-of select="marc:subfield[@code='a']"/>}</xsl:attribute> |
| 306 |
</xsl:otherwise> |
319 |
</xsl:otherwise> |
| 307 |
</xsl:choose> |
320 |
</xsl:choose> |
| 308 |
<xsl:call-template name="chopPunctuation"> |
321 |
<xsl:call-template name="chopPunctuation"> |
|
Lines 313-319
Link Here
|
| 313 |
<xsl:with-param name="subdivDelimiter">-- </xsl:with-param> |
326 |
<xsl:with-param name="subdivDelimiter">-- </xsl:with-param> |
| 314 |
</xsl:call-template> |
327 |
</xsl:call-template> |
| 315 |
</xsl:with-param> |
328 |
</xsl:with-param> |
| 316 |
</xsl:call-template></a> |
329 |
</xsl:call-template> |
|
|
330 |
</a> |
| 317 |
<xsl:choose> |
331 |
<xsl:choose> |
| 318 |
<xsl:when test="position()=last()"></xsl:when> |
332 |
<xsl:when test="position()=last()"></xsl:when> |
| 319 |
<xsl:otherwise> | </xsl:otherwise> |
333 |
<xsl:otherwise> | </xsl:otherwise> |