Lines 12-17
Link Here
|
12 |
</xsl:template> |
12 |
</xsl:template> |
13 |
|
13 |
|
14 |
<xsl:template match="marc:record"> |
14 |
<xsl:template match="marc:record"> |
|
|
15 |
|
16 |
<!-- Option: Display Alternate Graphic Representation (MARC 880) --> |
17 |
<xsl:variable name="display880" select="boolean(marc:datafield[@tag=880])"/> |
18 |
|
15 |
<xsl:variable name="leader" select="marc:leader"/> |
19 |
<xsl:variable name="leader" select="marc:leader"/> |
16 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
20 |
<xsl:variable name="leader6" select="substring($leader,7,1)"/> |
17 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
21 |
<xsl:variable name="leader7" select="substring($leader,8,1)"/> |
Lines 50-55
Link Here
|
50 |
</xsl:variable> |
54 |
</xsl:variable> |
51 |
|
55 |
|
52 |
<!-- Title Statement --> |
56 |
<!-- Title Statement --> |
|
|
57 |
<!-- Alternate Graphic Representation (MARC 880) --> |
58 |
<xsl:if test="$display880"> |
59 |
<h1 class="title"> |
60 |
<xsl:call-template name="m880Select"> |
61 |
<xsl:with-param name="basetags">245</xsl:with-param> |
62 |
<xsl:with-param name="codes">abhfgknps</xsl:with-param> |
63 |
</xsl:call-template> |
64 |
</h1> |
65 |
</xsl:if> |
66 |
|
53 |
<xsl:if test="marc:datafield[@tag=245]"> |
67 |
<xsl:if test="marc:datafield[@tag=245]"> |
54 |
<h1> |
68 |
<h1> |
55 |
<xsl:for-each select="marc:datafield[@tag=245]"> |
69 |
<xsl:for-each select="marc:datafield[@tag=245]"> |
Lines 75-80
Link Here
|
75 |
</h1> |
89 |
</h1> |
76 |
</xsl:if> |
90 |
</xsl:if> |
77 |
|
91 |
|
|
|
92 |
<!-- Author Statement: Alternate Graphic Representation (MARC 880) --> |
93 |
<xsl:if test="$display880"> |
94 |
<h5 class="author"> |
95 |
<xsl:call-template name="m880Select"> |
96 |
<xsl:with-param name="basetags">100,110,111,700,710,711</xsl:with-param> |
97 |
<xsl:with-param name="codes">abc</xsl:with-param> |
98 |
<xsl:with-param name="index">au</xsl:with-param> |
99 |
<!-- do not use label 'by ' here, it would be repeated for every occurence of 100,110,111,700,710,711 --> |
100 |
</xsl:call-template> |
101 |
</h5> |
102 |
</xsl:if> |
103 |
|
78 |
<xsl:choose> |
104 |
<xsl:choose> |
79 |
<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]"> |
105 |
<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]"> |
80 |
<h5 class="author">by |
106 |
<h5 class="author">by |
Lines 138-143
Link Here
|
138 |
<xsl:value-of select="$materialTypeLabel"/> |
164 |
<xsl:value-of select="$materialTypeLabel"/> |
139 |
</span> |
165 |
</span> |
140 |
</xsl:if> |
166 |
</xsl:if> |
|
|
167 |
|
168 |
<!--Series: Alternate Graphic Representation (MARC 880) --> |
169 |
<xsl:if test="$display880"> |
170 |
<xsl:call-template name="m880Select"> |
171 |
<xsl:with-param name="basetags">440,490</xsl:with-param> |
172 |
<xsl:with-param name="codes">av</xsl:with-param> |
173 |
<xsl:with-param name="class">results_summary</xsl:with-param> |
174 |
<xsl:with-param name="label">Series: </xsl:with-param> |
175 |
<xsl:with-param name="index">se</xsl:with-param> |
176 |
</xsl:call-template> |
177 |
</xsl:if> |
178 |
|
141 |
<xsl:if test="marc:datafield[@tag=440 or @tag=490]"> |
179 |
<xsl:if test="marc:datafield[@tag=440 or @tag=490]"> |
142 |
<span class="results_summary"><span class="label">Series: </span> |
180 |
<span class="results_summary"><span class="label">Series: </span> |
143 |
<xsl:for-each select="marc:datafield[@tag=440]"> |
181 |
<xsl:for-each select="marc:datafield[@tag=440]"> |
Lines 169-174
Link Here
|
169 |
</xsl:for-each> |
207 |
</xsl:for-each> |
170 |
</span> |
208 |
</span> |
171 |
</xsl:if> |
209 |
</xsl:if> |
|
|
210 |
|
211 |
<!-- Publisher Statement: Alternate Graphic Representation (MARC 880) --> |
212 |
<xsl:if test="$display880"> |
213 |
<xsl:call-template name="m880Select"> |
214 |
<xsl:with-param name="basetags">260</xsl:with-param> |
215 |
<xsl:with-param name="codes">abcg</xsl:with-param> |
216 |
<xsl:with-param name="class">results_summary</xsl:with-param> |
217 |
<xsl:with-param name="label">Publisher: </xsl:with-param> |
218 |
</xsl:call-template> |
219 |
</xsl:if> |
220 |
|
172 |
<xsl:if test="marc:datafield[@tag=260]"> |
221 |
<xsl:if test="marc:datafield[@tag=260]"> |
173 |
<span class="results_summary"><span class="label">Publisher: </span> |
222 |
<span class="results_summary"><span class="label">Publisher: </span> |
174 |
<xsl:for-each select="marc:datafield[@tag=260]"> |
223 |
<xsl:for-each select="marc:datafield[@tag=260]"> |
Lines 183-188
Link Here
|
183 |
</xsl:for-each> |
232 |
</xsl:for-each> |
184 |
</span> |
233 |
</span> |
185 |
</xsl:if> |
234 |
</xsl:if> |
|
|
235 |
|
236 |
<!-- Edition Statement: Alternate Graphic Representation (MARC 880) --> |
237 |
<xsl:if test="$display880"> |
238 |
<xsl:call-template name="m880Select"> |
239 |
<xsl:with-param name="basetags">250</xsl:with-param> |
240 |
<xsl:with-param name="codes">ab</xsl:with-param> |
241 |
<xsl:with-param name="class">results_summary</xsl:with-param> |
242 |
<xsl:with-param name="label">Edition: </xsl:with-param> |
243 |
</xsl:call-template> |
244 |
</xsl:if> |
245 |
|
186 |
<xsl:if test="marc:datafield[@tag=250]"> |
246 |
<xsl:if test="marc:datafield[@tag=250]"> |
187 |
<span class="results_summary"><span class="label">Edition: </span> |
247 |
<span class="results_summary"><span class="label">Edition: </span> |
188 |
<xsl:for-each select="marc:datafield[@tag=250]"> |
248 |
<xsl:for-each select="marc:datafield[@tag=250]"> |
Lines 198-203
Link Here
|
198 |
</span> |
258 |
</span> |
199 |
</xsl:if> |
259 |
</xsl:if> |
200 |
|
260 |
|
|
|
261 |
<!-- Description: Alternate Graphic Representation (MARC 880) --> |
262 |
<xsl:if test="$display880"> |
263 |
<xsl:call-template name="m880Select"> |
264 |
<xsl:with-param name="basetags">300</xsl:with-param> |
265 |
<xsl:with-param name="codes">abceg</xsl:with-param> |
266 |
<xsl:with-param name="class">results_summary</xsl:with-param> |
267 |
<xsl:with-param name="label">Description: </xsl:with-param> |
268 |
</xsl:call-template> |
269 |
</xsl:if> |
270 |
|
201 |
<xsl:if test="marc:datafield[@tag=300]"> |
271 |
<xsl:if test="marc:datafield[@tag=300]"> |
202 |
<span class="results_summary"><span class="label">Description: </span> |
272 |
<span class="results_summary"><span class="label">Description: </span> |
203 |
<xsl:for-each select="marc:datafield[@tag=300]"> |
273 |
<xsl:for-each select="marc:datafield[@tag=300]"> |
Lines 234-239
Link Here
|
234 |
</span> |
304 |
</span> |
235 |
</xsl:if> |
305 |
</xsl:if> |
236 |
|
306 |
|
|
|
307 |
<!-- Other Title Statement: Alternate Graphic Representation (MARC 880) --> |
308 |
<xsl:if test="$display880"> |
309 |
<xsl:call-template name="m880Select"> |
310 |
<xsl:with-param name="basetags">246</xsl:with-param> |
311 |
<xsl:with-param name="codes">abhfgnp</xsl:with-param> |
312 |
<xsl:with-param name="class">results_summary</xsl:with-param> |
313 |
<xsl:with-param name="label">Other Title: </xsl:with-param> |
314 |
</xsl:call-template> |
315 |
</xsl:if> |
316 |
|
237 |
<xsl:if test="marc:datafield[@tag=246]"> |
317 |
<xsl:if test="marc:datafield[@tag=246]"> |
238 |
<span class="results_summary"><span class="label">Other Title: </span> |
318 |
<span class="results_summary"><span class="label">Other Title: </span> |
239 |
<xsl:for-each select="marc:datafield[@tag=246]"> |
319 |
<xsl:for-each select="marc:datafield[@tag=246]"> |
Lines 249-254
Link Here
|
249 |
</span> |
329 |
</span> |
250 |
</xsl:if> |
330 |
</xsl:if> |
251 |
|
331 |
|
|
|
332 |
<!-- Uniform Title Statement: Alternate Graphic Representation (MARC 880) --> |
333 |
<xsl:if test="$display880"> |
334 |
<xsl:call-template name="m880Select"> |
335 |
<xsl:with-param name="basetags">130,240</xsl:with-param> |
336 |
<xsl:with-param name="codes">adfklmor</xsl:with-param> |
337 |
<xsl:with-param name="class">results_summary</xsl:with-param> |
338 |
<xsl:with-param name="label">Uniform Title: </xsl:with-param> |
339 |
</xsl:call-template> |
340 |
</xsl:if> |
341 |
|
252 |
<xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |
342 |
<xsl:if test="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |
253 |
<span class="results_summary"><span class="label">Uniform titles: </span> |
343 |
<span class="results_summary"><span class="label">Uniform titles: </span> |
254 |
<xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |
344 |
<xsl:for-each select="marc:datafield[@tag=130]|marc:datafield[@tag=240]|marc:datafield[@tag=730][@ind2!=2]"> |