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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-16 / +10 lines)
Lines 403-424 Link Here
403
           </xsl:call-template>
403
           </xsl:call-template>
404
        </xsl:if>
404
        </xsl:if>
405
405
406
        <a><xsl:attribute name="href">
406
    <a>
407
            <xsl:choose>
407
        <xsl:attribute name="href">
408
                <xsl:when test="$BiblioDefaultView='normal'">
408
            <xsl:call-template name="buildBiblioDefaultViewURL">
409
                    /cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
409
                <xsl:with-param name="BiblioDefaultView">
410
                </xsl:when>
410
                    <xsl:value-of select="$BiblioDefaultView"/>
411
                <xsl:when test="$BiblioDefaultView='isbd'">
411
                </xsl:with-param>
412
                    /cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
412
            </xsl:call-template>
413
                </xsl:when>
413
            <xsl:value-of select="$biblionumber"/>
414
                <xsl:when test="$BiblioDefaultView='marc'">
414
        </xsl:attribute>
415
                    /cgi-bin/koha/opac-MARCdetail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
415
        <xsl:attribute name="class">title</xsl:attribute>
416
                </xsl:when>
417
                <xsl:otherwise>
418
                    /cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/>
419
                </xsl:otherwise>
420
            </xsl:choose>
421
        </xsl:attribute><xsl:attribute name="class">title</xsl:attribute>
422
416
423
        <xsl:if test="marc:datafield[@tag=245]">
417
        <xsl:if test="marc:datafield[@tag=245]">
424
        <xsl:for-each select="marc:datafield[@tag=245]">
418
        <xsl:for-each select="marc:datafield[@tag=245]">
(-)a/koha-tmpl/opac-tmpl/bootstrap/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="BiblioDefaultView"/>
77
      <xsl:choose>
78
          <xsl:when test="$BiblioDefaultView='normal'">
79
              <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
80
          </xsl:when>
81
          <xsl:when test="$BiblioDefaultView='isbd'">
82
              <xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text>
83
          </xsl:when>
84
          <xsl:when test="$BiblioDefaultView='labeled_marc'">
85
              <xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text>
86
          </xsl:when>
87
          <xsl:when test="$BiblioDefaultView='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 12901