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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACResults.xsl (-3 / +14 lines)
Lines 19-24 Link Here
19
    <xsl:template match="marc:record">
19
    <xsl:template match="marc:record">
20
20
21
    <!-- System preferences -->
21
    <!-- System preferences -->
22
    <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
22
    <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
23
    <xsl:variable name="UseControlNumber" select="marc:sysprefs/marc:syspref[@name='UseControlNumber']"/>
23
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
24
    <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
24
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
25
    <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
Lines 286-292 Link Here
286
        </xsl:variable>
287
        </xsl:variable>
287
288
288
		<!-- Tittel og ansvarsopplysninger -->
289
		<!-- Tittel og ansvarsopplysninger -->
289
	<a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
290
	<a>
291
        <xsl:attribute name="href">
292
            <xsl:call-template name="buildBiblioDefaultViewURL">
293
                <xsl:with-param name="BiblioDefaultView">
294
                    <xsl:value-of select="$BiblioDefaultView"/>
295
                </xsl:with-param>
296
            </xsl:call-template>
297
            <xsl:value-of select="$biblionumber"/>
298
        </xsl:attribute>
299
        <xsl:attribute name="class">title</xsl:attribute>
300
290
        <xsl:if test="marc:datafield[@tag=245]">
301
        <xsl:if test="marc:datafield[@tag=245]">
291
        <xsl:for-each select="marc:datafield[@tag=245]">
302
        <xsl:for-each select="marc:datafield[@tag=245]">
292
            <xsl:variable name="title">
303
            <xsl:variable name="title">
Lines 323-330 Link Here
323
    </a>
334
    </a>
324
    <p>
335
    <p>
325
336
326
    <xsl:choose>
337
    <xsl:choose
327
    <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
338
>    <xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
328
339
329
    av
340
    av
330
        <xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']">
341
        <xsl:for-each select="marc:datafield[(@tag=100 or @tag=700) and @ind1!='z']">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslimUtils.xsl (+21 lines)
Lines 52-57 Link Here
52
		</xsl:if>
52
		</xsl:if>
53
	</xsl:template>
53
	</xsl:template>
54
54
55
    <xsl:template name="buildBiblioDefaultViewURL">
56
      <xsl:param name="BiblioDefaultView"/>
57
      <xsl:choose>
58
          <xsl:when test="$BiblioDefaultView='normal'">
59
              <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
60
          </xsl:when>
61
          <xsl:when test="$BiblioDefaultView='isbd'">
62
              <xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text>
63
          </xsl:when>
64
          <xsl:when test="$BiblioDefaultView='labeled_marc'">
65
              <xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text>
66
          </xsl:when>
67
          <xsl:when test="$BiblioDefaultView='marc'">
68
              <xsl:text>/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=</xsl:text>
69
          </xsl:when>
70
          <xsl:otherwise>
71
              <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
72
          </xsl:otherwise>
73
      </xsl:choose>
74
    </xsl:template>
75
55
	<xsl:template name="chopPunctuation">
76
	<xsl:template name="chopPunctuation">
56
		<xsl:param name="chopString"/>
77
		<xsl:param name="chopString"/>
57
		<xsl:variable name="length" select="string-length($chopString)"/>
78
		<xsl:variable name="length" select="string-length($chopString)"/>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl (-2 / +7 lines)
Lines 25-31 Link Here
25
   select="marc:datafield[@tag=090]/marc:subfield[@code='a']"/>
25
   select="marc:datafield[@tag=090]/marc:subfield[@code='a']"/>
26
  <xsl:variable name="isbn"
26
  <xsl:variable name="isbn"
27
   select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
27
   select="marc:datafield[@tag=010]/marc:subfield[@code='a']"/>
28
28
  <xsl:variable name="BiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='BiblioDefaultView']"/>
29
  <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
29
  <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
30
  <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
30
  <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
31
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
31
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
Lines 41-49 Link Here
41
                select="translate($title, '&#x0088;&#x0089;&#x0098;&#x009C;','')"/>
41
                select="translate($title, '&#x0088;&#x0089;&#x0098;&#x009C;','')"/>
42
              <a>
42
              <a>
43
                <xsl:attribute name="href">
43
                <xsl:attribute name="href">
44
                  <xsl:text>/cgi-bin/koha/opac-detail.pl?biblionumber=</xsl:text>
44
                  <xsl:call-template name="buildBiblioDefaultViewURL">
45
                      <xsl:with-param name="BiblioDefaultView">
46
                          <xsl:value-of select="$BiblioDefaultView"/>
47
                      </xsl:with-param>
48
                  </xsl:call-template>
45
                  <xsl:value-of select="$biblionumber"/>
49
                  <xsl:value-of select="$biblionumber"/>
46
                </xsl:attribute>
50
                </xsl:attribute>
51
                <xsl:attribute name="class">title</xsl:attribute>
47
                <xsl:value-of select="$ntitle" />
52
                <xsl:value-of select="$ntitle" />
48
              </a>
53
              </a>
49
            </xsl:when>
54
            </xsl:when>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl (-1 / +21 lines)
Lines 57-62 Link Here
57
    </xsl:if>
57
    </xsl:if>
58
  </xsl:template>
58
  </xsl:template>
59
59
60
  <xsl:template name="buildBiblioDefaultViewURL">
61
      <xsl:param name="BiblioDefaultView"/>
62
      <xsl:choose>
63
          <xsl:when test="$BiblioDefaultView='normal'">
64
              <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
65
          </xsl:when>
66
          <xsl:when test="$BiblioDefaultView='isbd'">
67
              <xsl:text>/cgi-bin/koha/catalogue/ISBDdetail.pl?biblionumber=</xsl:text>
68
          </xsl:when>
69
          <xsl:when test="$BiblioDefaultView='labeled_marc'">
70
              <xsl:text>/cgi-bin/koha/catalogue/labeledMARCdetail.pl?biblionumber=</xsl:text>
71
          </xsl:when>
72
          <xsl:when test="$BiblioDefaultView='marc'">
73
              <xsl:text>/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=</xsl:text>
74
          </xsl:when>
75
          <xsl:otherwise>
76
              <xsl:text>/cgi-bin/koha/catalogue/detail.pl?biblionumber=</xsl:text>
77
          </xsl:otherwise>
78
      </xsl:choose>
79
  </xsl:template>
80
60
  <xsl:template name="chopPunctuation">
81
  <xsl:template name="chopPunctuation">
61
    <xsl:param name="chopString"/>
82
    <xsl:param name="chopString"/>
62
    <xsl:variable name="length" select="string-length($chopString)"/>
83
    <xsl:variable name="length" select="string-length($chopString)"/>
63
- 

Return to bug 12901