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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl (-19 / +10 lines)
Lines 290-314 Link Here
290
           </xsl:call-template>
290
           </xsl:call-template>
291
        </xsl:if>
291
        </xsl:if>
292
292
293
        <a><xsl:attribute name="href">
293
    <a>
294
            <xsl:choose>
294
        <xsl:attribute name="href">
295
                <xsl:when test="$IntranetBiblioDefaultView='normal'">
295
            <xsl:call-template name="buildBiblioDefaultViewURL">
296
                    /cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
296
                <xsl:with-param name="IntranetBiblioDefaultView">
297
                </xsl:when>
297
                    <xsl:value-of select="$IntranetBiblioDefaultView"/>
298
                <xsl:when test="$IntranetBiblioDefaultView='isbd'">
298
                </xsl:with-param>
299
                    /cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
299
            </xsl:call-template>
300
                </xsl:when>
300
            <xsl:value-of select="$biblionumber"/>
301
                <xsl:when test="$IntranetBiblioDefaultView='labeled_marc'">
301
        </xsl:attribute>
302
                    /cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
302
        <xsl:attribute name="class">title</xsl:attribute>
303
                </xsl:when>
304
                <xsl:when test="$IntranetBiblioDefaultView='marc'">
305
                    /cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
306
                </xsl:when>
307
                <xsl:otherwise>
308
                    /cgi-bin/koha/catalogue/detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
309
                </xsl:otherwise>
310
            </xsl:choose>
311
        </xsl:attribute><xsl:attribute name="class">title</xsl:attribute>
312
303
313
        <xsl:if test="marc:datafield[@tag=245]">
304
        <xsl:if test="marc:datafield[@tag=245]">
314
        <xsl:for-each select="marc:datafield[@tag=245]">
305
        <xsl:for-each select="marc:datafield[@tag=245]">
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl (-1 / +21 lines)
Lines 72-77 Link Here
72
		</xsl:if>
72
		</xsl:if>
73
	</xsl:template>
73
	</xsl:template>
74
74
75
    <xsl:template name="buildBiblioDefaultViewURL">
76
        <xsl:param name="IntranetBiblioDefaultView"/>
77
        <xsl:choose>
78
            <xsl:when test="$IntranetBiblioDefaultView='normal'">
79
                <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
80
            </xsl:when>
81
            <xsl:when test="$IntranetBiblioDefaultView='isbd'">
82
                <xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text>
83
            </xsl:when>
84
            <xsl:when test="$IntranetBiblioDefaultView='labeled_marc'">
85
                <xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text>
86
            </xsl:when>
87
            <xsl:when test="$IntranetBiblioDefaultView='marc'">
88
                <xsl:text>/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=</xsl:text>
89
            </xsl:when>
90
            <xsl:otherwise>
91
                <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
92
            </xsl:otherwise>
93
        </xsl:choose>
94
    </xsl:template>
95
75
	<xsl:template name="chopPunctuation">
96
	<xsl:template name="chopPunctuation">
76
		<xsl:param name="chopString"/>
97
		<xsl:param name="chopString"/>
77
		<xsl:variable name="length" select="string-length($chopString)"/>
98
		<xsl:variable name="length" select="string-length($chopString)"/>
78
- 

Return to bug 12900