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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-36 / +144 lines)
Lines 3-8 Link Here
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
4
5
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
5
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
6
6
<xsl:stylesheet version="1.0"
7
<xsl:stylesheet version="1.0"
7
  xmlns:marc="http://www.loc.gov/MARC21/slim"
8
  xmlns:marc="http://www.loc.gov/MARC21/slim"
8
  xmlns:items="http://www.koha-community.org/items"
9
  xmlns:items="http://www.koha-community.org/items"
Lines 140-148 Link Here
140
        </xsl:if>
141
        </xsl:if>
141
142
142
        <!-- Author Statement -->
143
        <!-- Author Statement -->
143
        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
144
        <!-- #13382 suppress 700$i and 7xx/@ind2=2 -->
144
        <xsl:call-template name="showAuthor"><xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711]"/><xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/></xsl:call-template>
145
        <xsl:call-template name="showAuthor">
145
146
            <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/>
147
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
148
        </xsl:call-template>
149
        <xsl:call-template name="showAuthor">
150
            <!-- #13382 suppress 700$i and 7xx/@ind2=2 -->
151
            <xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711][not(@ind2=2)][not(marc:subfield[@code='i'][parent::marc:datafield[@tag='700']])]"/>
152
            <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
153
        </xsl:call-template>
154
        
146
    <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
155
    <xsl:if test="$DisplayIconsXSLT!='0' and $materialTypeCode!=''">
147
        <span class="results_summary type"><span class="label">Material type: </span>
156
        <span class="results_summary type"><span class="label">Material type: </span>
148
        <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>
157
        <xsl:element name="img"><xsl:attribute name="src">/intranet-tmpl/prog/img/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute><xsl:attribute name="alt"></xsl:attribute></xsl:element>
Lines 524-530 Link Here
524
        </xsl:for-each>
533
        </xsl:for-each>
525
        </span>
534
        </span>
526
        </xsl:if>
535
        </xsl:if>
527
536
        
537
        <!-- #13382 Added Related works 700$i -->
538
        <xsl:if test="marc:datafield[@tag=700][marc:subfield[@code='i']]">
539
            <span class="results_summary related_works"><span class="label">Related Works: </span>
540
                <xsl:for-each select="marc:datafield[@tag=700][marc:subfield[@code='i']]">
541
                    <xsl:variable name="str">   
542
                        <xsl:call-template name="subfieldSelect">
543
                            <xsl:with-param name="codes">abcdfghiklmorstux</xsl:with-param>
544
                        </xsl:call-template>
545
                    </xsl:variable>
546
                    <xsl:call-template name="chopPunctuation">
547
                        <xsl:with-param name="chopString">
548
                            <xsl:value-of select="$str"/>    
549
                        </xsl:with-param>
550
                    </xsl:call-template>
551
                    <!-- add relator code too between brackets-->
552
                    <xsl:if test="marc:subfield[@code='4' or @code='e']">
553
                        <span class="relatorcode">
554
                            <xsl:text> [</xsl:text>
555
                            <xsl:choose>
556
                                <xsl:when test="marc:subfield[@code='e']">
557
                                    <xsl:for-each select="marc:subfield[@code='e']">
558
                                        <xsl:value-of select="."/>
559
                                        <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
560
                                    </xsl:for-each>
561
                                </xsl:when>
562
                                <xsl:otherwise>
563
                                    <xsl:for-each select="marc:subfield[@code='4']">
564
                                        <xsl:value-of select="."/>
565
                                        <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
566
                                    </xsl:for-each>
567
                                </xsl:otherwise>
568
                            </xsl:choose>
569
                            <xsl:text>]</xsl:text>
570
                        </span>
571
                    </xsl:if>
572
                    <xsl:choose>
573
                        <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
574
                    </xsl:choose>
575
                </xsl:for-each>
576
            </span>
577
        </xsl:if>
578
        
579
        <!-- #13382 Added Contained Works 7xx@ind2=2 -->
580
        <xsl:if test="marc:datafield[@tag=700][@ind2=2][not(marc:subfield[@code='i'])] or marc:datafield[@tag=710][@ind2=2][not(marc:subfield[@code='i'])] or marc:datafield[@tag=711][@ind2=2][not(marc:subfield[@code='i'])]">
581
            <span class="results_summary contained_works"><span class="label">Contained Works: </span>
582
                <xsl:for-each select="marc:datafield[@tag=700][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=710][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=711][@ind2=2][not(marc:subfield[@code='i'])]">
583
                    <xsl:variable name="str">   
584
                        <xsl:call-template name="subfieldSelect">
585
                            <xsl:with-param name="codes">abcdfghiklmorstux</xsl:with-param>
586
                        </xsl:call-template>
587
                    </xsl:variable>
588
                    <xsl:call-template name="chopPunctuation">
589
                        <xsl:with-param name="chopString">
590
                            <xsl:value-of select="$str"/>    
591
                        </xsl:with-param>
592
                    </xsl:call-template>
593
                    <!-- add relator code too between brackets-->
594
                    <xsl:if test="marc:subfield[@code='4' or @code='e']">
595
                        <span class="relatorcode">
596
                            <xsl:text> [</xsl:text>
597
                            <xsl:choose>
598
                                <xsl:when test="marc:subfield[@code='e']">
599
                                    <xsl:for-each select="marc:subfield[@code='e']">
600
                                        <xsl:value-of select="."/>
601
                                        <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
602
                                    </xsl:for-each>
603
                                </xsl:when>
604
                                <xsl:otherwise>
605
                                    <xsl:for-each select="marc:subfield[@code='4']">
606
                                        <xsl:value-of select="."/>
607
                                        <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
608
                                    </xsl:for-each>
609
                                </xsl:otherwise>
610
                            </xsl:choose>
611
                            <xsl:text>]</xsl:text>
612
                        </span>
613
                    </xsl:if>
614
                    <xsl:choose>
615
                        <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
616
                    </xsl:choose>
617
                </xsl:for-each>
618
            </span> 
619
        </xsl:if>
620
        
528
        <xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">
621
        <xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">
529
            <span class="results_summary subjects"><span class="label">Subject(s): </span>
622
            <span class="results_summary subjects"><span class="label">Subject(s): </span>
530
            <xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">
623
            <xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">
Lines 565-586 Link Here
565
            </span>
658
            </span>
566
        </xsl:if>
659
        </xsl:if>
567
660
568
<!-- DDC classification -->
569
    <xsl:if test="marc:datafield[@tag=082]">
570
        <span class="results_summary ddc">
571
            <span class="label">DDC classification: </span>
572
            <xsl:for-each select="marc:datafield[@tag=082]">
573
                <xsl:call-template name="subfieldSelect">
574
                    <xsl:with-param name="codes">a</xsl:with-param>
575
                </xsl:call-template>
576
                <xsl:choose>
577
                    <xsl:when test="position()=last()"><xsl:text>  </xsl:text></xsl:when>
578
                    <xsl:otherwise> | </xsl:otherwise>
579
                </xsl:choose>
580
            </xsl:for-each>
581
        </span>
582
    </xsl:if>
583
584
        <xsl:if test="marc:datafield[@tag=856]">
661
        <xsl:if test="marc:datafield[@tag=856]">
585
        <span class="results_summary online_resources"><span class="label">Online resources: </span>
662
        <span class="results_summary online_resources"><span class="label">Online resources: </span>
586
        <xsl:for-each select="marc:datafield[@tag=856]">
663
        <xsl:for-each select="marc:datafield[@tag=856]">
Lines 965-971 Link Here
965
        <xsl:choose>
1042
        <xsl:choose>
966
          <xsl:when test="position()&gt;1"/>
1043
          <xsl:when test="position()&gt;1"/>
967
          <xsl:when test="@tag&lt;700">Author(s): </xsl:when>
1044
          <xsl:when test="@tag&lt;700">Author(s): </xsl:when>
968
          <xsl:otherwise>Additional author(s): </xsl:otherwise>
1045
            <!--#13382 Changed Additional author to contributor -->
1046
            <xsl:otherwise>Contributor(s): </xsl:otherwise>
969
        </xsl:choose>
1047
        </xsl:choose>
970
        <a>
1048
        <a>
971
        <xsl:choose>
1049
        <xsl:choose>
Lines 977-1004 Link Here
977
            </xsl:otherwise>
1055
            </xsl:otherwise>
978
        </xsl:choose>
1056
        </xsl:choose>
979
	<xsl:choose>
1057
	<xsl:choose>
980
          <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when>
1058
        <xsl:when test="@tag=100"><xsl:call-template name="nameABCQ"/></xsl:when>
981
          <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
1059
        <xsl:when test="@tag=110"><xsl:call-template name="nameABCDN"/></xsl:when>
982
          <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
1060
        <xsl:when test="@tag=111"><xsl:call-template name="nameACDEQ"/></xsl:when>
1061
   	    <!-- #13382 excludes 700$i and ind2=2, displayed as Related Works -->
1062
   	    <!--#13382 Added all relevant subfields 4, e, are handled separately -->
1063
   	    <xsl:when test="@tag=700 or @tag=710 or @tag=711">
1064
   	        <xsl:variable name="str">
1065
   	            <xsl:call-template name="subfieldSelect">
1066
   	                <xsl:with-param name="codes">abcdfghiklmnoprstux</xsl:with-param>
1067
   	            </xsl:call-template>
1068
   	        </xsl:variable>
1069
   	        <xsl:call-template name="chopPunctuation">
1070
   	            <xsl:with-param name="chopString">
1071
   	                <xsl:value-of select="$str"/>
1072
   	            </xsl:with-param>
1073
   	            <xsl:with-param name="punctuation">
1074
   	                <xsl:text>:,;/. </xsl:text>
1075
   	            </xsl:with-param>
1076
   	        </xsl:call-template>
1077
   	    </xsl:when>
983
	</xsl:choose>
1078
	</xsl:choose>
984
	<!-- add relator code too between brackets-->
1079
	<!-- add relator code too between brackets-->
985
	<xsl:if test="marc:subfield[@code='4' or @code='e']">
1080
        <xsl:if test="marc:subfield[@code='4' or @code='e']">
986
      <span class="relatorcode">
1081
                <xsl:if test="not(@tag=111 or @tag=711)">
987
      <xsl:text> [</xsl:text>
1082
                    <span class="relatorcode">
988
	  <xsl:choose>
1083
                        <xsl:text> [</xsl:text>
989
	    <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when>
1084
                        <!-- #13382 If both $e and $4 are present only display $e -->
990
	    <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise>
1085
                        <xsl:choose>
991
	  </xsl:choose>
1086
                            <xsl:when test="marc:subfield[@code='e']">
992
	  <xsl:text>]</xsl:text>
1087
                                <xsl:for-each select="marc:subfield[@code='e']">
993
      </span>
1088
                                    <xsl:value-of select="."/>
994
	</xsl:if>
1089
                                    <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
1090
                                </xsl:for-each>
1091
                            </xsl:when>
1092
                            <xsl:otherwise>
1093
                                <xsl:for-each select="marc:subfield[@code='4']">
1094
                                    <xsl:value-of select="."/>
1095
                                    <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
1096
                                </xsl:for-each>
1097
                            </xsl:otherwise>
1098
                        </xsl:choose>
1099
                        <xsl:text>]</xsl:text>
1100
                    </span>
1101
                </xsl:if>
1102
            </xsl:if>
995
	</a>
1103
	</a>
996
        <xsl:choose>
1104
        <xsl:choose>
997
          <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise>
1105
            <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
998
        </xsl:choose>
1106
        </xsl:choose>
999
        </xsl:for-each>
1107
        </xsl:for-each>
1000
        </h5>
1108
        </h5>
1001
        </xsl:if>
1109
        </xsl:if>
1002
    </xsl:template>
1110
    </xsl:template>
1003
1111
1004
</xsl:stylesheet>
1112
</xsl:stylesheet>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-45 / +158 lines)
Lines 1-5 Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
2
<!-- $Id: MARC21slim2DC.xsl,v 1.1 2003/01/06 08:20:27 adam Exp $ -->
3
3
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
<!DOCTYPE stylesheet [<!ENTITY nbsp "&#160;" >]>
4
<xsl:stylesheet version="1.0"
5
<xsl:stylesheet version="1.0"
5
  xmlns:marc="http://www.loc.gov/MARC21/slim"
6
  xmlns:marc="http://www.loc.gov/MARC21/slim"
Lines 158-175 Link Here
158
                </xsl:call-template>
159
                </xsl:call-template>
159
            </h5>
160
            </h5>
160
        </xsl:if>
161
        </xsl:if>
161
        <xsl:choose>
162
            
162
            <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]">
163
            <!--#13382 Added Author Statement to seperate Authors and Contributors -->
163
                <h5 class="author">by
164
            <xsl:call-template name="showAuthor">
164
                    <xsl:call-template name="showAuthor">
165
                <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111]"/>
165
                        <xsl:with-param name="authorfield" select="marc:datafield[@tag=100 or @tag=110 or @tag=111 or @tag=700 or @tag=710 or @tag=711]"/>
166
                <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
166
                        <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
167
                <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
167
                        <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
168
                <xsl:with-param name="theme" select="$theme"/>
168
                        <xsl:with-param name="theme" select="$theme"/>
169
            </xsl:call-template>
169
                    </xsl:call-template>
170
            <xsl:call-template name="showAuthor">
170
                </h5>
171
                <!-- #13382 suppress 700$i and 7xx/@ind2=2 -->
171
            </xsl:when>
172
                <xsl:with-param name="authorfield" select="marc:datafield[@tag=700 or @tag=710 or @tag=711][not(@ind2=2)][not(marc:subfield[@code='i'][parent::marc:datafield[@tag='700']])]"/>
172
        </xsl:choose>
173
                <xsl:with-param name="UseAuthoritiesForTracings" select="$UseAuthoritiesForTracings"/>
174
                <xsl:with-param name="materialTypeLabel" select="$materialTypeLabel"/>
175
                <xsl:with-param name="theme" select="$theme"/>
176
            </xsl:call-template>
173
177
174
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
178
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
175
        <xsl:if test="$materialTypeCode!=''">
179
        <xsl:if test="$materialTypeCode!=''">
Lines 572-577 Link Here
572
        </span>
576
        </span>
573
        </xsl:if>
577
        </xsl:if>
574
578
579
580
            <!-- #13382 Added Related works 700$i -->
581
            <xsl:if test="marc:datafield[@tag=700][marc:subfield[@code='i']]">
582
                <span class="results_summary related_works"><span class="label">Related Works: </span>
583
                    <xsl:for-each select="marc:datafield[@tag=700][marc:subfield[@code='i']]">
584
                        <xsl:variable name="str">   
585
                            <xsl:call-template name="subfieldSelect">
586
                                <xsl:with-param name="codes">abcdfghiklmorstux</xsl:with-param>
587
                            </xsl:call-template>
588
                        </xsl:variable>
589
                        <xsl:call-template name="chopPunctuation">
590
                            <xsl:with-param name="chopString">
591
                                <xsl:value-of select="$str"/>    
592
                            </xsl:with-param>
593
                        </xsl:call-template>
594
                        <!-- add relator code too between brackets-->
595
                        <xsl:if test="marc:subfield[@code='4' or @code='e']">
596
                            <span class="relatorcode">
597
                                <xsl:text> [</xsl:text>
598
                                <xsl:choose>
599
                                    <xsl:when test="marc:subfield[@code='e']">
600
                                        <xsl:for-each select="marc:subfield[@code='e']">
601
                                            <xsl:value-of select="."/>
602
                                            <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
603
                                        </xsl:for-each>
604
                                    </xsl:when>
605
                                    <xsl:otherwise>
606
                                        <xsl:for-each select="marc:subfield[@code='4']">
607
                                            <xsl:value-of select="."/>
608
                                            <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
609
                                        </xsl:for-each>
610
                                    </xsl:otherwise>
611
                                </xsl:choose>
612
                                <xsl:text>]</xsl:text>
613
                            </span>
614
                        </xsl:if>
615
                        <xsl:choose>
616
                            <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
617
                        </xsl:choose>
618
                    </xsl:for-each>
619
                </span> 
620
            </xsl:if>
621
            
622
            <!-- #13382 Added Contained Works 7xx@ind2=2 -->
623
            <xsl:if test="marc:datafield[@tag=700][@ind2=2][not(marc:subfield[@code='i'])] or marc:datafield[@tag=710][@ind2=2][not(marc:subfield[@code='i'])] or marc:datafield[@tag=711][@ind2=2][not(marc:subfield[@code='i'])]">
624
                <span class="results_summary contained_works"><span class="label">Contained Works: </span>
625
                    <xsl:for-each select="marc:datafield[@tag=700][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=710][@ind2=2][not(marc:subfield[@code='i'])] | marc:datafield[@tag=711][@ind2=2][not(marc:subfield[@code='i'])]">
626
                        <xsl:variable name="str">   
627
                            <xsl:call-template name="subfieldSelect">
628
                                <xsl:with-param name="codes">abcdfghiklmorstux</xsl:with-param>
629
                            </xsl:call-template>
630
                        </xsl:variable>
631
                        <xsl:call-template name="chopPunctuation">
632
                            <xsl:with-param name="chopString">
633
                                <xsl:value-of select="$str"/>    
634
                            </xsl:with-param>
635
                        </xsl:call-template>
636
                        <!-- add relator code too between brackets-->
637
                        <xsl:if test="marc:subfield[@code='4' or @code='e']">
638
                            <span class="relatorcode">
639
                                <xsl:text> [</xsl:text>
640
                                <xsl:choose>
641
                                    <xsl:when test="marc:subfield[@code='e']">
642
                                        <xsl:for-each select="marc:subfield[@code='e']">
643
                                            <xsl:value-of select="."/>
644
                                            <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
645
                                        </xsl:for-each>
646
                                    </xsl:when>
647
                                    <xsl:otherwise>
648
                                        <xsl:for-each select="marc:subfield[@code='4']">
649
                                            <xsl:value-of select="."/>
650
                                            <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
651
                                        </xsl:for-each>
652
                                    </xsl:otherwise>
653
                                </xsl:choose>
654
                                <xsl:text>]</xsl:text>
655
                            </span>
656
                        </xsl:if>
657
                        <xsl:choose>
658
                            <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
659
                        </xsl:choose>
660
                    </xsl:for-each>
661
                </span> 
662
            </xsl:if>
663
            
575
        <xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">
664
        <xsl:if test="marc:datafield[substring(@tag, 1, 1) = '6']">
576
            <span class="results_summary subjects"><span class="label">Subject(s): </span>
665
            <span class="results_summary subjects"><span class="label">Subject(s): </span>
577
            <xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">
666
            <xsl:for-each select="marc:datafield[substring(@tag, 1, 1) = '6']">
Lines 625-647 Link Here
625
            </span>
714
            </span>
626
        </xsl:if>
715
        </xsl:if>
627
716
628
<!-- DDC classification -->
629
    <xsl:if test="marc:datafield[@tag=082]">
630
        <span class="results_summary ddc">
631
            <span class="label">DDC classification: </span>
632
            <xsl:for-each select="marc:datafield[@tag=082]">
633
                <xsl:call-template name="subfieldSelect">
634
                    <xsl:with-param name="codes">a</xsl:with-param>
635
                </xsl:call-template>
636
                <xsl:choose>
637
                    <xsl:when test="position()=last()"><xsl:text>  </xsl:text></xsl:when>
638
                    <xsl:otherwise> | </xsl:otherwise>
639
                </xsl:choose>
640
            </xsl:for-each>
641
        </span>
642
    </xsl:if>
643
644
645
<!-- Image processing code added here, takes precedence over text links including y3z text   -->
717
<!-- Image processing code added here, takes precedence over text links including y3z text   -->
646
        <xsl:if test="marc:datafield[@tag=856]">
718
        <xsl:if test="marc:datafield[@tag=856]">
647
        <span class="results_summary online_resources"><span class="label">Online resources: </span>
719
        <span class="results_summary online_resources"><span class="label">Online resources: </span>
Lines 1042-1049 Link Here
1042
        <xsl:param name="UseAuthoritiesForTracings" />
1114
        <xsl:param name="UseAuthoritiesForTracings" />
1043
        <xsl:param name="materialTypeLabel" />
1115
        <xsl:param name="materialTypeLabel" />
1044
        <xsl:param name="theme" />
1116
        <xsl:param name="theme" />
1117
        <xsl:if test="count($authorfield)&gt;0">
1118
        <!--#13382 Changed Additional author to contributor -->
1119
        <h5>
1045
        <xsl:for-each select="$authorfield">
1120
        <xsl:for-each select="$authorfield">
1046
            <xsl:choose><xsl:when test="position()!=1"><xsl:text>; </xsl:text></xsl:when></xsl:choose>
1121
            <xsl:choose>
1122
                <xsl:when test="position()&gt;1"/>
1123
                <xsl:when test="@tag&lt;700">by </xsl:when>
1124
                <!--#13382 Changed Additional author to contributor -->
1125
                <xsl:otherwise>Contributor(s): </xsl:otherwise>
1126
            </xsl:choose>
1047
            <xsl:choose>
1127
            <xsl:choose>
1048
                <xsl:when test="not(@tag=111 or @tag=711)" />
1128
                <xsl:when test="not(@tag=111 or @tag=711)" />
1049
                <xsl:when test="marc:subfield[@code='n']">
1129
                <xsl:when test="marc:subfield[@code='n']">
Lines 1084-1104 Link Here
1084
                    </xsl:choose>
1164
                    </xsl:choose>
1085
                <span property="name">
1165
                <span property="name">
1086
                <xsl:choose>
1166
                <xsl:choose>
1087
                    <xsl:when test="@tag=100 or @tag=700"><xsl:call-template name="nameABCQ"/></xsl:when>
1167
                    <xsl:when test="@tag=100"><xsl:call-template name="nameABCQ"/></xsl:when>
1088
                    <xsl:when test="@tag=110 or @tag=710"><xsl:call-template name="nameABCDN"/></xsl:when>
1168
                    <xsl:when test="@tag=110"><xsl:call-template name="nameABCDN"/></xsl:when>
1089
                    <xsl:when test="@tag=111 or @tag=711"><xsl:call-template name="nameACDEQ"/></xsl:when>
1169
                    <xsl:when test="@tag=111"><xsl:call-template name="nameACDEQ"/></xsl:when>
1170
                    <!-- #13382 excludes 700$i and ind2=2, displayed as Related Works -->
1171
                    <!--#13382 Added all relevant subfields 4, e, are handled separately -->
1172
                    <xsl:when test="@tag=700 or @tag=710 or @tag=711">
1173
                        <xsl:variable name="str">
1174
                            <xsl:call-template name="subfieldSelect">
1175
                                <xsl:with-param name="codes">abcdfghiklmnoprstux</xsl:with-param>
1176
                            </xsl:call-template>
1177
                        </xsl:variable>
1178
                        <xsl:call-template name="chopPunctuation">
1179
                            <xsl:with-param name="chopString">
1180
                                <xsl:value-of select="$str"/>
1181
                            </xsl:with-param>
1182
                            <xsl:with-param name="punctuation">
1183
                                <xsl:text>:,;/. </xsl:text>
1184
                            </xsl:with-param>
1185
                        </xsl:call-template>
1186
                    </xsl:when>
1090
                </xsl:choose>
1187
                </xsl:choose>
1091
                </span></span></span>
1188
                </span></span></span>
1092
                <!-- add relator code too between brackets-->
1189
                <!-- #13382 If both $e and $4 are present only display $e -->
1093
                <xsl:if test="marc:subfield[@code='4' or @code='e']">
1190
                <xsl:if test="marc:subfield[@code='4' or @code='e']">
1094
                    <span class="relatorcode">
1191
                    <xsl:if test="not(@tag=111 or @tag=711)">
1095
                    <xsl:text> [</xsl:text>
1192
                        <span class="relatorcode">
1096
                    <xsl:choose>
1193
                            <xsl:text> [</xsl:text>
1097
                        <xsl:when test="marc:subfield[@code=4]"><xsl:value-of select="marc:subfield[@code=4]"/></xsl:when>
1194
                            <xsl:choose>
1098
                        <xsl:otherwise><xsl:value-of select="marc:subfield[@code='e']"/></xsl:otherwise>
1195
                                <xsl:when test="marc:subfield[@code='e']">
1099
                    </xsl:choose>
1196
                                    <xsl:for-each select="marc:subfield[@code='e']">
1100
                    <xsl:text>]</xsl:text>
1197
                                        <xsl:value-of select="."/>
1101
                    </span>
1198
                                        <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
1199
                                    </xsl:for-each>
1200
                                </xsl:when>
1201
                                <xsl:otherwise>
1202
                                    <xsl:for-each select="marc:subfield[@code='4']">
1203
                                        <xsl:value-of select="."/>
1204
                                        <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>    
1205
                                    </xsl:for-each>
1206
                                </xsl:otherwise>
1207
                            </xsl:choose>
1208
                            <xsl:text>]</xsl:text>
1209
                        </span> 
1210
                    </xsl:if>
1102
                </xsl:if>
1211
                </xsl:if>
1103
            </a>
1212
            </a>
1104
            <xsl:if test="marc:subfield[@code=9]">
1213
            <xsl:if test="marc:subfield[@code=9]">
Lines 1112-1119 Link Here
1112
                    </xsl:element>
1221
                    </xsl:element>
1113
                </a>
1222
                </a>
1114
            </xsl:if>
1223
            </xsl:if>
1224
            <!--#13382 Changed separator to | -->
1225
            <xsl:choose>
1226
                <xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise>
1227
            </xsl:choose>
1115
        </xsl:for-each>
1228
        </xsl:for-each>
1116
        <xsl:text>.</xsl:text>
1229
        </h5>
1230
        </xsl:if>
1117
    </xsl:template>
1231
    </xsl:template>
1118
1232
1119
    <xsl:template name="nameABCQ">
1233
    <xsl:template name="nameABCQ">
Lines 1190-1193 Link Here
1190
        </xsl:variable>
1304
        </xsl:variable>
1191
        <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
1305
        <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
1192
    </xsl:template>
1306
    </xsl:template>
1193
</xsl:stylesheet>
1307
</xsl:stylesheet>
1194
- 

Return to bug 13382