Lines 192-204
Link Here
|
192 |
<xsl:template name="tag_210-214"> |
192 |
<xsl:template name="tag_210-214"> |
193 |
<xsl:choose> |
193 |
<xsl:choose> |
194 |
<xsl:when test="marc:datafield[@tag=210] and marc:datafield[@tag=214]"> |
194 |
<xsl:when test="marc:datafield[@tag=210] and marc:datafield[@tag=214]"> |
195 |
<xsl:call-template name="tag_214" /> |
195 |
<xsl:call-template name="tag_214" /> |
196 |
</xsl:when> |
196 |
</xsl:when> |
197 |
<xsl:when test="marc:datafield[@tag=214]"> |
197 |
<xsl:when test="marc:datafield[@tag=214]"> |
198 |
<xsl:call-template name="tag_214" /> |
198 |
<xsl:call-template name="tag_214" /> |
199 |
</xsl:when> |
199 |
</xsl:when> |
200 |
<xsl:when test="marc:datafield[@tag=210]"> |
200 |
<xsl:when test="marc:datafield[@tag=210]"> |
201 |
<xsl:call-template name="tag_210" /> |
201 |
<xsl:call-template name="tag_210" /> |
202 |
</xsl:when> |
202 |
</xsl:when> |
203 |
</xsl:choose> |
203 |
</xsl:choose> |
204 |
</xsl:template> |
204 |
</xsl:template> |
Lines 207-253
Link Here
|
207 |
<span class="results_summary publication"> |
207 |
<span class="results_summary publication"> |
208 |
<span class="label">Publication: </span> |
208 |
<span class="label">Publication: </span> |
209 |
<xsl:for-each select="marc:datafield[@tag=210]"> |
209 |
<xsl:for-each select="marc:datafield[@tag=210]"> |
210 |
<xsl:if test="not (position() = 1)"> |
210 |
<xsl:if test="not(position() = 1)"> |
211 |
<br/> |
211 |
<br/> |
212 |
</xsl:if> |
212 |
</xsl:if> |
213 |
<span class="valeur"> |
213 |
<span class="value"> |
214 |
<xsl:call-template name="addClassRtl" /> |
214 |
<xsl:call-template name="addClassRtl" /> |
215 |
<xsl:for-each select="marc:subfield"> |
215 |
<xsl:for-each select="marc:subfield[@code='a' or @code='b' or @code='c' or @code='d' or @code='g']"> |
216 |
<xsl:choose> |
216 |
<xsl:choose> |
217 |
<xsl:when test="@code='a'"> |
217 |
<xsl:when test="@code='a'"> |
218 |
<xsl:value-of select="."/> |
218 |
<xsl:value-of select="."/> |
219 |
<xsl:if test="position() != last()"> |
219 |
<xsl:if test="position() != last()"> |
220 |
<xsl:text>: </xsl:text> |
220 |
<xsl:text> : </xsl:text> |
221 |
</xsl:if> |
221 |
</xsl:if> |
222 |
</xsl:when> |
222 |
</xsl:when> |
223 |
<xsl:when test="@code='b'"> |
223 |
<xsl:when test="@code='b'"> |
224 |
<xsl:value-of select="."/> |
224 |
<xsl:value-of select="."/> |
225 |
<xsl:if test="position() != last()"> |
225 |
<xsl:if test="position() != last()"> |
226 |
<xsl:text>, </xsl:text> |
226 |
<xsl:text>, </xsl:text> |
227 |
</xsl:if> |
227 |
</xsl:if> |
228 |
</xsl:when> |
228 |
</xsl:when> |
229 |
<xsl:when test="@code='c' or @code='g'"> |
229 |
<xsl:when test="@code='c' or @code='g'"> |
230 |
<a> |
230 |
<a> |
231 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=pb&q=<xsl:value-of select="."/> |
231 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=pb:<xsl:value-of select="str:encode-uri(., true())"/></xsl:attribute> |
232 |
</xsl:attribute> |
232 |
<xsl:attribute name="title">Search for publisher</xsl:attribute> |
233 |
<xsl:attribute name="title"> Search for publisher "<xsl:value-of select="."/> |
|
|
234 |
<xsl:text>"</xsl:text> |
235 |
</xsl:attribute> |
236 |
<xsl:value-of select="."/> |
233 |
<xsl:value-of select="."/> |
237 |
</a> |
234 |
</a> |
238 |
<xsl:if test="position() != last()"> |
235 |
<xsl:if test="position() != last()"> |
239 |
<xsl:text>, </xsl:text> |
236 |
<xsl:text>, </xsl:text> |
240 |
</xsl:if> |
237 |
</xsl:if> |
241 |
</xsl:when> |
238 |
</xsl:when> |
242 |
<xsl:when test="@code='d'"> |
239 |
<xsl:when test="@code='d'"> |
243 |
<xsl:value-of select="."/> |
240 |
<xsl:value-of select="."/> |
244 |
<xsl:if test="position() != last()"> |
241 |
<xsl:if test="position() != last()"> |
245 |
<xsl:text>, </xsl:text> |
242 |
<xsl:text>, </xsl:text> |
246 |
</xsl:if> |
243 |
</xsl:if> |
247 |
</xsl:when> |
244 |
</xsl:when> |
248 |
</xsl:choose> |
245 |
</xsl:choose> |
249 |
</xsl:for-each> |
246 |
</xsl:for-each> |
250 |
</span> |
247 |
</span> |
251 |
</xsl:for-each> |
248 |
</xsl:for-each> |
252 |
</span> |
249 |
</span> |
253 |
</xsl:template> |
250 |
</xsl:template> |
Lines 258-281
Link Here
|
258 |
<span class="results_summary publication"> |
255 |
<span class="results_summary publication"> |
259 |
<span class="label"> |
256 |
<span class="label"> |
260 |
<xsl:choose> |
257 |
<xsl:choose> |
261 |
<xsl:when test="@ind2=1">Production: |
258 |
<xsl:when test="@ind2=1">Production: </xsl:when> |
262 |
</xsl:when> |
259 |
<xsl:when test="@ind2=2">Distribution: </xsl:when> |
263 |
<xsl:when test="@ind2=2">Distribution: |
260 |
<xsl:when test="@ind2=3">Manufacture: </xsl:when> |
264 |
</xsl:when> |
|
|
265 |
<xsl:when test="@ind2=3">Manufacture: |
266 |
</xsl:when> |
267 |
<xsl:when test="@ind2=4"> |
261 |
<xsl:when test="@ind2=4"> |
268 |
<xsl:choose> |
262 |
<xsl:choose> |
269 |
<xsl:when test="substring(marc:subfield[@code='d'],1,1)='C'">Copyright date: |
263 |
<xsl:when test="substring(marc:subfield[@code='d'],1,1)='C'">Copyright date: </xsl:when> |
270 |
</xsl:when> |
264 |
<xsl:when test="substring(marc:subfield[@code='d'],1,1)='P'">Protection date: </xsl:when> |
271 |
<xsl:when test="substring(marc:subfield[@code='d'],1,1)='P'">Protection date: |
265 |
<xsl:otherwise>Copyright date / protection date: </xsl:otherwise> |
272 |
</xsl:when> |
|
|
273 |
<xsl:otherwise>Copyright date / protection date: |
274 |
</xsl:otherwise> |
275 |
</xsl:choose> |
266 |
</xsl:choose> |
276 |
</xsl:when> |
267 |
</xsl:when> |
277 |
<xsl:otherwise>Publication: |
268 |
<xsl:otherwise>Publication: </xsl:otherwise> |
278 |
</xsl:otherwise> |
|
|
279 |
</xsl:choose> |
269 |
</xsl:choose> |
280 |
</span> |
270 |
</span> |
281 |
<span> |
271 |
<span> |
Lines 285-306
Link Here
|
285 |
<xsl:when test="@code='a'"> |
275 |
<xsl:when test="@code='a'"> |
286 |
<xsl:value-of select="."/> |
276 |
<xsl:value-of select="."/> |
287 |
<xsl:if test="position() != last()"> |
277 |
<xsl:if test="position() != last()"> |
288 |
<xsl:text>: </xsl:text> |
278 |
<xsl:text> : </xsl:text> |
289 |
</xsl:if> |
279 |
</xsl:if> |
290 |
</xsl:when> |
280 |
</xsl:when> |
291 |
<xsl:when test="@code='b'"> |
281 |
<xsl:when test="@code='b'"> |
292 |
<xsl:value-of select="."/> |
282 |
<xsl:value-of select="."/> |
293 |
<xsl:if test="not(position()=1)"> |
283 |
<xsl:if test="position() != last()"> |
294 |
<xsl:text>, </xsl:text> |
284 |
<xsl:text>, </xsl:text> |
295 |
</xsl:if> |
285 |
</xsl:if> |
296 |
</xsl:when> |
286 |
</xsl:when> |
297 |
<xsl:when test="@code='c'"> |
287 |
<xsl:when test="@code='c'"> |
298 |
<a> |
288 |
<a> |
299 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?idx=pb&q=<xsl:value-of select="."/> |
289 |
<xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=pb:<xsl:value-of select="str:encode-uri(., true())"/></xsl:attribute> |
300 |
</xsl:attribute> |
290 |
<xsl:attribute name="title">Search for publisher</xsl:attribute> |
301 |
<xsl:attribute name="title"> Search for publisher "<xsl:value-of select="."/> |
|
|
302 |
<xsl:text>"</xsl:text> |
303 |
</xsl:attribute> |
304 |
<xsl:value-of select="."/> |
291 |
<xsl:value-of select="."/> |
305 |
</a> |
292 |
</a> |
306 |
</xsl:when> |
293 |
</xsl:when> |
Lines 332-348
Link Here
|
332 |
<xsl:template name="tag_214_s"> |
319 |
<xsl:template name="tag_214_s"> |
333 |
<xsl:if test="marc:datafield[@tag=214]/marc:subfield[@code='s']"> |
320 |
<xsl:if test="marc:datafield[@tag=214]/marc:subfield[@code='s']"> |
334 |
<span class="results_summary tag_214_s"> |
321 |
<span class="results_summary tag_214_s"> |
335 |
<span class="label">Printing and/or Publishing Information Transcribed as Found in the Colophon: </span> |
322 |
<span class="label">Printing and/or Publishing Information Transcribed as Found in the Colophon: </span> |
336 |
<xsl:for-each select="marc:datafield[@tag=214]"> |
323 |
<xsl:for-each select="marc:datafield[@tag=214]/marc:subfield[@code='s']"> |
337 |
<xsl:value-of select="marc:subfield[@code='s']"/> |
324 |
<xsl:value-of select="."/> |
338 |
<xsl:choose> |
325 |
<xsl:choose> |
339 |
<xsl:when test="position()=last()"> |
326 |
<xsl:when test="position()=last()"> |
340 |
<xsl:text>.</xsl:text> |
327 |
<xsl:text>.</xsl:text> |
341 |
</xsl:when> |
328 |
</xsl:when> |
342 |
<xsl:otherwise><xsl:text>, </xsl:text> |
329 |
<xsl:otherwise> |
343 |
</xsl:otherwise> |
330 |
<xsl:text>, </xsl:text> |
344 |
</xsl:choose> |
331 |
</xsl:otherwise> |
345 |
</xsl:for-each> |
332 |
</xsl:choose> |
|
|
333 |
</xsl:for-each> |
346 |
</span> |
334 |
</span> |
347 |
</xsl:if> |
335 |
</xsl:if> |
348 |
</xsl:template> |
336 |
</xsl:template> |
Lines 350-367
Link Here
|
350 |
<xsl:template name="tag_214_r"> |
338 |
<xsl:template name="tag_214_r"> |
351 |
<xsl:if test="marc:datafield[@tag=214]/marc:subfield[@code='r']"> |
339 |
<xsl:if test="marc:datafield[@tag=214]/marc:subfield[@code='r']"> |
352 |
<span class="results_summary tag_214_r"> |
340 |
<span class="results_summary tag_214_r"> |
353 |
<span class="label">Printing and/or Publishing Information Transcribed as Found in the Main Source of |
341 |
<span class="label">Printing and/or Publishing Information Transcribed as Found in the Main Source of Information: </span> |
354 |
formation: </span> |
342 |
<xsl:for-each select="marc:datafield[@tag=214]/marc:subfield[@code='r']"> |
355 |
<xsl:for-each select="marc:datafield[@tag=214]"> |
343 |
<xsl:value-of select="."/> |
356 |
<xsl:value-of select="marc:subfield[@code='r']"/> |
344 |
<xsl:choose> |
357 |
<xsl:choose> |
345 |
<xsl:when test="position()=last()"> |
358 |
<xsl:when test="position()=last()"> |
346 |
<xsl:text>.</xsl:text> |
359 |
<xsl:text>.</xsl:text> |
347 |
</xsl:when> |
360 |
</xsl:when> |
348 |
<xsl:otherwise> |
361 |
<xsl:otherwise><xsl:text>, </xsl:text> |
349 |
<xsl:text>, </xsl:text> |
362 |
</xsl:otherwise> |
350 |
</xsl:otherwise> |
363 |
</xsl:choose> |
351 |
</xsl:choose> |
364 |
</xsl:for-each> |
352 |
</xsl:for-each> |
365 |
</span> |
353 |
</span> |
366 |
</xsl:if> |
354 |
</xsl:if> |
367 |
</xsl:template> |
355 |
</xsl:template> |
368 |
- |
|
|