-
Notifications
You must be signed in to change notification settings - Fork 0
/
opac-detail.tt
2144 lines (1959 loc) · 133 KB
/
opac-detail.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[% USE raw %]
[% USE Asset %]
[% USE Math %]
[% USE Koha %]
[% USE KohaDates %]
[% USE Branches %]
[% USE TablesSettings %]
[% USE AuthorisedValues %]
[% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
[% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
[% IF Koha.Preference('AmazonAssocTag') %]
[% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
[% ELSE %]
[% AmazonAssocTag = '' %]
[% END %]
[% ShowCourseReservesHeader = 0 %]
[% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
[% FOREACH ITEM_RESULT IN itemloop %]
[% IF ITEM_RESULT.course_reserves %]
[% FOREACH r IN ITEM_RESULT.course_reserves %]
[% IF r.course.enabled == 'yes' %]
[% ShowCourseReservesHeader = 1 %]
[% END %]
[% END %]
[% END %]
[% END %]
[% END %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Details for: [% INCLUDE 'biblio-title-head.inc' %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %]
[% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
[% Asset.css("lib/verovio/midiplayer.css") | $raw %]
[% END %]
[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
</head>
[% BLOCK cssinclude %][% END %]
[% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
[% INCLUDE 'masthead.inc' %]
<div class="main">
<nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="/cgi-bin/koha/opac-main.pl">Home</a>
</li>
<li class="breadcrumb-item active">
<a href="#" aria-current="page"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a>
</li>
</ol>
</nav> <!-- /#breadcrumbs -->
<div class="container-fluid">
<div class="row">
<div class="col-lg-9">
<div id="catalogue_detail_biblio" class="maincontent" data-biblionumber="[% biblio.biblionumber | html %]">
<div class="bookcover">
[% IF ( contentsample && Koha.Preference('DivibibEnabled') ) %]
<div class="contentsamplelink">
[% IF ( contentsample.type == 'ebook' ) %]
<a href="[% contentsample.link %]" target="_new"><img src="https://static.lmscloud.net/images/Preview_[% lang.match('^de') ? 'de' : 'en' %].png" alt="Preview" title="Preview" /></a><br />
[% ELSIF ( contentsample.type == 'eaudio' ) %]
<a href="[% contentsample.link %]" target="_new"><img src="https://static.lmscloud.net/images/Sample_[% lang.match('^de') ? 'de' : 'en' %].png" alt="Preview" title="Sample" /></a><br />
[% ELSIF ( contentsample.type == 'emusic' ) %]
<a href="[% contentsample.link %]" target="_new"><img src="https://static.lmscloud.net/images/Sample_[% lang.match('^de') ? 'de' : 'en' %].png" alt="Preview" title="Sample" /></a><br />
[% ELSIF ( contentsample.type == 'evideo' ) %]
<a href="[% contentsample.link %]" target="_new"><img src="https://static.lmscloud.net/images/Preview_[% lang.match('^de') ? 'de' : 'en' %].png" alt="Preview" title="Preview" /></a><br />
[% ELSE %]
<a href="[% contentsample.link %]" target="_new"><img src="https://static.lmscloud.net/images/Preview_[% lang.match('^de') ? 'de' : 'en' %].png" alt="Preview" title="Preview" /></a><br />
[% END %]
</div>
[% END # / IF contentsample %]
<div id="biblio-cover-slider" class="cover-slider cover-slides"><!-- cover-slides shows spinner -->
[% IF ( OPACLocalCoverImages ) %]
[% IF localimages.count %]
[% FOREACH image IN localimages %]
<div class="cover-image local-coverimg">
<a href="/cgi-bin/koha/opac-image.pl?imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
<img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" />
</a>
<div class="hint">Local cover image</div>
</div>
[% END %]
[% END %]
[% END %]
[% IF ( titlecoverurls && ( Koha.Preference('EKZCover') || Koha.Preference('DivibibEnabled') ) ) %]
[% FOREACH myurl IN titlecoverurls %]
[% IF myurl.match('ekz') %]
<div class="cover-image" id="ekz-coverimg">
<img src="[% myurl %]" alt="ekz Cover of [% img_title | html %]" title="[% img_title | html %]"></img>
</div>
[% ELSIF myurl.match('onleihe') %]
<div class="cover-image" id="onleihe-coverimg">
<img src="[% myurl %]" alt="Onleihe Cover of [% img_title | html %]" title="[% img_title | html %]"></img>
</div>
[% ELSE %]
<div class="cover-image" id="other-coverimg">
<img src="[% myurl %]" alt="Cover of [% img_title | html %]" title="[% img_title | html %]"></img>
</div>
[% END %]
[% END # /FOREACH %]
[% END # / IF titlecoverurls %]
[% IF ( OPACAmazonCoverImages && normalized_isbn) %]
<div class="cover-image" id="amazon-bookcoverimg">
<a href="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.LZZZZZZZ.jpg" title="Amazon cover image">
<img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.MZZZZZZZ.jpg" alt="Amazon cover image" data-link="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"/>
</a>
<div class="hint">Image from Amazon.com</div>
</div>
[% END %]
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
[% IF ( content_identifier_exists ) %]
<div class="cover-image" id="syndetics-coverimg">
<a href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | uri %]/[% SyndeticsCoverImageSize | uri %].GIF&client=[% SyndeticsClientCode | uri %]&type=xw10&upc=[% normalized_upc | uri %]&oclc=[% normalized_oclc | uri %]" title="Syndetics cover image">
<img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | uri %]/[% SyndeticsCoverImageSize | uri %].GIF&client=[% SyndeticsClientCode | uri %]&type=xw10&upc=[% normalized_upc | uri %]&oclc=[% normalized_oclc | uri %]" alt="Syndetics cover image" />
</a>
<div class="hint">Image from Syndetics</div>
</div>
[% END %]
[% END %]
[% IF ( GoogleJackets ) %]
<div class="cover-image" id="googlejacket-coverimg">
<div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview" data-use-data-link="1"></div>
<div class="hint">Image from Google Jackets</div>
</div>
[% END %]
[% IF ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') && normalized_isbn ) %]
[% coce_id = normalized_ean || normalized_isbn %]
<div class="cover-image coce-coverimg">
[% IF ( coce_id ) %]
<a title="Image from Coce" class="[% coce_id | html %]" id="coce-thumbnail-preview"></a>
[% END %]
<div class="hint">Image from Coce</div>
</div>
[% END %]
[% IF OpenLibraryCovers %]
<div class="cover-image" id="openlibrary-coverimg">
<div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview" data-use-data-link="1"></div>
<div class="hint">Image from OpenLibrary</div>
</div>
[% END %]
[% bt_id = ( normalized_upc || normalized_isbn ) %]
[% IF ( BakerTaylorEnabled && bt_id ) %]
<div class="cover-image" id="bakertaylor-coverimg">
[% IF BakerTaylorBookstoreURL %]
<a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]">
<img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
</a>
[% ELSE %]
<a href="[% BakerTaylorImageURL | url %][% bt_id | uri%]">
<img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
</a>
[% END %]
<div class="hint">Image from Baker & Taylor</div>
</div>
[% END %]
[% IF Koha.Preference('OPACCustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
[% SET custom_cover_image_url = biblio.custom_cover_image_url %]
[% IF custom_cover_image_url %]
<div class="cover-image" id="custom-coverimg">
<a class="custom_cover_image" href="[% custom_cover_image_url | url %]" title="Custom cover image">
<img id="custom-img" alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
</a>
<div class="hint">Custom cover image</div>
</div>
[% END %]
[% END %]
</div> <!-- /.cover-slider -->
</div><!-- / .bookcover -->
<abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber | html %]"><!-- unAPI --></abbr>
[% IF ( ocoins ) # COinS / Openurl %]
<span class="Z3988" title="[% ocoins | html %]"></span>
[% END %]
<div id="views">
<span class="view current-view"><span id="Normalview"><i class="fa fa-file-text-o" aria-hidden="true"></i> Normal view</span></span>
<span class="view">
<a id="MARCview" class="btn btn-link" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-alt" aria-hidden="true"></i> MARC view</a>
</span>
[% IF ( ISBD ) %]
<span class="view"><a id="ISBDview" class="btn btn-link" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-ul" aria-hidden="true"></i> ISBD view</a></span>
[% END %]
</div>
[% XSLTBloc | $raw %]
[% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]
<span class="results_summary itemtype"><span class="label">Item type: </span>
[% IF ( imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
<img src="[% imageurl | html %]" alt="" />
[% END %]
[% IF ( description ) %]
<span class="itypetext">[% description | html %]</span>
[% ELSE %]
<span class="itypetext">[% itemtype | html %]</span>
[% END %]
</span>
[% END %]
[% IF ( LibraryThingForLibrariesID ) %]
<!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
[% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
<div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
<div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
<div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
[% END %]
<span class="results_summary">
<span class="label">Reviews from LibraryThing.com:</span>
<span style="display: block;" class="ltfl_reviews"></span>
</span>
[% END # / LibraryThingForLibrariesID %]
[% IF shelves.count %]
<!--This grabs all of the lists a bib record appears in -->
<span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
[% FOREACH s IN shelves %]
<a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
[% IF ( loop.last ) %][% ELSE %]|[% END %]
[% END %]
</span>
[% END %]
[% IF ( TagsShowEnabled ) %]
<div class="results_summary tags">
[% IF ( TagLoop ) %]
<span class="label">Tags from this library:</span>
<ul id="tagslist">
[% FOREACH TagLoo IN TagLoop %]
<li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term | uri %]&q=[% TagLoo.term | uri %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span>
[% IF ( loop.last ) %][% ELSE %], [% END %]
</li>
[% END %]
</ul>
[% ELSE %]
<span class="label">Tags from this library:</span>
<span class="notags">No tags from this library for this title.</span>
[% END # / IF ( TagLoop )%]
[% IF ( TagsInputEnabled ) %]
[% IF ( loggedinusername ) %]
<a class="tag_add btn btn-sm btn-link" id="tag_add[% biblio.biblionumber | html %]" href="#"><i class="fa fa-tag" aria-hidden="true"></i> Add tag(s)</a>
[% ELSE %]
<span class="login4tags">
[% IF Koha.Preference('casAuthentication') %]
[%# CAS authentication is too complicated for modal window %]
<a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
[% ELSE %]
<a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
[% END %]
</span>
[% END # / IF ( loggedinusername ) %]
[% END # / IF ( TagsInputEnabled ) %]
</div> <!-- /.results_summary.tags -->
[% END # /IF TagsShowEnabled %]
[% IF ( TagsInputEnabled ) %]
[% IF ( loggedinusername ) %]
<form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
<legend class="sr-only">Tags</legend>
<div class="form-row">
<div class="col-3">
<label for="newtag[% biblio.biblionumber | html %]">New tag(s), separated by a comma:</label>
</div> <!-- /.col-3 -->
<div class="col-6">
<p class="emoji-picker-container">
<input
name="newtag[% biblio.biblionumber | html %]"
id="newtag[% biblio.biblionumber | html %]"
type="text"
maxlength="100"
data-emojiable="true"
data-emoji-input="unicode">
</p>
</div> <!-- /.col-6 -->
<div class="col-auto">
<input name="tagbutton" class="btn btn-sm btn-primary tagbutton" title="[% biblio.biblionumber | html %]" type="submit" value="Add" />
<a class="cancel_tag_add" id="cancel[% biblio.biblionumber | html %]" href="#">(done)</a>
<span id="newtag[% biblio.biblionumber | html %]_status" class="tagstatus" style="display:none;">
Tag status here.
</span>
</div> <!-- /.col-auto -->
</div> <!-- /.form-row -->
</form>
[% END # / IF ( loggedinusername ) %]
[% END # / IF TagsInputEnabled %]
[% IF ( SyndeticsEnabled ) %]
[% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
<span class="results_summary">
<span class="label">Series information:</span>
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn | uri %]&type=series&num=1&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% END %]">Click to open in new window</a>
</span>
[% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
[% IF ( SyndeticsAVPROFILEExists ) %]
<span class="results_summary">
<span class="label">Audiovisual profile:</span>
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | uri %]/avprofile.html&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% END %]&type=xw10">Click to open in new window</a>
</span>
[% END # / IF SyndeticsAVPROFILEExists %]
[% IF ( SyndeticsFICTIONExists ) %]
<span class="results_summary">
<span class="label">Fiction notes:</span>
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | uri %]/fiction.html&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% END %]&type=xw10">Click to open in new window</a>
</span>
[% END # / IF SyndeticsFICTIONExists %]
[% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
<span class="results_summary">
<span class="label">Awards:</span>
<a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn | uri %]&type=awards&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% END %]">Click to open in new window</a>
</span>
[% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
[% END # / IF SyndeticsEnabled%]
[%# Following on one line due to translation issues %]
[% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
[% IF ( OpacStarRatings != 'disable' ) %]
<form method="post" action="/cgi-bin/koha/opac-ratings.pl">
<legend class="sr-only">Star ratings</legend>
<div class="results_summary ratings" id="rating-[% biblio.biblionumber | html %]">
[% SET rating_avg = ratings.get_avg_rating() %]
[% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
[% IF ( borrowernumber ) %]
<select id="star_rating" class="star_rating" name="rating" data-biblionumber="[% biblio.biblionumber | html %]" data-context="rating-[% biblio.biblionumber | html %]" autocomplete="off">
[% ELSE %]
<select id="star_rating" class="star_rating" name="rating" disabled="disabled" autocomplete="off">
[% END %]
[% IF ( rating_avg_int == 0 ) %]
<option value="" selected="selected"></option>
[% END %]
[% FOREACH i IN [ 1 2 3 4 5 ] %]
[% IF rating_avg_int == i %]
<option value="[% i | html %]" selected="selected">[% i | html %]</option>
[% ELSE %]
<option value="[% i | html %]">[% i | html %]</option>
[% END %]
[% END %]
</select>
<img id="rating-loading" class="rating-loading" style="display:none" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" alt="" />
<!-- define some hidden vars for ratings -->
<input type="hidden" name='biblionumber' value="[% biblio.biblionumber | html %]" />
<input type="hidden" name='rating_value' id='rating_value' class="rating_value" value="[% my_rating.rating_value | html %]" />
[% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
[% IF my_rating %]
<span id="rating_value_text" class="rating_value_text">Your rating: [% my_rating.rating_value | html %].</span>
<span id="cancel_rating_text" class="cancel_rating_text"><a href="#" data-context="star_rating"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating.</a></span>
[% ELSE %]
<span id="rating_value_text" class="rating_value_text"></span>
<span id="cancel_rating_text" class="cancel_rating_text" style="display: none;"><a href="#" data-context="star_rating"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating.</a></span>
[% END %]
<span id="rating_text" class="rating_text">Average rating: [% rating_avg | html %] ([% ratings.count | html %] votes)</span>
</div>
</form>
[% END # / IF OpacStarRatings != 'disable' %]
[% IF ( BakerTaylorContentURL ) %]
<span class="results_summary">
<span class="label">Enhanced content: </span>
[% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL | url %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL | url %]">Content Cafe</a>[% END %]
</span>
[% END # / IF BakerTaylorContentURL %]
[% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
[% IF ( NovelistSelectView == 'above') %]
<span class="results_summary NovelistSelect" style="display:none;">
<span class="label">Novelist Select: </span>
<div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
</span>
[% END %]
[% END # / IF NovelistSelectProfile %]
[% IF ( Babeltheque ) %]
<input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn | html %]"/>
<div id="BW_notes"></div>
<div id="BW_critiques"></div>
<div id="BW_critiques_pro"></div>
<div id="BW_citations"></div>
[% END # / IF Babeltheque%]
[% IF (OpacDetailVolumeDisplay) %][% INCLUDE 'opac-detail-volumes.inc' %][% END %]
</div> <!-- / #catalogue_detail_biblio -->
[% WRAPPER tabs id= "bibliodescriptions" %]
[% WRAPPER tabs_nav %]
[% WRAPPER tab_item tabname= "holdings" %]
[% BLOCK holding_tab_title %]
[% IF SeparateHoldings %]
<span>[% Branches.GetLoggedInBranchname | html %] holdings</span>
[% ELSE %]
[% IF specific_item %]
<span>Item details</span>
[% ELSE %]
<span>Holdings</span>
[% END %]
[% END %]
[% END %]
[% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]
[% END %]
[% IF (SeparateHoldings) %]
[% WRAPPER tab_item tabname= "otherholdings" %]
<span>Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</span>
[% END %]
[% END %]
[% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
[% WRAPPER tab_item tabname= "descriptions" %]
[% SET title_notes_count = 0 %]
[% IF MARCNOTES %]
[% SET title_notes_count = MARCNOTES.size %]
[% END %]
[% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
<span>Title notes ( [% title_notes_count | html %] )</span>
[% END %]
[% END %]
[% IF ComponentParts && ComponentParts.size %]
[% WRAPPER tab_item tabname= "components" %]
<span>Components ([% ComponentParts.size | html %])</span>
[% END %]
[% END %]
[% IF ( SYNDETICS_TOC ) %]
[% WRAPPER tab_item tabname= "toc" %]
<span>TOC</span>
[% END %]
[% END %]
[% IF ( SyndeticsEnabled ) %]
[% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
[% WRAPPER tab_item tabname= "excerpt" %]
<span>Excerpt</span>
[% END %]
[% END %]
[% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
[% WRAPPER tab_item tabname= "reviews" %]
<span>Reviews</span>
[% END %]
[% IF ( LibraryThingForLibrariesID ) %]
<li id="tab_LTFLreviews">
<script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
<noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
</li>
[% END %]
[% END %]
[% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
[% WRAPPER tab_item tabname= "anotes" %]
<span>About the author</span>
[% END %]
[% END %]
[% END # / IF SyndeticsEnabled %]
[% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
[% WRAPPER tab_item tabname= "LFTLSimilarItems" %]
<span>Similar items</span>
[% END %]
[% WRAPPER tab_item tabname= "LTFLTagBrowse" %]
<span>Tag browser</span>
[% END %]
[% END %]
[% IF ( subscriptionsnumber ) %]
[% WRAPPER tab_item tabname= "subscriptions" %]
<span>Subscriptions ( [% subscriptionsnumber | html %] )</span>
[% END %]
[% END %]
[% IF Koha.Preference( 'OPACComments' ) == 1 %]
[% WRAPPER tab_item tabname= "comments" %]
<span>Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</span>
[% END %]
[% END %]
[% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
[% IF ( NovelistSelectView == 'tab') %]
[% WRAPPER tab_item tabname= "NovelistSelect" %]
<span>Novelist Select</span>
[% END %]
[% END %]
[% END %]
[% IF ( OPACFRBRizeEditions && XISBNS ) %]
[% WRAPPER tab_item tabname= "editions" %]
<span>Editions</span>
[% END %]
[% END %]
[% IF ( serialcollection ) %]
[% WRAPPER tab_item tabname= "serialcollection" %]
<span>Serial collection</span>
[% END %]
[% END %]
[% IF ( OPACLocalCoverImages && localimages.count ) %]
[% WRAPPER tab_item tabname= "images" %]
<span>Images</span>
[% END %]
[% END %]
[% IF HTML5MediaEnabled && HTML5MediaSets.size %]
[% WRAPPER tab_item tabname= "html5media" %]
<span>Play media</span>
[% END %]
[% END %]
[% IF Koha.Preference( 'OPACAuthorIdentifiers' ) && author_identifiers.size %]
[% WRAPPER tab_item tabname= "author_identifiers" %]
<span>Author identifiers</span>
[% END %]
[% END %]
[% END # /WRAPPER tabs_nav %]
[% WRAPPER tab_panels %]
[% IF ( serialcollection ) %]
[% WRAPPER tab_panel tabname="serialcollection" %]
<table id="serialcollectiont" class="table table-bordered table-striped">
<caption class="sr-only">Serial collections</caption>
<thead>
<tr>
<th id="serial_library">Library</th>
<th id="serial_collection">Serial collection</th>
<th id="serial_itemcallnumber">Item call number</th>
</tr>
</thead>
<tbody>
[% FOREACH serialcollection IN serialcollections %]
<tr>
<td>[% serialcollection.branch | html %]</td>
<td>[% serialcollection.text | html %]</td>
<td>[% serialcollection.itemcallnumber | html %]</td>
</tr>
[% END %]
</tbody>
</table>
[% END # /tab_panel#serialcollection %]
[% END # / IF serialcollection %]
[% WRAPPER tab_panel tabname="holdings" %]
[% IF too_many_items %]
<p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&viewallitems=1">View all the physical items.</a></p>
[% ELSIF ( itemloop.size ) %]
[% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
[% IF specific_item %]
<p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
[% ELSE %]
[% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
[% IF acquisition_details.total_quantity == 1 %]
<span>1 item is on order.</span>
[% ELSE %]
<span>[% acquisition_details.total_quantity | html %] items are on order.</span>
[% END %]
[% END %]
[% IF holds_count.defined || priority %]
<div id="bib_holds">
[% IF holds_count.defined %]
<span>Total holds: [% holds_count | html %]</span>
[% END %]
[% IF priority %]
[% IF holds_count.defined %]
<span>(priority [% priority | html %])</span>
[% ELSE %]
<span>Overall queue priority: [% priority | html %]</span>
[% END %]
[% END %]
</div>
[% END %]
[% END # /IF specific_item %]
[% ELSE %]
[% IF ( ALTERNATEHOLDINGS ) %]
[% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
<div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
[% END %]
[% ELSE %]
[% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
[% IF acquisition_details.total_quantity == 1 %]
<span>1 item is on order.</span>
[% ELSE %]
<span>[% acquisition_details.total_quantity | html %] items are on order.</span>
[% END %]
[% ELSE %]
<div id="noitems">No physical items for this record</div>
[% END %]
[% END %]
[% END # IF itemloop.size %]
[% PROCESS 'shelfbrowser.inc' %]
[% INCLUDE shelfbrowser tab='holdings' %]
[% END # /tab_panel#holdings %]
[% IF (SeparateHoldings) %]
[% WRAPPER tab_panel tabname="otherholdings" %]
[% IF (otheritemloop.size) %]
[% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
[% ELSE %]
<span>No other items.</span>
[% END %]
[% INCLUDE shelfbrowser tab='otherholdings' %]
[% END # /tab_panel#otherholdings %]
[% END # / SeparateHoldings %]
[% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
[% WRAPPER tab_panel tabname="descriptions" %]
<div class="content_set">
[% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
<h2>Enhanced descriptions from Syndetics:</h2>
<p>[% SYNDETICS_SUMMARY | $raw %]</p>
[% END %]
[% IF ( MARCNOTES ) %]
<div id="marcnotes">
[% FOREACH MARCNOTE IN MARCNOTES %]
<p>
[% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
<a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
[% ELSE %]
[% MARCNOTE.marcnote | html | html_line_break %]
[% END %]
</p>
[% END %]
</div>
[% END %]
</div> <!-- /.content_set -->
[% END # /tab_panel#descriptions %]
[% END # / IF MARCNOTES %]
[% IF ComponentParts && ComponentParts.size %]
[% WRAPPER tab_panel tabname="components" %]
<div class="content_set">
<table>
[% FOR PART IN ComponentParts %]
<tr>
<td>
[% PART | $raw %]
</td>
</tr>
[% END %]
</table>
[% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
<p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | url %]"/>show all component parts</a></p>
[% END %]
</div>
[% END # /tab_panel#components %]
[% END %]
[% IF ( SyndeticsEnabled ) %]
[% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
[% WRAPPER tab_panel tabname="toc" %]
<div class="content_set">
<h2>Table of contents provided by Syndetics</h2>
<ul>
[% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
<li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
[% END %]
</ul>
</div>
[% END # /tab_panel#toc %]
[% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
[% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
[% WRAPPER tab_panel tabname="excerpt" %]
<div class="content_set">
<h2>Excerpt provided by Syndetics</h2>
[% SYNDETICS_EXCERPT | $raw %]
</div>
[% END # /tab_panel#excerpt %]
[% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
[% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
[% WRAPPER tab_panel tabname="reviews" %]
<div class="content_set">
<h2>Reviews provided by Syndetics</h2>
[% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
[% IF ( SYNDETICS_REVIEW.title ) %]
<h3>[% SYNDETICS_REVIEW.title | html %]</h3>
[% FOREACH review IN SYNDETICS_REVIEW.reviews %]
[% IF ( review.content ) %]
[% review.content | $raw %]
[% END %]
[% END %]
[% END %]
[% END %]
</div>
[% END # /tab_panel#reviews %]
[% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
[% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
[% WRAPPER tab_panel tabname="anotes" %]
<div class="content_set">
<h2>Author notes provided by Syndetics</h2>
[% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
[% IF ( SYNDETICS_ANOTE.content ) %]
[% SYNDETICS_ANOTE.content | $raw %]
[% END %]
[% END %]
</div>
[% END # /tab_panel#anotes %]
[% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
[% END # / IF SyndeticsEnabled %]
[% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
[% WRAPPER tab_panel tabname="NovelistSelect" %]
<div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
[% END # /tab_panel#NovelistSelect %]
[% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
[% IF ( subscriptionsnumber ) %]
[% WRAPPER tab_panel tabname="subscriptions" %]
<h2>This is a serial</h2>
<p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
[% FOREACH subscription IN subscriptions %]
<div class="subscription">
[% IF ( subscription.branchcode ) %]
<h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
[% ELSE %]
[% IF ( subscription.branchcode ) %]
<h3>At library: [% subscription.branchcode | html %]</h3>
[% END %]
[% END %]
[% IF ( subscription.closed ) %]
<p class="subscription_closed">This subscription is closed.</p>
[% END %]
[% IF ( subscription.location ) %]
<p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
[% END %]
[% IF ( subscription.callnumber ) %]
<p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
[% END %]
[% IF ( subscription.subscriptionnotes ) %]
<p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
[% END %]
<p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
[% IF ( subscription.letter ) %]
<span class="email_notifications">
[% IF ( loggedinusername ) %]
[% IF ( subscription.hasalert ) %]
<span>You have subscribed to email notification on new issues. </span><a class="btn btn-secondary" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a>
[% ELSE %]
<a class="btn btn-secondary" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid | html %]&biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a>
[% END %]
[% ELSE %]
<span>You must log in if you want to subscribe to email notification on new issues</span>
[% END %]
</span>
[% END %]
[% IF ( subscription.missinglist ) %]
<p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
[% END %]
[% IF ( subscription.opacnote ) %]
<p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
[% END %]
[% IF ( subscription.latestserials ) %]
<p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
<table class="table table-bordered table-striped" id="subscriptionst">
<caption class="sr-only">Latest serials</caption>
<thead>
<tr>
<th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
<th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
<th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
<th id="serial_status" data-colname="serial_status">Status</th>
<th id="serial_notes" data-colname="serial_notes">Note</th>
<th></th>
</tr>
</thead>
<tbody>
[% FOREACH latestserial IN subscription.latestserials %]
<tr>
<td class="serialseq">[% latestserial.serialseq | html %]</td>
<td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
<td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
<td class="serial_status">
[% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
[% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
[% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
[% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
[% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
[% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
[% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
[% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
[% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
[% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
[% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
[% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
</td>
<td class="serial_notes">[% latestserial.notes | html %]</td>
<td></td>
</tr>
[% END # / FOREACH latestserials %]
</tbody>
</table>
[% END # / IF subscription.latestserials %]
</div>
[% END # / FOREACH subscriptions %]
<p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
[% END # /tab_panel#subscriptions %]
[% END # IF subscriptionsnumber %]
[% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
<!-- Library Thing for Libraries Content -->
[% WRAPPER tab_panel tabname="LFTLSimilarItems" %]
<div class="content_set">
<div id="ltfl_related"></div>
<div id="ltfl_similars"></div>
</div>
[% END # /tab_panel#LFTLSimilarItems %]
[% WRAPPER tab_panel tabname="LTFLTagBrowse" %]
<div class="content_set">
<div id="ltfl_tagbrowse" class="ltfl"></div>
</div>
[% END # /tab_panel#LTFLTagBrowse %]
[% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
[% IF Koha.Preference( 'OPACComments' ) == 1 %]
[% WRAPPER tab_panel tabname="comments" %]
<div id="newcomment"></div>
[% IF ( reviews ) %]
[% FOREACH review IN reviews %]
[% IF borrowernumber && review.borrowernumber == borrowernumber %]
<div class="commentline yours" id="c[% review.reviewid | html %]">
[% IF ( review.avatarurl ) %]
<img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
[% END %]
[% IF review.approved %]
<h2 id="comment">Your comment</h2>
[% ELSE %]
<h2 id="comment">Your comment (preview, pending approval)</h2>
[% END %]
<small>[% review.datereviewed | $KohaDates %]</small>
<p>
[% FILTER html_break %]
[% review.review | html %]
[% END %]
<a href="/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]" class="edit_comment">Edit</a>
</p>
</div>
[% ELSE %]
<div class="commentline">
[% IF ( ShowReviewer != "none" && review.patron) %]
[% IF ( review.avatarurl ) %]
<img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
[% END %]
[% SWITCH ShowReviewer %]
[% CASE 'full' %]
<h2 id="comment">Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h2>
[% CASE 'first' %]
<h2 id="comment">Comment by [% review.patron.firstname | html %]</h2>
[% CASE 'surname' %]
<h2 id="comment">Comment by [% review.patron.surname | html %]</h2>
[% CASE 'firstandinitial' %]
<h2 id="comment">Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h2>
[% CASE 'username' %]
<h2 id="comment">Comment by [% review.patron.userid | html %]</h2>
[% END %]
<small>[% review.datereviewed | $KohaDates %]</small>
[% ELSE %]
<h2 id="comment">Patron comment on [% review.datereviewed | $KohaDates %]</h2>
[% END # / IF ShowReviewer != "none" && review.patron %]
<p>
[% FILTER html_break %]
[% review.review | html %]
[% END %]
</p>
</div> <!-- / .commentline -->
[% END %]
[% END # / FOREACH reviews %]
[% ELSE %]
<p>There are no comments on this title.</p>
[% END # / IF reviews %]
[% IF ( loggedinusername ) %]
[% UNLESS ( loggedincommenter ) %]
<div id="addcomment">
<a href="/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]" class="edit_comment">
Post your comments on this title.
</a>
</div>
[% END %]
[% ELSE %]
<div id="addcomment">
<a class="login-link loginModal-trigger" role="button" data-toggle="modal" data-return="true" data-tab="comment" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.
</div>
[% END # / IF loggedinusername %]
[% END # /tab_panel#newcomment %]
[% END # / IF OPACComments %]
[% IF ( OPACFRBRizeEditions && XISBNS ) %]
[% WRAPPER tab_panel tabname="editions" %]
<h2>Other editions of this work</h2>
<table class="table table-bordered table-striped">
<caption class="sr-only">Other editions</caption>
[% FOREACH XISBN IN XISBNS %]
<tr>
<td>
[% IF ( OPACAmazonCoverImages ) %]
<img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
[% END %]
[% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
[% IF ( XISBN.content_identifier_exists ) %]
<img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | uri %]/[% SyndeticsCoverImageSize | uri %].GIF&client=[% SyndeticsClientCode | uri %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | uri %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | uri %][% END %]&type=xw10" alt="" />
[% ELSE %]
<span class="no-image">No cover image available</span>
[% END # / IF XISBN.content_identifier_exists %]
[% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
</td>
[% UNLESS ( item_level_itypes ) %]
<td>[% XISBN.description | html %]</td>
[% END %]
<td>
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
[% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
[% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
[% IF ( XISBN.publishercode ) %]
<p>[% XISBN.publishercode | html %]
[% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
[% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
[% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
</p>
[% END %]
</td>
</tr>
[% END # / FOREACH XISBNS %]
</table>
[% END # /tab_panel#editions %]
[% END # / IF OPACFRBRizeEditions && XISBNS %]
[% IF ( HTML5MediaEnabled ) %]
[% WRAPPER tab_panel tabname="html5media" %]
[% FOREACH HTML5MediaSet IN HTML5MediaSets %]
<p>
[% IF HTML5MediaSet.is_youtube %]
<iframe id="player" type="text/html" width="640" height="360"
src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
[% ELSE %]
[% SET ctrl_preload = ' controls preload=none' #translatability %]
<[% HTML5MediaParent _ ctrl_preload | html %] >
<[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
<span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
</[% HTML5MediaParent | html %]>
[% END %]
</p>
[% END %]
[% END # /tab_panel#html5media %]
[% END # / IF HTML5MediaEnabled %]
[% IF ( OPACLocalCoverImages && localimages.count ) %]
[% WRAPPER tab_panel tabname="images" %]
<p>Click on an image to view it in the image viewer</p>
[% FOREACH image IN localimages %]
<a href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
<img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
</a>
[% END %]
[% END # /tab_panel#images %]
[% END # / IF OPACLocalCoverImages && localimages.size %]
[% IF Koha.Preference( 'OPACAuthorIdentifiers' ) && author_identifiers.size %]
[% WRAPPER tab_panel tabname="author_identifiers" %]
[% FOR author IN author_identifiers %]
<div class="author_identifier">
<span class="author_name"><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% author.authid | uri %]">[% author.name | html %]</a></span>
<ul>
[% FOR identifier IN author.identifiers %]
[% PROCESS "authority-identifiers.inc" identifier => identifier %]
[% END %]
</ul>
</div>
[% END %]