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

(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (-26 / +23 lines)
Lines 443-461 Link Here
443
        </xsl:if>
443
        </xsl:if>
444
        <xsl:if test="marc:datafield[@tag=505]">
444
        <xsl:if test="marc:datafield[@tag=505]">
445
        <xsl:for-each select="marc:datafield[@tag=505]">
445
        <xsl:for-each select="marc:datafield[@tag=505]">
446
        <span class="results_summary"><span class="label">
446
        <span class="results_summary">
447
        <xsl:choose>
447
        <xsl:choose>
448
        <xsl:when test="@ind1=0">
448
        <xsl:when test="@ind1=0">
449
            Contents:
449
            <span class="label">Contents:</span>
450
        </xsl:when>
450
        </xsl:when>
451
        <xsl:when test="@ind1=1">
451
        <xsl:when test="@ind1=1">
452
            Incomplete contents:
452
            <span class="label">Incomplete contents:</span>
453
        </xsl:when>
453
        </xsl:when>
454
        <xsl:when test="@ind1=1">
454
        <xsl:when test="@ind1=1">
455
            Partial contents:
455
            <span class="label">Partial contents:</span>
456
        </xsl:when>
456
        </xsl:when>
457
        </xsl:choose>  
457
        </xsl:choose>  
458
        </span>
459
        <xsl:choose>
458
        <xsl:choose>
460
        <xsl:when test="@ind2=0">
459
        <xsl:when test="@ind2=0">
461
            <xsl:for-each select="marc:subfield[@code='t']">
460
            <xsl:for-each select="marc:subfield[@code='t']">
Lines 475-508 Link Here
475
        <!-- 780 -->
474
        <!-- 780 -->
476
        <xsl:if test="marc:datafield[@tag=780]">
475
        <xsl:if test="marc:datafield[@tag=780]">
477
        <xsl:for-each select="marc:datafield[@tag=780]">
476
        <xsl:for-each select="marc:datafield[@tag=780]">
478
        <span class="results_summary"><span class="label">
477
        <span class="results_summary">
479
        <xsl:choose>
478
        <xsl:choose>
480
        <xsl:when test="@ind2=0">
479
        <xsl:when test="@ind2=0">
481
            Continues:
480
            <span class="label">Continues:</span>
482
        </xsl:when>
481
        </xsl:when>
483
        <xsl:when test="@ind2=1">
482
        <xsl:when test="@ind2=1">
484
            Continues in part:
483
            <span class="label">Continues in part:</span>
485
        </xsl:when>
484
        </xsl:when>
486
        <xsl:when test="@ind2=2">
485
        <xsl:when test="@ind2=2">
487
            Supersedes:
486
            <span class="label">Supersedes:</span>
488
        </xsl:when>
487
        </xsl:when>
489
        <xsl:when test="@ind2=3">
488
        <xsl:when test="@ind2=3">
490
            Supersedes in part:
489
            <span class="label">Supersedes in part:</span>
491
        </xsl:when>
490
        </xsl:when>
492
        <xsl:when test="@ind2=4">
491
        <xsl:when test="@ind2=4">
493
            Formed by the union: ... and: ...
492
            <span class="label">Formed by the union: ... and: ...</span>
494
        </xsl:when>
493
        </xsl:when>
495
        <xsl:when test="@ind2=5">
494
        <xsl:when test="@ind2=5">
496
            Absorbed:
495
            <span class="label">Absorbed:</span>
497
        </xsl:when>
496
        </xsl:when>
498
        <xsl:when test="@ind2=6">
497
        <xsl:when test="@ind2=6">
499
            Absorbed in part:
498
            <span class="label">Absorbed in part:</span>
500
        </xsl:when>
499
        </xsl:when>
501
        <xsl:when test="@ind2=7">
500
        <xsl:when test="@ind2=7">
502
            Separated from:
501
            <span class="label">Separated from:</span>
503
        </xsl:when>
502
        </xsl:when>
504
        </xsl:choose>
503
        </xsl:choose>
505
        </span>
506
                <xsl:variable name="f780">
504
                <xsl:variable name="f780">
507
                    <xsl:call-template name="subfieldSelect">
505
                    <xsl:call-template name="subfieldSelect">
508
                        <xsl:with-param name="codes">at</xsl:with-param>
506
                        <xsl:with-param name="codes">at</xsl:with-param>
Lines 525-562 Link Here
525
        <!-- 785 -->
523
        <!-- 785 -->
526
        <xsl:if test="marc:datafield[@tag=785]">
524
        <xsl:if test="marc:datafield[@tag=785]">
527
        <xsl:for-each select="marc:datafield[@tag=785]">
525
        <xsl:for-each select="marc:datafield[@tag=785]">
528
        <span class="results_summary"><span class="label">
526
        <span class="results_summary">
529
        <xsl:choose>
527
        <xsl:choose>
530
        <xsl:when test="@ind2=0">
528
        <xsl:when test="@ind2=0">
531
            Continued by:
529
            <span class="label">Continued by:</span>
532
        </xsl:when>
530
        </xsl:when>
533
        <xsl:when test="@ind2=1">
531
        <xsl:when test="@ind2=1">
534
            Continued in part by:
532
            <span class="label">Continued in part by:</span>
535
        </xsl:when>
533
        </xsl:when>
536
        <xsl:when test="@ind2=2">
534
        <xsl:when test="@ind2=2">
537
            Superseded by:
535
            <span class="label">Superseded by:</span>
538
        </xsl:when>
536
        </xsl:when>
539
        <xsl:when test="@ind2=3">
537
        <xsl:when test="@ind2=3">
540
            Superseded in part by:
538
            <span class="label">Superseded in part by:</span>
541
        </xsl:when>
539
        </xsl:when>
542
        <xsl:when test="@ind2=4">
540
        <xsl:when test="@ind2=4">
543
            Absorbed by:
541
            <span class="label">Absorbed by:</span>
544
        </xsl:when>
542
        </xsl:when>
545
        <xsl:when test="@ind2=5">
543
        <xsl:when test="@ind2=5">
546
            Absorbed in part by:
544
            <span class="label">Absorbed in part by:</span>
547
        </xsl:when>
545
        </xsl:when>
548
        <xsl:when test="@ind2=6">
546
        <xsl:when test="@ind2=6">
549
            Split into .. and ...:
547
            <span class="label">Split into .. and ...:</span>
550
        </xsl:when>
548
        </xsl:when>
551
        <xsl:when test="@ind2=7">
549
        <xsl:when test="@ind2=7">
552
            Merged with ... to form ...
550
            <span class="label">Merged with ... to form ...</span>
553
        </xsl:when>
551
        </xsl:when>
554
        <xsl:when test="@ind2=8">
552
        <xsl:when test="@ind2=8">
555
            Changed back to:
553
            <span class="label">Changed back to:</span>
556
        </xsl:when>
554
        </xsl:when>
557
555
558
        </xsl:choose>
556
        </xsl:choose>
559
        </span>
560
                   <xsl:variable name="f785">
557
                   <xsl:variable name="f785">
561
                    <xsl:call-template name="subfieldSelect">
558
                    <xsl:call-template name="subfieldSelect">
562
                        <xsl:with-param name="codes">at</xsl:with-param>
559
                        <xsl:with-param name="codes">at</xsl:with-param>
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2intranetDetail.xsl (-28 / +26 lines)
Lines 16-22 Link Here
16
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
16
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
17
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
17
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
18
  <xsl:variable name="biblionumber" select="marc:datafield[@tag=090]/marc:subfield[@code='a']"/>
18
  <xsl:variable name="biblionumber" select="marc:datafield[@tag=090]/marc:subfield[@code='a']"/>
19
  
19
20
20
21
  <xsl:if test="marc:datafield[@tag=200]">
21
  <xsl:if test="marc:datafield[@tag=200]">
22
    <xsl:for-each select="marc:datafield[@tag=200]">
22
    <xsl:for-each select="marc:datafield[@tag=200]">
Lines 253-259 Link Here
253
    <li>
253
    <li>
254
      <strong>Note sur la provenance: </strong>
254
      <strong>Note sur la provenance: </strong>
255
      <xsl:for-each select="marc:datafield[@tag=317]">
255
      <xsl:for-each select="marc:datafield[@tag=317]">
256
          <xsl:value-of select="marc:subfield[@code='a']"/>      
256
          <xsl:value-of select="marc:subfield[@code='a']"/>
257
      </xsl:for-each>
257
      </xsl:for-each>
258
    </li>
258
    </li>
259
  </xsl:if>
259
  </xsl:if>
Lines 292-298 Link Here
292
    <li>
292
    <li>
293
      <strong>SUDOC serial history: </strong>
293
      <strong>SUDOC serial history: </strong>
294
      <xsl:for-each select="marc:datafield[@tag=955]">
294
      <xsl:for-each select="marc:datafield[@tag=955]">
295
        <xsl:value-of select="marc:subfield[@code='9']"/>: 
295
        <xsl:value-of select="marc:subfield[@code='9']"/>:
296
        <xsl:value-of select="marc:subfield[@code='r']"/>
296
        <xsl:value-of select="marc:subfield[@code='r']"/>
297
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
297
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
298
      </xsl:for-each>
298
      </xsl:for-each>
Lines 303-309 Link Here
303
    <li>
303
    <li>
304
      <strong>SUDOC serial history: </strong>
304
      <strong>SUDOC serial history: </strong>
305
      <xsl:for-each select="marc:datafield[@tag=955]">
305
      <xsl:for-each select="marc:datafield[@tag=955]">
306
        <xsl:value-of select="marc:subfield[@code='9']"/>: 
306
        <xsl:value-of select="marc:subfield[@code='9']"/>:
307
        <xsl:value-of select="marc:subfield[@code='r']"/>
307
        <xsl:value-of select="marc:subfield[@code='r']"/>
308
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
308
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
309
      </xsl:for-each>
309
      </xsl:for-each>
Lines 382-388 Link Here
382
        <xsl:choose>
382
        <xsl:choose>
383
          <xsl:when test="position()=last()"></xsl:when>
383
          <xsl:when test="position()=last()"></xsl:when>
384
          <xsl:otherwise> | </xsl:otherwise>
384
          <xsl:otherwise> | </xsl:otherwise>
385
        </xsl:choose>      
385
        </xsl:choose>
386
      </xsl:for-each>
386
      </xsl:for-each>
387
    </li>
387
    </li>
388
  </xsl:if>
388
  </xsl:if>
Lines 390-423 Link Here
390
        <!-- 780 -->
390
        <!-- 780 -->
391
        <xsl:if test="marc:datafield[@tag=780]">
391
        <xsl:if test="marc:datafield[@tag=780]">
392
        <xsl:for-each select="marc:datafield[@tag=780]">
392
        <xsl:for-each select="marc:datafield[@tag=780]">
393
        <li><strong>
393
        <li>
394
        <xsl:choose>
394
        <xsl:choose>
395
        <xsl:when test="@ind2=0">
395
        <xsl:when test="@ind2=0">
396
            Continues:
396
            <strong>Continues:</strong>
397
        </xsl:when>
397
        </xsl:when>
398
        <xsl:when test="@ind2=1">
398
        <xsl:when test="@ind2=1">
399
            Continues in part:
399
            <strong>Continues in part:</strong>
400
        </xsl:when>
400
        </xsl:when>
401
        <xsl:when test="@ind2=2">
401
        <xsl:when test="@ind2=2">
402
            Supersedes:
402
            <strong>Supersedes:</strong>
403
        </xsl:when>
403
        </xsl:when>
404
        <xsl:when test="@ind2=3">
404
        <xsl:when test="@ind2=3">
405
            Supersedes in part:
405
            <strong>Supersedes in part:</strong>
406
        </xsl:when>
406
        </xsl:when>
407
        <xsl:when test="@ind2=4">
407
        <xsl:when test="@ind2=4">
408
            Formed by the union: ... and: ...
408
            <strong>Formed by the union: ... and: ...</strong>
409
        </xsl:when>
409
        </xsl:when>
410
        <xsl:when test="@ind2=5">
410
        <xsl:when test="@ind2=5">
411
            Absorbed:
411
            <strong>Absorbed:</strong>
412
        </xsl:when>
412
        </xsl:when>
413
        <xsl:when test="@ind2=6">
413
        <xsl:when test="@ind2=6">
414
            Absorbed in part:
414
            <strong>Absorbed in part:</strong>
415
        </xsl:when>
415
        </xsl:when>
416
        <xsl:when test="@ind2=7">
416
        <xsl:when test="@ind2=7">
417
            Separated from:
417
            <strong>Separated from:</strong>
418
        </xsl:when>
418
        </xsl:when>
419
        </xsl:choose>
419
        </xsl:choose>
420
        </strong>
420
421
                <xsl:variable name="f780">
421
                <xsl:variable name="f780">
422
                    <xsl:call-template name="subfieldSelect">
422
                    <xsl:call-template name="subfieldSelect">
423
                        <xsl:with-param name="codes">at</xsl:with-param>
423
                        <xsl:with-param name="codes">at</xsl:with-param>
Lines 427-433 Link Here
427
                <xsl:value-of select="translate($f780, '()', '')"/>
427
                <xsl:value-of select="translate($f780, '()', '')"/>
428
            </a>
428
            </a>
429
        </li>
429
        </li>
430
 
430
431
        <xsl:choose>
431
        <xsl:choose>
432
        <xsl:when test="@ind1=0">
432
        <xsl:when test="@ind1=0">
433
            <li><xsl:value-of select="marc:subfield[@code='n']"/></li>
433
            <li><xsl:value-of select="marc:subfield[@code='n']"/></li>
Lines 440-477 Link Here
440
        <!-- 785 -->
440
        <!-- 785 -->
441
        <xsl:if test="marc:datafield[@tag=785]">
441
        <xsl:if test="marc:datafield[@tag=785]">
442
        <xsl:for-each select="marc:datafield[@tag=785]">
442
        <xsl:for-each select="marc:datafield[@tag=785]">
443
        <li><strong>
443
        <li>
444
        <xsl:choose>
444
        <xsl:choose>
445
        <xsl:when test="@ind2=0">
445
        <xsl:when test="@ind2=0">
446
            Continued by:
446
            <strong>Continued by:</strong>
447
        </xsl:when>
447
        </xsl:when>
448
        <xsl:when test="@ind2=1">
448
        <xsl:when test="@ind2=1">
449
            Continued in part by:
449
            <strong>Continued in part by:</strong>
450
        </xsl:when>
450
        </xsl:when>
451
        <xsl:when test="@ind2=2">
451
        <xsl:when test="@ind2=2">
452
            Superseded by:
452
            <strong>Superseded by:</strong>
453
        </xsl:when>
453
        </xsl:when>
454
        <xsl:when test="@ind2=3">
454
        <xsl:when test="@ind2=3">
455
            Superseded in part by:
455
            <strong>Superseded in part by:</strong>
456
        </xsl:when>
456
        </xsl:when>
457
        <xsl:when test="@ind2=4">
457
        <xsl:when test="@ind2=4">
458
            Absorbed by:
458
            <strong>Absorbed by:</strong>
459
        </xsl:when>
459
        </xsl:when>
460
        <xsl:when test="@ind2=5">
460
        <xsl:when test="@ind2=5">
461
            Absorbed in part by:
461
            <strong>Absorbed in part by:</strong>
462
        </xsl:when>
462
        </xsl:when>
463
        <xsl:when test="@ind2=6">
463
        <xsl:when test="@ind2=6">
464
            Split into .. and ...:
464
            <strong>Split into .. and ...:</strong>
465
        </xsl:when>
465
        </xsl:when>
466
        <xsl:when test="@ind2=7">
466
        <xsl:when test="@ind2=7">
467
            Merged with ... to form ...
467
            <strong>Merged with ... to form ...</strong>
468
        </xsl:when>
468
        </xsl:when>
469
        <xsl:when test="@ind2=8">
469
        <xsl:when test="@ind2=8">
470
            Changed back to:
470
            <strong>Changed back to:</strong>
471
        </xsl:when>
471
        </xsl:when>
472
473
        </xsl:choose>
472
        </xsl:choose>
474
        </strong>
475
                   <xsl:variable name="f785">
473
                   <xsl:variable name="f785">
476
                    <xsl:call-template name="subfieldSelect">
474
                    <xsl:call-template name="subfieldSelect">
477
                        <xsl:with-param name="codes">at</xsl:with-param>
475
                        <xsl:with-param name="codes">at</xsl:with-param>
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl (-38 / +35 lines)
Lines 134-140 Link Here
134
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
134
                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
135
            </xsl:when>
135
            </xsl:when>
136
            <xsl:otherwise>
136
            <xsl:otherwise>
137
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>      
137
            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
138
            </xsl:otherwise>
138
            </xsl:otherwise>
139
        </xsl:choose>
139
        </xsl:choose>
140
        <xsl:call-template name="nameABCDN"/></a>
140
        <xsl:call-template name="nameABCDN"/></a>
Lines 173-179 Link Here
173
<xsl:if test="$ShowISBD!='0'">
173
<xsl:if test="$ShowISBD!='0'">
174
        <span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber={marc:datafield[@tag=999]/marc:subfield[@code='c']}">Card View (ISBD)</a></span>
174
        <span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber={marc:datafield[@tag=999]/marc:subfield[@code='c']}">Card View (ISBD)</a></span>
175
</xsl:if>
175
</xsl:if>
176
        </div> 
176
        </div>
177
177
178
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
178
   <xsl:if test="$DisplayOPACiconsXSLT!='0'">
179
        <xsl:if test="$materialTypeCode!=''">
179
        <xsl:if test="$materialTypeCode!=''">
Lines 194-200 Link Here
194
                <xsl:with-param name="index">se</xsl:with-param>
194
                <xsl:with-param name="index">se</xsl:with-param>
195
            </xsl:call-template>
195
            </xsl:call-template>
196
        </xsl:if>
196
        </xsl:if>
197
        
197
198
        <xsl:if test="marc:datafield[@tag=440 or @tag=490]">
198
        <xsl:if test="marc:datafield[@tag=440 or @tag=490]">
199
        <span class="results_summary"><span class="label">Series: </span>
199
        <span class="results_summary"><span class="label">Series: </span>
200
        <xsl:for-each select="marc:datafield[@tag=440]">
200
        <xsl:for-each select="marc:datafield[@tag=440]">
Lines 236-242 Link Here
236
                <xsl:with-param name="label">Publisher: </xsl:with-param>
236
                <xsl:with-param name="label">Publisher: </xsl:with-param>
237
            </xsl:call-template>
237
            </xsl:call-template>
238
        </xsl:if>
238
        </xsl:if>
239
        
239
240
        <xsl:if test="marc:datafield[@tag=260]">
240
        <xsl:if test="marc:datafield[@tag=260]">
241
        <span class="results_summary"><span class="label">Publisher: </span>
241
        <span class="results_summary"><span class="label">Publisher: </span>
242
            <xsl:for-each select="marc:datafield[@tag=260]">
242
            <xsl:for-each select="marc:datafield[@tag=260]">
Lines 249-255 Link Here
249
               </xsl:call-template>
249
               </xsl:call-template>
250
                    <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
250
                    <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
251
            </xsl:for-each>
251
            </xsl:for-each>
252
        </span> 
252
        </span>
253
        </xsl:if>
253
        </xsl:if>
254
254
255
        <!-- Edition Statement: Alternate Graphic Representation (MARC 880) -->
255
        <!-- Edition Statement: Alternate Graphic Representation (MARC 880) -->
Lines 261-267 Link Here
261
                <xsl:with-param name="label">Edition: </xsl:with-param>
261
                <xsl:with-param name="label">Edition: </xsl:with-param>
262
            </xsl:call-template>
262
            </xsl:call-template>
263
        </xsl:if>
263
        </xsl:if>
264
        
264
265
        <xsl:if test="marc:datafield[@tag=250]">
265
        <xsl:if test="marc:datafield[@tag=250]">
266
        <span class="results_summary"><span class="label">Edition: </span>
266
        <span class="results_summary"><span class="label">Edition: </span>
267
            <xsl:for-each select="marc:datafield[@tag=250]">
267
            <xsl:for-each select="marc:datafield[@tag=250]">
Lines 286-292 Link Here
286
                <xsl:with-param name="label">Description: </xsl:with-param>
286
                <xsl:with-param name="label">Description: </xsl:with-param>
287
            </xsl:call-template>
287
            </xsl:call-template>
288
        </xsl:if>
288
        </xsl:if>
289
        
289
290
        <xsl:if test="marc:datafield[@tag=300]">
290
        <xsl:if test="marc:datafield[@tag=300]">
291
        <span class="results_summary"><span class="label">Description: </span>
291
        <span class="results_summary"><span class="label">Description: </span>
292
            <xsl:for-each select="marc:datafield[@tag=300]">
292
            <xsl:for-each select="marc:datafield[@tag=300]">
Lines 370-376 Link Here
370
            <xsl:call-template name="chopPunctuation">
370
            <xsl:call-template name="chopPunctuation">
371
                <xsl:with-param name="chopString">
371
                <xsl:with-param name="chopString">
372
                    <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
372
                    <xsl:value-of select="substring($str,1,string-length($str)-1)"/>
373
                        
373
374
                </xsl:with-param>
374
                </xsl:with-param>
375
            </xsl:call-template>
375
            </xsl:call-template>
376
            <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
376
            <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
Lines 464-487 Link Here
464
        </xsl:if>
464
        </xsl:if>
465
        <xsl:if test="marc:datafield[@tag=505]">
465
        <xsl:if test="marc:datafield[@tag=505]">
466
        <xsl:for-each select="marc:datafield[@tag=505]">
466
        <xsl:for-each select="marc:datafield[@tag=505]">
467
        <span class="results_summary"><span class="label">
467
        <span class="results_summary">
468
        <xsl:choose>
468
        <xsl:choose>
469
        <xsl:when test="@ind1=1">
469
        <xsl:when test="@ind1=1">
470
            Incomplete contents:
470
            <span class="label">Incomplete contents:</span>
471
        </xsl:when>
471
        </xsl:when>
472
        <xsl:when test="@ind1=1">
472
        <xsl:when test="@ind1=1">
473
            Partial contents:
473
            <span class="label">Partial contents:</span>
474
        </xsl:when>
474
        </xsl:when>
475
        <xsl:otherwise>
475
        <xsl:otherwise>
476
            Contents:
476
            <span class="label">Contents:</span>
477
        </xsl:otherwise>
477
        </xsl:otherwise>
478
        </xsl:choose>  
478
        </xsl:choose>
479
        </span>
480
        <xsl:choose>
479
        <xsl:choose>
481
        <xsl:when test="@ind2=0">
480
        <xsl:when test="@ind2=0">
482
            <xsl:for-each select="marc:subfield[@code='t']">
481
            <xsl:for-each select="marc:subfield[@code='t']">
483
                <xsl:value-of select="marc:subfield[@code=t]"/> <xsl:value-of select="marc:subfield[@code=r]"/>
482
                <xsl:value-of select="marc:subfield[@code=t]"/> <xsl:value-of select="marc:subfield[@code=r]"/>
484
            </xsl:for-each> 
483
            </xsl:for-each>
485
        </xsl:when>
484
        </xsl:when>
486
        <xsl:otherwise>
485
        <xsl:otherwise>
487
            <xsl:call-template name="subfieldSelect">
486
            <xsl:call-template name="subfieldSelect">
Lines 518-524 Link Here
518
                <xsl:value-of select="translate($f773, '()', '')"/>
517
                <xsl:value-of select="translate($f773, '()', '')"/>
519
            </a>
518
            </a>
520
        </span>
519
        </span>
521
 
520
522
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
521
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
523
522
524
        </xsl:if>
523
        </xsl:if>
Lines 556-589 Link Here
556
        <xsl:if test="marc:datafield[@tag=780]">
555
        <xsl:if test="marc:datafield[@tag=780]">
557
        <xsl:for-each select="marc:datafield[@tag=780]">
556
        <xsl:for-each select="marc:datafield[@tag=780]">
558
        <xsl:if test="@ind1=0">
557
        <xsl:if test="@ind1=0">
559
        <span class="results_summary"><span class="label">
558
        <span class="results_summary">
560
        <xsl:choose>
559
        <xsl:choose>
561
        <xsl:when test="@ind2=0">
560
        <xsl:when test="@ind2=0">
562
            Continues:
561
            <span class="label">Continues:</span>
563
        </xsl:when>
562
        </xsl:when>
564
        <xsl:when test="@ind2=1">
563
        <xsl:when test="@ind2=1">
565
            Continues in part:
564
            <span class="label">Continues in part:</span>
566
        </xsl:when>
565
        </xsl:when>
567
        <xsl:when test="@ind2=2">
566
        <xsl:when test="@ind2=2">
568
            Supersedes:
567
            <span class="label">Supersedes:</span>
569
        </xsl:when>
568
        </xsl:when>
570
        <xsl:when test="@ind2=3">
569
        <xsl:when test="@ind2=3">
571
            Supersedes in part:
570
            <span class="label">Supersedes in part:</span>
572
        </xsl:when>
571
        </xsl:when>
573
        <xsl:when test="@ind2=4">
572
        <xsl:when test="@ind2=4">
574
            Formed by the union: ... and: ...
573
            <span class="label">Formed by the union: ... and: ...</span>
575
        </xsl:when>
574
        </xsl:when>
576
        <xsl:when test="@ind2=5">
575
        <xsl:when test="@ind2=5">
577
            Absorbed:
576
            <span class="label">Absorbed:</span>
578
        </xsl:when>
577
        </xsl:when>
579
        <xsl:when test="@ind2=6">
578
        <xsl:when test="@ind2=6">
580
            Absorbed in part:
579
            <span class="label">Absorbed in part:</span>
581
        </xsl:when>
580
        </xsl:when>
582
        <xsl:when test="@ind2=7">
581
        <xsl:when test="@ind2=7">
583
            Separated from:
582
            <span class="label">Separated from:</span>
584
        </xsl:when>
583
        </xsl:when>
585
        </xsl:choose>
584
        </xsl:choose>
586
        </span>
587
                <xsl:variable name="f780">
585
                <xsl:variable name="f780">
588
                    <xsl:call-template name="subfieldSelect">
586
                    <xsl:call-template name="subfieldSelect">
589
                        <xsl:with-param name="codes">at</xsl:with-param>
587
                        <xsl:with-param name="codes">at</xsl:with-param>
Lines 593-599 Link Here
593
                <xsl:value-of select="translate($f780, '()', '')"/>
591
                <xsl:value-of select="translate($f780, '()', '')"/>
594
            </a>
592
            </a>
595
        </span>
593
        </span>
596
 
594
597
        <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
595
        <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
598
596
599
        </xsl:if>
597
        </xsl:if>
Lines 604-641 Link Here
604
        <xsl:if test="marc:datafield[@tag=785]">
602
        <xsl:if test="marc:datafield[@tag=785]">
605
        <xsl:for-each select="marc:datafield[@tag=785]">
603
        <xsl:for-each select="marc:datafield[@tag=785]">
606
        <xsl:if test="@ind1=0">
604
        <xsl:if test="@ind1=0">
607
        <span class="results_summary"><span class="label">
605
        <span class="results_summary">
608
        <xsl:choose>
606
        <xsl:choose>
609
        <xsl:when test="@ind2=0">
607
        <xsl:when test="@ind2=0">
610
            Continued by:
608
            <span class="label">Continued by:</span>
611
        </xsl:when>
609
        </xsl:when>
612
        <xsl:when test="@ind2=1">
610
        <xsl:when test="@ind2=1">
613
            Continued in part by:
611
            <span class="label">Continued in part by:</span>
614
        </xsl:when>
612
        </xsl:when>
615
        <xsl:when test="@ind2=2">
613
        <xsl:when test="@ind2=2">
616
            Superseded by:
614
            <span class="label">Superseded by:</span>
617
        </xsl:when>
615
        </xsl:when>
618
        <xsl:when test="@ind2=3">
616
        <xsl:when test="@ind2=3">
619
            Superseded in part by:
617
            <span class="label">Superseded in part by:</span>
620
        </xsl:when>
618
        </xsl:when>
621
        <xsl:when test="@ind2=4">
619
        <xsl:when test="@ind2=4">
622
            Absorbed by:
620
            <span class="label">Absorbed by:</span>
623
        </xsl:when>
621
        </xsl:when>
624
        <xsl:when test="@ind2=5">
622
        <xsl:when test="@ind2=5">
625
            Absorbed in part by:
623
            <span class="label">Absorbed in part by:</span>
626
        </xsl:when>
624
        </xsl:when>
627
        <xsl:when test="@ind2=6">
625
        <xsl:when test="@ind2=6">
628
            Split into .. and ...:
626
            <span class="label">Split into .. and ...:</span>
629
        </xsl:when>
627
        </xsl:when>
630
        <xsl:when test="@ind2=7">
628
        <xsl:when test="@ind2=7">
631
            Merged with ... to form ...
629
            <span class="label">Merged with ... to form ...</span>
632
        </xsl:when>
630
        </xsl:when>
633
        <xsl:when test="@ind2=8">
631
        <xsl:when test="@ind2=8">
634
            Changed back to:
632
            <span class="label">Changed back to:</span>
635
        </xsl:when>
633
        </xsl:when>
636
634
637
        </xsl:choose>
635
        </xsl:choose>
638
        </span>
639
                   <xsl:variable name="f785">
636
                   <xsl:variable name="f785">
640
                    <xsl:call-template name="subfieldSelect">
637
                    <xsl:call-template name="subfieldSelect">
641
                        <xsl:with-param name="codes">at</xsl:with-param>
638
                        <xsl:with-param name="codes">at</xsl:with-param>
(-)a/koha-tmpl/opac-tmpl/prog/en/xslt/UNIMARCslim2OPACDetail.xsl (-29 / +26 lines)
Lines 16-22 Link Here
16
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
16
  <xsl:variable name="leader6" select="substring($leader,7,1)"/>
17
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
17
  <xsl:variable name="leader7" select="substring($leader,8,1)"/>
18
  <xsl:variable name="biblionumber" select="marc:datafield[@tag=090]/marc:subfield[@code='a']"/>
18
  <xsl:variable name="biblionumber" select="marc:datafield[@tag=090]/marc:subfield[@code='a']"/>
19
  
19
20
20
21
  <xsl:if test="marc:datafield[@tag=200]">
21
  <xsl:if test="marc:datafield[@tag=200]">
22
    <xsl:for-each select="marc:datafield[@tag=200]">
22
    <xsl:for-each select="marc:datafield[@tag=200]">
Lines 63-69 Link Here
63
      <a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber={marc:datafield[@tag=090]/marc:subfield[@code='a']}">Card View (ISBD)</a>
63
      <a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber={marc:datafield[@tag=090]/marc:subfield[@code='a']}">Card View (ISBD)</a>
64
    </span>
64
    </span>
65
  </div>
65
  </div>
66
  
66
67
  <xsl:call-template name="tag_4xx" />
67
  <xsl:call-template name="tag_4xx" />
68
68
69
  <xsl:call-template name="tag_7xx">
69
  <xsl:call-template name="tag_7xx">
Lines 263-269 Link Here
263
    <span class="results_summary">
263
    <span class="results_summary">
264
      <span class="label">Note sur la provenance: </span>
264
      <span class="label">Note sur la provenance: </span>
265
      <xsl:for-each select="marc:datafield[@tag=317]">
265
      <xsl:for-each select="marc:datafield[@tag=317]">
266
          <xsl:value-of select="marc:subfield[@code='a']"/>      
266
          <xsl:value-of select="marc:subfield[@code='a']"/>
267
      </xsl:for-each>
267
      </xsl:for-each>
268
    </span>
268
    </span>
269
  </xsl:if>
269
  </xsl:if>
Lines 302-308 Link Here
302
    <span class="results_summary">
302
    <span class="results_summary">
303
      <span class="label">SUDOC serial history: </span>
303
      <span class="label">SUDOC serial history: </span>
304
      <xsl:for-each select="marc:datafield[@tag=955]">
304
      <xsl:for-each select="marc:datafield[@tag=955]">
305
        <xsl:value-of select="marc:subfield[@code='9']"/>: 
305
        <xsl:value-of select="marc:subfield[@code='9']"/>:
306
        <xsl:value-of select="marc:subfield[@code='r']"/>
306
        <xsl:value-of select="marc:subfield[@code='r']"/>
307
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
307
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
308
      </xsl:for-each>
308
      </xsl:for-each>
Lines 313-319 Link Here
313
    <span class="results_summary">
313
    <span class="results_summary">
314
      <span class="label">SUDOC serial history: </span>
314
      <span class="label">SUDOC serial history: </span>
315
      <xsl:for-each select="marc:datafield[@tag=955]">
315
      <xsl:for-each select="marc:datafield[@tag=955]">
316
        <xsl:value-of select="marc:subfield[@code='9']"/>: 
316
        <xsl:value-of select="marc:subfield[@code='9']"/>:
317
        <xsl:value-of select="marc:subfield[@code='r']"/>
317
        <xsl:value-of select="marc:subfield[@code='r']"/>
318
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
318
        <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose>
319
      </xsl:for-each>
319
      </xsl:for-each>
Lines 392-398 Link Here
392
        <xsl:choose>
392
        <xsl:choose>
393
          <xsl:when test="position()=last()"></xsl:when>
393
          <xsl:when test="position()=last()"></xsl:when>
394
          <xsl:otherwise> | </xsl:otherwise>
394
          <xsl:otherwise> | </xsl:otherwise>
395
        </xsl:choose>      
395
        </xsl:choose>
396
      </xsl:for-each>
396
      </xsl:for-each>
397
    </span>
397
    </span>
398
  </xsl:if>
398
  </xsl:if>
Lines 400-433 Link Here
400
        <!-- 780 -->
400
        <!-- 780 -->
401
        <xsl:if test="marc:datafield[@tag=780]">
401
        <xsl:if test="marc:datafield[@tag=780]">
402
        <xsl:for-each select="marc:datafield[@tag=780]">
402
        <xsl:for-each select="marc:datafield[@tag=780]">
403
        <span class="results_summary"><span class="label">
403
        <span class="results_summary">
404
        <xsl:choose>
404
        <xsl:choose>
405
        <xsl:when test="@ind2=0">
405
        <xsl:when test="@ind2=0">
406
            Continues:
406
            <span class="label">Continues:</span>
407
        </xsl:when>
407
        </xsl:when>
408
        <xsl:when test="@ind2=1">
408
        <xsl:when test="@ind2=1">
409
            Continues in part:
409
            <span class="label">Continues in part:</span>
410
        </xsl:when>
410
        </xsl:when>
411
        <xsl:when test="@ind2=2">
411
        <xsl:when test="@ind2=2">
412
            Supersedes:
412
            <span class="label">Supersedes:</span>
413
        </xsl:when>
413
        </xsl:when>
414
        <xsl:when test="@ind2=3">
414
        <xsl:when test="@ind2=3">
415
            Supersedes in part:
415
            <span class="label">Supersedes in part:</span>
416
        </xsl:when>
416
        </xsl:when>
417
        <xsl:when test="@ind2=4">
417
        <xsl:when test="@ind2=4">
418
            Formed by the union: ... and: ...
418
            <span class="label">Formed by the union: ... and: ...</span>
419
        </xsl:when>
419
        </xsl:when>
420
        <xsl:when test="@ind2=5">
420
        <xsl:when test="@ind2=5">
421
            Absorbed:
421
            <span class="label">Absorbed:</span>
422
        </xsl:when>
422
        </xsl:when>
423
        <xsl:when test="@ind2=6">
423
        <xsl:when test="@ind2=6">
424
            Absorbed in part:
424
            <span class="label">Absorbed in part:</span>
425
        </xsl:when>
425
        </xsl:when>
426
        <xsl:when test="@ind2=7">
426
        <xsl:when test="@ind2=7">
427
            Separated from:
427
            <span class="label">Separated from:</span>
428
        </xsl:when>
428
        </xsl:when>
429
        </xsl:choose>
429
        </xsl:choose>
430
        </span>
431
                <xsl:variable name="f780">
430
                <xsl:variable name="f780">
432
                    <xsl:call-template name="subfieldSelect">
431
                    <xsl:call-template name="subfieldSelect">
433
                        <xsl:with-param name="codes">at</xsl:with-param>
432
                        <xsl:with-param name="codes">at</xsl:with-param>
Lines 437-443 Link Here
437
                <xsl:value-of select="translate($f780, '()', '')"/>
436
                <xsl:value-of select="translate($f780, '()', '')"/>
438
            </a>
437
            </a>
439
        </span>
438
        </span>
440
 
439
441
        <xsl:choose>
440
        <xsl:choose>
442
        <xsl:when test="@ind1=0">
441
        <xsl:when test="@ind1=0">
443
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
442
            <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span>
Lines 450-487 Link Here
450
        <!-- 785 -->
449
        <!-- 785 -->
451
        <xsl:if test="marc:datafield[@tag=785]">
450
        <xsl:if test="marc:datafield[@tag=785]">
452
        <xsl:for-each select="marc:datafield[@tag=785]">
451
        <xsl:for-each select="marc:datafield[@tag=785]">
453
        <span class="results_summary"><span class="label">
452
        <span class="results_summary">
454
        <xsl:choose>
453
        <xsl:choose>
455
        <xsl:when test="@ind2=0">
454
        <xsl:when test="@ind2=0">
456
            Continued by:
455
            <span class="label">Continued by:</span>
457
        </xsl:when>
456
        </xsl:when>
458
        <xsl:when test="@ind2=1">
457
        <xsl:when test="@ind2=1">
459
            Continued in part by:
458
            <span class="label">Continued in part by:</span>
460
        </xsl:when>
459
        </xsl:when>
461
        <xsl:when test="@ind2=2">
460
        <xsl:when test="@ind2=2">
462
            Superseded by:
461
            <span class="label">Superseded by:</span>
463
        </xsl:when>
462
        </xsl:when>
464
        <xsl:when test="@ind2=3">
463
        <xsl:when test="@ind2=3">
465
            Superseded in part by:
464
            <span class="label">Superseded in part by:</span>
466
        </xsl:when>
465
        </xsl:when>
467
        <xsl:when test="@ind2=4">
466
        <xsl:when test="@ind2=4">
468
            Absorbed by:
467
            <span class="label">Absorbed by:</span>
469
        </xsl:when>
468
        </xsl:when>
470
        <xsl:when test="@ind2=5">
469
        <xsl:when test="@ind2=5">
471
            Absorbed in part by:
470
            <span class="label">Absorbed in part by:</span>
472
        </xsl:when>
471
        </xsl:when>
473
        <xsl:when test="@ind2=6">
472
        <xsl:when test="@ind2=6">
474
            Split into .. and ...:
473
            <span class="label">Split into .. and ...:</span>
475
        </xsl:when>
474
        </xsl:when>
476
        <xsl:when test="@ind2=7">
475
        <xsl:when test="@ind2=7">
477
            Merged with ... to form ...
476
            <span class="label">Merged with ... to form ...</span>
478
        </xsl:when>
477
        </xsl:when>
479
        <xsl:when test="@ind2=8">
478
        <xsl:when test="@ind2=8">
480
            Changed back to:
479
            <span class="label">Changed back to:</span>
481
        </xsl:when>
480
        </xsl:when>
482
481
483
        </xsl:choose>
482
        </xsl:choose>
484
        </span>
485
                   <xsl:variable name="f785">
483
                   <xsl:variable name="f785">
486
                    <xsl:call-template name="subfieldSelect">
484
                    <xsl:call-template name="subfieldSelect">
487
                        <xsl:with-param name="codes">at</xsl:with-param>
485
                        <xsl:with-param name="codes">at</xsl:with-param>
488
- 

Return to bug 4821