7 [% USE TablesSettings %]
8 [% USE AuthorisedValues %]
9 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
10 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
11 [% IF Koha.Preference('AmazonAssocTag') %]
12 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
14 [% AmazonAssocTag = '' %]
16 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
17 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
19 [% ShowCourseReservesHeader = 0 %]
20 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
21 [% FOREACH ITEM_RESULT IN itemloop %]
22 [% IF ITEM_RESULT.course_reserves %]
23 [% FOREACH r IN ITEM_RESULT.course_reserves %]
24 [% IF r.course.enabled == 'yes' %]
25 [% ShowCourseReservesHeader = 1 %]
32 [% INCLUDE 'doc-head-open.inc' %]
33 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Details for: [% INCLUDE 'biblio-title-head.inc' %]</title>
34 [% INCLUDE 'doc-head-close.inc' %]
35 [% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %]
36 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
37 [% Asset.css("lib/verovio/midiplayer.css") | $raw %]
40 [% BLOCK cssinclude %][% END %]
41 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
42 [% INCLUDE 'masthead.inc' %]
45 <nav aria-label="breadcrumb">
46 <ul class="breadcrumb">
47 <li class="breadcrumb-item">
48 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
50 <li class="breadcrumb-item" aria-current="page">
51 <a href="#"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a>
56 <div class="container-fluid">
58 <div class="col-lg-9">
59 <div id="catalogue_detail_biblio" class="maincontent">
62 [% IF ( biblio.title ) %]
63 [% img_title = biblio.title %]
65 [% img_title = biblio.biblionumber %]
68 [% IF ( OPACLocalCoverImages ) %]
69 <div title="[% img_title | html %]" class="[% biblio.biblionumber | html %]" id="local-thumbnail-preview"></div>
72 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
73 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" alt="Cover image" class="adlibris-cover-big" /></a>
76 [% IF ( OPACAmazonCoverImages ) %]
77 [% IF ( OPACURLOpenInNewWindow ) %]
78 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" target="_blank" rel="noreferrer">
80 <a href="http://www.amazon[% AmazonTld | uri %]/dp/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]">
82 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
85 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
86 [% IF ( content_identifier_exists ) %]
87 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/[% SyndeticsCoverImageSize | html %].GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% normalized_upc | html %]&oclc=[% normalized_oclc | html %]" alt="" class="thumbnail" />
89 <span class="no-image">No cover image available</span>
93 [% IF ( GoogleJackets ) %]
94 <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
96 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
97 [% coce_id = normalized_ean || normalized_isbn | html %]
98 <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
100 [% IF OpenLibraryCovers %]
101 <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div>
103 [% bt_id = ( normalized_upc || normalized_isbn ) %]
104 [% IF ( BakerTaylorEnabled && bt_id ) %]
105 [% IF BakerTaylorBookstoreURL %]
106 [% IF ( OPACURLOpenInNewWindow ) %]
107 <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
109 <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
112 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
115 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
116 [% IF ( OPACURLOpenInNewWindow ) %]
117 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
119 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
122 </div><!-- / #bookcover -->
124 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber | html %]"><!-- unAPI --></abbr>
125 [% IF ( ocoins ) # COinS / Openurl %]
126 <span class="Z3988" title="[% ocoins | html %]"></span>
130 <span class="view current-view"><span id="Normalview"><i class="fa fa-file-text-o" aria-hidden="true"></i> Normal view</span></span>
132 <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>
135 <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>
138 [% IF ( OPACXSLTDetailsDisplay ) %]
139 [% XSLTBloc | $raw %]
141 <h2 class="title">[% INCLUDE 'biblio-title.inc' %]</h2>
143 <span class="results_summary author h3">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></span>
146 <span class="results_summary">
147 [% IF ( unititle ) %], [% unititle | html %][% END %]
150 [% IF ( MARCAUTHORS ) %]
151 <div class="results_summary">
152 <span class="label">Additional authors:</span>
153 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
154 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
155 [% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]
156 [% IF ( MARCAUTHOR.authoritylink ) %]
157 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors authority_link" data-authid="[% MARCAUTHOR.authoritylink | html %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">
159 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]" class="contributors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">
161 [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]</a>
163 [% IF (MARCAUTHOR.authoritylink) %]
164 <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a>
166 [% IF IDREF and MARCAUTHOR.unimarc3 %]
167 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 | uri %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
169 [% UNLESS ( loop.last ) %]|[% END %]
170 [% END # /FOREACH MARCAUTHORS %]
172 [% END # IF MARCAUTHORS %]
174 [% IF ( MARCSERIES ) %]
175 <span class="results_summary series"><span class="label">Series:</span>
176 [% FOREACH MARCSERIE IN MARCSERIES %]
177 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
178 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
179 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value | html %]</a>
181 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
182 . [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %]
185 [% UNLESS ( loop.last ) %]|[% END %]
186 [% END # / FOREACH MARCSERIES %]
188 [% END # /MARCSERIES %]
190 [% IF ( editionstatement ) %]
191 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement | html %][% IF ( editionresponsibility ) %]/[% editionresponsibility | html %][% END %]</span>
193 [% IF ( publishercode ) %]
194 <span class="results_summary publisher"><span class="label">Published by :</span>
195 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
196 [% publishercode | html %]
197 </a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %]
202 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages | html %] [% illus | html %] [% size | html %]</span>
205 [% IF ( MARCISBNS ) %]
206 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN | html %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
208 [% IF ( normalized_isbn ) %]
209 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn | html %]</span>
214 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn | html %]</span>
217 [% IF ( collectiontitle ) %]
218 <span class="results_summary collection"><span class="label">Collection: </span>
219 [% collectiontitle | html %]
220 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn | html %][% END %]
221 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume | html %] [% END %]
226 [% IF ( unititles ) %]
227 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
228 [% FOREACH unititle IN unititles %]
229 [% unititle.unititle | html %] ;
234 [% IF ( MARCSUBJCTS ) %]
235 <div class="results_summary subjects">
236 <span class="label">Subject(s):</span>
238 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
239 [% subjectsloop = loop %]
240 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
241 [% SUBFIELD.separator | html %]
242 <a title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value | html %]" class="subject" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value | html %]</a>
244 [% IF (MARCSUBJCT.authoritylink) %]
245 <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink | html %]"><i class="fa fa-search" aria-hidden="true"></i></a>
247 [% UNLESS ( loop.last ) %] | [% END %]
248 [% END # / FOREACH MARCSUBJCTS %]
250 [% ELSE # /IF MARCSUBJCTS %]
251 [% IF ( subjects ) %]
252 <span class="results_summary subjects"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a class="subject" href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject | html %]</a> | [% END %]</span>
254 [% END # /IF MARCSUBJCTS %]
256 [% IF ( copyrightdate ) %]
257 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
260 [% IF ( MARCURLS ) %]
261 <div class="results_summary online_resources"><span class="label">Online resources:</span>
263 [% FOREACH MARCurl IN MARCURLS %]
264 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %]
266 [% IF ( OPACURLOpenInNewWindow ) %]
267 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
268 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
270 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
273 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
274 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]">
276 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
279 [% MARCurl.linktext | html %]</a>
280 [% IF ( MARCurl.notes ) %]
282 [% FOREACH note IN MARCurl.notes %]
283 <li>[% note.note | html %]</li>
288 [% END # /FOREACH MARCURLS %]
291 [% END # / IF MARCURLS %]
292 [% END # / IF OPACXSLTDetailsDisplay %]
294 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]
295 <span class="results_summary itemtype"><span class="label">Item type: </span>
296 [% IF ( imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
297 <img src="[% imageurl | html %]" alt="" />
299 [% IF ( description ) %]
300 [% description | html %]
302 [% itemtype | html %]
307 [% IF ( LibraryThingForLibrariesID ) %]
308 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
309 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
310 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
311 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
312 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
314 <span class="results_summary">
315 <span class="label">Reviews from LibraryThing.com:</span>
316 <span style="display: block;" class="ltfl_reviews"></span>
318 [% END # / LibraryThingForLibrariesID %]
320 [% IF shelves.count %]
321 <!--This grabs all of the lists a bib record appears in -->
322 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
323 [% FOREACH s IN shelves %]
324 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
325 [% IF ( loop.last ) %][% ELSE %]|[% END %]
330 [% IF ( TagsShowEnabled ) %]
331 <div class="results_summary tags">
333 <span class="label">Tags from this library:</span>
335 [% FOREACH TagLoo IN TagLoop %]
336 <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span>
337 [% IF ( loop.last ) %][% ELSE %], [% END %]
342 <span class="label">Tags from this library:</span>
343 <span class="notags">No tags from this library for this title.</span>
344 [% END # / IF ( TagLoop )%]
345 [% IF ( TagsInputEnabled ) %]
346 [% IF ( loggedinusername ) %]
347 <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>
349 <span id="login4tags">
350 [% IF Koha.Preference('casAuthentication') %]
351 [%# CAS authentication is too complicated for modal window %]
352 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
354 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
357 [% END # / IF ( loggedinusername ) %]
358 [% END # / IF ( TagsInputEnabled ) %]
359 </div> <!-- /.results_summary.tags -->
360 [% END # /IF TagsShowEnabled %]
362 [% IF ( TagsInputEnabled ) %]
363 [% IF ( loggedinusername ) %]
364 <form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
365 <div class="form-row">
367 <label for="newtag[% biblio.biblionumber | html %]">New tag(s), separated by a comma:</label>
368 </div> <!-- /.col-3 -->
370 <p class="emoji-picker-container">
372 name="newtag[% biblio.biblionumber | html %]"
373 id="newtag[% biblio.biblionumber | html %]"
376 data-emojiable="true"
377 data-emoji-input="unicode">
379 </div> <!-- /.col-6 -->
380 <div class="col-auto">
381 <input name="tagbutton" class="btn btn-sm btn-primary tagbutton" title="[% biblio.biblionumber | html %]" type="submit" value="Add" />
382 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber | html %]" href="#">(done)</a>
383 <span id="newtag[% biblio.biblionumber | html %]_status" class="tagstatus" style="display:none;">
386 </div> <!-- /.col-auto -->
387 </div> <!-- /.form-row -->
389 [% END # / IF ( loggedinusername ) %]
390 [% END # / IF TagsInputEnabled %]
392 [% IF ( SyndeticsEnabled ) %]
393 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
394 <span class="results_summary">
395 <span class="label">Series information:</span>
396 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn | html %]&type=series&num=1&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a>
398 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
399 [% IF ( SyndeticsAVPROFILEExists ) %]
400 <span class="results_summary">
401 <span class="label">Audiovisual profile:</span>
402 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/avprofile.html&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]&type=xw10">Click to open in new window</a>
404 [% END # / IF SyndeticsAVPROFILEExists %]
406 [% IF ( SyndeticsFICTIONExists ) %]
407 <span class="results_summary">
408 <span class="label">Fiction notes:</span>
409 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/fiction.html&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]&type=xw10">Click to open in new window</a>
411 [% END # / IF SyndeticsFICTIONExists %]
413 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
414 <span class="results_summary">
415 <span class="label">Awards:</span>
416 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn | html %]&type=awards&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a>
418 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
419 [% END # / IF SyndeticsEnabled%]
421 [% IF ( OpacStarRatings != 'disable' ) %]
422 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
423 <div class="results_summary ratings">
425 [% SET rating_avg = ratings.get_avg_rating() %]
426 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
428 [% IF ( borrowernumber ) %]
429 <select id="star_rating" name="rating" data-rating-enabled="1" autocomplete="off">
431 <select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off">
433 [% IF ( rating_avg_int == 0 ) %]
434 <option value="" selected="selected"></option>
436 [% FOREACH i IN [ 1 2 3 4 5 ] %]
437 [% IF rating_avg_int == i %]
438 <option value="[% i | html %]" selected="selected">[% i | html %]</option>
440 <option value="[% i | html %]">[% i | html %]</option>
444 <img id="rating-loading" style="display:none" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" alt="" />
446 <!-- define some hidden vars for ratings -->
448 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber | html %]" />
449 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value | html %]" />
451 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
454 <span id="rating_value_text">Your rating: [% my_rating.rating_value | html %].</span>
455 <span id="cancel_rating_text"><a href="#"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating</a>.</span>
457 <span id="rating_value_text"></span>
458 <span id="cancel_rating_text" style="display:none;"><a href="#"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating</a>.</span>
461 <span id="rating_text">Average rating: [% rating_avg | html %] ([% ratings.count | html %] votes)</span>
464 [% END # / IF OpacStarRatings != 'disable' %]
466 [% IF ( BakerTaylorContentURL ) %]
467 <span class="results_summary">
468 <span class="label">Enhanced content: </span>
469 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL | url %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL | url %]">Content Cafe</a>[% END %]
471 [% END # / IF BakerTaylorContentURL %]
473 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
474 [% IF ( NovelistSelectView == 'above') %]
475 <span class="results_summary NovelistSelect" style="display:none;">
476 <span class="label">Novelist Select: </span>
477 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
481 [% END # / IF NovelistSelectProfile %]
483 [% IF ( Babeltheque ) %]
484 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn | html %]"/>
485 <div id="BW_notes"></div>
486 <div id="BW_critiques"></div>
487 <div id="BW_critiques_pro"></div>
488 <div id="BW_citations"></div>
489 [% END # / IF Babeltheque%]
491 </div> <!-- / #catalogue_detail_biblio -->
493 <div id="bibliodescriptions" class="toptabs">
495 [% IF ( defaulttab == 'holdings' ) %]
496 <li id="tab_holdings" class="ui-tabs-active">
498 <li id="tab_holdings">
500 [% BLOCK holding_tab_title %]
501 [% IF SeparateHoldings %]
502 <span>[% Branches.GetLoggedInBranchname | html %] holdings</span>
504 [% IF specific_item %]
505 <span>Item details</span>
507 <span>Holdings</span>
511 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
513 [% IF (SeparateHoldings) %]
514 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
516 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
517 [% SET title_notes_count = 0 %]
519 [% SET title_notes_count = MARCNOTES.size %]
521 [% SET title_notes_count = 1 %]
523 [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
524 <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
526 [% IF ( SYNDETICS_TOC ) %]
527 <li id="tab_toc"> <a href="#toc">TOC</a></li>
529 [% IF ( SyndeticsEnabled ) %]
530 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
531 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
533 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
534 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
535 [% IF ( LibraryThingForLibrariesID ) %]
536 <li id="tab_LTFLreviews">
537 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
538 <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>
542 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
543 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
545 [% END # / IF SyndeticsEnabled %]
547 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
548 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
549 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
552 [% IF ( subscriptionsnumber ) %]
553 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
554 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber | html %] )</a>
558 [% IF Koha.Preference( 'reviewson' ) == 1 %]
559 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a></li>
562 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
563 [% IF ( NovelistSelectView == 'tab') %]
564 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
568 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
569 <li id="tab_editions"><a href="#editions">Editions</a></li>
572 [% IF ( serialcollection ) %]
573 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
574 <a href="#serialcollection">Serial collection</a>
578 [% IF ( OPACLocalCoverImages && localimages.count ) %]
579 <li id="tab_images"><a href="#images">Images</a></li>
582 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
583 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
588 [% IF ( serialcollection ) %]
589 <div id="serialcollection">
590 <table id="serialcollectiont" class="table table-bordered table-striped">
593 <th id="serial_library">Library</th>
594 <th id="serial_collection">Serial collection</th>
595 <th id="serial_itemcallnumber">Item call number</th>
599 [% FOREACH serialcollection IN serialcollections %]
601 <td>[% serialcollection.branch | html %]</td>
602 <td>[% serialcollection.text | html %]</td>
603 <td>[% serialcollection.itemcallnumber | html %]</td>
608 </div> <!-- /#serialcollection -->
609 [% END # / IF serialcollection %]
613 [% IF too_many_items %]
614 <p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&viewallitems=1">Click here to view them all.</a></p>
615 [% ELSIF ( itemloop.size ) %]
616 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
617 [% IF specific_item %]
618 <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
620 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
621 [% IF acquisition_details.total_quantity == 1 %]
622 <span>1 item is on order.</span>
624 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
627 [% IF holds_count.defined || priority %]
629 [% IF holds_count.defined %]
630 <span>Total holds: [% holds_count | html %]</span>
633 [% IF holds_count.defined %]
634 <span>(priority [% priority | html %])</span>
636 <span>Overall queue priority: [% priority | html %]</span>
642 [% END # /IF specific_item %]
644 [% IF ( ALTERNATEHOLDINGS ) %]
645 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
646 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
649 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
650 [% IF acquisition_details.total_quantity == 1 %]
651 <span>1 item is on order.</span>
653 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
656 <div id="noitems">No physical items for this record</div>
659 [% END # IF itemloop.size %]
660 [% PROCESS 'shelfbrowser.inc' %]
661 [% INCLUDE shelfbrowser tab='holdings' %]
662 <br style="clear:both;" />
663 </div> <!-- / #holdings -->
665 [% IF (SeparateHoldings) %]
666 <div id="otherholdings">
667 [% IF (otheritemloop.size) %]
668 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
670 <span>No other items.</span>
672 [% INCLUDE shelfbrowser tab='otherholdings' %]
674 [% END # / SeparateHoldings %]
676 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
677 <div id="descriptions">
678 <div class="content_set">
680 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
681 <h4>Enhanced descriptions from Syndetics:</h4>
682 <p>[% SYNDETICS_SUMMARY | $raw %]</p>
685 [% IF ( MARCNOTES ) %]
687 [% FOREACH MARCNOTE IN MARCNOTES %]
689 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
690 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
692 [% MARCNOTE.marcnote | html | html_line_break %]
699 <p>[% notes | html %]</p>
703 </div> <!-- /.content_set -->
704 </div> <!-- / #descriptions -->
705 [% END # / IF MARCNOTES || notes %]
707 [% IF ( SyndeticsEnabled ) %]
708 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
710 <div class="content_set">
711 <h3>Table of contents provided by Syndetics</h3>
713 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
714 <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
719 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
721 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
723 <div class="content_set">
724 <h3>Excerpt provided by Syndetics</h3>
725 [% SYNDETICS_EXCERPT | $raw %]
728 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
730 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
732 <div class="content_set">
733 <h3>Reviews provided by Syndetics</h3>
734 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
735 [% IF ( SYNDETICS_REVIEW.title ) %]
736 <h4>[% SYNDETICS_REVIEW.title | html %]</h4>
737 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
739 [% IF ( review.content ) %]
740 [% review.content | $raw %]
748 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
750 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
752 <div class="content_set">
753 <h3>Author notes provided by Syndetics</h3>
754 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
755 [% IF ( SYNDETICS_ANOTE.content ) %]
756 [% SYNDETICS_ANOTE.content | $raw %]
761 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
762 [% END # / IF SyndeticsEnabled %]
764 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
765 <div id="NovelistSelect" >
766 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
768 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
770 [% IF ( subscriptionsnumber ) %]
771 <div id="subscriptions">
772 <h2>This is a serial</h2>
773 <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
774 [% FOREACH subscription IN subscriptions %]
775 [% IF ( subscription.branchcode ) %]
776 <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
778 [% IF ( subscription.branchcode ) %]
779 <h3>At library: [% subscription.branchcode | html %]</h3>
782 [% IF ( subscription.closed ) %]
783 <p class="subscription_closed">This subscription is closed.</p>
785 [% IF ( subscription.location ) %]
786 <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
788 [% IF ( subscription.callnumber ) %]
789 <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
791 [% IF ( subscription.subscriptionnotes ) %]
792 <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
794 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
795 [% IF ( subscription.letter ) %]
796 <span class="email_notifications">
797 [% IF ( loggedinusername ) %]
798 [% IF ( subscription.hasalert ) %]
799 <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>
801 <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>
804 <span>You must log in if you want to subscribe to email notification on new issues</span>
808 [% IF ( subscription.missinglist ) %]
809 <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
811 [% IF ( subscription.opacnote ) %]
812 <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
814 [% IF ( subscription.latestserials ) %]
815 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
816 <table class="table table-bordered table-striped" id="subscriptionst">
819 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
820 <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
821 <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
822 <th id="serial_status" data-colname="serial_status">Status</th>
823 <th id="serial_notes" data-colname="serial_notes">Note</th>
827 [% FOREACH latestserial IN subscription.latestserials %]
829 <td class="serialseq">[% latestserial.serialseq | html %]</td>
830 <td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
831 <td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
832 <td class="serial_status">
833 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
834 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
835 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
836 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
837 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
838 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
839 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
840 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
841 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
842 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
843 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
844 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
846 <td class="serial_notes">[% latestserial.notes | html %]</td>
848 [% END # / FOREACH latestserials %]
851 [% END # / IF subscription.latestserials %]
852 [% END # / FOREACH subscriptions %]
853 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
854 </div> <!-- / #subscriptions -->
855 [% END # IF subscriptionsnumber %]
857 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
858 <!-- Library Thing for Libraries Content -->
859 <div id="LFTLSimilarItems">
860 <div class="content_set">
861 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
862 <!-- but breaks Xhtml validation -->
863 <!-- <span class="results_summary">-->
864 <div id="ltfl_related"></div>
865 <div id="ltfl_similars"></div>
869 <div id="LTFLTagBrowse">
870 <div class="content_set">
871 <!-- <span class="results_summary"> -->
872 <div id="ltfl_tagbrowse" class="ltfl"></div>
876 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
878 [% IF Koha.Preference( 'reviewson' ) == 1 %]
880 <div id="newcomment"></div>
882 [% FOREACH review IN reviews %]
883 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
884 <div class="commentline yours" id="c[% review.reviewid | html %]">
885 [% IF ( review.avatarurl ) %]
886 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
888 [% IF review.approved %]
889 <h5>Your comment</h5>
891 <h5>Your comment (preview, pending approval)</h5>
893 <small>[% review.datereviewed | $KohaDates %]</small>
895 [% FILTER html_break %]
896 [% review.review | html %]
898 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a>
902 <div class="commentline">
903 [% IF ( ShowReviewer != "none" && review.patron) %]
905 [% IF ( review.avatarurl ) %]
906 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
908 [% SWITCH ShowReviewer %]
910 <h5>Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h5>
912 <h5>Comment by [% review.patron.firstname | html %]</h5>
914 <h5>Comment by [% review.patron.surname | html %]</h5>
915 [% CASE 'firstandinitial' %]
916 <h5>Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h5>
917 [% CASE 'username' %]
918 <h5>Comment by [% review.patron.userid | html %]</h5>
921 <small>[% review.datereviewed | $KohaDates %]</small>
923 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
924 [% END # / IF ShowReviewer != "none" && review.patron %]
926 [% FILTER html_break %]
927 [% review.review | html %]
930 </div> <!-- / .commentline -->
932 [% END # / FOREACH reviews %]
934 <p>There are no comments on this title.</p>
935 [% END # / IF reviews %]
937 [% IF ( loggedinusername ) %]
938 [% UNLESS ( loggedincommenter ) %]
939 <div id="addcomment">
940 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
941 Post your comments on this title.
946 <div id="addcomment">
947 <a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.
949 [% END # / IF loggedinusername %]
950 </div> <!-- / #comments -->
951 [% END # / IF reviewson %]
953 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
955 <h4>Other editions of this work</h4>
956 <table class="table table-bordered table-striped">
957 [% FOREACH XISBN IN XISBNS %]
960 [% IF ( OPACAmazonCoverImages ) %]
961 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
964 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
965 [% IF ( XISBN.content_identifier_exists ) %]
966 <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&type=xw10" alt="" />
968 <span class="no-image">No cover image available</span>
969 [% END # / IF XISBN.content_identifier_exists %]
970 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
973 [% UNLESS ( item_level_itypes ) %]
974 <td>[% XISBN.description | html %]</td>
977 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
978 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
979 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
980 [% IF ( XISBN.publishercode ) %]
981 <p>[% XISBN.publishercode | html %]
982 [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
983 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
984 [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
989 [% END # / FOREACH XISBNS %]
991 </div> <!-- / #editions -->
992 [% END # / IF OPACFRBRizeEditions && XISBNS %]
994 [% IF ( HTML5MediaEnabled ) %]
995 <div id="html5media">
996 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
998 [% IF HTML5MediaSet.is_youtube %]
999 <iframe id="player" type="text/html" width="640" height="360"
1000 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
1002 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1003 <[% HTML5MediaParent _ ctrl_preload | html %] >
1004 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
1005 <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
1006 </[% HTML5MediaParent | html %]>
1011 [% END # / IF HTML5MediaEnabled %]
1013 [% IF ( OPACLocalCoverImages && localimages.count ) %]
1015 <p>Click on an image to view it in the image viewer</p>
1016 [% FOREACH image IN localimages %]
1017 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | html %]&imagenumber=[% image.imagenumber | html %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | html %]" /></a>
1019 </div><!-- / #images -->
1020 [% END # / IF OPACLocalCoverImages && localimages.size %]
1022 </div> <!-- / #bibliodescriptions -->
1024 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1025 <div id="NovelistSelect">
1026 <h3>Novelist Select</h3>
1027 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1031 [% IF ( Babeltheque ) %]
1033 <div id="BW_etiquettes"></div>
1034 <div id="BW_suggestions"></div>
1036 <div class="clearfix"></div>
1038 <div id="BW_podcasts"></div>
1040 <div class="clearfix"></div>
1042 <div id="BW_videos"></div>
1044 [% END # / IF Babeltheque %]
1046 [%# Following on one line due to translation issues %]
1047 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1049 </div> <!-- /.col-lg-10 -->
1051 <div class="col-lg-3">
1052 <div id="ulactioncontainer">
1054 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1055 <div class="nav_results">
1056 <div class="l_Results" style="display:none;">
1057 [% IF ( listResults ) %]
1058 <a href="#" id="a_listResults"><i class="fa fa-bars" aria-hidden="true"></i> Browse results</a>
1060 <span><i class="fa fa-bars" aria-hidden="true"></i> Browse results</span>
1062 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1065 <div class="pg_menu">
1066 <div class="pg_link left_results">
1067 [% IF ( previousBiblionumber ) %]
1068 <a href="opac-detail.pl?biblionumber=[% previousBiblionumber | uri %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle | html %][% ELSE %]previous biblio[% END %]"><i class="fa fa-angle-double-left" aria-hidden="true"></i> Previous</a>
1070 <span>Previous</span>
1073 [%# busc is already URI encoded %]
1074 <div class="pg_link back_results">
1075 <a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a>
1077 <div class="pg_link right_results">
1078 [% IF ( nextBiblionumber ) %]
1079 <a href="opac-detail.pl?biblionumber=[% nextBiblionumber | uri %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle | html %][% ELSE %]next biblio[% END %]">Next <i class="fa fa-angle-double-right" aria-hidden="true"></i></a>
1084 </div> <!-- /.pg_menu -->
1086 [% IF ( listResults ) %]
1087 <div class="results-pagination">
1088 <div class="nav_pages">
1089 <ul id="listResults">
1090 [% FOREACH listitem IN listResults %]
1091 [% IF ( listitem.biblionumber == biblionumber ) %]
1092 <li class="li_pag_[% loop.count | html %] highlight">
1094 <li class="li_pag_[% loop.count | html %]">
1096 <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]" title="View record "[% listitem.title | html %]"" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a>
1098 [% END # /FOREACH listitem %]
1099 </ul> <!-- /#listResults -->
1100 </div> <!-- /.nav_pages -->
1101 <div class="pagination_list">
1102 <ul id="ul_pagination_lists">
1103 [% FOREACH listitem IN listResults %]
1104 [% IF ( listitem.biblionumber == biblionumber ) %]
1105 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1106 <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count + offset | html %]</span>
1107 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]by [% author | html %][% END %]
1110 <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1111 <span class="li_pag_index">[% loop.count + offset | html %]</span>
1112 <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br> [% IF ( listitem.author ) %]by [% listitem.author | html %][% END %]
1114 [% END # /IF listitem.biblionumber %]
1115 [% END # /FOREACH listitem %]
1116 </ul> <!-- /#ul_pagination_list -->s
1117 </div> <!-- /.pagination_list -->
1118 </div> <!-- /.results-pagination -->
1119 [% END # /IF ( listResults ) %]
1120 <div class="pagination_footer">
1121 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1123 </div> <!-- /.nav_results -->
1124 [% END # / IF OpacBrowseResults && busc %]
1126 [% INCLUDE 'opac-detail-sidebar.inc' %]
1128 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1129 <div id="NovelistSelect">
1130 <h4>Novelist Select</h4>
1131 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1135 [% IF ( Babeltheque ) %]
1136 <div class="babeltheque_adds">
1137 <div id="BW_critiques_aj"></div>
1138 <div id="BW_citations_aj"></div>
1142 [% IF ( Koha.Preference('SocialNetworks') ) %]
1143 <div id="social_networks" class="clearfix">
1145 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1146 [% FOREACH network IN SocialNetworks.split(",") %]
1147 [% SWITCH network -%]
1148 [% CASE "facebook" -%]
1149 <div><a id="facebook" href="https://www.facebook.com/sharer.php?u=[% current_url |url %]&t=[% title |url %]" title="Share on Facebook"><i class="fa fa-facebook" aria-hidden="true"></i></a></div>
1150 [% CASE "linkedin" -%]
1151 <div><a id="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn"><i class="fa fa-linkedin" aria-hidden="true"></i></a></div>
1153 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email"><i class="fa fa-envelope-o" aria-hidden="true"></i></a></div>
1154 [% CASE "twitter" -%]
1155 <div><a id="twitter" href="https://twitter.com/share?url=[% current_url|url %]&text=[% title | uri %]" class="twitter-share-button" data-count="none" data-lang="[% lang | html %]" title="Share on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a></div>
1156 [% END # /SWITCH network -%]
1157 [% END # /FOREACH network %]
1158 </div> <!-- /#social_networks -->
1159 [% END # /IF SocialNetworks %]
1160 </div> <!-- / .ulactioncontainer -->
1161 </div> <!-- / .col-lg-3 -->
1162 </div> <!-- / .row -->
1164 [% IF ( LibraryThingForLibrariesID ) %]
1165 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1166 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1167 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1170 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1171 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1174 [% IF ( Babeltheque ) %]
1175 <script src="[% Babeltheque_url_js | html %]"></script>
1177 </div> <!-- / .row -->
1178 </div> <!-- / .container-fluid -->
1179 </div> <!-- / .main -->
1181 [% IF ( OPACPopupAuthorsSearch ) %]
1183 <div class="modal" id="multiSearch" tabindex="-1" role="dialog" aria-labelledby="multiSearchLabel">
1184 <div class="modal-dialog" role="document">
1185 <div class="modal-content">
1186 <div class="modal-header">
1187 <h3 id="multiSearchLabel">Select the item(s) to search</h3>
1188 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1190 <div class="modal-body">
1191 <a href="#" class="check_all btn btn-link btn-sm"><i class="fa fa-check" aria-hidden="true"></i> Select all</a> <span class="sep">|</span>
1192 <a href="#" class="check_none btn btn-link btn-sm"><i class="fa fa-remove" aria-hidden="true"></i> Select none</a>
1196 <div class="modal-footer">
1197 <button id="validMultiSearch" class="btn btn-primary">Search</button>
1198 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
1200 </div> <!-- /.modal-content -->
1201 </div> <!-- /.modal-dialog -->
1202 </div> <!-- /#myModal -->
1205 [% INCLUDE 'opac-bottom.inc' %]
1207 [%# End of template %]
1209 [% BLOCK items_table %]
1210 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1213 [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1214 <th id="item_cover" data-colname="item_cover">Cover image</th>
1216 [% IF ( item_level_itypes ) %]
1217 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>
1219 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1220 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current library</th>
1222 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1223 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>
1225 [% IF ( itemdata_ccode ) %]
1226 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>
1228 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1229 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>
1231 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1232 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1233 <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>
1235 [% IF ( itemdata_enumchron ) %]
1236 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>
1238 [% IF ( itemdata_uri ) %]
1239 <th id="item_url" data-colname="item_url" class="url">URL</th>
1241 [% IF ( itemdata_copynumber ) %]
1242 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>
1244 <th id="item_status" data-colname="item_status" class="status">Status</th>
1245 [% IF ( itemdata_itemnotes ) %]
1246 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>
1248 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1249 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1250 [% IF holds_count.defined %]
1251 <th id="item_holds" data-colname="item_holds">Item holds</th>
1252 [% ELSIF show_priority %]
1253 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1255 [% IF ( ShowCourseReservesHeader ) %]
1256 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>
1261 [% FOREACH ITEM_RESULT IN items %]
1262 [% IF ITEM_RESULT.this_branch %]
1263 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1265 <tr vocab="http://schema.org/" typeof="Offer">
1268 [% IF ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1270 [% FOR image IN ITEM_RESULT.cover_images %]
1271 <div title="[% ITEM_RESULT.itemnumber | html %]" data-imagenumber="[% image.imagenumber | html %]" data-biblionumber="[% ITEM_RESULT.biblionumber | html %]" class="local-thumbnail-preview"></div>
1276 [% IF ( item_level_itypes ) %]
1278 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
1279 [% IF ( ITEM_RESULT.imageurl ) %]
1280 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1283 [% ITEM_RESULT.description | html %]
1286 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1287 <td class="location" property="seller">
1288 <link property="itemOffered" href="#record" />
1289 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1290 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1291 [% IF ( ITEM_RESULT.branchurl ) %]
1292 <a href="[% ITEM_RESULT.branchurl | url %]">[% ITEM_RESULT.branchname | html %]</a>
1294 <span>[% ITEM_RESULT.branchname | html %]</span>
1297 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div>
1299 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1300 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1306 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1307 <td class="location" property="seller">
1308 <link property="itemOffered" href="#record" />
1309 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1310 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1311 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1312 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1313 [% IF ( home_branch_url ) %]
1314 <a href="[% home_branch_url | url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</a>
1316 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1319 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1322 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div>
1324 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1325 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1331 [% IF ( itemdata_ccode ) %]
1332 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1335 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1336 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1339 <td class="call_no" property="sku">
1340 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1341 [% ITEM_RESULT.itemcallnumber | html %]
1342 [% IF ( OPACShelfBrowser ) %]
1343 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1344 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | html %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | html %]#[% tab | html %]">Browse shelf <span class="sr-only">(Opens below)</span></a>)
1346 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | uri %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | uri %]#[% tab | uri %]">Browse shelf <span class="sr-only">(Opens below)</span></a>)
1352 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1353 <td class="materials">[% ITEM_RESULT.materials | html %]</td>
1356 [% IF ( itemdata_enumchron ) %]
1357 <td class="vol_info">
1358 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1359 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1360 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1361 <span class="sep"> -- </span>
1362 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1364 [% ELSIF ITEM_RESULT.enumchron %]
1365 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1366 [% ELSIF ITEM_RESULT.serialseq %]
1367 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1369 [% IF ( ITEM_RESULT.publisheddate ) %]
1370 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1374 [% IF ( itemdata_uri ) %]
1376 [% IF ITEM_RESULT.uri %]
1377 [%# Initialize three helper vars %]
1378 [% SET target_attr = ''; SET rel_attr = ''; SET href_attr = '' %]
1379 [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %]
1381 [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %]
1382 [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %]
1383 [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %]
1384 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %] [% ELSE %][% SET href_attr = uri %][% END %]
1385 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% uri | html %]</a><br>
1388 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %][% SET href_attr = "/cgi-bin/koha/tracklinks.pl?uri=" _ ITEM_RESULT.uri _ "&biblionumber=" _ biblio.biblionumber _ "&itemnumber=" _ ITEM_RESULT.itemnumber %] [% ELSE %][% SET href_attr = ITEM_RESULT.uri %][% END %]
1389 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]</a>
1393 [% END # /IF itemdata_uri %]
1394 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1395 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1396 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1397 <td class="date_due"><span title="[% ITEM_RESULT.datedue | html %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1398 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1399 [% IF holds_count.defined || show_priority %]
1400 <td class="holds_count">
1401 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1402 [% IF ITEM_RESULT.priority %]
1403 [% IF holds_count.defined %]
1404 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1406 <span>[% ITEM_RESULT.priority | html %]</span>
1411 [% IF ShowCourseReservesHeader %]
1413 [% IF ITEM_RESULT.course_reserves %]
1414 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1415 [% IF r.course.enabled == 'yes' %]
1417 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1418 [% r.course.course_name | html %]
1419 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1420 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1421 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1428 [% END # /IF ShowCourseReservesHeader %]
1433 [% END %][%# end of items_table block %]
1435 [% BLOCK jsinclude %]
1436 [% INCLUDE 'datatables.inc' %]
1437 [% INCLUDE 'columns_settings.inc' %]
1438 [% INCLUDE greybox.inc %]
1439 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1441 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1442 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1443 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1446 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1448 var interface = "[% interface | html %]";
1449 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1451 [% Asset.js("js/verovio.js") | $raw %]
1453 [% Asset.js("lib/emoji-picker/js/emoji-picker-all.min.js") | $raw %]
1454 [% IF OpenLibraryCovers || OpenLibrarySearch %]
1455 [% Asset.js("js/openlibrary.js") | $raw %]
1459 window.emojiPicker = new EmojiPicker({
1460 emojiable_selector: '[data-emojiable=true]',
1461 assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1462 popupButtonClasses: 'fa fa-smile-o'
1464 window.emojiPicker.discover();
1466 var OPACPopupAuthorsSearch = "[% Koha.Preference('OPACPopupAuthorsSearch') | html %]";
1467 [% IF ( OpacHighlightedWords ) %]
1468 var q_array = new Array(); // holds search terms if available
1470 function highlightOff() {
1471 $("#catalogue_detail_biblio").removeHighlight();
1472 $(".highlight_toggle").toggle();
1474 function highlightOn() {
1476 for (x in q_array) {
1477 if ( q_array[x].length > 0 ) {
1478 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1479 q_array[x] = q_array[x].toLowerCase();
1480 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1481 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1482 $(".title").highlight(q_array[x]);
1483 $(".author").highlight(q_array[x]);
1484 $(".results_summary").highlight(q_array[x]);
1487 $(".highlight_toggle").toggle();
1490 [% END # /IF OpacHighlightedWords %]
1492 $(document).ready(function() {
1494 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1501 text: location.href,
1504 document.getElementById("qrcode").appendChild( qrcode );
1507 $(".show_qrcode").on("click", function(){
1508 var qrcodeImg = $("#qrcode");
1509 if( qrcodeImg.hasClass("d-none") ){
1510 qrcodeImg.removeClass("d-none");
1512 qrcodeImg.addClass("d-none");
1515 [% END # /IF OPACDetailQRCode %]
1517 $('#bibliodescriptions').tabs();
1518 $(".branch-info-tooltip-trigger").uitooltip({
1519 position: { my: "left+15 center", at: "right center" },
1522 content: function(){
1523 var element = $(this).next("div");
1524 return element.html();
1528 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1529 $(".l_Results").show();
1530 $("#a_listResults").on("click", function(e){
1532 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1535 $(".close_pagination").on("click", function(e){
1537 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1539 [% END # /IF OpacBrowseResults %]
1541 var columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1543 KohaTable("#holdingst", {
1544 dom: '<"clearfix">t',
1546 { "targets": [ -1 ], "sortable": false, "searchable": false },
1548 "bKohaColumnsUseNames": true,
1550 }, columns_settings);
1552 KohaTable("#otherholdingst", {
1553 dom: '<"clearfix">t',
1555 { "targets": [ -1 ], "sortable": false, "searchable": false },
1557 "bKohaColumnsUseNames": true,
1559 }, columns_settings);
1561 var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1563 KohaTable("#subscriptionst", {
1564 dom: '<"clearfix">t',
1565 "sorting": [[ 1, "desc" ]],
1567 "bKohaColumnsUseNames": true
1568 }, serial_column_settings);
1570 [% IF ( TagsInputEnabled && loggedinusername ) %]
1571 $(".tag_add").click(function(){
1572 var thisid = $(this).attr("id");
1573 thisid = thisid.replace("tag_add","");
1575 $("#tagform"+thisid).show();
1576 $("#newtag"+thisid).focus();
1577 $("#newtag"+thisid+"_status").empty().hide();
1580 $(".cancel_tag_add").click(function(){
1581 var thisid = $(this).attr("id");
1582 thisid = thisid.replace("cancel","");
1583 $("#tagform"+thisid).hide();
1584 $("#tag_add"+thisid).show();
1585 $("#newtag"+thisid).val("");
1586 $("#newtag"+thisid+"_status").empty().hide();
1589 $(".tagbutton").click(function(){
1590 var thisid = $(this).attr("title");
1591 var tag = $("#newtag"+thisid).val();
1592 if (!tag || (tag == "")) {
1593 alert(MSG_NO_TAG_SPECIFIED);
1596 KOHA.Tags.add_tag_button(thisid, tag);
1601 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1602 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1603 var default_order_index = 1;
1604 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1605 var default_order_index = 2;
1607 var default_order_index = 0;
1610 [% IF ( query_desc ) %]
1611 [% IF ( OpacHighlightedWords ) %]
1612 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1613 q_array = query_desc.split(" ");
1614 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1616 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1617 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});
1620 [% IF ( GoogleJackets ) %]
1621 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1623 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1624 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1627 [% IF OpenLibraryCovers %]
1628 KOHA.OpenLibrary.GetCoverFromIsbn();
1630 [% IF OPACLocalCoverImages %]
1631 KOHA.LocalCover.GetCoverFromBibnumber(true);
1632 [% IF itemloop_has_images OR oheritemloop_has_images %]
1633 KOHA.LocalCover.GetCoverFromItemnumber(true);
1636 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1637 novSelect.loadContentForQuery(
1639 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1640 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1643 '[% NovelistSelectProfile | html %]',
1644 '[% NovelistSelectPassword | html %]',
1646 if ( d.length > 0 ){ //If no content
1647 $(".NovelistSelect").show();
1652 [% IF ( OPACShelfBrowser ) %]
1653 // Focus on shelf browser if present
1654 var shelfbrowser = $("#shelfbrowser");
1655 if (shelfbrowser.length > 0) {
1656 $('html,body').animate({
1657 scrollTop: shelfbrowser.first().offset().top
1660 shelfbrowser.first().find(':focusable').eq(0).focus();
1663 (function prepareShelfBrowser(){
1665 $(".main").on("click",".close_shelf",function(e){
1667 $("#shelfbrowser").toggle();
1669 $(".main").on("click", "#browser_previous a", function(e){
1672 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1675 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1677 success: function(data){
1678 $("#shelfbrowser").replaceWith(data);
1679 [% IF ( GoogleJackets ) %]
1680 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1682 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1683 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1685 [% IF OpenLibraryCovers %]
1686 KOHA.OpenLibrary.GetCoverFromIsbn();
1688 [% IF OPACLocalCoverImages %]
1689 KOHA.LocalCover.GetCoverFromBibnumber(true);
1695 $(".main").on("click", "#browser_next a", function(e){
1698 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1701 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1703 success: function(data){
1704 $("#shelfbrowser").replaceWith(data);
1705 [% IF ( GoogleJackets ) %]
1706 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1708 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1709 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1711 [% IF OpenLibraryCovers %]
1712 KOHA.OpenLibrary.GetCoverFromIsbn();
1714 [% IF OPACLocalCoverImages %]
1715 KOHA.LocalCover.GetCoverFromBibnumber(true);
1721 [% END # /IF ( OPACShelfBrowser ) %]
1723 [% IF ( OpacStarRatings != 'disable' ) %]
1724 // -----------------------------------------------------
1725 // star-ratings code
1726 // -----------------------------------------------------
1727 // hide 'rate' button if javascript enabled
1729 $('input[name="rate_button"]').remove();
1731 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1732 $('#star_rating').barrating({
1733 theme: 'fontawesome-stars',
1734 showSelectedRating: false,
1736 deselectable: false,
1737 readonly: rating_enabled,
1738 onSelect: function(value, text) {
1739 $("#rating-loading").show();
1740 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1741 rating_old_value: $("#rating_value").attr("value"),
1742 borrowernumber: "[% borrowernumber | html %]",
1743 biblionumber: "[% biblio.biblionumber | html %]",
1744 rating_value: value,
1746 }, function (data) {
1747 $("#rating_value").val(data.rating_value);
1748 if (data.rating_value) {
1749 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1750 $("#cancel_rating_text").show();
1752 $("#rating_value_text").text('');
1753 $("#cancel_rating_text").hide();
1755 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1756 $("#rating-loading").hide();
1761 $("#cancel_rating_text a").on("click", function(e){
1763 $("#star_rating").barrating("set", "");
1766 [% END # / IF ( OpacStarRatings != 'disable' )%]
1769 $(document).ready(function() {
1770 if( OPACPopupAuthorsSearch == "1" ){
1774 "keyword_search" : "au:",
1777 "label" : "subject",
1778 "keyword_search" : "su:",
1781 $(".contributors,.subject").on("click", function(e){
1783 var term = $(this).attr("class");
1784 var selected_term = $(this).text();
1785 var term_links = $("." + term );
1786 if( term_links.length > 1 ){
1787 term_links.each(function( index ){
1789 var preselected = false;
1790 var search_label = $(this).text().trim();
1791 if( $(this).text() == selected_term ){ preselected = true }
1792 if( $(this).hasClass("authority_link") ){
1793 authid = $(this).data("authid");
1794 search_string = "an:" + authid;
1796 search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label );
1798 var termLink = $("<li>")
1799 .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) )
1801 .append( $("<label>", { for: terms[term]["label"] + index, text: search_label } ) )
1802 $("#termsList").append( termLink );
1803 $("#multiSearch").modal("show");
1806 location.href = $(this).attr("href");
1810 $("#multiSearch").on("hide.bs.modal", function(){
1811 $("#termsList").html("");
1814 $(".check_all").on("click", function(e){
1816 $(".select_term").each(function(){
1817 $(this).prop("checked", true );
1821 $(".check_none").on("click", function(e){
1823 $(".select_term").each(function(){
1824 $(this).prop("checked", false );
1828 $("#validMultiSearch").on("click", function(e){
1830 multiSearchRequest();
1832 } /* if( OPACPopupAuthorsSearch == "1" ) */
1835 function multiSearchRequest(){
1837 $(".select_term").each(function(){
1838 if( $(this).prop("checked") ){
1839 values.push( $(this).val() );
1843 if (values.length > 0) {
1844 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1845 location.href = request;