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.size ) %]
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.size ) %]
1015 <p>Click on an image to view it in the image viewer</p>
1016 [% FOREACH image IN localimages %]
1018 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | html %]&imagenumber=[% image | html %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image | html %]" /></a>
1021 </div><!-- / #images -->
1022 [% END # / IF OPACLocalCoverImages && localimages.size %]
1024 </div> <!-- / #bibliodescriptions -->
1026 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1027 <div id="NovelistSelect">
1028 <h3>Novelist Select</h3>
1029 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1033 [% IF ( Babeltheque ) %]
1035 <div id="BW_etiquettes"></div>
1036 <div id="BW_suggestions"></div>
1038 <div class="clearfix"></div>
1040 <div id="BW_podcasts"></div>
1042 <div class="clearfix"></div>
1044 <div id="BW_videos"></div>
1046 [% END # / IF Babeltheque %]
1048 [%# Following on one line due to translation issues %]
1049 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1051 </div> <!-- /.col-lg-10 -->
1053 <div class="col-lg-3">
1054 <div id="ulactioncontainer">
1056 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1057 <div class="nav_results">
1058 <div class="l_Results" style="display:none;">
1059 [% IF ( listResults ) %]
1060 <a href="#" id="a_listResults"><i class="fa fa-bars" aria-hidden="true"></i> Browse results</a>
1062 <span><i class="fa fa-bars" aria-hidden="true"></i> Browse results</span>
1064 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1067 <div class="pg_menu">
1068 <div class="pg_link left_results">
1069 [% IF ( previousBiblionumber ) %]
1070 <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>
1072 <span>Previous</span>
1075 [%# busc is already URI encoded %]
1076 <div class="pg_link back_results">
1077 <a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a>
1079 <div class="pg_link right_results">
1080 [% IF ( nextBiblionumber ) %]
1081 <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>
1086 </div> <!-- /.pg_menu -->
1088 [% IF ( listResults ) %]
1089 <div class="results-pagination">
1090 <div class="nav_pages">
1091 <ul id="listResults">
1092 [% FOREACH listitem IN listResults %]
1093 [% IF ( listitem.biblionumber == biblionumber ) %]
1094 <li class="li_pag_[% loop.count | html %] highlight">
1096 <li class="li_pag_[% loop.count | html %]">
1098 <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>
1100 [% END # /FOREACH listitem %]
1101 </ul> <!-- /#listResults -->
1102 </div> <!-- /.nav_pages -->
1103 <div class="pagination_list">
1104 <ul id="ul_pagination_lists">
1105 [% FOREACH listitem IN listResults %]
1106 [% IF ( listitem.biblionumber == biblionumber ) %]
1107 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1108 <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count + offset | html %]</span>
1109 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]by [% author | html %][% END %]
1112 <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1113 <span class="li_pag_index">[% loop.count + offset | html %]</span>
1114 <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 %]
1116 [% END # /IF listitem.biblionumber %]
1117 [% END # /FOREACH listitem %]
1118 </ul> <!-- /#ul_pagination_list -->s
1119 </div> <!-- /.pagination_list -->
1120 </div> <!-- /.results-pagination -->
1121 [% END # /IF ( listResults ) %]
1122 <div class="pagination_footer">
1123 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1125 </div> <!-- /.nav_results -->
1126 [% END # / IF OpacBrowseResults && busc %]
1128 [% INCLUDE 'opac-detail-sidebar.inc' %]
1130 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1131 <div id="NovelistSelect">
1132 <h4>Novelist Select</h4>
1133 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1137 [% IF ( Babeltheque ) %]
1138 <div class="babeltheque_adds">
1139 <div id="BW_critiques_aj"></div>
1140 <div id="BW_citations_aj"></div>
1144 [% IF ( Koha.Preference('SocialNetworks') ) %]
1145 <div id="social_networks" class="clearfix">
1147 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1148 [% FOREACH network IN SocialNetworks.split(",") %]
1149 [% SWITCH network -%]
1150 [% CASE "facebook" -%]
1151 <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>
1152 [% CASE "linkedin" -%]
1153 <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>
1155 <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>
1156 [% CASE "twitter" -%]
1157 <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>
1158 [% END # /SWITCH network -%]
1159 [% END # /FOREACH network %]
1160 </div> <!-- /#social_networks -->
1161 [% END # /IF SocialNetworks %]
1162 </div> <!-- / .ulactioncontainer -->
1163 </div> <!-- / .col-lg-3 -->
1164 </div> <!-- / .row -->
1166 [% IF ( LibraryThingForLibrariesID ) %]
1167 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1168 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1169 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1172 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1173 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1176 [% IF ( Babeltheque ) %]
1177 <script src="[% Babeltheque_url_js | html %]"></script>
1179 </div> <!-- / .row -->
1180 </div> <!-- / .container-fluid -->
1181 </div> <!-- / .main -->
1183 [% IF ( OPACPopupAuthorsSearch ) %]
1185 <div class="modal" id="multiSearch" tabindex="-1" role="dialog" aria-labelledby="multiSearchLabel">
1186 <div class="modal-dialog" role="document">
1187 <div class="modal-content">
1188 <div class="modal-header">
1189 <h3 id="multiSearchLabel">Select the item(s) to search</h3>
1190 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1192 <div class="modal-body">
1193 <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>
1194 <a href="#" class="check_none btn btn-link btn-sm"><i class="fa fa-remove" aria-hidden="true"></i> Select none</a>
1198 <div class="modal-footer">
1199 <button id="validMultiSearch" class="btn btn-primary">Search</button>
1200 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
1202 </div> <!-- /.modal-content -->
1203 </div> <!-- /.modal-dialog -->
1204 </div> <!-- /#myModal -->
1207 [% INCLUDE 'opac-bottom.inc' %]
1209 [%# End of template %]
1211 [% BLOCK items_table %]
1212 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1215 [% IF ( item_level_itypes ) %]
1216 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>
1218 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1219 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current library</th>
1221 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1222 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>
1224 [% IF ( itemdata_ccode ) %]
1225 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>
1227 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1228 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>
1230 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1231 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1232 <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>
1234 [% IF ( itemdata_enumchron ) %]
1235 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>
1237 [% IF ( itemdata_uri ) %]
1238 <th id="item_url" data-colname="item_url" class="url">URL</th>
1240 [% IF ( itemdata_copynumber ) %]
1241 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>
1243 <th id="item_status" data-colname="item_status" class="status">Status</th>
1244 [% IF ( itemdata_itemnotes ) %]
1245 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>
1247 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1248 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1249 [% IF holds_count.defined %]
1250 <th id="item_holds" data-colname="item_holds">Item holds</th>
1251 [% ELSIF show_priority %]
1252 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1254 [% IF ( ShowCourseReservesHeader ) %]
1255 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>
1260 [% FOREACH ITEM_RESULT IN items %]
1261 [% IF ITEM_RESULT.this_branch %]
1262 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1264 <tr vocab="http://schema.org/" typeof="Offer">
1266 [% IF ( item_level_itypes ) %]
1268 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
1269 [% IF ( ITEM_RESULT.imageurl ) %]
1270 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1273 [% ITEM_RESULT.description | html %]
1276 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1277 <td class="location" property="seller">
1278 <link property="itemOffered" href="#record" />
1279 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1280 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1281 [% IF ( ITEM_RESULT.branchurl ) %]
1282 <a href="[% ITEM_RESULT.branchurl | url %]">[% ITEM_RESULT.branchname | html %]</a>
1284 <span>[% ITEM_RESULT.branchname | html %]</span>
1287 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div>
1289 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1290 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1296 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1297 <td class="location" property="seller">
1298 <link property="itemOffered" href="#record" />
1299 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1300 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1301 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1302 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1303 [% IF ( home_branch_url ) %]
1304 <a href="[% home_branch_url | url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</a>
1306 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1309 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1312 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div>
1314 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1315 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1321 [% IF ( itemdata_ccode ) %]
1322 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1325 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1326 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1329 <td class="call_no" property="sku">
1330 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1331 [% ITEM_RESULT.itemcallnumber | html %]
1332 [% IF ( OPACShelfBrowser ) %]
1333 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1334 (<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>)
1336 (<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>)
1342 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1343 <td class="materials">[% ITEM_RESULT.materials | html %]</td>
1346 [% IF ( itemdata_enumchron ) %]
1347 <td class="vol_info">
1348 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1349 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1350 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1351 <span class="sep"> -- </span>
1352 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1354 [% ELSIF ITEM_RESULT.enumchron %]
1355 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1356 [% ELSIF ITEM_RESULT.serialseq %]
1357 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1359 [% IF ( ITEM_RESULT.publisheddate ) %]
1360 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1364 [% IF ( itemdata_uri ) %]
1366 [% IF ITEM_RESULT.uri %]
1367 [%# Initialize three helper vars %]
1368 [% SET target_attr = ''; SET rel_attr = ''; SET href_attr = '' %]
1369 [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %]
1371 [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %]
1372 [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %]
1373 [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %]
1374 [% 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 %]
1375 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% href_attr | url %]" property="url">[% uri | html %]</a><br>
1378 [% 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 %]
1379 <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>
1383 [% END # /IF itemdata_uri %]
1384 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1385 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1386 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1387 <td class="date_due"><span title="[% ITEM_RESULT.datedue | html %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1388 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1389 [% IF holds_count.defined || show_priority %]
1390 <td class="holds_count">
1391 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1392 [% IF ITEM_RESULT.priority %]
1393 [% IF holds_count.defined %]
1394 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1396 <span>[% ITEM_RESULT.priority | html %]</span>
1401 [% IF ShowCourseReservesHeader %]
1403 [% IF ITEM_RESULT.course_reserves %]
1404 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1405 [% IF r.course.enabled == 'yes' %]
1407 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1408 [% r.course.course_name | html %]
1409 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1410 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1411 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1418 [% END # /IF ShowCourseReservesHeader %]
1423 [% END %][%# end of items_table block %]
1425 [% BLOCK jsinclude %]
1426 [% INCLUDE 'datatables.inc' %]
1427 [% INCLUDE 'columns_settings.inc' %]
1428 [% INCLUDE greybox.inc %]
1429 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1431 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1432 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1433 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1436 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1438 var interface = "[% interface | html %]";
1439 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1441 [% Asset.js("js/verovio.js") | $raw %]
1443 [% Asset.js("lib/emoji-picker/js/emoji-picker-all.min.js") | $raw %]
1444 [% IF OpenLibraryCovers || OpenLibrarySearch %]
1445 [% Asset.js("js/openlibrary.js") | $raw %]
1449 window.emojiPicker = new EmojiPicker({
1450 emojiable_selector: '[data-emojiable=true]',
1451 assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1452 popupButtonClasses: 'fa fa-smile-o'
1454 window.emojiPicker.discover();
1456 var OPACPopupAuthorsSearch = "[% Koha.Preference('OPACPopupAuthorsSearch') | html %]";
1457 [% IF ( OpacHighlightedWords ) %]
1458 var q_array = new Array(); // holds search terms if available
1460 function highlightOff() {
1461 $("#catalogue_detail_biblio").removeHighlight();
1462 $(".highlight_toggle").toggle();
1464 function highlightOn() {
1466 for (x in q_array) {
1467 if ( q_array[x].length > 0 ) {
1468 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1469 q_array[x] = q_array[x].toLowerCase();
1470 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1471 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1472 $(".title").highlight(q_array[x]);
1473 $(".author").highlight(q_array[x]);
1474 $(".results_summary").highlight(q_array[x]);
1477 $(".highlight_toggle").toggle();
1480 [% END # /IF OpacHighlightedWords %]
1482 $(document).ready(function() {
1484 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1491 text: location.href,
1494 document.getElementById("qrcode").appendChild( qrcode );
1497 $(".show_qrcode").on("click", function(){
1498 var qrcodeImg = $("#qrcode");
1499 if( qrcodeImg.hasClass("d-none") ){
1500 qrcodeImg.removeClass("d-none");
1502 qrcodeImg.addClass("d-none");
1505 [% END # /IF OPACDetailQRCode %]
1507 $('#bibliodescriptions').tabs();
1508 $(".branch-info-tooltip-trigger").uitooltip({
1509 position: { my: "left+15 center", at: "right center" },
1512 content: function(){
1513 var element = $(this).next("div");
1514 return element.html();
1518 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1519 $(".l_Results").show();
1520 $("#a_listResults").on("click", function(e){
1522 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1525 $(".close_pagination").on("click", function(e){
1527 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1529 [% END # /IF OpacBrowseResults %]
1531 var columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1533 KohaTable("#holdingst", {
1534 dom: '<"clearfix">t',
1536 { "targets": [ -1 ], "sortable": false, "searchable": false },
1538 "bKohaColumnsUseNames": true,
1540 }, columns_settings);
1542 KohaTable("#otherholdingst", {
1543 dom: '<"clearfix">t',
1545 { "targets": [ -1 ], "sortable": false, "searchable": false },
1547 "bKohaColumnsUseNames": true,
1549 }, columns_settings);
1551 var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1553 KohaTable("#subscriptionst", {
1554 dom: '<"clearfix">t',
1555 "sorting": [[ 1, "desc" ]],
1557 "bKohaColumnsUseNames": true
1558 }, serial_column_settings);
1560 [% IF ( TagsInputEnabled && loggedinusername ) %]
1561 $(".tag_add").click(function(){
1562 var thisid = $(this).attr("id");
1563 thisid = thisid.replace("tag_add","");
1565 $("#tagform"+thisid).show();
1566 $("#newtag"+thisid).focus();
1567 $("#newtag"+thisid+"_status").empty().hide();
1570 $(".cancel_tag_add").click(function(){
1571 var thisid = $(this).attr("id");
1572 thisid = thisid.replace("cancel","");
1573 $("#tagform"+thisid).hide();
1574 $("#tag_add"+thisid).show();
1575 $("#newtag"+thisid).val("");
1576 $("#newtag"+thisid+"_status").empty().hide();
1579 $(".tagbutton").click(function(){
1580 var thisid = $(this).attr("title");
1581 var tag = $("#newtag"+thisid).val();
1582 if (!tag || (tag == "")) {
1583 alert(MSG_NO_TAG_SPECIFIED);
1586 KOHA.Tags.add_tag_button(thisid, tag);
1591 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1592 [% 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 %]
1593 var default_order_index = 1;
1594 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1595 var default_order_index = 2;
1597 var default_order_index = 0;
1600 [% IF ( query_desc ) %]
1601 [% IF ( OpacHighlightedWords ) %]
1602 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1603 q_array = query_desc.split(" ");
1604 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1606 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1607 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});
1610 [% IF ( GoogleJackets ) %]
1611 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1613 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1614 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1617 [% IF OpenLibraryCovers %]
1618 KOHA.OpenLibrary.GetCoverFromIsbn();
1620 [% IF OPACLocalCoverImages %]
1621 KOHA.LocalCover.GetCoverFromBibnumber(true);
1623 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1624 novSelect.loadContentForQuery(
1626 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1627 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1630 '[% NovelistSelectProfile | html %]',
1631 '[% NovelistSelectPassword | html %]',
1633 if ( d.length > 0 ){ //If no content
1634 $(".NovelistSelect").show();
1639 [% IF ( OPACShelfBrowser ) %]
1640 // Focus on shelf browser if present
1641 var shelfbrowser = $("#shelfbrowser");
1642 if (shelfbrowser.length > 0) {
1643 $('html,body').animate({
1644 scrollTop: shelfbrowser.first().offset().top
1647 shelfbrowser.first().find(':focusable').eq(0).focus();
1650 (function prepareShelfBrowser(){
1652 $(".main").on("click",".close_shelf",function(e){
1654 $("#shelfbrowser").toggle();
1656 $(".main").on("click", "#browser_previous a", function(e){
1659 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1662 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1664 success: function(data){
1665 $("#shelfbrowser").replaceWith(data);
1666 [% IF ( GoogleJackets ) %]
1667 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1669 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1670 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1672 [% IF OpenLibraryCovers %]
1673 KOHA.OpenLibrary.GetCoverFromIsbn();
1675 [% IF OPACLocalCoverImages %]
1676 KOHA.LocalCover.GetCoverFromBibnumber(true);
1682 $(".main").on("click", "#browser_next a", function(e){
1685 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1688 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1690 success: function(data){
1691 $("#shelfbrowser").replaceWith(data);
1692 [% IF ( GoogleJackets ) %]
1693 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1695 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1696 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1698 [% IF OpenLibraryCovers %]
1699 KOHA.OpenLibrary.GetCoverFromIsbn();
1701 [% IF OPACLocalCoverImages %]
1702 KOHA.LocalCover.GetCoverFromBibnumber(true);
1708 [% END # /IF ( OPACShelfBrowser ) %]
1710 [% IF ( OpacStarRatings != 'disable' ) %]
1711 // -----------------------------------------------------
1712 // star-ratings code
1713 // -----------------------------------------------------
1714 // hide 'rate' button if javascript enabled
1716 $('input[name="rate_button"]').remove();
1718 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1719 $('#star_rating').barrating({
1720 theme: 'fontawesome-stars',
1721 showSelectedRating: false,
1723 deselectable: false,
1724 readonly: rating_enabled,
1725 onSelect: function(value, text) {
1726 $("#rating-loading").show();
1727 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1728 rating_old_value: $("#rating_value").attr("value"),
1729 borrowernumber: "[% borrowernumber | html %]",
1730 biblionumber: "[% biblio.biblionumber | html %]",
1731 rating_value: value,
1733 }, function (data) {
1734 $("#rating_value").val(data.rating_value);
1735 if (data.rating_value) {
1736 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1737 $("#cancel_rating_text").show();
1739 $("#rating_value_text").text('');
1740 $("#cancel_rating_text").hide();
1742 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1743 $("#rating-loading").hide();
1748 $("#cancel_rating_text a").on("click", function(e){
1750 $("#star_rating").barrating("set", "");
1753 [% END # / IF ( OpacStarRatings != 'disable' )%]
1756 $(document).ready(function() {
1757 if( OPACPopupAuthorsSearch == "1" ){
1761 "keyword_search" : "au:",
1764 "label" : "subject",
1765 "keyword_search" : "su:",
1768 $(".contributors,.subject").on("click", function(e){
1770 var term = $(this).attr("class");
1771 var selected_term = $(this).text();
1772 var term_links = $("." + term );
1773 if( term_links.length > 1 ){
1774 term_links.each(function( index ){
1776 var preselected = false;
1777 var search_label = $(this).text().trim();
1778 if( $(this).text() == selected_term ){ preselected = true }
1779 if( $(this).hasClass("authority_link") ){
1780 authid = $(this).data("authid");
1781 search_string = "an:" + authid;
1783 search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label );
1785 var termLink = $("<li>")
1786 .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) )
1788 .append( $("<label>", { for: terms[term]["label"] + index, text: search_label } ) )
1789 $("#termsList").append( termLink );
1790 $("#multiSearch").modal("show");
1793 location.href = $(this).attr("href");
1797 $("#multiSearch").on("hide.bs.modal", function(){
1798 $("#termsList").html("");
1801 $(".check_all").on("click", function(e){
1803 $(".select_term").each(function(){
1804 $(this).prop("checked", true );
1808 $(".check_none").on("click", function(e){
1810 $(".select_term").each(function(){
1811 $(this).prop("checked", false );
1815 $("#validMultiSearch").on("click", function(e){
1817 multiSearchRequest();
1819 } /* if( OPACPopupAuthorsSearch == "1" ) */
1822 function multiSearchRequest(){
1824 $(".select_term").each(function(){
1825 if( $(this).prop("checked") ){
1826 values.push( $(this).val() );
1830 if (values.length > 0) {
1831 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1832 location.href = request;