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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-33 / +32 lines)
Lines 51-102 Link Here
51
        <xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
51
        <xsl:variable name="controlField008" select="marc:controlfield[@tag=008]"/>
52
        <xsl:variable name="materialTypeCode">
52
        <xsl:variable name="materialTypeCode">
53
            <xsl:choose>
53
            <xsl:choose>
54
                <xsl:when test="$leader19='a'">ST</xsl:when>
54
                <xsl:when test="$leader19='a'">fa-window-restore</xsl:when>
55
                <xsl:when test="$leader6='a'">
55
                <xsl:when test="$leader6='a'">
56
                    <xsl:choose>
56
                    <xsl:choose>
57
                        <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'">BK</xsl:when>
57
                        <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'">fa-book</xsl:when>
58
                        <xsl:when test="$leader7='i' or $leader7='s'">SE</xsl:when>
58
                        <xsl:when test="$leader7='i' or $leader7='s'">fa-newspaper-o</xsl:when>
59
                        <xsl:when test="$leader7='a' or $leader7='b'">AR</xsl:when>
59
                        <xsl:when test="$leader7='a' or $leader7='b'">fa-text-o</xsl:when>
60
                    </xsl:choose>
60
                    </xsl:choose>
61
                </xsl:when>
61
                </xsl:when>
62
                <xsl:when test="$leader6='t'">BK</xsl:when>
62
                <xsl:when test="$leader6='t'">fa-book</xsl:when>
63
                <xsl:when test="$leader6='o' or $leader6='p'">MX</xsl:when>
63
                <xsl:when test="$leader6='o' or $leader6='p'">fa-scale-balance</xsl:when>
64
                <xsl:when test="$leader6='m'">CF</xsl:when>
64
                <xsl:when test="$leader6='m'">fa-laptop</xsl:when>
65
                <xsl:when test="$leader6='e' or $leader6='f'">MP</xsl:when>
65
                <xsl:when test="$leader6='e' or $leader6='f'">fa-map</xsl:when>
66
                <xsl:when test="$leader6='g'">VM</xsl:when>
66
                <xsl:when test="$leader6='g'">fa-film</xsl:when>
67
                <xsl:when test="$leader6='k'">PK</xsl:when>
67
                <xsl:when test="$leader6='k'">fa-picture-o</xsl:when>
68
                <xsl:when test="$leader6='r'">OB</xsl:when>
68
                <xsl:when test="$leader6='r'">fa-cube</xsl:when>
69
                <xsl:when test="$leader6='i'">SO</xsl:when>
69
                <xsl:when test="$leader6='i'">fa-music</xsl:when>
70
                <xsl:when test="$leader6='j'">MU</xsl:when>
70
                <xsl:when test="$leader6='j'">fa-music</xsl:when>
71
                <xsl:when test="$leader6='c' or $leader6='d'">PR</xsl:when>
71
                <xsl:when test="$leader6='c' or $leader6='d'">fa-music</xsl:when>
72
            </xsl:choose>
72
            </xsl:choose>
73
        </xsl:variable>
73
        </xsl:variable>
74
        <xsl:variable name="materialTypeLabel">
74
        <xsl:variable name="materialTypeLabel">
75
            <xsl:choose>
75
            <xsl:choose>
76
                <xsl:when test="$leader19='a'">Set</xsl:when>
76
                <xsl:when test="$leader19='a'"> Set</xsl:when>
77
                <xsl:when test="$leader6='a'">
77
                <xsl:when test="$leader6='a'">
78
                    <xsl:choose>
78
                    <xsl:choose>
79
                        <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'">Text</xsl:when>
79
                        <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"> Text</xsl:when>
80
                        <xsl:when test="$leader7='i' or $leader7='s'">
80
                        <xsl:when test="$leader7='i' or $leader7='s'">
81
                            <xsl:choose>
81
                            <xsl:choose>
82
                                <xsl:when test="substring($controlField008,22,1)!='m'">Continuing resource</xsl:when>
82
                                <xsl:when test="substring($controlField008,22,1)!='m'"> Continuing resource</xsl:when>
83
                                <xsl:otherwise>Series</xsl:otherwise>
83
                                <xsl:otherwise> Series</xsl:otherwise>
84
                            </xsl:choose>
84
                            </xsl:choose>
85
                        </xsl:when>
85
                        </xsl:when>
86
                        <xsl:when test="$leader7='a' or $leader7='b'">Article</xsl:when>
86
                        <xsl:when test="$leader7='a' or $leader7='b'"> Article</xsl:when>
87
                    </xsl:choose>
87
                    </xsl:choose>
88
                </xsl:when>
88
                </xsl:when>
89
                <xsl:when test="$leader6='t'">Text</xsl:when>
89
                <xsl:when test="$leader6='t'"> Text</xsl:when>
90
				<xsl:when test="$leader6='o'">Kit</xsl:when>
90
				<xsl:when test="$leader6='o'"> Kit</xsl:when>
91
                <xsl:when test="$leader6='p'">Mixed materials</xsl:when>
91
                <xsl:when test="$leader6='p'"> Mixed materials</xsl:when>
92
                <xsl:when test="$leader6='m'">Computer file</xsl:when>
92
                <xsl:when test="$leader6='m'"> Computer file</xsl:when>
93
                <xsl:when test="$leader6='e' or $leader6='f'">Map</xsl:when>
93
                <xsl:when test="$leader6='e' or $leader6='f'"> Map</xsl:when>
94
                <xsl:when test="$leader6='g'">Film</xsl:when>
94
                <xsl:when test="$leader6='g'"> Film</xsl:when>
95
                <xsl:when test="$leader6='k'">Picture</xsl:when>
95
                <xsl:when test="$leader6='k'"> Picture</xsl:when>
96
                <xsl:when test="$leader6='r'">Object</xsl:when>
96
                <xsl:when test="$leader6='r'"> Object</xsl:when>
97
                <xsl:when test="$leader6='j'">Music</xsl:when>
97
                <xsl:when test="$leader6='j'"> Music</xsl:when>
98
                <xsl:when test="$leader6='i'">Sound</xsl:when>
98
                <xsl:when test="$leader6='i'"> Sound</xsl:when>
99
                <xsl:when test="$leader6='c' or $leader6='d'">Score</xsl:when>
99
                <xsl:when test="$leader6='c' or $leader6='d'"> Score</xsl:when>
100
            </xsl:choose>
100
            </xsl:choose>
101
        </xsl:variable>
101
        </xsl:variable>
102
102
Lines 190-199 Link Here
190
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
190
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
191
        <xsl:if test="$materialTypeCode!=''">
191
        <xsl:if test="$materialTypeCode!=''">
192
        <span class="results_summary type"><span class="label">Material type: </span>
192
        <span class="results_summary type"><span class="label">Material type: </span>
193
        <xsl:element name="img">
193
        <xsl:element name="i">
194
            <xsl:attribute name="src">/opac-tmpl/lib/famfamfam/<xsl:value-of select="$materialTypeCode"/>.png</xsl:attribute>
195
            <xsl:attribute name="alt"><xsl:value-of select="$materialTypeLabel"/></xsl:attribute>
194
            <xsl:attribute name="alt"><xsl:value-of select="$materialTypeLabel"/></xsl:attribute>
196
            <xsl:attribute name="class">materialtype mt_icon_<xsl:value-of select="$materialTypeCode"/></xsl:attribute>
195
            <xsl:attribute name="class">materialtype fa <xsl:value-of select="$materialTypeCode"/></xsl:attribute>
197
        </xsl:element>
196
        </xsl:element>
198
        <xsl:value-of select="$materialTypeLabel"/>
197
        <xsl:value-of select="$materialTypeLabel"/>
199
        </span>
198
        </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl (-16 / +15 lines)
Lines 662-686 Link Here
662
    <span class="results_material_type">
662
    <span class="results_material_type">
663
        <span class="label">Material type: </span>
663
        <span class="label">Material type: </span>
664
            <xsl:choose>
664
            <xsl:choose>
665
                <xsl:when test="$leader19='a'"><img src="/opac-tmpl/lib/famfamfam/ST.png" alt="Set" class="materialtype mt_icon_ST"/> Set</xsl:when>
665
                <xsl:when test="$leader19='a'"><i class="materialtype fa fa-window-restore" alt="Set"></i> Set</xsl:when>
666
                <xsl:when test="$leader6='a'">
666
                <xsl:when test="$leader6='a'">
667
                    <xsl:choose>
667
                    <xsl:choose>
668
                        <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><img src="/opac-tmpl/lib/famfamfam/BK.png" alt="Text" class="materialtype mt_icon_BK"/> Text</xsl:when>
668
                        <xsl:when test="$leader7='c' or $leader7='d' or $leader7='m'"><i class="materialtype fa fa-book" alt="Text"></i> Text</xsl:when>
669
                        <xsl:when test="$leader7='i' or $leader7='s'"><img src="/opac-tmpl/lib/famfamfam/SE.png" alt="Continuing resource" class="materialtype mt_icon_SE"/> Continuing resource</xsl:when>
669
                        <xsl:when test="$leader7='i' or $leader7='s'"><i class="materialtype fa fa-newspaper-o" alt="Continuing resource"></i> Continuing resource</xsl:when>
670
                        <xsl:when test="$leader7='a' or $leader7='b'"><img src="/opac-tmpl/lib/famfamfam/AR.png" alt="Article" class="materialtype mt_icon_AR"/> Article</xsl:when>
670
                        <xsl:when test="$leader7='a' or $leader7='b'"><i class="materialtype fa fa-text-o" alt="Article"></i> Article</xsl:when>
671
                    </xsl:choose>
671
                    </xsl:choose>
672
                </xsl:when>
672
                </xsl:when>
673
                <xsl:when test="$leader6='t'"><img src="/opac-tmpl/lib/famfamfam/BK.png" alt="Text" class="materialtype mt_icon_BK"/> Text</xsl:when>
673
                <xsl:when test="$leader6='t'"><i class="materialtype fa fa-book" alt="Text"></i> Text</xsl:when>
674
                <xsl:when test="$leader6='o'"><img src="/opac-tmpl/lib/famfamfam/MM.png" alt="Kit" class="materialtype mt_icon_MM"/> Kit</xsl:when>
674
                <xsl:when test="$leader6='o'"><i class="materialtype fa fa-balance-scale" alt="Kit"></i> Kit</xsl:when>
675
                <xsl:when test="$leader6='p'"><img src="/opac-tmpl/lib/famfamfam/MM.png" alt="Mixed materials" class="materialtype mt_icon_MM"/>Mixed materials</xsl:when>
675
                <xsl:when test="$leader6='p'"><i class="materialtypl fa fa-object-group" alt="Mixed materials"></i> Mixed materials</xsl:when>
676
                <xsl:when test="$leader6='m'"><img src="/opac-tmpl/lib/famfamfam/CF.png" alt="Computer file" class="materialtype mt_icon_CF"/> Computer file</xsl:when>
676
                <xsl:when test="$leader6='m'"><i class="materialtype fa fa-laptop" alt="Computer file"></i> Computer file</xsl:when>
677
                <xsl:when test="$leader6='e' or $leader6='f'"><img src="/opac-tmpl/lib/famfamfam/MP.png" alt="Map" class="materialtype mt_icon_MP"/> Map</xsl:when>
677
                <xsl:when test="$leader6='e' or $leader6='f'"><i class="materialtype fa fa-map" alt="Map"></i> Map</xsl:when>
678
                <xsl:when test="$leader6='g'"><img src="/opac-tmpl/lib/famfamfam/VM.png" alt="Film" class="materialtype mt_icon_VM"/> Film</xsl:when>
678
                <xsl:when test="$leader6='g'"><i class="materialtype fa fa-film" alt="Film"></i> Film</xsl:when>
679
                <xsl:when test="$leader6='k'"><img src="/opac-tmpl/lib/famfamfam/GR.png" alt="Picture" class="materialtype mt_icon_GR"/> Picture</xsl:when>
679
                <xsl:when test="$leader6='k'"><i class="materialtype fa fa-picture-o" alt="Picture"></i> Picture</xsl:when>
680
                <xsl:when test="$leader6='r'"><img src="/opac-tmpl/lib/famfamfam/OB.png" alt="Object" class="materialtype mt_icon_OB"/> Object</xsl:when>
680
                <xsl:when test="$leader6='r'"><i class="materialtype fa fa-cube" alt="Object"></i> Object</xsl:when>
681
                <xsl:when test="$leader6='c' or $leader6='d'"><img src="/opac-tmpl/lib/famfamfam/PR.png" alt="Score" class="materialtype mt_icon_PR"/> Score</xsl:when>
681
                <xsl:when test="$leader6='c' or $leader6='d'"><i class="materialtype fa fa-music" alt="Score"></i> Score</xsl:when>
682
                <xsl:when test="$leader6='i'"><img src="/opac-tmpl/lib/famfamfam/MU.png" alt="Sound" class="materialtype mt_icon_MU"/> Sound</xsl:when>
682
                <xsl:when test="$leader6='i'"><i class="materialtype fa fa-music" alt="Sound"></i> Sound</xsl:when>
683
                <xsl:when test="$leader6='j'"><img src="/opac-tmpl/lib/famfamfam/PR.png" alt="Music" class="materialtype mt_icon_PR"/> Music</xsl:when>
683
                <xsl:when test="$leader6='j'"><i class="materialtype fa fa-music" alt="Music"></i> Music</xsl:when>
684
            </xsl:choose>
684
            </xsl:choose>
685
    </span>
685
    </span>
686
    </xsl:if>
686
    </xsl:if>
687
- 

Return to bug 23950