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 = '' %]
17 [% ShowCourseReservesHeader = 0 %]
18 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
19 [% FOREACH ITEM_RESULT IN itemloop %]
20 [% IF ITEM_RESULT.course_reserves %]
21 [% FOREACH r IN ITEM_RESULT.course_reserves %]
22 [% IF r.course.enabled == 'yes' %]
23 [% ShowCourseReservesHeader = 1 %]
30 [% INCLUDE 'doc-head-open.inc' %]
31 <title>Details for: [% INCLUDE 'biblio-title-head.inc' %] › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
32 [% INCLUDE 'doc-head-close.inc' %]
33 [% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %]
34 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
35 [% Asset.css("lib/verovio/midiplayer.css") | $raw %]
37 [% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
39 [% BLOCK cssinclude %][% END %]
40 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
41 [% INCLUDE 'masthead.inc' %]
44 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
45 <ol class="breadcrumb">
46 <li class="breadcrumb-item">
47 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
49 <li class="breadcrumb-item active">
50 <a href="#" aria-current="page"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a>
53 </nav> <!-- /#breadcrumbs -->
55 <div class="container-fluid">
57 <div class="col-lg-9">
58 <div id="catalogue_detail_biblio" class="maincontent" data-biblionumber="[% biblio.biblionumber | html %]">
60 <div class="bookcover">
62 <div id="biblio-cover-slider" class="cover-slider">
63 [% IF ( OPACLocalCoverImages ) %]
64 [% IF localimages.count %]
65 [% FOREACH image IN localimages %]
66 <div class="cover-image local-coverimg">
67 <a href="/cgi-bin/koha/opac-image.pl?imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
68 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" data-link="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" />
70 <div class="hint">Local cover image</div>
76 [% IF ( OPACAmazonCoverImages && normalized_isbn) %]
77 <div class="cover-image" id="amazon-bookcoverimg">
78 <a href="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.LZZZZZZZ.jpg" title="Amazon cover image">
79 <img src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | uri %].01.MZZZZZZZ.jpg" alt="Amazon cover image" data-link="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link"/>
81 <div class="hint">Image from Amazon.com</div>
85 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
86 [% IF ( content_identifier_exists ) %]
87 <div class="cover-image" id="syndetics-coverimg">
88 <a href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | uri %]/[% SyndeticsCoverImageSize | uri %].GIF&amp;client=[% SyndeticsClientCode | uri %]&type=xw10&upc=[% normalized_upc | uri %]&oclc=[% normalized_oclc | uri %]" title="Syndetics cover image">
89 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | uri %]/[% SyndeticsCoverImageSize | uri %].GIF&amp;client=[% SyndeticsClientCode | uri %]&type=xw10&upc=[% normalized_upc | uri %]&oclc=[% normalized_oclc | uri %]" alt="Syndetics cover image" />
91 <div class="hint">Image from Syndetics</div>
96 [% IF ( GoogleJackets ) %]
97 <div class="cover-image" id="googlejacket-coverimg">
98 <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview" data-use-data-link="1"></div>
99 <div class="hint">Image from Google Jackets</div>
103 [% IF ( Koha.Preference('OPACCoce') && Koha.Preference('CoceProviders') && normalized_isbn ) %]
104 [% coce_id = normalized_ean || normalized_isbn %]
105 <div class="cover-image" id="coce-coverimg">
107 <a title="Image from Coce" class="[% coce_id | html %]" id="coce-thumbnail-preview"></a>
109 <div class="hint">Image from Coce</div>
113 [% IF OpenLibraryCovers %]
114 <div class="cover-image" id="openlibrary-coverimg">
115 <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview" data-use-data-link="1"></div>
116 <div class="hint">Image from OpenLibrary</div>
120 [% bt_id = ( normalized_upc || normalized_isbn ) %]
121 [% IF ( BakerTaylorEnabled && bt_id ) %]
122 <div class="cover-image" id="bakertaylor-coverimg">
123 [% IF BakerTaylorBookstoreURL %]
124 <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]">
125 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
128 <a href="[% BakerTaylorImageURL | url %][% bt_id | uri%]">
129 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | url %][% bt_id | uri %]" />
132 <div class="hint">Image from Baker & Taylor</div>
136 [% IF Koha.Preference('OPACCustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
137 [% SET custom_cover_image_url = biblio.custom_cover_image_url %]
138 [% IF custom_cover_image_url %]
139 <div class="cover-image" id="custom-coverimg">
140 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]" title="Custom cover image">
141 <img id="custom-img" alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
143 <div class="hint">Custom cover image</div>
147 </div> <!-- /.cover-slider -->
149 </div><!-- / .bookcover -->
151 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber | html %]"><!-- unAPI --></abbr>
152 [% IF ( ocoins ) # COinS / Openurl %]
153 <span class="Z3988" title="[% ocoins | html %]"></span>
157 <span class="view current-view"><span id="Normalview"><i class="fa fa-file-text-o" aria-hidden="true"></i> Normal view</span></span>
159 <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>
162 <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>
166 [% XSLTBloc | $raw %]
168 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]
169 <span class="results_summary itemtype"><span class="label">Item type: </span>
170 [% IF ( imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
171 <img src="[% imageurl | html %]" alt="" />
173 [% IF ( description ) %]
174 [% description | html %]
176 [% itemtype | html %]
181 [% IF ( LibraryThingForLibrariesID ) %]
182 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
183 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
184 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
185 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
186 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
188 <span class="results_summary">
189 <span class="label">Reviews from LibraryThing.com:</span>
190 <span style="display: block;" class="ltfl_reviews"></span>
192 [% END # / LibraryThingForLibrariesID %]
194 [% IF shelves.count %]
195 <!--This grabs all of the lists a bib record appears in -->
196 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
197 [% FOREACH s IN shelves %]
198 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
199 [% IF ( loop.last ) %][% ELSE %]|[% END %]
204 [% IF ( TagsShowEnabled ) %]
205 <div class="results_summary tags">
207 <span class="label">Tags from this library:</span>
209 [% FOREACH TagLoo IN TagLoop %]
210 <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>
211 [% IF ( loop.last ) %][% ELSE %], [% END %]
216 <span class="label">Tags from this library:</span>
217 <span class="notags">No tags from this library for this title.</span>
218 [% END # / IF ( TagLoop )%]
219 [% IF ( TagsInputEnabled ) %]
220 [% IF ( loggedinusername ) %]
221 <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>
223 <span class="login4tags">
224 [% IF Koha.Preference('casAuthentication') %]
225 [%# CAS authentication is too complicated for modal window %]
226 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
228 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
231 [% END # / IF ( loggedinusername ) %]
232 [% END # / IF ( TagsInputEnabled ) %]
233 </div> <!-- /.results_summary.tags -->
234 [% END # /IF TagsShowEnabled %]
236 [% IF ( TagsInputEnabled ) %]
237 [% IF ( loggedinusername ) %]
238 <form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
239 <legend class="sr-only">Tags</legend>
240 <div class="form-row">
242 <label for="newtag[% biblio.biblionumber | html %]">New tag(s), separated by a comma:</label>
243 </div> <!-- /.col-3 -->
245 <p class="emoji-picker-container">
247 name="newtag[% biblio.biblionumber | html %]"
248 id="newtag[% biblio.biblionumber | html %]"
251 data-emojiable="true"
252 data-emoji-input="unicode">
254 </div> <!-- /.col-6 -->
255 <div class="col-auto">
256 <input name="tagbutton" class="btn btn-sm btn-primary tagbutton" title="[% biblio.biblionumber | html %]" type="submit" value="Add" />
257 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber | html %]" href="#">(done)</a>
258 <span id="newtag[% biblio.biblionumber | html %]_status" class="tagstatus" style="display:none;">
261 </div> <!-- /.col-auto -->
262 </div> <!-- /.form-row -->
264 [% END # / IF ( loggedinusername ) %]
265 [% END # / IF TagsInputEnabled %]
267 [% IF ( SyndeticsEnabled ) %]
268 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
269 <span class="results_summary">
270 <span class="label">Series information:</span>
271 <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>
273 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
274 [% IF ( SyndeticsAVPROFILEExists ) %]
275 <span class="results_summary">
276 <span class="label">Audiovisual profile:</span>
277 <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>
279 [% END # / IF SyndeticsAVPROFILEExists %]
281 [% IF ( SyndeticsFICTIONExists ) %]
282 <span class="results_summary">
283 <span class="label">Fiction notes:</span>
284 <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>
286 [% END # / IF SyndeticsFICTIONExists %]
288 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
289 <span class="results_summary">
290 <span class="label">Awards:</span>
291 <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>
293 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
294 [% END # / IF SyndeticsEnabled%]
296 [%# Following on one line due to translation issues %]
297 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
299 [% IF ( OpacStarRatings != 'disable' ) %]
300 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
301 <legend class="sr-only">Star ratings</legend>
302 <div class="results_summary ratings">
304 [% SET rating_avg = ratings.get_avg_rating() %]
305 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
307 [% IF ( borrowernumber ) %]
308 <select id="star_rating" name="rating" data-rating-enabled="1" autocomplete="off">
310 <select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off">
312 [% IF ( rating_avg_int == 0 ) %]
313 <option value="" selected="selected"></option>
315 [% FOREACH i IN [ 1 2 3 4 5 ] %]
316 [% IF rating_avg_int == i %]
317 <option value="[% i | html %]" selected="selected">[% i | html %]</option>
319 <option value="[% i | html %]">[% i | html %]</option>
323 <img id="rating-loading" style="display:none" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" alt="" />
325 <!-- define some hidden vars for ratings -->
327 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber | html %]" />
328 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value | html %]" />
330 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
333 <span id="rating_value_text">Your rating: [% my_rating.rating_value | html %].</span>
334 <span id="cancel_rating_text"><a href="#"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating</a>.</span>
336 <span id="rating_value_text"></span>
337 <span id="cancel_rating_text" style="display:none;"><a href="#"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating</a>.</span>
340 <span id="rating_text">Average rating: [% rating_avg | html %] ([% ratings.count | html %] votes)</span>
343 [% END # / IF OpacStarRatings != 'disable' %]
345 [% IF ( BakerTaylorContentURL ) %]
346 <span class="results_summary">
347 <span class="label">Enhanced content: </span>
348 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL | url %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL | url %]">Content Cafe</a>[% END %]
350 [% END # / IF BakerTaylorContentURL %]
352 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
353 [% IF ( NovelistSelectView == 'above') %]
354 <span class="results_summary NovelistSelect" style="display:none;">
355 <span class="label">Novelist Select: </span>
356 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
360 [% END # / IF NovelistSelectProfile %]
362 [% IF ( Babeltheque ) %]
363 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn | html %]"/>
364 <div id="BW_notes"></div>
365 <div id="BW_critiques"></div>
366 <div id="BW_critiques_pro"></div>
367 <div id="BW_citations"></div>
368 [% END # / IF Babeltheque%]
370 </div> <!-- / #catalogue_detail_biblio -->
372 <div id="bibliodescriptions" class="toptabs">
374 [% IF ( defaulttab == 'holdings' ) %]
375 <li id="tab_holdings" class="ui-tabs-active">
377 <li id="tab_holdings">
379 [% BLOCK holding_tab_title %]
380 [% IF SeparateHoldings %]
381 <span>[% Branches.GetLoggedInBranchname | html %] holdings</span>
383 [% IF specific_item %]
384 <span>Item details</span>
386 <span>Holdings</span>
390 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
392 [% IF (SeparateHoldings) %]
393 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
395 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
396 [% SET title_notes_count = 0 %]
398 [% SET title_notes_count = MARCNOTES.size %]
400 [% SET title_notes_count = 1 %]
402 [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
403 <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
405 [% IF ( ComponentParts ) %]
406 [% IF defaulttab == 'components' %]
407 <li id="tab_components" class="ui-tabs-active">
409 <li id="tab_components">
411 <a href="#components">Components ([% ( ComponentParts.size || 1 ) %])</a>
414 [% IF ( SYNDETICS_TOC ) %]
415 <li id="tab_toc"> <a href="#toc">TOC</a></li>
417 [% IF ( SyndeticsEnabled ) %]
418 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
419 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
421 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
422 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
423 [% IF ( LibraryThingForLibrariesID ) %]
424 <li id="tab_LTFLreviews">
425 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
426 <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>
430 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
431 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
433 [% END # / IF SyndeticsEnabled %]
435 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
436 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
437 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
440 [% IF ( subscriptionsnumber ) %]
441 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
442 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber | html %] )</a>
446 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
447 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a></li>
450 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
451 [% IF ( NovelistSelectView == 'tab') %]
452 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
456 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
457 <li id="tab_editions"><a href="#editions">Editions</a></li>
460 [% IF ( serialcollection ) %]
461 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
462 <a href="#serialcollection">Serial collection</a>
466 [% IF ( OPACLocalCoverImages && localimages.count ) %]
467 <li id="tab_images"><a href="#images">Images</a></li>
470 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
471 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
476 [% IF ( serialcollection ) %]
477 <div id="serialcollection">
478 <table id="serialcollectiont" class="table table-bordered table-striped">
479 <caption class="sr-only">Serial collections</caption>
482 <th id="serial_library">Library</th>
483 <th id="serial_collection">Serial collection</th>
484 <th id="serial_itemcallnumber">Item call number</th>
488 [% FOREACH serialcollection IN serialcollections %]
490 <td>[% serialcollection.branch | html %]</td>
491 <td>[% serialcollection.text | html %]</td>
492 <td>[% serialcollection.itemcallnumber | html %]</td>
497 </div> <!-- /#serialcollection -->
498 [% END # / IF serialcollection %]
502 [% IF too_many_items %]
503 <p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&viewallitems=1">View all the physical items.</a></p>
504 [% ELSIF ( itemloop.size ) %]
505 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
506 [% IF specific_item %]
507 <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
509 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
510 [% IF acquisition_details.total_quantity == 1 %]
511 <span>1 item is on order.</span>
513 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
516 [% IF holds_count.defined || priority %]
518 [% IF holds_count.defined %]
519 <span>Total holds: [% holds_count | html %]</span>
522 [% IF holds_count.defined %]
523 <span>(priority [% priority | html %])</span>
525 <span>Overall queue priority: [% priority | html %]</span>
531 [% END # /IF specific_item %]
533 [% IF ( ALTERNATEHOLDINGS ) %]
534 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
535 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
538 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
539 [% IF acquisition_details.total_quantity == 1 %]
540 <span>1 item is on order.</span>
542 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
545 <div id="noitems">No physical items for this record</div>
548 [% END # IF itemloop.size %]
549 [% PROCESS 'shelfbrowser.inc' %]
550 [% INCLUDE shelfbrowser tab='holdings' %]
551 <br style="clear:both;" />
552 </div> <!-- / #holdings -->
554 [% IF (SeparateHoldings) %]
555 <div id="otherholdings">
556 [% IF (otheritemloop.size) %]
557 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
559 <span>No other items.</span>
561 [% INCLUDE shelfbrowser tab='otherholdings' %]
563 [% END # / SeparateHoldings %]
565 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
566 <div id="descriptions">
567 <div class="content_set">
569 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
570 <h2>Enhanced descriptions from Syndetics:</h2>
571 <p>[% SYNDETICS_SUMMARY | $raw %]</p>
574 [% IF ( MARCNOTES ) %]
576 [% FOREACH MARCNOTE IN MARCNOTES %]
578 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
579 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
581 [% MARCNOTE.marcnote | html | html_line_break %]
588 <p>[% notes | html %]</p>
592 </div> <!-- /.content_set -->
593 </div> <!-- / #descriptions -->
594 [% END # / IF MARCNOTES || notes %]
596 [% IF ComponentParts.size %]
597 <div id="components">
598 <div class="content_set">
600 [% FOR PART IN ComponentParts %]
612 [% IF ( SyndeticsEnabled ) %]
613 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
615 <div class="content_set">
616 <h2>Table of contents provided by Syndetics</h2>
618 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
619 <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
624 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
626 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
628 <div class="content_set">
629 <h2>Excerpt provided by Syndetics</h2>
630 [% SYNDETICS_EXCERPT | $raw %]
633 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
635 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
637 <div class="content_set">
638 <h2>Reviews provided by Syndetics</h2>
639 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
640 [% IF ( SYNDETICS_REVIEW.title ) %]
641 <h3>[% SYNDETICS_REVIEW.title | html %]</h3>
642 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
644 [% IF ( review.content ) %]
645 [% review.content | $raw %]
653 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
655 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
657 <div class="content_set">
658 <h2>Author notes provided by Syndetics</h2>
659 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
660 [% IF ( SYNDETICS_ANOTE.content ) %]
661 [% SYNDETICS_ANOTE.content | $raw %]
666 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
667 [% END # / IF SyndeticsEnabled %]
669 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
670 <div id="NovelistSelect" >
671 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
673 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
675 [% IF ( subscriptionsnumber ) %]
676 <div id="subscriptions">
677 <h2>This is a serial</h2>
678 <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
679 [% FOREACH subscription IN subscriptions %]
680 <div class="subscription">
681 [% IF ( subscription.branchcode ) %]
682 <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
684 [% IF ( subscription.branchcode ) %]
685 <h3>At library: [% subscription.branchcode | html %]</h3>
688 [% IF ( subscription.closed ) %]
689 <p class="subscription_closed">This subscription is closed.</p>
691 [% IF ( subscription.location ) %]
692 <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
694 [% IF ( subscription.callnumber ) %]
695 <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
697 [% IF ( subscription.subscriptionnotes ) %]
698 <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
700 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
701 [% IF ( subscription.letter ) %]
702 <span class="email_notifications">
703 [% IF ( loggedinusername ) %]
704 [% IF ( subscription.hasalert ) %]
705 <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>
707 <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>
710 <span>You must log in if you want to subscribe to email notification on new issues</span>
714 [% IF ( subscription.missinglist ) %]
715 <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
717 [% IF ( subscription.opacnote ) %]
718 <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
720 [% IF ( subscription.latestserials ) %]
721 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
722 <table class="table table-bordered table-striped" id="subscriptionst">
723 <caption class="sr-only">Latest serials</caption>
726 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
727 <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
728 <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
729 <th id="serial_status" data-colname="serial_status">Status</th>
730 <th id="serial_notes" data-colname="serial_notes">Note</th>
734 [% FOREACH latestserial IN subscription.latestserials %]
736 <td class="serialseq">[% latestserial.serialseq | html %]</td>
737 <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
738 <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
739 <td class="serial_status">
740 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
741 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
742 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
743 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
744 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
745 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
746 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
747 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
748 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
749 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
750 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
751 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
753 <td class="serial_notes">[% latestserial.notes | html %]</td>
755 [% END # / FOREACH latestserials %]
758 [% END # / IF subscription.latestserials %]
760 [% END # / FOREACH subscriptions %]
761 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
762 </div> <!-- / #subscriptions -->
763 [% END # IF subscriptionsnumber %]
765 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
766 <!-- Library Thing for Libraries Content -->
767 <div id="LFTLSimilarItems">
768 <div class="content_set">
769 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
770 <!-- but breaks Xhtml validation -->
771 <!-- <span class="results_summary">-->
772 <div id="ltfl_related"></div>
773 <div id="ltfl_similars"></div>
777 <div id="LTFLTagBrowse">
778 <div class="content_set">
779 <!-- <span class="results_summary"> -->
780 <div id="ltfl_tagbrowse" class="ltfl"></div>
784 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
786 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
788 <div id="newcomment"></div>
790 [% FOREACH review IN reviews %]
791 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
792 <div class="commentline yours" id="c[% review.reviewid | html %]">
793 [% IF ( review.avatarurl ) %]
794 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
796 [% IF review.approved %]
797 <h2 id="comment">Your comment</h2>
799 <h2 id="comment">Your comment (preview, pending approval)</h2>
801 <small>[% review.datereviewed | $KohaDates %]</small>
803 [% FILTER html_break %]
804 [% review.review | html %]
806 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a>
810 <div class="commentline">
811 [% IF ( ShowReviewer != "none" && review.patron) %]
813 [% IF ( review.avatarurl ) %]
814 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
816 [% SWITCH ShowReviewer %]
818 <h2 id="comment">Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h2>
820 <h2 id="comment">Comment by [% review.patron.firstname | html %]</h2>
822 <h2 id="comment">Comment by [% review.patron.surname | html %]</h2>
823 [% CASE 'firstandinitial' %]
824 <h2 id="comment">Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h2>
825 [% CASE 'username' %]
826 <h2 id="comment">Comment by [% review.patron.userid | html %]</h2>
829 <small>[% review.datereviewed | $KohaDates %]</small>
831 <h2 id="comment">Patron comment on [% review.datereviewed | $KohaDates %]</h2>
832 [% END # / IF ShowReviewer != "none" && review.patron %]
834 [% FILTER html_break %]
835 [% review.review | html %]
838 </div> <!-- / .commentline -->
840 [% END # / FOREACH reviews %]
842 <p>There are no comments on this title.</p>
843 [% END # / IF reviews %]
845 [% IF ( loggedinusername ) %]
846 [% UNLESS ( loggedincommenter ) %]
847 <div id="addcomment">
848 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
849 Post your comments on this title.
854 <div id="addcomment">
855 <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.
857 [% END # / IF loggedinusername %]
858 </div> <!-- / #comments -->
859 [% END # / IF OPACComments %]
861 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
863 <h2>Other editions of this work</h2>
864 <table class="table table-bordered table-striped">
865 <caption class="sr-only">Other editions</caption>
866 [% FOREACH XISBN IN XISBNS %]
869 [% IF ( OPACAmazonCoverImages ) %]
870 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
873 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
874 [% IF ( XISBN.content_identifier_exists ) %]
875 <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="" />
877 <span class="no-image">No cover image available</span>
878 [% END # / IF XISBN.content_identifier_exists %]
879 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
882 [% UNLESS ( item_level_itypes ) %]
883 <td>[% XISBN.description | html %]</td>
886 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
887 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
888 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
889 [% IF ( XISBN.publishercode ) %]
890 <p>[% XISBN.publishercode | html %]
891 [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
892 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
893 [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
898 [% END # / FOREACH XISBNS %]
900 </div> <!-- / #editions -->
901 [% END # / IF OPACFRBRizeEditions && XISBNS %]
903 [% IF ( HTML5MediaEnabled ) %]
904 <div id="html5media">
905 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
907 [% IF HTML5MediaSet.is_youtube %]
908 <iframe id="player" type="text/html" width="640" height="360"
909 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
911 [% SET ctrl_preload = ' controls preload=none' #translatability %]
912 <[% HTML5MediaParent _ ctrl_preload | html %] >
913 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
914 <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
915 </[% HTML5MediaParent | html %]>
920 [% END # / IF HTML5MediaEnabled %]
922 [% IF ( OPACLocalCoverImages && localimages.count ) %]
924 <p>Click on an image to view it in the image viewer</p>
925 [% FOREACH image IN localimages %]
926 <a href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
927 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
930 </div><!-- / #images -->
931 [% END # / IF OPACLocalCoverImages && localimages.size %]
933 </div> <!-- / #bibliodescriptions -->
935 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
936 <div id="NovelistSelect">
937 <h2>Novelist Select</h2>
938 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
942 [% IF ( Babeltheque ) %]
944 <div id="BW_etiquettes"></div>
945 <div id="BW_suggestions"></div>
947 <div class="clearfix"></div>
949 <div id="BW_podcasts"></div>
951 <div class="clearfix"></div>
953 <div id="BW_videos"></div>
955 [% END # / IF Babeltheque %]
957 </div> <!-- /.col-lg-10 -->
959 <div class="col-lg-3">
960 <div id="ulactioncontainer">
962 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
963 <div class="nav_results">
964 <div class="l_Results" style="display:none;">
965 [% IF ( listResults ) %]
966 <a href="#" id="a_listResults"><i class="fa fa-bars" aria-hidden="true"></i> Browse results</a>
968 <span><i class="fa fa-bars" aria-hidden="true"></i> Browse results</span>
970 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
973 <div class="pg_menu">
974 <div class="pg_link left_results">
975 [% IF ( previousBiblionumber ) %]
976 <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>
978 <span>Previous</span>
981 [%# busc is already URI encoded %]
982 <div class="pg_link back_results">
983 <a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a>
985 <div class="pg_link right_results">
986 [% IF ( nextBiblionumber ) %]
987 <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>
992 </div> <!-- /.pg_menu -->
994 [% IF ( listResults ) %]
995 <div class="results-pagination">
996 <div class="nav_pages">
997 <ul id="listResults">
998 [% FOREACH listitem IN listResults %]
999 [% IF ( listitem.biblionumber == biblionumber ) %]
1000 <li class="li_pag_[% loop.count | html %] highlight">
1002 <li class="li_pag_[% loop.count | html %]">
1004 <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>
1006 [% END # /FOREACH listitem %]
1007 </ul> <!-- /#listResults -->
1008 </div> <!-- /.nav_pages -->
1009 <div class="pagination_list">
1010 <ul id="ul_pagination_lists">
1011 [% FOREACH listitem IN listResults %]
1012 [% IF ( listitem.biblionumber == biblionumber ) %]
1013 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1014 <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count + offset | html %]</span>
1015 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]by [% author | html %][% END %]
1018 <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1019 <span class="li_pag_index">[% loop.count + offset | html %]</span>
1020 <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 %]
1022 [% END # /IF listitem.biblionumber %]
1023 [% END # /FOREACH listitem %]
1024 </ul> <!-- /#ul_pagination_list -->s
1025 </div> <!-- /.pagination_list -->
1026 </div> <!-- /.results-pagination -->
1027 [% END # /IF ( listResults ) %]
1028 <div class="pagination_footer">
1029 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1031 </div> <!-- /.nav_results -->
1032 [% END # / IF OpacBrowseResults && busc %]
1034 [% INCLUDE 'opac-detail-sidebar.inc' %]
1036 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1037 <div id="NovelistSelect">
1038 <h2>Novelist Select</h2>
1039 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1043 [% IF ( Babeltheque ) %]
1044 <div class="babeltheque_adds">
1045 <div id="BW_critiques_aj"></div>
1046 <div id="BW_citations_aj"></div>
1050 [% IF ( Koha.Preference('SocialNetworks') ) %]
1051 <div id="social_networks" class="clearfix">
1053 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1054 [% FOREACH network IN SocialNetworks.split(",") %]
1055 [% SWITCH network -%]
1056 [% CASE "facebook" -%]
1057 <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>
1058 [% CASE "linkedin" -%]
1059 <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>
1061 <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>
1062 [% CASE "twitter" -%]
1063 <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>
1064 [% END # /SWITCH network -%]
1065 [% END # /FOREACH network %]
1066 </div> <!-- /#social_networks -->
1067 [% END # /IF SocialNetworks %]
1068 </div> <!-- / .ulactioncontainer -->
1069 </div> <!-- / .col-lg-3 -->
1070 </div> <!-- / .row -->
1072 [% IF ( LibraryThingForLibrariesID ) %]
1073 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1074 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1075 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1078 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1079 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1082 [% IF ( Babeltheque ) %]
1083 <script src="[% Babeltheque_url_js | html %]"></script>
1085 </div> <!-- / .row -->
1086 </div> <!-- / .container-fluid -->
1087 </div> <!-- / .main -->
1089 [% IF ( OPACPopupAuthorsSearch ) %]
1091 <div class="modal" id="multiSearch" tabindex="-1" role="dialog" aria-labelledby="multiSearchLabel">
1092 <div class="modal-dialog" role="document">
1093 <div class="modal-content">
1094 <div class="modal-header">
1095 <h1 id="multiSearchLabel">Select the item(s) to search</h1>
1096 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1098 <div class="modal-body">
1099 <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>
1100 <a href="#" class="check_none btn btn-link btn-sm"><i class="fa fa-remove" aria-hidden="true"></i> Select none</a>
1104 <div class="modal-footer">
1105 <button id="validMultiSearch" class="btn btn-primary">Search</button>
1106 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
1108 </div> <!-- /.modal-content -->
1109 </div> <!-- /.modal-dialog -->
1110 </div> <!-- /#myModal -->
1113 [% INCLUDE 'opac-bottom.inc' %]
1115 [%# End of template %]
1117 [% BLOCK items_table %]
1118 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1119 <caption class="sr-only">Holdings</caption>
1123 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1124 <th id="item_cover" data-colname="item_cover">Cover image</th>
1126 [% IF ( item_level_itypes ) %]
1127 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>
1129 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1130 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current library</th>
1132 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1133 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>
1135 [% IF ( itemdata_ccode ) %]
1136 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>
1138 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1139 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>
1141 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1142 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1143 <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>
1145 [% IF ( itemdata_enumchron ) %]
1146 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>
1148 [% IF ( itemdata_uri ) %]
1149 <th id="item_url" data-colname="item_url" class="url">URL</th>
1151 [% IF ( itemdata_copynumber ) %]
1152 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>
1154 <th id="item_status" data-colname="item_status" class="status">Status</th>
1155 [% IF ( itemdata_itemnotes ) %]
1156 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>
1158 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1159 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1160 [% IF holds_count.defined %]
1161 <th id="item_holds" data-colname="item_holds">Item holds</th>
1162 [% ELSIF show_priority %]
1163 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1165 [% IF ( ShowCourseReservesHeader ) %]
1166 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>
1171 [% FOREACH ITEM_RESULT IN items %]
1172 <tr vocab="http://schema.org/" typeof="Offer">
1174 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1176 <div class="bookcover">
1177 <div class="cover-slider">
1178 [% FOR image IN ITEM_RESULT.cover_images %]
1179 <div class="cover-image local-coverimg">
1180 <a href="/cgi-bin/koha/opac-image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
1181 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
1190 [% IF ( item_level_itypes ) %]
1192 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
1193 [% IF ( ITEM_RESULT.imageurl ) %]
1194 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1197 [% ITEM_RESULT.description | html %]
1200 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1201 <td class="location" property="seller">
1202 <link property="itemOffered" href="#record" />
1203 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1204 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1205 [% IF ( ITEM_RESULT.branchurl ) %]
1206 <a href="[% ITEM_RESULT.branchurl | url %]">[% ITEM_RESULT.branchname | html %]</a>
1208 <span>[% ITEM_RESULT.branchname | html %]</span>
1211 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div>
1213 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1214 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1220 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1221 <td class="location" property="seller">
1222 <link property="itemOffered" href="#record" />
1223 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1224 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1225 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1226 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1227 [% IF ( home_branch_url ) %]
1228 <a href="[% home_branch_url | url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</a>
1230 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1233 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1236 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div>
1238 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1239 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1245 [% IF ( itemdata_ccode ) %]
1246 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1249 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1250 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1253 <td class="call_no" property="sku">
1254 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1255 [% ITEM_RESULT.itemcallnumber | html %]
1256 [% IF ( OPACShelfBrowser ) %]
1257 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1258 (<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>)
1260 (<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>)
1266 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1267 <td class="materials">[% ITEM_RESULT.materials | html %]</td>
1270 [% IF ( itemdata_enumchron ) %]
1271 <td class="vol_info">
1272 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1273 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1274 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1275 <span class="sep"> -- </span>
1276 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1278 [% ELSIF ITEM_RESULT.enumchron %]
1279 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1280 [% ELSIF ITEM_RESULT.serialseq %]
1281 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1283 [% IF ( ITEM_RESULT.publisheddate ) %]
1284 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1288 [% IF ( itemdata_uri ) %]
1290 [% IF ITEM_RESULT.uri %]
1291 [%# Initialize two helper vars %]
1292 [% SET target_attr = ''; SET rel_attr = '' %]
1293 [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %]
1295 [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %]
1296 [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %]
1297 [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %]
1298 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1299 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="/cgi-bin/koha/tracklinks.pl?uri=[% uri | uri %]&biblionumber=[% biblio.biblionumber | html %]&itemnumber=[% ITEM_RESULT.itemnumber | html %]" property="url">[% uri | html %]</a>
1301 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% uri | url %]" property="url">[% uri | html %]</a>
1305 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1306 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | html %]&itemnumber=[% ITEM_RESULT.itemnumber | html %]" property="url">
1308 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% ITEM_RESULT.uri | url %]" property="url">
1310 [% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]
1315 [% END # /IF itemdata_uri %]
1316 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1317 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1318 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1319 <td class="date_due" data-order="[% ITEM_RESULT.datedue | html %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</td>
1320 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1321 [% IF holds_count.defined || show_priority %]
1322 <td class="holds_count">
1323 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1324 [% IF ITEM_RESULT.priority %]
1325 [% IF holds_count.defined %]
1326 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1328 <span>[% ITEM_RESULT.priority | html %]</span>
1333 [% IF ShowCourseReservesHeader %]
1335 [% IF ITEM_RESULT.course_reserves %]
1336 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1337 [% IF r.course.enabled == 'yes' %]
1339 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1340 [% r.course.course_name | html %]
1341 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1342 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1343 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1350 [% END # /IF ShowCourseReservesHeader %]
1355 [% END %][%# end of items_table block %]
1357 [% BLOCK jsinclude %]
1358 [% INCLUDE 'datatables.inc' %]
1359 [% INCLUDE 'columns_settings.inc' %]
1360 [% INCLUDE greybox.inc %]
1361 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1363 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1364 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1365 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1368 [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1370 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1372 var interface = "[% interface | html %]";
1373 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1375 [% Asset.js("js/verovio.js") | $raw %]
1377 [% Asset.js("lib/emoji-picker/js/emoji-picker-all.min.js") | $raw %]
1378 [% IF OpenLibraryCovers || OpenLibrarySearch %]
1379 [% Asset.js("js/openlibrary.js") | $raw %]
1383 window.emojiPicker = new EmojiPicker({
1384 emojiable_selector: '[data-emojiable=true]',
1385 assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1386 popupButtonClasses: 'fa fa-smile-o'
1388 window.emojiPicker.discover();
1390 var OPACPopupAuthorsSearch = "[% Koha.Preference('OPACPopupAuthorsSearch') | html %]";
1391 [% IF ( OpacHighlightedWords ) %]
1392 var q_array = new Array(); // holds search terms if available
1394 function highlightOff() {
1395 $("#catalogue_detail_biblio").removeHighlight();
1396 $(".highlight_toggle").toggle();
1398 function highlightOn() {
1400 for (x in q_array) {
1401 if ( q_array[x].length > 0 ) {
1402 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1403 q_array[x] = q_array[x].toLowerCase();
1404 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1405 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1406 $(".title").highlight(q_array[x]);
1407 $(".author").highlight(q_array[x]);
1408 $(".results_summary").highlight(q_array[x]);
1411 $(".highlight_toggle").toggle();
1414 [% END # /IF OpacHighlightedWords %]
1416 function verify_cover_images() {
1417 // Loop over each container in the template which contains covers
1418 $(".cover-slider").each(function( index ){
1419 var lightbox_descriptions = [];
1420 var first_shown = 0;
1421 $(this).find(".cover-image").each( function( index ){
1423 // Find the image in the container
1424 var img = div.find("img")[0];
1425 if( img && $(img).length > 0 ){
1426 var description = "";
1427 if( img.naturalHeight == 0 && div.attr("id") != "googlejacket-coverimg" ){
1428 // No image loaded in the container. Remove the slide
1431 // All slides start hidden. If this is the first one, show it.
1432 if( first_shown == 0 ){
1436 // Check if Amazon image is present
1437 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1440 if ((w == 1) || (h == 1)) {
1441 // Amazon returned single-pixel placeholder
1442 // Remove the container
1445 lightbox_descriptions.push(_("Amazon cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1447 } else if( div.attr("id") == "custom-coverimg" ){
1448 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1449 // No image was loaded via the CustomCoverImages system preference
1450 // Remove the container
1453 lightbox_descriptions.push(_("Custom cover image"));
1455 } else if( div.attr("id") == "syndetics-coverimg" ){
1456 lightbox_descriptions.push(_("Image from Syndetics"))
1457 } else if( div.attr("id") == "googlejacket-coverimg" ){
1458 lightbox_descriptions.push(_("Image from Google Books (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1459 } else if( div.attr("id") == "openlibrary-coverimg" ){
1460 lightbox_descriptions.push(_("Image from OpenLibrary (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1461 } else if( div.attr("id") == "coce-coverimg" ){
1462 // Identify which service's image is being loaded by Coce
1463 var coce_description;
1464 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1465 coce_description = _("Coce image from Amazon.com");
1466 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1467 coce_description = _("Coce image from Google Books");
1468 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1469 coce_description = _("Coce image from Open Library");
1471 div.find(".hint").html(coce_description);
1472 lightbox_descriptions.push(coce_description);
1473 } else if ( div.attr("id") == "bakertaylor-coverimg" ){
1474 lightbox_descriptions.push(_("Image from Baker & Taylor"));
1475 } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1476 lightbox_descriptions.push(_("Local cover image"));
1478 lightbox_descriptions.push(_("Cover image source unknown"));
1486 // Lightbox for cover images
1487 Chocolat(this.querySelectorAll('.cover-image a'), {
1488 description: function(){
1489 return lightbox_descriptions[this.settings.currentImageIndex];
1495 $(".cover-slider").each(function(){
1496 var coverSlide = this;
1497 var coverImages = $(this).find(".cover-image");
1498 if( coverImages.length > 1 ){
1499 coverImages.each(function( index ){
1500 // If more that one image is present, add a navigation link
1501 // for activating the slide
1502 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1504 // Set the first navigation link as active
1505 $(covernav).addClass("nav-active");
1507 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1508 $(coverSlide).append( covernav );
1512 if( $(coverSlide).find(".cover-image:visible").length < 1 ){
1513 $(coverSlide).remove();
1515 $(coverSlide).addClass("cover-slides");
1519 $(".cover-slider").on("click",".cover-nav", function(e){
1521 var cover_slider = $(this).parent();
1522 // Adding click handler for cover image navigation links
1523 var num = $(this).data("num");
1524 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1525 $(this).addClass("nav-active");
1526 $(cover_slider).find(".cover-image").hide();
1527 $(cover_slider).find(".cover-image").eq( num ).show();
1530 $("#editions img").each(function(i){
1531 if ( this.src.indexOf('amazon.com') >= 0 ) {
1534 if ((w == 1) || (h == 1)) {
1535 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1536 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1537 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1541 } /* /verify_images */
1543 function wait_for_images(cb){
1547 [% IF GoogleJackets %]
1549 loaded = KOHA.Google.done;
1553 [% IF OpenLibraryCovers %]
1555 loaded = KOHA.OpenLibrary.done;
1559 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1561 loaded = KOHA.coce.done;
1566 window.setTimeout(function(){wait_for_images(cb);}, 100);
1572 $(window).load(function() {
1573 wait_for_images(verify_cover_images);
1576 $(document).ready(function() {
1578 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1585 text: location.href,
1588 document.getElementById("qrcode").appendChild( qrcode );
1591 $(".show_qrcode").on("click", function(){
1592 var qrcodeImg = $("#qrcode");
1593 if( qrcodeImg.hasClass("d-none") ){
1594 qrcodeImg.removeClass("d-none");
1596 qrcodeImg.addClass("d-none");
1599 [% END # /IF OPACDetailQRCode %]
1601 $('#bibliodescriptions').tabs();
1602 $(".branch-info-tooltip-trigger").uitooltip({
1603 position: { my: "left+15 center", at: "right center" },
1606 content: function(){
1607 var element = $(this).next("div");
1608 return element.html();
1612 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1613 $(".l_Results").show();
1614 $("#a_listResults").on("click", function(e){
1616 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1619 $(".close_pagination").on("click", function(e){
1621 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1623 [% END # /IF OpacBrowseResults %]
1625 var columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1627 KohaTable("#holdingst", {
1628 dom: '<"clearfix">t',
1630 { "targets": [ -1 ], "sortable": false, "searchable": false },
1632 "bKohaColumnsUseNames": true,
1634 }, columns_settings);
1636 KohaTable("#otherholdingst", {
1637 dom: '<"clearfix">t',
1639 { "targets": [ -1 ], "sortable": false, "searchable": false },
1641 "bKohaColumnsUseNames": true,
1643 }, columns_settings);
1645 var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1647 KohaTable("#subscriptionst", {
1648 dom: '<"clearfix">t',
1649 "sorting": [[ 1, "desc" ]],
1651 "bKohaColumnsUseNames": true
1652 }, serial_column_settings);
1654 [% IF ( TagsInputEnabled && loggedinusername ) %]
1655 $(".tag_add").click(function(){
1656 var thisid = $(this).attr("id");
1657 thisid = thisid.replace("tag_add","");
1659 $("#tagform"+thisid).show();
1660 $("#newtag"+thisid).focus();
1661 $("#newtag"+thisid+"_status").empty().hide();
1664 $(".cancel_tag_add").click(function(){
1665 var thisid = $(this).attr("id");
1666 thisid = thisid.replace("cancel","");
1667 $("#tagform"+thisid).hide();
1668 $("#tag_add"+thisid).show();
1669 $("#newtag"+thisid).val("");
1670 $("#newtag"+thisid+"_status").empty().hide();
1673 $(".tagbutton").click(function(){
1674 var thisid = $(this).attr("title");
1675 var tag = $("#newtag"+thisid).val();
1676 if (!tag || (tag == "")) {
1677 alert(MSG_NO_TAG_SPECIFIED);
1680 KOHA.Tags.add_tag_button(thisid, tag);
1685 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1686 [% 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 %]
1687 var default_order_index = 1;
1688 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1689 var default_order_index = 2;
1691 var default_order_index = 0;
1694 [% IF ( query_desc ) %]
1695 [% IF ( OpacHighlightedWords ) %]
1696 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1697 q_array = query_desc.split(" ");
1698 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1700 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1701 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});
1705 [% IF ( GoogleJackets ) %]
1706 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1709 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1710 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1713 [% IF OpenLibraryCovers %]
1714 KOHA.OpenLibrary.GetCoverFromIsbn();
1717 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1718 novSelect.loadContentForQuery(
1720 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1721 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1724 '[% NovelistSelectProfile | html %]',
1725 '[% NovelistSelectPassword | html %]',
1727 if ( d.length > 0 ){ //If no content
1728 $(".NovelistSelect").show();
1733 [% IF ( OPACShelfBrowser ) %]
1734 // Focus on shelf browser if present
1735 var shelfbrowser = $("#shelfbrowser");
1736 if (shelfbrowser.length > 0) {
1737 $('html,body').animate({
1738 scrollTop: shelfbrowser.first().offset().top
1741 shelfbrowser.first().find(':focusable').eq(0).focus();
1744 (function prepareShelfBrowser(){
1746 $(".main").on("click",".close_shelf",function(e){
1748 $("#shelfbrowser").toggle();
1750 $(".main").on("click", "#browser_previous a", function(e){
1753 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1756 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1758 success: function(data){
1759 $("#shelfbrowser").replaceWith(data);
1760 [% IF ( GoogleJackets ) %]
1761 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1763 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1764 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1766 [% IF OpenLibraryCovers %]
1767 KOHA.OpenLibrary.GetCoverFromIsbn();
1769 [% IF OPACLocalCoverImages %]
1770 KOHA.LocalCover.GetCoverFromBibnumber(true);
1776 $(".main").on("click", "#browser_next a", function(e){
1779 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1782 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1784 success: function(data){
1785 $("#shelfbrowser").replaceWith(data);
1786 [% IF ( GoogleJackets ) %]
1787 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1789 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1790 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1792 [% IF OpenLibraryCovers %]
1793 KOHA.OpenLibrary.GetCoverFromIsbn();
1795 [% IF OPACLocalCoverImages %]
1796 KOHA.LocalCover.GetCoverFromBibnumber(true);
1802 [% END # /IF ( OPACShelfBrowser ) %]
1804 [% IF ( OpacStarRatings != 'disable' ) %]
1805 // -----------------------------------------------------
1806 // star-ratings code
1807 // -----------------------------------------------------
1808 // hide 'rate' button if javascript enabled
1810 $('input[name="rate_button"]').remove();
1812 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1813 $('#star_rating').barrating({
1814 theme: 'fontawesome-stars',
1815 showSelectedRating: false,
1817 deselectable: false,
1818 readonly: rating_enabled,
1819 onSelect: function(value, text) {
1820 $("#rating-loading").show();
1821 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1822 rating_old_value: $("#rating_value").attr("value"),
1823 borrowernumber: "[% borrowernumber | html %]",
1824 biblionumber: "[% biblio.biblionumber | html %]",
1825 rating_value: value,
1827 }, function (data) {
1828 $("#rating_value").val(data.rating_value);
1829 if (data.rating_value) {
1830 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1831 $("#cancel_rating_text").show();
1833 $("#rating_value_text").text('');
1834 $("#cancel_rating_text").hide();
1836 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1837 $("#rating-loading").hide();
1842 $("#cancel_rating_text a").on("click", function(e){
1844 $("#star_rating").barrating("set", "");
1847 [% END # / IF ( OpacStarRatings != 'disable' )%]
1850 $(document).ready(function() {
1851 if( OPACPopupAuthorsSearch == "1" ){
1855 "keyword_search" : "au:",
1858 "label" : "subject",
1859 "keyword_search" : "su:",
1862 $(".contributors,.subject").on("click", function(e){
1864 var term = $(this).attr("class");
1865 var selected_term = $(this).text();
1866 var term_links = $("." + term );
1867 if( term_links.length > 1 ){
1868 term_links.each(function( index ){
1870 var preselected = false;
1871 var search_label = $(this).text().trim();
1872 if( $(this).text() == selected_term ){ preselected = true }
1873 if( $(this).hasClass("authority_link") ){
1874 authid = $(this).data("authid");
1875 search_string = "an:" + authid;
1877 search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label );
1879 var termLink = $("<li>")
1880 .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) )
1882 .append( $("<label>", { for: terms[term]["label"] + index, text: search_label } ) )
1883 $("#termsList").append( termLink );
1884 $("#multiSearch").modal("show");
1887 location.href = $(this).attr("href");
1891 $("#multiSearch").on("hide.bs.modal", function(){
1892 $("#termsList").html("");
1895 $(".check_all").on("click", function(e){
1897 $(".select_term").each(function(){
1898 $(this).prop("checked", true );
1902 $(".check_none").on("click", function(e){
1904 $(".select_term").each(function(){
1905 $(this).prop("checked", false );
1909 $("#validMultiSearch").on("click", function(e){
1911 multiSearchRequest();
1913 } /* if( OPACPopupAuthorsSearch == "1" ) */
1916 function multiSearchRequest(){
1918 $(".select_term").each(function(){
1919 if( $(this).prop("checked") ){
1920 values.push( $(this).val() );
1924 if (values.length > 0) {
1925 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1926 location.href = request;