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> |