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 || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
396 [% SET title_notes_count = 0 %]
398 [% SET title_notes_count = MARCNOTES.size %]
400 [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
401 <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
403 [% IF ComponentParts && ComponentParts.size %]
404 [% IF defaulttab == 'components' %]
405 <li id="tab_components" class="ui-tabs-active">
407 <li id="tab_components">
409 <a href="#components">Components ([% ComponentParts.size | html %])</a>
412 [% IF ( SYNDETICS_TOC ) %]
413 <li id="tab_toc"> <a href="#toc">TOC</a></li>
415 [% IF ( SyndeticsEnabled ) %]
416 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
417 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
419 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
420 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
421 [% IF ( LibraryThingForLibrariesID ) %]
422 <li id="tab_LTFLreviews">
423 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
424 <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>
428 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
429 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
431 [% END # / IF SyndeticsEnabled %]
433 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
434 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
435 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
438 [% IF ( subscriptionsnumber ) %]
439 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
440 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber | html %] )</a>
444 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
445 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a></li>
448 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
449 [% IF ( NovelistSelectView == 'tab') %]
450 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
454 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
455 <li id="tab_editions"><a href="#editions">Editions</a></li>
458 [% IF ( serialcollection ) %]
459 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
460 <a href="#serialcollection">Serial collection</a>
464 [% IF ( OPACLocalCoverImages && localimages.count ) %]
465 <li id="tab_images"><a href="#images">Images</a></li>
468 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
469 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
474 [% IF ( serialcollection ) %]
475 <div id="serialcollection">
476 <table id="serialcollectiont" class="table table-bordered table-striped">
477 <caption class="sr-only">Serial collections</caption>
480 <th id="serial_library">Library</th>
481 <th id="serial_collection">Serial collection</th>
482 <th id="serial_itemcallnumber">Item call number</th>
486 [% FOREACH serialcollection IN serialcollections %]
488 <td>[% serialcollection.branch | html %]</td>
489 <td>[% serialcollection.text | html %]</td>
490 <td>[% serialcollection.itemcallnumber | html %]</td>
495 </div> <!-- /#serialcollection -->
496 [% END # / IF serialcollection %]
500 [% IF too_many_items %]
501 <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>
502 [% ELSIF ( itemloop.size ) %]
503 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
504 [% IF specific_item %]
505 <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
507 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
508 [% IF acquisition_details.total_quantity == 1 %]
509 <span>1 item is on order.</span>
511 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
514 [% IF holds_count.defined || priority %]
516 [% IF holds_count.defined %]
517 <span>Total holds: [% holds_count | html %]</span>
520 [% IF holds_count.defined %]
521 <span>(priority [% priority | html %])</span>
523 <span>Overall queue priority: [% priority | html %]</span>
529 [% END # /IF specific_item %]
531 [% IF ( ALTERNATEHOLDINGS ) %]
532 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
533 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
536 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
537 [% IF acquisition_details.total_quantity == 1 %]
538 <span>1 item is on order.</span>
540 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
543 <div id="noitems">No physical items for this record</div>
546 [% END # IF itemloop.size %]
547 [% PROCESS 'shelfbrowser.inc' %]
548 [% INCLUDE shelfbrowser tab='holdings' %]
549 <br style="clear:both;" />
550 </div> <!-- / #holdings -->
552 [% IF (SeparateHoldings) %]
553 <div id="otherholdings">
554 [% IF (otheritemloop.size) %]
555 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
557 <span>No other items.</span>
559 [% INCLUDE shelfbrowser tab='otherholdings' %]
561 [% END # / SeparateHoldings %]
563 [% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
564 <div id="descriptions">
565 <div class="content_set">
567 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
568 <h2>Enhanced descriptions from Syndetics:</h2>
569 <p>[% SYNDETICS_SUMMARY | $raw %]</p>
572 [% IF ( MARCNOTES ) %]
574 [% FOREACH MARCNOTE IN MARCNOTES %]
576 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
577 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
579 [% MARCNOTE.marcnote | html | html_line_break %]
586 </div> <!-- /.content_set -->
587 </div> <!-- / #descriptions -->
588 [% END # / IF MARCNOTES %]
590 [% IF ComponentParts && ComponentParts.size %]
591 <div id="components">
592 <div class="content_set">
594 [% FOR PART IN ComponentParts %]
602 [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
603 <p>Only [% ComponentParts.size | html %] results are shown: <a href="/cgi-bin/koha/opac-search.pl?q=[% ComponentPartsQuery | uri %]"/>show all component parts</a></p>
609 [% IF ( SyndeticsEnabled ) %]
610 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
612 <div class="content_set">
613 <h2>Table of contents provided by Syndetics</h2>
615 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
616 <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
621 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
623 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
625 <div class="content_set">
626 <h2>Excerpt provided by Syndetics</h2>
627 [% SYNDETICS_EXCERPT | $raw %]
630 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
632 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
634 <div class="content_set">
635 <h2>Reviews provided by Syndetics</h2>
636 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
637 [% IF ( SYNDETICS_REVIEW.title ) %]
638 <h3>[% SYNDETICS_REVIEW.title | html %]</h3>
639 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
641 [% IF ( review.content ) %]
642 [% review.content | $raw %]
650 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
652 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
654 <div class="content_set">
655 <h2>Author notes provided by Syndetics</h2>
656 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
657 [% IF ( SYNDETICS_ANOTE.content ) %]
658 [% SYNDETICS_ANOTE.content | $raw %]
663 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
664 [% END # / IF SyndeticsEnabled %]
666 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
667 <div id="NovelistSelect" >
668 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
670 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
672 [% IF ( subscriptionsnumber ) %]
673 <div id="subscriptions">
674 <h2>This is a serial</h2>
675 <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
676 [% FOREACH subscription IN subscriptions %]
677 <div class="subscription">
678 [% IF ( subscription.branchcode ) %]
679 <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
681 [% IF ( subscription.branchcode ) %]
682 <h3>At library: [% subscription.branchcode | html %]</h3>
685 [% IF ( subscription.closed ) %]
686 <p class="subscription_closed">This subscription is closed.</p>
688 [% IF ( subscription.location ) %]
689 <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
691 [% IF ( subscription.callnumber ) %]
692 <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
694 [% IF ( subscription.subscriptionnotes ) %]
695 <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
697 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
698 [% IF ( subscription.letter ) %]
699 <span class="email_notifications">
700 [% IF ( loggedinusername ) %]
701 [% IF ( subscription.hasalert ) %]
702 <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>
704 <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>
707 <span>You must log in if you want to subscribe to email notification on new issues</span>
711 [% IF ( subscription.missinglist ) %]
712 <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
714 [% IF ( subscription.opacnote ) %]
715 <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
717 [% IF ( subscription.latestserials ) %]
718 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
719 <table class="table table-bordered table-striped" id="subscriptionst">
720 <caption class="sr-only">Latest serials</caption>
723 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
724 <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
725 <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
726 <th id="serial_status" data-colname="serial_status">Status</th>
727 <th id="serial_notes" data-colname="serial_notes">Note</th>
731 [% FOREACH latestserial IN subscription.latestserials %]
733 <td class="serialseq">[% latestserial.serialseq | html %]</td>
734 <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
735 <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
736 <td class="serial_status">
737 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
738 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
739 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
740 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
741 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
742 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
743 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
744 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
745 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
746 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
747 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
748 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
750 <td class="serial_notes">[% latestserial.notes | html %]</td>
752 [% END # / FOREACH latestserials %]
755 [% END # / IF subscription.latestserials %]
757 [% END # / FOREACH subscriptions %]
758 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
759 </div> <!-- / #subscriptions -->
760 [% END # IF subscriptionsnumber %]
762 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
763 <!-- Library Thing for Libraries Content -->
764 <div id="LFTLSimilarItems">
765 <div class="content_set">
766 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
767 <!-- but breaks Xhtml validation -->
768 <!-- <span class="results_summary">-->
769 <div id="ltfl_related"></div>
770 <div id="ltfl_similars"></div>
774 <div id="LTFLTagBrowse">
775 <div class="content_set">
776 <!-- <span class="results_summary"> -->
777 <div id="ltfl_tagbrowse" class="ltfl"></div>
781 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
783 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
785 <div id="newcomment"></div>
787 [% FOREACH review IN reviews %]
788 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
789 <div class="commentline yours" id="c[% review.reviewid | html %]">
790 [% IF ( review.avatarurl ) %]
791 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
793 [% IF review.approved %]
794 <h2 id="comment">Your comment</h2>
796 <h2 id="comment">Your comment (preview, pending approval)</h2>
798 <small>[% review.datereviewed | $KohaDates %]</small>
800 [% FILTER html_break %]
801 [% review.review | html %]
803 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a>
807 <div class="commentline">
808 [% IF ( ShowReviewer != "none" && review.patron) %]
810 [% IF ( review.avatarurl ) %]
811 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
813 [% SWITCH ShowReviewer %]
815 <h2 id="comment">Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h2>
817 <h2 id="comment">Comment by [% review.patron.firstname | html %]</h2>
819 <h2 id="comment">Comment by [% review.patron.surname | html %]</h2>
820 [% CASE 'firstandinitial' %]
821 <h2 id="comment">Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h2>
822 [% CASE 'username' %]
823 <h2 id="comment">Comment by [% review.patron.userid | html %]</h2>
826 <small>[% review.datereviewed | $KohaDates %]</small>
828 <h2 id="comment">Patron comment on [% review.datereviewed | $KohaDates %]</h2>
829 [% END # / IF ShowReviewer != "none" && review.patron %]
831 [% FILTER html_break %]
832 [% review.review | html %]
835 </div> <!-- / .commentline -->
837 [% END # / FOREACH reviews %]
839 <p>There are no comments on this title.</p>
840 [% END # / IF reviews %]
842 [% IF ( loggedinusername ) %]
843 [% UNLESS ( loggedincommenter ) %]
844 <div id="addcomment">
845 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
846 Post your comments on this title.
851 <div id="addcomment">
852 <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.
854 [% END # / IF loggedinusername %]
855 </div> <!-- / #comments -->
856 [% END # / IF OPACComments %]
858 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
860 <h2>Other editions of this work</h2>
861 <table class="table table-bordered table-striped">
862 <caption class="sr-only">Other editions</caption>
863 [% FOREACH XISBN IN XISBNS %]
866 [% IF ( OPACAmazonCoverImages ) %]
867 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
870 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
871 [% IF ( XISBN.content_identifier_exists ) %]
872 <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="" />
874 <span class="no-image">No cover image available</span>
875 [% END # / IF XISBN.content_identifier_exists %]
876 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
879 [% UNLESS ( item_level_itypes ) %]
880 <td>[% XISBN.description | html %]</td>
883 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
884 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
885 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
886 [% IF ( XISBN.publishercode ) %]
887 <p>[% XISBN.publishercode | html %]
888 [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
889 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
890 [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
895 [% END # / FOREACH XISBNS %]
897 </div> <!-- / #editions -->
898 [% END # / IF OPACFRBRizeEditions && XISBNS %]
900 [% IF ( HTML5MediaEnabled ) %]
901 <div id="html5media">
902 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
904 [% IF HTML5MediaSet.is_youtube %]
905 <iframe id="player" type="text/html" width="640" height="360"
906 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
908 [% SET ctrl_preload = ' controls preload=none' #translatability %]
909 <[% HTML5MediaParent _ ctrl_preload | html %] >
910 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
911 <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
912 </[% HTML5MediaParent | html %]>
917 [% END # / IF HTML5MediaEnabled %]
919 [% IF ( OPACLocalCoverImages && localimages.count ) %]
921 <p>Click on an image to view it in the image viewer</p>
922 [% FOREACH image IN localimages %]
923 <a href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
924 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
927 </div><!-- / #images -->
928 [% END # / IF OPACLocalCoverImages && localimages.size %]
930 </div> <!-- / #bibliodescriptions -->
932 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
933 <div id="NovelistSelect">
934 <h2>Novelist Select</h2>
935 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
939 [% IF ( Babeltheque ) %]
941 <div id="BW_etiquettes"></div>
942 <div id="BW_suggestions"></div>
944 <div class="clearfix"></div>
946 <div id="BW_podcasts"></div>
948 <div class="clearfix"></div>
950 <div id="BW_videos"></div>
952 [% END # / IF Babeltheque %]
954 </div> <!-- /.col-lg-10 -->
956 <div class="col-lg-3">
957 <div id="ulactioncontainer">
959 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
960 <div class="nav_results">
961 <div class="l_Results" style="display:none;">
962 [% IF ( listResults ) %]
963 <a href="#" id="a_listResults"><i class="fa fa-bars" aria-hidden="true"></i> Browse results</a>
965 <span><i class="fa fa-bars" aria-hidden="true"></i> Browse results</span>
967 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
970 <div class="pg_menu">
971 <div class="pg_link left_results">
972 [% IF ( previousBiblionumber ) %]
973 <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>
975 <span>Previous</span>
978 [%# busc is already URI encoded %]
979 <div class="pg_link back_results">
980 <a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a>
982 <div class="pg_link right_results">
983 [% IF ( nextBiblionumber ) %]
984 <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>
989 </div> <!-- /.pg_menu -->
991 [% IF ( listResults ) %]
992 <div class="results-pagination">
993 <div class="nav_pages">
994 <ul id="listResults">
995 [% FOREACH listitem IN listResults %]
996 [% IF ( listitem.biblionumber == biblionumber ) %]
997 <li class="li_pag_[% loop.count | html %] highlight">
999 <li class="li_pag_[% loop.count | html %]">
1001 <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>
1003 [% END # /FOREACH listitem %]
1004 </ul> <!-- /#listResults -->
1005 </div> <!-- /.nav_pages -->
1006 <div class="pagination_list">
1007 <ul id="ul_pagination_lists">
1008 [% FOREACH listitem IN listResults %]
1009 [% IF ( listitem.biblionumber == biblionumber ) %]
1010 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1011 <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count + offset | html %]</span>
1012 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]by [% author | html %][% END %]
1015 <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1016 <span class="li_pag_index">[% loop.count + offset | html %]</span>
1017 <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 %]
1019 [% END # /IF listitem.biblionumber %]
1020 [% END # /FOREACH listitem %]
1021 </ul> <!-- /#ul_pagination_list -->
1022 </div> <!-- /.pagination_list -->
1023 </div> <!-- /.results-pagination -->
1024 [% END # /IF ( listResults ) %]
1025 <div class="pagination_footer">
1026 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1028 </div> <!-- /.nav_results -->
1029 [% END # / IF OpacBrowseResults && busc %]
1031 [% INCLUDE 'opac-detail-sidebar.inc' %]
1033 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1034 <div id="NovelistSelect">
1035 <h2>Novelist Select</h2>
1036 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1040 [% IF ( Babeltheque ) %]
1041 <div class="babeltheque_adds">
1042 <div id="BW_critiques_aj"></div>
1043 <div id="BW_citations_aj"></div>
1047 [% IF ( Koha.Preference('SocialNetworks') ) %]
1048 <div id="social_networks" class="clearfix">
1050 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1051 [% FOREACH network IN SocialNetworks.split(",") %]
1052 [% SWITCH network -%]
1053 [% CASE "facebook" -%]
1054 <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>
1055 [% CASE "linkedin" -%]
1056 <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>
1058 <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>
1059 [% CASE "twitter" -%]
1060 <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>
1061 [% END # /SWITCH network -%]
1062 [% END # /FOREACH network %]
1063 </div> <!-- /#social_networks -->
1064 [% END # /IF SocialNetworks %]
1065 </div> <!-- / .ulactioncontainer -->
1066 </div> <!-- / .col-lg-3 -->
1067 </div> <!-- / .row -->
1069 [% IF ( LibraryThingForLibrariesID ) %]
1070 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1071 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1072 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1075 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1076 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1079 [% IF ( Babeltheque && Babeltheque_url_js ) %]
1080 <script src="[% Babeltheque_url_js | html %]"></script>
1082 </div> <!-- / .row -->
1083 </div> <!-- / .container-fluid -->
1084 </div> <!-- / .main -->
1086 [% IF ( OPACPopupAuthorsSearch ) %]
1088 <div class="modal" id="multiSearch" tabindex="-1" role="dialog" aria-labelledby="multiSearchLabel">
1089 <div class="modal-dialog" role="document">
1090 <div class="modal-content">
1091 <div class="modal-header">
1092 <h1 id="multiSearchLabel">Select the item(s) to search</h1>
1093 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1095 <div class="modal-body">
1096 <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>
1097 <a href="#" class="check_none btn btn-link btn-sm"><i class="fa fa-remove" aria-hidden="true"></i> Select none</a>
1101 <div class="modal-footer">
1102 <button id="validMultiSearch" class="btn btn-primary">Search</button>
1103 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
1105 </div> <!-- /.modal-content -->
1106 </div> <!-- /.modal-dialog -->
1107 </div> <!-- /#myModal -->
1110 [% INCLUDE 'opac-bottom.inc' %]
1112 [%# End of template %]
1114 [% BLOCK items_table %]
1115 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1116 <caption class="sr-only">Holdings</caption>
1120 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1121 <th id="item_cover" data-colname="item_cover">Cover image</th>
1123 [% IF ( item_level_itypes ) %]
1124 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>
1126 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1127 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current library</th>
1129 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1130 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>
1132 [% IF ( itemdata_ccode ) %]
1133 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>
1135 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1136 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>
1138 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1139 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1140 <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>
1142 [% IF ( itemdata_enumchron ) %]
1143 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>
1145 [% IF ( itemdata_uri ) %]
1146 <th id="item_url" data-colname="item_url" class="url">URL</th>
1148 [% IF ( itemdata_copynumber ) %]
1149 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>
1151 <th id="item_status" data-colname="item_status" class="status">Status</th>
1152 [% IF ( itemdata_itemnotes ) %]
1153 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>
1155 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1156 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1157 [% IF holds_count.defined %]
1158 <th id="item_holds" data-colname="item_holds">Item holds</th>
1159 [% ELSIF show_priority %]
1160 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1162 [% IF ( ShowCourseReservesHeader ) %]
1163 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>
1168 [% FOREACH ITEM_RESULT IN items %]
1169 <tr vocab="http://schema.org/" typeof="Offer">
1171 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1173 <div class="bookcover">
1174 <div class="cover-slider">
1175 [% FOR image IN ITEM_RESULT.cover_images %]
1176 <div class="cover-image local-coverimg">
1177 <a href="/cgi-bin/koha/opac-image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
1178 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
1187 [% IF ( item_level_itypes ) %]
1189 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
1190 [% IF ( ITEM_RESULT.imageurl ) %]
1191 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1194 [% ITEM_RESULT.description | html %]
1197 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1198 <td class="location" property="seller" data-order="[% ITEM_RESULT.branchname| html %]">
1199 <link property="itemOffered" href="#record" />
1200 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1202 [% IF ( ITEM_RESULT.holding_branch_opac_info ) %]
1203 <a href="[% ITEM_RESULT.branchurl | url %]" class="library_info" data-branchcode="[% ITEM_RESULT.branchcode | html %]">
1204 <i class="fa fa-info-circle" aria-hidden="true"></i> [% ITEM_RESULT.branchname | html %]
1206 [% ELSIF ( ITEM_RESULT.branchurl ) %]
1207 <a href="[% ITEM_RESULT.branchurl | url %]">
1208 [% ITEM_RESULT.branchname | html %]
1211 <span>[% ITEM_RESULT.branchname | html %]</span>
1214 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1215 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1221 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1222 <td class="location" property="seller">
1223 <link property="itemOffered" href="#record" />
1224 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1226 [% IF ( ITEM_RESULT.holding_branch_opac_info ) %]
1227 <a href="[% Branches.GetURL( ITEM_RESULT.homebranch ) | url %]" class="library_info" data-branchcode="[% ITEM_RESULT.homebranch | html %]">
1228 <i class="fa fa-info-circle" aria-hidden="true"></i> [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
1230 [% ELSIF ( Branches.GetURL( ITEM_RESULT.homebranch ) ) %]
1231 <a href="[% Branches.GetURL( ITEM_RESULT.homebranch ) | url %]">
1232 [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
1235 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
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 <!-- Library Info Modal -->
1358 <div class="modal" id="libraryInfoModal" tabindex="-1" aria-labelledby="libraryInfoModalLabel" aria-hidden="true">
1359 <div class="modal-dialog">
1360 <div class="modal-content">
1361 <div class="modal-header">
1362 <h5 class="modal-title" id="libraryInfoModalLabel"></h5>
1363 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
1364 <span aria-hidden="true">×</span>
1367 <div class="modal-body">
1368 <div id="libraryInfo"></div>
1370 <div class="modal-footer">
1371 <a id="libraryInfoLink" href="" class="btn btn-primary">Visit web site</a>
1372 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
1374 </div> <!-- /.modal-content -->
1375 </div> <!-- /.modal-dialog -->
1376 </div> <!-- /.modal -->
1378 [% BLOCK jsinclude %]
1379 [% INCLUDE 'datatables.inc' %]
1380 [% INCLUDE 'columns_settings.inc' %]
1381 [% INCLUDE greybox.inc %]
1382 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1384 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1385 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1386 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1389 [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1391 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1393 var interface = "[% interface | html %]";
1394 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1396 [% Asset.js("js/verovio.js") | $raw %]
1398 [% Asset.js("lib/emoji-picker/js/emoji-picker-all.min.js") | $raw %]
1399 [% IF OpenLibraryCovers || OpenLibrarySearch %]
1400 [% Asset.js("js/openlibrary.js") | $raw %]
1404 window.emojiPicker = new EmojiPicker({
1405 emojiable_selector: '[data-emojiable=true]',
1406 assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1407 popupButtonClasses: 'fa fa-smile-o'
1409 window.emojiPicker.discover();
1411 var OPACPopupAuthorsSearch = "[% Koha.Preference('OPACPopupAuthorsSearch') | html %]";
1412 [% IF ( OpacHighlightedWords ) %]
1413 var q_array = new Array(); // holds search terms if available
1415 function highlightOff() {
1416 $("#catalogue_detail_biblio").removeHighlight();
1417 $(".highlight_toggle").toggle();
1419 function highlightOn() {
1421 for (x in q_array) {
1422 if ( q_array[x].length > 0 ) {
1423 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1424 q_array[x] = q_array[x].toLowerCase();
1425 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1426 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1427 $(".title").highlight(q_array[x]);
1428 $(".author").highlight(q_array[x]);
1429 $(".results_summary").highlight(q_array[x]);
1432 $(".highlight_toggle").toggle();
1435 [% END # /IF OpacHighlightedWords %]
1437 function verify_cover_images() {
1438 // Loop over each container in the template which contains covers
1439 $(".cover-slider").each(function( index ){
1440 var lightbox_descriptions = [];
1441 var first_shown = 0;
1442 $(this).find(".cover-image").each( function( index ){
1444 // Find the image in the container
1445 var img = div.find("img")[0];
1446 if( img && $(img).length > 0 ){
1447 var description = "";
1448 if( img.naturalHeight == 0 && div.attr("id") != "googlejacket-coverimg" ){
1449 // No image loaded in the container. Remove the slide
1452 // All slides start hidden. If this is the first one, show it.
1453 if( first_shown == 0 ){
1457 // Check if Amazon image is present
1458 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1461 if ((w == 1) || (h == 1)) {
1462 // Amazon returned single-pixel placeholder
1463 // Remove the container
1466 lightbox_descriptions.push(_("Amazon cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1468 } else if( div.attr("id") == "custom-coverimg" ){
1469 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1470 // No image was loaded via the CustomCoverImages system preference
1471 // Remove the container
1474 lightbox_descriptions.push(_("Custom cover image"));
1476 } else if( div.attr("id") == "syndetics-coverimg" ){
1477 lightbox_descriptions.push(_("Image from Syndetics"))
1478 } else if( div.attr("id") == "googlejacket-coverimg" ){
1479 lightbox_descriptions.push(_("Image from Google Books (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1480 } else if( div.attr("id") == "openlibrary-coverimg" ){
1481 lightbox_descriptions.push(_("Image from OpenLibrary (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1482 } else if( div.attr("id") == "coce-coverimg" ){
1483 // Identify which service's image is being loaded by Coce
1484 var coce_description;
1485 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1486 coce_description = _("Coce image from Amazon.com");
1487 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1488 coce_description = _("Coce image from Google Books");
1489 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1490 coce_description = _("Coce image from Open Library");
1492 div.find(".hint").html(coce_description);
1493 lightbox_descriptions.push(coce_description);
1494 } else if ( div.attr("id") == "bakertaylor-coverimg" ){
1495 lightbox_descriptions.push(_("Image from Baker & Taylor"));
1496 } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1497 lightbox_descriptions.push(_("Local cover image"));
1499 lightbox_descriptions.push(_("Cover image source unknown"));
1507 // Lightbox for cover images
1508 Chocolat(this.querySelectorAll('.cover-image a'), {
1509 description: function(){
1510 return lightbox_descriptions[this.settings.currentImageIndex];
1516 $(".cover-slider").each(function(){
1517 var coverSlide = this;
1518 var coverImages = $(this).find(".cover-image");
1519 if( coverImages.length > 1 ){
1520 coverImages.each(function( index ){
1521 // If more that one image is present, add a navigation link
1522 // for activating the slide
1523 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1525 // Set the first navigation link as active
1526 $(covernav).addClass("nav-active");
1528 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1529 $(coverSlide).append( covernav );
1533 if( $(coverSlide).find(".cover-image:visible").length < 1 ){
1534 $(coverSlide).remove();
1536 $(coverSlide).addClass("cover-slides");
1540 $(".cover-slider").on("click",".cover-nav", function(e){
1542 var cover_slider = $(this).parent();
1543 // Adding click handler for cover image navigation links
1544 var num = $(this).data("num");
1545 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1546 $(this).addClass("nav-active");
1547 $(cover_slider).find(".cover-image").hide();
1548 $(cover_slider).find(".cover-image").eq( num ).show();
1551 $("#editions img").each(function(i){
1552 if ( this.src.indexOf('amazon.com') >= 0 ) {
1555 if ((w == 1) || (h == 1)) {
1556 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1557 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1558 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1562 } /* /verify_images */
1564 let counter_wait = 0;
1565 function wait_for_images(cb){
1570 [% IF GoogleJackets %]
1572 loaded = KOHA.Google.done;
1576 [% IF OpenLibraryCovers %]
1578 loaded = KOHA.OpenLibrary.done;
1582 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1584 loaded = KOHA.coce.done;
1588 if (!loaded && counter_wait < 50) {// Do not wait more than 5 seconds
1589 window.setTimeout(function(){wait_for_images(cb);}, 100);
1591 if (counter_wait >= 50 ) {
1592 console.log("Could not retrieve the images")
1598 $(window).load(function() {
1599 wait_for_images(verify_cover_images);
1602 $(document).ready(function() {
1604 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1611 text: location.href,
1614 document.getElementById("qrcode").appendChild( qrcode );
1617 $(".show_qrcode").on("click", function(){
1618 var qrcodeImg = $("#qrcode");
1619 if( qrcodeImg.hasClass("d-none") ){
1620 qrcodeImg.removeClass("d-none");
1622 qrcodeImg.addClass("d-none");
1625 [% END # /IF OPACDetailQRCode %]
1627 $('#bibliodescriptions').tabs();
1629 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1630 $(".l_Results").show();
1631 $("#a_listResults").on("click", function(e){
1633 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1636 $(".close_pagination").on("click", function(e){
1638 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1640 [% END # /IF OpacBrowseResults %]
1642 var columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1644 KohaTable("#holdingst", {
1645 dom: '<"clearfix">t',
1647 { "targets": [ -1 ], "sortable": false, "searchable": false },
1649 "bKohaColumnsUseNames": true,
1651 }, columns_settings);
1653 KohaTable("#otherholdingst", {
1654 dom: '<"clearfix">t',
1656 { "targets": [ -1 ], "sortable": false, "searchable": false },
1658 "bKohaColumnsUseNames": true,
1660 }, columns_settings);
1662 var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1664 KohaTable("#subscriptionst", {
1665 dom: '<"clearfix">t',
1666 "sorting": [[ 1, "desc" ]],
1668 "bKohaColumnsUseNames": true
1669 }, serial_column_settings);
1671 [% IF ( TagsInputEnabled && loggedinusername ) %]
1672 $(".tag_add").click(function(){
1673 var thisid = $(this).attr("id");
1674 thisid = thisid.replace("tag_add","");
1676 $("#tagform"+thisid).show();
1677 $("#newtag"+thisid).focus();
1678 $("#newtag"+thisid+"_status").empty().hide();
1681 $(".cancel_tag_add").click(function(){
1682 var thisid = $(this).attr("id");
1683 thisid = thisid.replace("cancel","");
1684 $("#tagform"+thisid).hide();
1685 $("#tag_add"+thisid).show();
1686 $("#newtag"+thisid).val("");
1687 $("#newtag"+thisid+"_status").empty().hide();
1690 $(".tagbutton").click(function(){
1691 var thisid = $(this).attr("title");
1692 var tag = $("#newtag"+thisid).val();
1693 if (!tag || (tag == "")) {
1694 alert(MSG_NO_TAG_SPECIFIED);
1697 KOHA.Tags.add_tag_button(thisid, tag);
1702 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1703 [% 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 %]
1704 var default_order_index = 1;
1705 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1706 var default_order_index = 2;
1708 var default_order_index = 0;
1711 [% IF ( query_desc ) %]
1712 [% IF ( OpacHighlightedWords ) %]
1713 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1714 q_array = query_desc.split(" ");
1715 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1717 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1718 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});
1722 [% IF ( GoogleJackets ) %]
1723 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1726 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1727 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1730 [% IF OpenLibraryCovers %]
1731 KOHA.OpenLibrary.GetCoverFromIsbn();
1734 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1735 novSelect.loadContentForQuery(
1737 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1738 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1741 '[% NovelistSelectProfile | html %]',
1742 '[% NovelistSelectPassword | html %]',
1744 if ( d.length > 0 ){ //If no content
1745 $(".NovelistSelect").show();
1750 [% IF ( OPACShelfBrowser ) %]
1751 // Focus on shelf browser if present
1752 var shelfbrowser = $("#shelfbrowser");
1753 if (shelfbrowser.length > 0) {
1754 $('html,body').animate({
1755 scrollTop: shelfbrowser.first().offset().top
1758 shelfbrowser.first().find(':focusable').eq(0).focus();
1761 (function prepareShelfBrowser(){
1763 $(".main").on("click",".close_shelf",function(e){
1765 $("#shelfbrowser").toggle();
1767 $(".main").on("click", "#browser_previous a", function(e){
1770 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1773 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1775 success: function(data){
1776 $("#shelfbrowser").replaceWith(data);
1777 [% IF ( GoogleJackets ) %]
1778 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1780 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1781 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1783 [% IF OpenLibraryCovers %]
1784 KOHA.OpenLibrary.GetCoverFromIsbn();
1786 [% IF OPACLocalCoverImages %]
1787 KOHA.LocalCover.GetCoverFromBibnumber(true);
1793 $(".main").on("click", "#browser_next a", function(e){
1796 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1799 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1801 success: function(data){
1802 $("#shelfbrowser").replaceWith(data);
1803 [% IF ( GoogleJackets ) %]
1804 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1806 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1807 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1809 [% IF OpenLibraryCovers %]
1810 KOHA.OpenLibrary.GetCoverFromIsbn();
1812 [% IF OPACLocalCoverImages %]
1813 KOHA.LocalCover.GetCoverFromBibnumber(true);
1819 [% END # /IF ( OPACShelfBrowser ) %]
1821 [% IF ( OpacStarRatings != 'disable' ) %]
1822 // -----------------------------------------------------
1823 // star-ratings code
1824 // -----------------------------------------------------
1825 // hide 'rate' button if javascript enabled
1827 $('input[name="rate_button"]').remove();
1829 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1830 $('#star_rating').barrating({
1831 theme: 'fontawesome-stars',
1832 showSelectedRating: false,
1834 deselectable: false,
1835 readonly: rating_enabled,
1836 onSelect: function(value, text) {
1837 $("#rating-loading").show();
1838 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1839 rating_old_value: $("#rating_value").attr("value"),
1840 borrowernumber: "[% borrowernumber | html %]",
1841 biblionumber: "[% biblio.biblionumber | html %]",
1842 rating_value: value,
1844 }, function (data) {
1845 $("#rating_value").val(data.rating_value);
1846 if (data.rating_value) {
1847 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1848 $("#cancel_rating_text").show();
1850 $("#rating_value_text").text('');
1851 $("#cancel_rating_text").hide();
1853 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1854 $("#rating-loading").hide();
1859 $("#cancel_rating_text a").on("click", function(e){
1861 $("#star_rating").barrating("set", "");
1864 [% END # / IF ( OpacStarRatings != 'disable' )%]
1867 $(document).ready(function() {
1868 if( OPACPopupAuthorsSearch == "1" ){
1872 "keyword_search" : "au:",
1875 "label" : "subject",
1876 "keyword_search" : "su:",
1879 $(".contributors,.subject").on("click", function(e){
1881 var term = $(this).attr("class");
1882 var selected_term = $(this).text();
1883 var term_links = $("." + term );
1884 if( term_links.length > 1 ){
1885 term_links.each(function( index ){
1887 var preselected = false;
1888 var search_label = $(this).text().trim();
1889 if( $(this).text() == selected_term ){ preselected = true }
1890 if( $(this).hasClass("authority_link") ){
1891 authid = $(this).data("authid");
1892 search_string = "an:" + authid;
1894 search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label );
1896 var termLink = $("<li>")
1897 .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) )
1899 .append( $("<label>", { for: terms[term]["label"] + index, text: search_label } ) )
1900 $("#termsList").append( termLink );
1901 $("#multiSearch").modal("show");
1904 location.href = $(this).attr("href");
1908 $("#multiSearch").on("hide.bs.modal", function(){
1909 $("#termsList").html("");
1912 $(".check_all").on("click", function(e){
1914 $(".select_term").each(function(){
1915 $(this).prop("checked", true );
1919 $(".check_none").on("click", function(e){
1921 $(".select_term").each(function(){
1922 $(this).prop("checked", false );
1926 $("#validMultiSearch").on("click", function(e){
1928 multiSearchRequest();
1930 } /* if( OPACPopupAuthorsSearch == "1" ) */
1932 $(".library_info").on("click", function(e){
1934 var branchcode = $(this).data("branchcode");
1935 var url = $(this).attr("href");
1937 url: "/api/v1/public/libraries/" + branchcode,
1940 success: function(result) {
1941 $("#libraryInfoModalLabel").html( result.name );
1942 $("#libraryInfo").html( result.opac_info );
1944 $("#libraryInfoLink").attr("href", result.url );
1945 $("#libraryInfoLink").show();
1947 $("#libraryInfoLink").hide();
1949 $("#libraryInfoModal").modal("show");
1951 error: function(xhr, status, error) {
1953 location.href = url;
1958 $("#libraryInfoModal").on("hide.bs.modal", function(){
1959 $("#libraryInfoModalLabel, #libraryInfo").html("");
1960 $("#libraryInfoLink").attr("href", "");
1964 function multiSearchRequest(){
1966 $(".select_term").each(function(){
1967 if( $(this).prop("checked") ){
1968 values.push( $(this).val() );
1972 if (values.length > 0) {
1973 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1974 location.href = request;