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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl (+6 lines)
Lines 16-21 Link Here
16
16
17
<xsl:template match="marc:record">
17
<xsl:template match="marc:record">
18
  <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
18
  <xsl:variable name="Show856uAsImage" select="marc:sysprefs/marc:syspref[@name='Display856uAsImage']"/>
19
  <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
19
  <xsl:variable name="leader" select="marc:leader"/>
20
  <xsl:variable name="leader" select="marc:leader"/>
20
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
21
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
21
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
22
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
Lines 306-311 Link Here
306
    </span>
307
    </span>
307
  </xsl:if>
308
  </xsl:if>
308
309
310
  <!-- Content Warning -->
311
  <xsl:call-template name="tag_content_warning">
312
    <xsl:with-param name="tag" select="$ContentWarningField" />
313
  </xsl:call-template>
314
309
  <xsl:if test="marc:datafield[@tag=955]">
315
  <xsl:if test="marc:datafield[@tag=955]">
310
    <span class="results_summary sudoc_serial_history">
316
    <span class="results_summary sudoc_serial_history">
311
      <span class="label">SUDOC serial history: </span>
317
      <span class="label">SUDOC serial history: </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetResults.xsl (+6 lines)
Lines 18-23 Link Here
18
18
19
<xsl:template match="marc:record">
19
<xsl:template match="marc:record">
20
  <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
20
  <xsl:variable name="IntranetBiblioDefaultView" select="marc:sysprefs/marc:syspref[@name='IntranetBiblioDefaultView']"/>
21
  <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
21
  <xsl:variable name="leader" select="marc:leader"/>
22
  <xsl:variable name="leader" select="marc:leader"/>
22
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
23
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
23
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
24
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
Lines 77-81 Link Here
77
78
78
  <xsl:call-template name="tag_215" />
79
  <xsl:call-template name="tag_215" />
79
80
81
  <!-- Content Warning -->
82
  <xsl:call-template name="tag_content_warning">
83
    <xsl:with-param name="tag" select="$ContentWarningField" />
84
  </xsl:call-template>
85
80
</xsl:template>
86
</xsl:template>
81
</xsl:stylesheet>
87
</xsl:stylesheet>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl (+36 lines)
Lines 485-488 Link Here
485
    </xsl:if>
485
    </xsl:if>
486
  </xsl:template>
486
  </xsl:template>
487
487
488
  <xsl:template name="tag_content_warning">
489
    <xsl:param name="tag" />
490
    <xsl:if test="marc:datafield[@tag=$tag]">
491
       <span class="results_summary content_warning">
492
           <span class="label">Content warning: </span>
493
           <xsl:for-each select="marc:datafield[@tag=$tag]">
494
               <xsl:choose>
495
                   <xsl:when test="marc:subfield[@code='u']">
496
                       <a>
497
                           <xsl:attribute name="href">
498
                               <xsl:value-of select="marc:subfield[@code='u']"/>
499
                           </xsl:attribute>
500
                           <xsl:choose>
501
                               <xsl:when test="marc:subfield[@code='a']">
502
                                   <xsl:value-of select="marc:subfield[@code='a']"/>
503
                               </xsl:when>
504
                               <xsl:otherwise>
505
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
506
                               </xsl:otherwise>
507
                           </xsl:choose>
508
                       </a>
509
                       <xsl:text> </xsl:text>
510
                   </xsl:when>
511
                   <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
512
                       <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
513
                   </xsl:when>
514
               </xsl:choose>
515
               <xsl:call-template name="subfieldSelect">
516
                    <xsl:with-param name="codes">bcdefghijklmnopqrstvwxyz</xsl:with-param>
517
               </xsl:call-template>
518
               <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
519
           </xsl:for-each>
520
       </span>
521
    </xsl:if>
522
  </xsl:template>
523
488
</xsl:stylesheet>
524
</xsl:stylesheet>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl (+6 lines)
Lines 22-27 Link Here
22
  <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
22
  <xsl:variable name="DisplayOPACiconsXSLT" select="marc:sysprefs/marc:syspref[@name='DisplayOPACiconsXSLT']"/>
23
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
23
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
24
  <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
24
  <xsl:variable name="URLLinkText" select="marc:sysprefs/marc:syspref[@name='URLLinkText']"/>
25
  <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
25
26
26
  <xsl:if test="marc:datafield[@tag=200]">
27
  <xsl:if test="marc:datafield[@tag=200]">
27
    <xsl:for-each select="marc:datafield[@tag=200]">
28
    <xsl:for-each select="marc:datafield[@tag=200]">
Lines 347-352 Link Here
347
    </span>
348
    </span>
348
  </xsl:if>
349
  </xsl:if>
349
350
351
  <!-- Content Warning -->
352
  <xsl:call-template name="tag_content_warning">
353
    <xsl:with-param name="tag" select="$ContentWarningField" />
354
  </xsl:call-template>
355
350
  <xsl:if test="marc:datafield[@tag=955]">
356
  <xsl:if test="marc:datafield[@tag=955]">
351
    <span class="results_summary sudoc_serial_history">
357
    <span class="results_summary sudoc_serial_history">
352
      <span class="label">SUDOC serial history: </span>
358
      <span class="label">SUDOC serial history: </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACResults.xsl (+6 lines)
Lines 31-36 Link Here
31
  <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
31
  <xsl:variable name="hidelostitems" select="marc:sysprefs/marc:syspref[@name='hidelostitems']"/>
32
  <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
32
  <xsl:variable name="singleBranchMode" select="marc:sysprefs/marc:syspref[@name='singleBranchMode']"/>
33
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
33
  <xsl:variable name="OPACURLOpenInNewWindow" select="marc:sysprefs/marc:syspref[@name='OPACURLOpenInNewWindow']"/>
34
  <xsl:variable name="ContentWarningField" select="marc:sysprefs/marc:syspref[@name='ContentWarningField']"/>
34
35
35
  <xsl:if test="marc:datafield[@tag=200]">
36
  <xsl:if test="marc:datafield[@tag=200]">
36
    <xsl:for-each select="marc:datafield[@tag=200]">
37
    <xsl:for-each select="marc:datafield[@tag=200]">
Lines 155-160 Link Here
155
156
156
  <xsl:call-template name="tag_215" />
157
  <xsl:call-template name="tag_215" />
157
158
159
  <!-- Content Warning -->
160
  <xsl:call-template name="tag_content_warning">
161
    <xsl:with-param name="tag" select="$ContentWarningField" />
162
  </xsl:call-template>
163
158
  <span class="results_summary availability">
164
  <span class="results_summary availability">
159
    <span class="label">Availability: </span>
165
    <span class="label">Availability: </span>
160
    <xsl:choose>
166
    <xsl:choose>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslimUtils.xsl (-1 / +36 lines)
Lines 545-548 Link Here
545
    </xsl:if>
545
    </xsl:if>
546
  </xsl:template>
546
  </xsl:template>
547
547
548
  <xsl:template name="tag_content_warning">
549
    <xsl:param name="tag" />
550
    <xsl:if test="marc:datafield[@tag=$tag]">
551
       <span class="results_summary content_warning">
552
           <span class="label">Content warning: </span>
553
           <xsl:for-each select="marc:datafield[@tag=$tag]">
554
               <xsl:choose>
555
                   <xsl:when test="marc:subfield[@code='u']">
556
                       <a>
557
                           <xsl:attribute name="href">
558
                               <xsl:value-of select="marc:subfield[@code='u']"/>
559
                           </xsl:attribute>
560
                           <xsl:choose>
561
                               <xsl:when test="marc:subfield[@code='a']">
562
                                   <xsl:value-of select="marc:subfield[@code='a']"/>
563
                               </xsl:when>
564
                               <xsl:otherwise>
565
                                   <xsl:value-of select="marc:subfield[@code='u']"/>
566
                               </xsl:otherwise>
567
                           </xsl:choose>
568
                       </a>
569
                       <xsl:text> </xsl:text>
570
                   </xsl:when>
571
                   <xsl:when test="not(marc:subfield[@code='u']) and marc:subfield[@code='a']">
572
                       <xsl:value-of select="marc:subfield[@code='a']"/><xsl:text> </xsl:text>
573
                   </xsl:when>
574
               </xsl:choose>
575
               <xsl:call-template name="subfieldSelect">
576
                    <xsl:with-param name="codes">bcdefghijklmnopqrstvwxyz</xsl:with-param>
577
               </xsl:call-template>
578
               <xsl:if test="position()!=last()"><span class="separator"><xsl:text> | </xsl:text></span></xsl:if>
579
           </xsl:for-each>
580
       </span>
581
    </xsl:if>
582
  </xsl:template>
583
548
</xsl:stylesheet>
584
</xsl:stylesheet>
549
- 

Return to bug 36370