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 aria-label="breadcrumb">
45 <ul class="breadcrumb">
46 <li class="breadcrumb-item">
47 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
49 <li class="breadcrumb-item" aria-current="page">
50 <a href="#"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a>
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 [% IF Koha.Preference('OPACCustomCoverImages') && Koha.Preference('CustomCoverImagesURL') %]
121 [% SET custom_cover_image_url = biblio.custom_cover_image_url %]
122 [% IF custom_cover_image_url %]
123 <div class="cover-image" id="custom-coverimg">
124 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]" title="Custom cover image">
125 <img id="custom-img" alt="Custom cover image" src="[% custom_cover_image_url | url %]" />
127 <div class="hint">Custom cover image</div>
131 </div> <!-- /.cover-slider -->
133 </div><!-- / .bookcover -->
135 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber | html %]"><!-- unAPI --></abbr>
136 [% IF ( ocoins ) # COinS / Openurl %]
137 <span class="Z3988" title="[% ocoins | html %]"></span>
141 <span class="view current-view"><span id="Normalview"><i class="fa fa-file-text-o" aria-hidden="true"></i> Normal view</span></span>
143 <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>
146 <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>
150 [% XSLTBloc | $raw %]
152 [% IF ( !item_level_itypes || Koha.Preference('BiblioItemtypeInfo') ) %]
153 <span class="results_summary itemtype"><span class="label">Item type: </span>
154 [% IF ( imageurl && !Koha.Preference('OpacNoItemTypeImages') ) %]
155 <img src="[% imageurl | html %]" alt="" />
157 [% IF ( description ) %]
158 [% description | html %]
160 [% itemtype | html %]
165 [% IF ( LibraryThingForLibrariesID ) %]
166 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
167 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
168 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
169 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
170 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
172 <span class="results_summary">
173 <span class="label">Reviews from LibraryThing.com:</span>
174 <span style="display: block;" class="ltfl_reviews"></span>
176 [% END # / LibraryThingForLibrariesID %]
178 [% IF shelves.count %]
179 <!--This grabs all of the lists a bib record appears in -->
180 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
181 [% FOREACH s IN shelves %]
182 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
183 [% IF ( loop.last ) %][% ELSE %]|[% END %]
188 [% IF ( TagsShowEnabled ) %]
189 <div class="results_summary tags">
191 <span class="label">Tags from this library:</span>
193 [% FOREACH TagLoo IN TagLoop %]
194 <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>
195 [% IF ( loop.last ) %][% ELSE %], [% END %]
200 <span class="label">Tags from this library:</span>
201 <span class="notags">No tags from this library for this title.</span>
202 [% END # / IF ( TagLoop )%]
203 [% IF ( TagsInputEnabled ) %]
204 [% IF ( loggedinusername ) %]
205 <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>
207 <span class="login4tags">
208 [% IF Koha.Preference('casAuthentication') %]
209 [%# CAS authentication is too complicated for modal window %]
210 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
212 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
215 [% END # / IF ( loggedinusername ) %]
216 [% END # / IF ( TagsInputEnabled ) %]
217 </div> <!-- /.results_summary.tags -->
218 [% END # /IF TagsShowEnabled %]
220 [% IF ( TagsInputEnabled ) %]
221 [% IF ( loggedinusername ) %]
222 <form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
223 <legend class="sr-only">Tags</legend>
224 <div class="form-row">
226 <label for="newtag[% biblio.biblionumber | html %]">New tag(s), separated by a comma:</label>
227 </div> <!-- /.col-3 -->
229 <p class="emoji-picker-container">
231 name="newtag[% biblio.biblionumber | html %]"
232 id="newtag[% biblio.biblionumber | html %]"
235 data-emojiable="true"
236 data-emoji-input="unicode">
238 </div> <!-- /.col-6 -->
239 <div class="col-auto">
240 <input name="tagbutton" class="btn btn-sm btn-primary tagbutton" title="[% biblio.biblionumber | html %]" type="submit" value="Add" />
241 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber | html %]" href="#">(done)</a>
242 <span id="newtag[% biblio.biblionumber | html %]_status" class="tagstatus" style="display:none;">
245 </div> <!-- /.col-auto -->
246 </div> <!-- /.form-row -->
248 [% END # / IF ( loggedinusername ) %]
249 [% END # / IF TagsInputEnabled %]
251 [% IF ( SyndeticsEnabled ) %]
252 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
253 <span class="results_summary">
254 <span class="label">Series information:</span>
255 <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>
257 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
258 [% IF ( SyndeticsAVPROFILEExists ) %]
259 <span class="results_summary">
260 <span class="label">Audiovisual profile:</span>
261 <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>
263 [% END # / IF SyndeticsAVPROFILEExists %]
265 [% IF ( SyndeticsFICTIONExists ) %]
266 <span class="results_summary">
267 <span class="label">Fiction notes:</span>
268 <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>
270 [% END # / IF SyndeticsFICTIONExists %]
272 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
273 <span class="results_summary">
274 <span class="label">Awards:</span>
275 <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>
277 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
278 [% END # / IF SyndeticsEnabled%]
280 [%# Following on one line due to translation issues %]
281 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
283 [% IF ( OpacStarRatings != 'disable' ) %]
284 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
285 <legend class="sr-only">Star ratings</legend>
286 <div class="results_summary ratings">
288 [% SET rating_avg = ratings.get_avg_rating() %]
289 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
291 [% IF ( borrowernumber ) %]
292 <select id="star_rating" name="rating" data-rating-enabled="1" autocomplete="off">
294 <select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off">
296 [% IF ( rating_avg_int == 0 ) %]
297 <option value="" selected="selected"></option>
299 [% FOREACH i IN [ 1 2 3 4 5 ] %]
300 [% IF rating_avg_int == i %]
301 <option value="[% i | html %]" selected="selected">[% i | html %]</option>
303 <option value="[% i | html %]">[% i | html %]</option>
307 <img id="rating-loading" style="display:none" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" alt="" />
309 <!-- define some hidden vars for ratings -->
311 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber | html %]" />
312 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value | html %]" />
314 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
317 <span id="rating_value_text">Your rating: [% my_rating.rating_value | html %].</span>
318 <span id="cancel_rating_text"><a href="#"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating</a>.</span>
320 <span id="rating_value_text"></span>
321 <span id="cancel_rating_text" style="display:none;"><a href="#"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating</a>.</span>
324 <span id="rating_text">Average rating: [% rating_avg | html %] ([% ratings.count | html %] votes)</span>
327 [% END # / IF OpacStarRatings != 'disable' %]
329 [% IF ( BakerTaylorContentURL ) %]
330 <span class="results_summary">
331 <span class="label">Enhanced content: </span>
332 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL | url %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL | url %]">Content Cafe</a>[% END %]
334 [% END # / IF BakerTaylorContentURL %]
336 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
337 [% IF ( NovelistSelectView == 'above') %]
338 <span class="results_summary NovelistSelect" style="display:none;">
339 <span class="label">Novelist Select: </span>
340 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
344 [% END # / IF NovelistSelectProfile %]
346 [% IF ( Babeltheque ) %]
347 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn | html %]"/>
348 <div id="BW_notes"></div>
349 <div id="BW_critiques"></div>
350 <div id="BW_critiques_pro"></div>
351 <div id="BW_citations"></div>
352 [% END # / IF Babeltheque%]
354 </div> <!-- / #catalogue_detail_biblio -->
356 <div id="bibliodescriptions" class="toptabs">
358 [% IF ( defaulttab == 'holdings' ) %]
359 <li id="tab_holdings" class="ui-tabs-active">
361 <li id="tab_holdings">
363 [% BLOCK holding_tab_title %]
364 [% IF SeparateHoldings %]
365 <span>[% Branches.GetLoggedInBranchname | html %] holdings</span>
367 [% IF specific_item %]
368 <span>Item details</span>
370 <span>Holdings</span>
374 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
376 [% IF (SeparateHoldings) %]
377 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
379 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
380 [% SET title_notes_count = 0 %]
382 [% SET title_notes_count = MARCNOTES.size %]
384 [% SET title_notes_count = 1 %]
386 [% IF SYNDETICS_SUMMARY %][% SET title_notes_count = title_notes_count + 1 %][% END %]
387 <li id="tab_descriptions"> <a href="#descriptions">Title notes ( [% title_notes_count | html %] )</a></li>
389 [% IF ( SYNDETICS_TOC ) %]
390 <li id="tab_toc"> <a href="#toc">TOC</a></li>
392 [% IF ( SyndeticsEnabled ) %]
393 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
394 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
396 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
397 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
398 [% IF ( LibraryThingForLibrariesID ) %]
399 <li id="tab_LTFLreviews">
400 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
401 <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>
405 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
406 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
408 [% END # / IF SyndeticsEnabled %]
410 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
411 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
412 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
415 [% IF ( subscriptionsnumber ) %]
416 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
417 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber | html %] )</a>
421 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
422 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a></li>
425 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
426 [% IF ( NovelistSelectView == 'tab') %]
427 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
431 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
432 <li id="tab_editions"><a href="#editions">Editions</a></li>
435 [% IF ( serialcollection ) %]
436 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
437 <a href="#serialcollection">Serial collection</a>
441 [% IF ( OPACLocalCoverImages && localimages.count ) %]
442 <li id="tab_images"><a href="#images">Images</a></li>
445 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
446 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
451 [% IF ( serialcollection ) %]
452 <div id="serialcollection">
453 <table id="serialcollectiont" class="table table-bordered table-striped">
454 <caption class="sr-only">Serial collections</caption>
457 <th id="serial_library">Library</th>
458 <th id="serial_collection">Serial collection</th>
459 <th id="serial_itemcallnumber">Item call number</th>
463 [% FOREACH serialcollection IN serialcollections %]
465 <td>[% serialcollection.branch | html %]</td>
466 <td>[% serialcollection.text | html %]</td>
467 <td>[% serialcollection.itemcallnumber | html %]</td>
472 </div> <!-- /#serialcollection -->
473 [% END # / IF serialcollection %]
477 [% IF too_many_items %]
478 <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>
479 [% ELSIF ( itemloop.size ) %]
480 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
481 [% IF specific_item %]
482 <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
484 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
485 [% IF acquisition_details.total_quantity == 1 %]
486 <span>1 item is on order.</span>
488 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
491 [% IF holds_count.defined || priority %]
493 [% IF holds_count.defined %]
494 <span>Total holds: [% holds_count | html %]</span>
497 [% IF holds_count.defined %]
498 <span>(priority [% priority | html %])</span>
500 <span>Overall queue priority: [% priority | html %]</span>
506 [% END # /IF specific_item %]
508 [% IF ( ALTERNATEHOLDINGS ) %]
509 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
510 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
513 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
514 [% IF acquisition_details.total_quantity == 1 %]
515 <span>1 item is on order.</span>
517 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
520 <div id="noitems">No physical items for this record</div>
523 [% END # IF itemloop.size %]
524 [% PROCESS 'shelfbrowser.inc' %]
525 [% INCLUDE shelfbrowser tab='holdings' %]
526 <br style="clear:both;" />
527 </div> <!-- / #holdings -->
529 [% IF (SeparateHoldings) %]
530 <div id="otherholdings">
531 [% IF (otheritemloop.size) %]
532 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
534 <span>No other items.</span>
536 [% INCLUDE shelfbrowser tab='otherholdings' %]
538 [% END # / SeparateHoldings %]
540 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
541 <div id="descriptions">
542 <div class="content_set">
544 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
545 <h2>Enhanced descriptions from Syndetics:</h2>
546 <p>[% SYNDETICS_SUMMARY | $raw %]</p>
549 [% IF ( MARCNOTES ) %]
551 [% FOREACH MARCNOTE IN MARCNOTES %]
553 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
554 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
556 [% MARCNOTE.marcnote | html | html_line_break %]
563 <p>[% notes | html %]</p>
567 </div> <!-- /.content_set -->
568 </div> <!-- / #descriptions -->
569 [% END # / IF MARCNOTES || notes %]
571 [% IF ( SyndeticsEnabled ) %]
572 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
574 <div class="content_set">
575 <h2>Table of contents provided by Syndetics</h2>
577 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
578 <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
583 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
585 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
587 <div class="content_set">
588 <h2>Excerpt provided by Syndetics</h2>
589 [% SYNDETICS_EXCERPT | $raw %]
592 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
594 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
596 <div class="content_set">
597 <h2>Reviews provided by Syndetics</h2>
598 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
599 [% IF ( SYNDETICS_REVIEW.title ) %]
600 <h3>[% SYNDETICS_REVIEW.title | html %]</h3>
601 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
603 [% IF ( review.content ) %]
604 [% review.content | $raw %]
612 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
614 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
616 <div class="content_set">
617 <h2>Author notes provided by Syndetics</h2>
618 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
619 [% IF ( SYNDETICS_ANOTE.content ) %]
620 [% SYNDETICS_ANOTE.content | $raw %]
625 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
626 [% END # / IF SyndeticsEnabled %]
628 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
629 <div id="NovelistSelect" >
630 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
632 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
634 [% IF ( subscriptionsnumber ) %]
635 <div id="subscriptions">
636 <h2>This is a serial</h2>
637 <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
638 [% FOREACH subscription IN subscriptions %]
639 <div class="subscription">
640 [% IF ( subscription.branchcode ) %]
641 <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
643 [% IF ( subscription.branchcode ) %]
644 <h3>At library: [% subscription.branchcode | html %]</h3>
647 [% IF ( subscription.closed ) %]
648 <p class="subscription_closed">This subscription is closed.</p>
650 [% IF ( subscription.location ) %]
651 <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
653 [% IF ( subscription.callnumber ) %]
654 <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
656 [% IF ( subscription.subscriptionnotes ) %]
657 <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
659 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
660 [% IF ( subscription.letter ) %]
661 <span class="email_notifications">
662 [% IF ( loggedinusername ) %]
663 [% IF ( subscription.hasalert ) %]
664 <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>
666 <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>
669 <span>You must log in if you want to subscribe to email notification on new issues</span>
673 [% IF ( subscription.missinglist ) %]
674 <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
676 [% IF ( subscription.opacnote ) %]
677 <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
679 [% IF ( subscription.latestserials ) %]
680 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
681 <table class="table table-bordered table-striped" id="subscriptionst">
682 <caption class="sr-only">Latest serials</caption>
685 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
686 <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
687 <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
688 <th id="serial_status" data-colname="serial_status">Status</th>
689 <th id="serial_notes" data-colname="serial_notes">Note</th>
693 [% FOREACH latestserial IN subscription.latestserials %]
695 <td class="serialseq">[% latestserial.serialseq | html %]</td>
696 <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
697 <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
698 <td class="serial_status">
699 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
700 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
701 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
702 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
703 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
704 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
705 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
706 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
707 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
708 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
709 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
710 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
712 <td class="serial_notes">[% latestserial.notes | html %]</td>
714 [% END # / FOREACH latestserials %]
717 [% END # / IF subscription.latestserials %]
719 [% END # / FOREACH subscriptions %]
720 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
721 </div> <!-- / #subscriptions -->
722 [% END # IF subscriptionsnumber %]
724 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
725 <!-- Library Thing for Libraries Content -->
726 <div id="LFTLSimilarItems">
727 <div class="content_set">
728 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
729 <!-- but breaks Xhtml validation -->
730 <!-- <span class="results_summary">-->
731 <div id="ltfl_related"></div>
732 <div id="ltfl_similars"></div>
736 <div id="LTFLTagBrowse">
737 <div class="content_set">
738 <!-- <span class="results_summary"> -->
739 <div id="ltfl_tagbrowse" class="ltfl"></div>
743 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
745 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
747 <div id="newcomment"></div>
749 [% FOREACH review IN reviews %]
750 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
751 <div class="commentline yours" id="c[% review.reviewid | html %]">
752 [% IF ( review.avatarurl ) %]
753 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
755 [% IF review.approved %]
756 <h2 id="comment">Your comment</h2>
758 <h2 id="comment">Your comment (preview, pending approval)</h2>
760 <small>[% review.datereviewed | $KohaDates %]</small>
762 [% FILTER html_break %]
763 [% review.review | html %]
765 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a>
769 <div class="commentline">
770 [% IF ( ShowReviewer != "none" && review.patron) %]
772 [% IF ( review.avatarurl ) %]
773 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
775 [% SWITCH ShowReviewer %]
777 <h2 id="comment">Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h2>
779 <h2 id="comment">Comment by [% review.patron.firstname | html %]</h2>
781 <h2 id="comment">Comment by [% review.patron.surname | html %]</h2>
782 [% CASE 'firstandinitial' %]
783 <h2 id="comment">Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h2>
784 [% CASE 'username' %]
785 <h2 id="comment">Comment by [% review.patron.userid | html %]</h2>
788 <small>[% review.datereviewed | $KohaDates %]</small>
790 <h2 id="comment">Patron comment on [% review.datereviewed | $KohaDates %]</h2>
791 [% END # / IF ShowReviewer != "none" && review.patron %]
793 [% FILTER html_break %]
794 [% review.review | html %]
797 </div> <!-- / .commentline -->
799 [% END # / FOREACH reviews %]
801 <p>There are no comments on this title.</p>
802 [% END # / IF reviews %]
804 [% IF ( loggedinusername ) %]
805 [% UNLESS ( loggedincommenter ) %]
806 <div id="addcomment">
807 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
808 Post your comments on this title.
813 <div id="addcomment">
814 <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.
816 [% END # / IF loggedinusername %]
817 </div> <!-- / #comments -->
818 [% END # / IF OPACComments %]
820 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
822 <h2>Other editions of this work</h2>
823 <table class="table table-bordered table-striped">
824 <caption class="sr-only">Other editions</caption>
825 [% FOREACH XISBN IN XISBNS %]
828 [% IF ( OPACAmazonCoverImages ) %]
829 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
832 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
833 [% IF ( XISBN.content_identifier_exists ) %]
834 <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="" />
836 <span class="no-image">No cover image available</span>
837 [% END # / IF XISBN.content_identifier_exists %]
838 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
841 [% UNLESS ( item_level_itypes ) %]
842 <td>[% XISBN.description | html %]</td>
845 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
846 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
847 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
848 [% IF ( XISBN.publishercode ) %]
849 <p>[% XISBN.publishercode | html %]
850 [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
851 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
852 [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
857 [% END # / FOREACH XISBNS %]
859 </div> <!-- / #editions -->
860 [% END # / IF OPACFRBRizeEditions && XISBNS %]
862 [% IF ( HTML5MediaEnabled ) %]
863 <div id="html5media">
864 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
866 [% IF HTML5MediaSet.is_youtube %]
867 <iframe id="player" type="text/html" width="640" height="360"
868 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
870 [% SET ctrl_preload = ' controls preload=none' #translatability %]
871 <[% HTML5MediaParent _ ctrl_preload | html %] >
872 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
873 <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
874 </[% HTML5MediaParent | html %]>
879 [% END # / IF HTML5MediaEnabled %]
881 [% IF ( OPACLocalCoverImages && localimages.count ) %]
883 <p>Click on an image to view it in the image viewer</p>
884 [% FOREACH image IN localimages %]
885 <a href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
886 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
889 </div><!-- / #images -->
890 [% END # / IF OPACLocalCoverImages && localimages.size %]
892 </div> <!-- / #bibliodescriptions -->
894 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
895 <div id="NovelistSelect">
896 <h2>Novelist Select</h2>
897 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
901 [% IF ( Babeltheque ) %]
903 <div id="BW_etiquettes"></div>
904 <div id="BW_suggestions"></div>
906 <div class="clearfix"></div>
908 <div id="BW_podcasts"></div>
910 <div class="clearfix"></div>
912 <div id="BW_videos"></div>
914 [% END # / IF Babeltheque %]
916 </div> <!-- /.col-lg-10 -->
918 <div class="col-lg-3">
919 <div id="ulactioncontainer">
921 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
922 <div class="nav_results">
923 <div class="l_Results" style="display:none;">
924 [% IF ( listResults ) %]
925 <a href="#" id="a_listResults"><i class="fa fa-bars" aria-hidden="true"></i> Browse results</a>
927 <span><i class="fa fa-bars" aria-hidden="true"></i> Browse results</span>
929 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
932 <div class="pg_menu">
933 <div class="pg_link left_results">
934 [% IF ( previousBiblionumber ) %]
935 <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>
937 <span>Previous</span>
940 [%# busc is already URI encoded %]
941 <div class="pg_link back_results">
942 <a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a>
944 <div class="pg_link right_results">
945 [% IF ( nextBiblionumber ) %]
946 <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>
951 </div> <!-- /.pg_menu -->
953 [% IF ( listResults ) %]
954 <div class="results-pagination">
955 <div class="nav_pages">
956 <ul id="listResults">
957 [% FOREACH listitem IN listResults %]
958 [% IF ( listitem.biblionumber == biblionumber ) %]
959 <li class="li_pag_[% loop.count | html %] highlight">
961 <li class="li_pag_[% loop.count | html %]">
963 <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>
965 [% END # /FOREACH listitem %]
966 </ul> <!-- /#listResults -->
967 </div> <!-- /.nav_pages -->
968 <div class="pagination_list">
969 <ul id="ul_pagination_lists">
970 [% FOREACH listitem IN listResults %]
971 [% IF ( listitem.biblionumber == biblionumber ) %]
972 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
973 <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count + offset | html %]</span>
974 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]by [% author | html %][% END %]
977 <li id="li_pag_[% loop.count | html %]" title="Go to detail">
978 <span class="li_pag_index">[% loop.count + offset | html %]</span>
979 <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 %]
981 [% END # /IF listitem.biblionumber %]
982 [% END # /FOREACH listitem %]
983 </ul> <!-- /#ul_pagination_list -->s
984 </div> <!-- /.pagination_list -->
985 </div> <!-- /.results-pagination -->
986 [% END # /IF ( listResults ) %]
987 <div class="pagination_footer">
988 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
990 </div> <!-- /.nav_results -->
991 [% END # / IF OpacBrowseResults && busc %]
993 [% INCLUDE 'opac-detail-sidebar.inc' %]
995 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
996 <div id="NovelistSelect">
997 <h2>Novelist Select</h2>
998 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1002 [% IF ( Babeltheque ) %]
1003 <div class="babeltheque_adds">
1004 <div id="BW_critiques_aj"></div>
1005 <div id="BW_citations_aj"></div>
1009 [% IF ( Koha.Preference('SocialNetworks') ) %]
1010 <div id="social_networks" class="clearfix">
1012 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1013 [% FOREACH network IN SocialNetworks.split(",") %]
1014 [% SWITCH network -%]
1015 [% CASE "facebook" -%]
1016 <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>
1017 [% CASE "linkedin" -%]
1018 <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>
1020 <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>
1021 [% CASE "twitter" -%]
1022 <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>
1023 [% END # /SWITCH network -%]
1024 [% END # /FOREACH network %]
1025 </div> <!-- /#social_networks -->
1026 [% END # /IF SocialNetworks %]
1027 </div> <!-- / .ulactioncontainer -->
1028 </div> <!-- / .col-lg-3 -->
1029 </div> <!-- / .row -->
1031 [% IF ( LibraryThingForLibrariesID ) %]
1032 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1033 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1034 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1037 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1038 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1041 [% IF ( Babeltheque ) %]
1042 <script src="[% Babeltheque_url_js | html %]"></script>
1044 </div> <!-- / .row -->
1045 </div> <!-- / .container-fluid -->
1046 </div> <!-- / .main -->
1048 [% IF ( OPACPopupAuthorsSearch ) %]
1050 <div class="modal" id="multiSearch" tabindex="-1" role="dialog" aria-labelledby="multiSearchLabel">
1051 <div class="modal-dialog" role="document">
1052 <div class="modal-content">
1053 <div class="modal-header">
1054 <h1 id="multiSearchLabel">Select the item(s) to search</h1>
1055 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1057 <div class="modal-body">
1058 <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>
1059 <a href="#" class="check_none btn btn-link btn-sm"><i class="fa fa-remove" aria-hidden="true"></i> Select none</a>
1063 <div class="modal-footer">
1064 <button id="validMultiSearch" class="btn btn-primary">Search</button>
1065 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
1067 </div> <!-- /.modal-content -->
1068 </div> <!-- /.modal-dialog -->
1069 </div> <!-- /#myModal -->
1072 [% INCLUDE 'opac-bottom.inc' %]
1074 [%# End of template %]
1076 [% BLOCK items_table %]
1077 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1078 <caption class="sr-only">Holdings</caption>
1082 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1083 <th id="item_cover" data-colname="item_cover">Cover image</th>
1085 [% IF ( item_level_itypes ) %]
1086 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>
1088 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1089 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current library</th>
1091 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1092 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>
1094 [% IF ( itemdata_ccode ) %]
1095 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>
1097 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1098 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>
1100 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1101 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1102 <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>
1104 [% IF ( itemdata_enumchron ) %]
1105 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>
1107 [% IF ( itemdata_uri ) %]
1108 <th id="item_url" data-colname="item_url" class="url">URL</th>
1110 [% IF ( itemdata_copynumber ) %]
1111 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>
1113 <th id="item_status" data-colname="item_status" class="status">Status</th>
1114 [% IF ( itemdata_itemnotes ) %]
1115 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>
1117 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1118 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1119 [% IF holds_count.defined %]
1120 <th id="item_holds" data-colname="item_holds">Item holds</th>
1121 [% ELSIF show_priority %]
1122 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1124 [% IF ( ShowCourseReservesHeader ) %]
1125 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>
1130 [% FOREACH ITEM_RESULT IN items %]
1131 <tr vocab="http://schema.org/" typeof="Offer">
1133 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1135 <div class="bookcover">
1136 <div class="cover-slider">
1137 [% FOR image IN ITEM_RESULT.cover_images %]
1138 <div class="cover-image local-coverimg">
1139 <a href="/cgi-bin/koha/opac-image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
1140 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
1149 [% IF ( item_level_itypes ) %]
1151 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
1152 [% IF ( ITEM_RESULT.imageurl ) %]
1153 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1156 [% ITEM_RESULT.description | html %]
1159 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1160 <td class="location" property="seller">
1161 <link property="itemOffered" href="#record" />
1162 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1163 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1164 [% IF ( ITEM_RESULT.branchurl ) %]
1165 <a href="[% ITEM_RESULT.branchurl | url %]">[% ITEM_RESULT.branchname | html %]</a>
1167 <span>[% ITEM_RESULT.branchname | html %]</span>
1170 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div>
1172 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1173 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1179 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1180 <td class="location" property="seller">
1181 <link property="itemOffered" href="#record" />
1182 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1183 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1184 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1185 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1186 [% IF ( home_branch_url ) %]
1187 <a href="[% home_branch_url | url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</a>
1189 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1192 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1195 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div>
1197 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1198 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1204 [% IF ( itemdata_ccode ) %]
1205 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1208 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1209 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1212 <td class="call_no" property="sku">
1213 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1214 [% ITEM_RESULT.itemcallnumber | html %]
1215 [% IF ( OPACShelfBrowser ) %]
1216 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1217 (<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>)
1219 (<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>)
1225 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1226 <td class="materials">[% ITEM_RESULT.materials | html %]</td>
1229 [% IF ( itemdata_enumchron ) %]
1230 <td class="vol_info">
1231 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1232 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1233 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1234 <span class="sep"> -- </span>
1235 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1237 [% ELSIF ITEM_RESULT.enumchron %]
1238 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1239 [% ELSIF ITEM_RESULT.serialseq %]
1240 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1242 [% IF ( ITEM_RESULT.publisheddate ) %]
1243 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1247 [% IF ( itemdata_uri ) %]
1249 [% IF ITEM_RESULT.uri %]
1250 [%# Initialize two helper vars %]
1251 [% SET target_attr = ''; SET rel_attr = '' %]
1252 [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %]
1254 [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %]
1255 [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %]
1256 [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %]
1257 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1258 <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>
1260 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% uri | url %]" property="url">[% uri | html %]</a>
1264 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1265 <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">
1267 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% ITEM_RESULT.uri | url %]" property="url">
1269 [% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]
1274 [% END # /IF itemdata_uri %]
1275 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1276 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1277 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1278 <td class="date_due" data-order="[% ITEM_RESULT.datedue | html %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</td>
1279 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1280 [% IF holds_count.defined || show_priority %]
1281 <td class="holds_count">
1282 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1283 [% IF ITEM_RESULT.priority %]
1284 [% IF holds_count.defined %]
1285 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1287 <span>[% ITEM_RESULT.priority | html %]</span>
1292 [% IF ShowCourseReservesHeader %]
1294 [% IF ITEM_RESULT.course_reserves %]
1295 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1296 [% IF r.course.enabled == 'yes' %]
1298 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1299 [% r.course.course_name | html %]
1300 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1301 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1302 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1309 [% END # /IF ShowCourseReservesHeader %]
1314 [% END %][%# end of items_table block %]
1316 [% BLOCK jsinclude %]
1317 [% INCLUDE 'datatables.inc' %]
1318 [% INCLUDE 'columns_settings.inc' %]
1319 [% INCLUDE greybox.inc %]
1320 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1322 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1323 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1324 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1327 [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1329 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1331 var interface = "[% interface | html %]";
1332 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1334 [% Asset.js("js/verovio.js") | $raw %]
1336 [% Asset.js("lib/emoji-picker/js/emoji-picker-all.min.js") | $raw %]
1337 [% IF OpenLibraryCovers || OpenLibrarySearch %]
1338 [% Asset.js("js/openlibrary.js") | $raw %]
1342 window.emojiPicker = new EmojiPicker({
1343 emojiable_selector: '[data-emojiable=true]',
1344 assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1345 popupButtonClasses: 'fa fa-smile-o'
1347 window.emojiPicker.discover();
1349 var OPACPopupAuthorsSearch = "[% Koha.Preference('OPACPopupAuthorsSearch') | html %]";
1350 [% IF ( OpacHighlightedWords ) %]
1351 var q_array = new Array(); // holds search terms if available
1353 function highlightOff() {
1354 $("#catalogue_detail_biblio").removeHighlight();
1355 $(".highlight_toggle").toggle();
1357 function highlightOn() {
1359 for (x in q_array) {
1360 if ( q_array[x].length > 0 ) {
1361 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1362 q_array[x] = q_array[x].toLowerCase();
1363 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1364 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1365 $(".title").highlight(q_array[x]);
1366 $(".author").highlight(q_array[x]);
1367 $(".results_summary").highlight(q_array[x]);
1370 $(".highlight_toggle").toggle();
1373 [% END # /IF OpacHighlightedWords %]
1375 $(document).ready(function() {
1377 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1384 text: location.href,
1387 document.getElementById("qrcode").appendChild( qrcode );
1390 $(".show_qrcode").on("click", function(){
1391 var qrcodeImg = $("#qrcode");
1392 if( qrcodeImg.hasClass("d-none") ){
1393 qrcodeImg.removeClass("d-none");
1395 qrcodeImg.addClass("d-none");
1398 [% END # /IF OPACDetailQRCode %]
1400 $('#bibliodescriptions').tabs();
1401 $(".branch-info-tooltip-trigger").uitooltip({
1402 position: { my: "left+15 center", at: "right center" },
1405 content: function(){
1406 var element = $(this).next("div");
1407 return element.html();
1411 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1412 $(".l_Results").show();
1413 $("#a_listResults").on("click", function(e){
1415 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1418 $(".close_pagination").on("click", function(e){
1420 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1422 [% END # /IF OpacBrowseResults %]
1424 var columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1426 KohaTable("#holdingst", {
1427 dom: '<"clearfix">t',
1429 { "targets": [ -1 ], "sortable": false, "searchable": false },
1431 "bKohaColumnsUseNames": true,
1433 }, columns_settings);
1435 KohaTable("#otherholdingst", {
1436 dom: '<"clearfix">t',
1438 { "targets": [ -1 ], "sortable": false, "searchable": false },
1440 "bKohaColumnsUseNames": true,
1442 }, columns_settings);
1444 var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1446 KohaTable("#subscriptionst", {
1447 dom: '<"clearfix">t',
1448 "sorting": [[ 1, "desc" ]],
1450 "bKohaColumnsUseNames": true
1451 }, serial_column_settings);
1453 [% IF ( TagsInputEnabled && loggedinusername ) %]
1454 $(".tag_add").click(function(){
1455 var thisid = $(this).attr("id");
1456 thisid = thisid.replace("tag_add","");
1458 $("#tagform"+thisid).show();
1459 $("#newtag"+thisid).focus();
1460 $("#newtag"+thisid+"_status").empty().hide();
1463 $(".cancel_tag_add").click(function(){
1464 var thisid = $(this).attr("id");
1465 thisid = thisid.replace("cancel","");
1466 $("#tagform"+thisid).hide();
1467 $("#tag_add"+thisid).show();
1468 $("#newtag"+thisid).val("");
1469 $("#newtag"+thisid+"_status").empty().hide();
1472 $(".tagbutton").click(function(){
1473 var thisid = $(this).attr("title");
1474 var tag = $("#newtag"+thisid).val();
1475 if (!tag || (tag == "")) {
1476 alert(MSG_NO_TAG_SPECIFIED);
1479 KOHA.Tags.add_tag_button(thisid, tag);
1484 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1485 [% 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 %]
1486 var default_order_index = 1;
1487 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1488 var default_order_index = 2;
1490 var default_order_index = 0;
1493 [% IF ( query_desc ) %]
1494 [% IF ( OpacHighlightedWords ) %]
1495 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1496 q_array = query_desc.split(" ");
1497 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1499 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1500 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});
1504 [% IF ( GoogleJackets ) %]
1505 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1508 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1509 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1512 [% IF OpenLibraryCovers %]
1513 KOHA.OpenLibrary.GetCoverFromIsbn();
1516 function verify_images() {
1517 // Loop over each container in the template which contains covers
1518 $(".cover-slider").each(function(){
1519 var lightbox_descriptions = [];
1520 $(this).find(".cover-image").each( function( index ){
1522 // Find the image in the container
1523 var img = div.find("img")[0];
1524 if( $(img).length > 0 ){
1525 var description = "";
1526 if( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ){
1527 // No image loaded in the container. Remove the slide
1530 // All slides start hidden. If this is the first one, show it.
1534 // Check if Amazon image is present
1535 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1538 if ((w == 1) || (h == 1)) {
1539 // Amazon returned single-pixel placeholder
1540 // Remove the container
1543 lightbox_descriptions.push(_("Amazon cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1545 } else if( div.attr("id") == "custom-coverimg" ){
1546 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1547 // No image was loaded via the CustomCoverImages system preference
1548 // Remove the container
1551 lightbox_descriptions.push("Custom cover image");
1553 } else if( div.attr("id") == "syndetics-coverimg" ){
1554 lightbox_descriptions.push("Image from Syndetics")
1555 } else if( div.attr("id") == "googlejacket-coverimg" ){
1556 lightbox_descriptions.push(_("Image from Google Jacket (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1557 } else if( div.attr("id") == "openlibrary-coverimg" ){
1558 lightbox_descriptions.push(_("Image from OpenLibrary (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1559 } else if( div.attr("id") == "coce-coverimg" ){
1560 // Identify which service's image is being loaded by Coce
1561 var coce_description;
1562 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1563 coce_description = ("Coce image from Amazon.com");
1564 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1565 coce_description = _("Coce image from Google Books");
1566 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1567 coce_description = _("Coce image from Open Library");
1569 div.find(".hint").html(coce_description);
1570 lightbox_descriptions.push(coce_description);
1571 } else if ( div.attr("id") == "adlibris-coverimg" ){
1572 lightbox_descriptions.push(_("Image from Adlibris (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1573 } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1574 lightbox_descriptions.push(_("Local cover image"));
1576 console.log("Source of the image cannot be guessed.")
1582 // Lightbox for cover images
1583 Chocolat(this.querySelectorAll('.cover-image a'), {
1584 description: function(){
1585 return lightbox_descriptions[this.settings.currentImageIndex];
1591 $(".cover-slider").each(function(){
1592 var coverSlide = this;
1593 var coverImages = $(this).find(".cover-image");
1594 if( coverImages.length > 1 ){
1595 coverImages.each(function( index ){
1596 // If more that one image is present, add a navigation link
1597 // for activating the slide
1598 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1600 // Set the first navigation link as active
1601 $(covernav).addClass("nav-active");
1603 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1604 $(coverSlide).append( covernav );
1608 if( $(coverSlide).find(".cover-image:visible").length < 1 ){
1609 $(coverSlide).remove();
1611 $(coverSlide).addClass("cover-slides");
1615 $(".cover-slider").on("click",".cover-nav", function(e){
1617 var cover_slider = $(this).parent();
1618 // Adding click handler for cover image navigation links
1619 var num = $(this).data("num");
1620 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1621 $(this).addClass("nav-active");
1622 $(cover_slider).find(".cover-image").hide();
1623 $(cover_slider).find(".cover-image").eq( num ).show();
1626 $("#editions img").each(function(i){
1627 if ( this.src.indexOf('amazon.com') >= 0 ) {
1630 if ((w == 1) || (h == 1)) {
1631 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1632 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1633 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1639 $(window).load(function() {
1642 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1643 novSelect.loadContentForQuery(
1645 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1646 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1649 '[% NovelistSelectProfile | html %]',
1650 '[% NovelistSelectPassword | html %]',
1652 if ( d.length > 0 ){ //If no content
1653 $(".NovelistSelect").show();
1658 [% IF ( OPACShelfBrowser ) %]
1659 // Focus on shelf browser if present
1660 var shelfbrowser = $("#shelfbrowser");
1661 if (shelfbrowser.length > 0) {
1662 $('html,body').animate({
1663 scrollTop: shelfbrowser.first().offset().top
1666 shelfbrowser.first().find(':focusable').eq(0).focus();
1669 (function prepareShelfBrowser(){
1671 $(".main").on("click",".close_shelf",function(e){
1673 $("#shelfbrowser").toggle();
1675 $(".main").on("click", "#browser_previous a", function(e){
1678 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1681 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1683 success: function(data){
1684 $("#shelfbrowser").replaceWith(data);
1685 [% IF ( GoogleJackets ) %]
1686 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1688 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1689 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1691 [% IF OpenLibraryCovers %]
1692 KOHA.OpenLibrary.GetCoverFromIsbn();
1694 [% IF OPACLocalCoverImages %]
1695 KOHA.LocalCover.GetCoverFromBibnumber(true);
1701 $(".main").on("click", "#browser_next a", function(e){
1704 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1707 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1709 success: function(data){
1710 $("#shelfbrowser").replaceWith(data);
1711 [% IF ( GoogleJackets ) %]
1712 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1714 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1715 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1717 [% IF OpenLibraryCovers %]
1718 KOHA.OpenLibrary.GetCoverFromIsbn();
1720 [% IF OPACLocalCoverImages %]
1721 KOHA.LocalCover.GetCoverFromBibnumber(true);
1727 [% END # /IF ( OPACShelfBrowser ) %]
1729 [% IF ( OpacStarRatings != 'disable' ) %]
1730 // -----------------------------------------------------
1731 // star-ratings code
1732 // -----------------------------------------------------
1733 // hide 'rate' button if javascript enabled
1735 $('input[name="rate_button"]').remove();
1737 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1738 $('#star_rating').barrating({
1739 theme: 'fontawesome-stars',
1740 showSelectedRating: false,
1742 deselectable: false,
1743 readonly: rating_enabled,
1744 onSelect: function(value, text) {
1745 $("#rating-loading").show();
1746 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1747 rating_old_value: $("#rating_value").attr("value"),
1748 borrowernumber: "[% borrowernumber | html %]",
1749 biblionumber: "[% biblio.biblionumber | html %]",
1750 rating_value: value,
1752 }, function (data) {
1753 $("#rating_value").val(data.rating_value);
1754 if (data.rating_value) {
1755 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1756 $("#cancel_rating_text").show();
1758 $("#rating_value_text").text('');
1759 $("#cancel_rating_text").hide();
1761 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1762 $("#rating-loading").hide();
1767 $("#cancel_rating_text a").on("click", function(e){
1769 $("#star_rating").barrating("set", "");
1772 [% END # / IF ( OpacStarRatings != 'disable' )%]
1775 $(document).ready(function() {
1776 if( OPACPopupAuthorsSearch == "1" ){
1780 "keyword_search" : "au:",
1783 "label" : "subject",
1784 "keyword_search" : "su:",
1787 $(".contributors,.subject").on("click", function(e){
1789 var term = $(this).attr("class");
1790 var selected_term = $(this).text();
1791 var term_links = $("." + term );
1792 if( term_links.length > 1 ){
1793 term_links.each(function( index ){
1795 var preselected = false;
1796 var search_label = $(this).text().trim();
1797 if( $(this).text() == selected_term ){ preselected = true }
1798 if( $(this).hasClass("authority_link") ){
1799 authid = $(this).data("authid");
1800 search_string = "an:" + authid;
1802 search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label );
1804 var termLink = $("<li>")
1805 .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) )
1807 .append( $("<label>", { for: terms[term]["label"] + index, text: search_label } ) )
1808 $("#termsList").append( termLink );
1809 $("#multiSearch").modal("show");
1812 location.href = $(this).attr("href");
1816 $("#multiSearch").on("hide.bs.modal", function(){
1817 $("#termsList").html("");
1820 $(".check_all").on("click", function(e){
1822 $(".select_term").each(function(){
1823 $(this).prop("checked", true );
1827 $(".check_none").on("click", function(e){
1829 $(".select_term").each(function(){
1830 $(this).prop("checked", false );
1834 $("#validMultiSearch").on("click", function(e){
1836 multiSearchRequest();
1838 } /* if( OPACPopupAuthorsSearch == "1" ) */
1841 function multiSearchRequest(){
1843 $(".select_term").each(function(){
1844 if( $(this).prop("checked") ){
1845 values.push( $(this).val() );
1849 if (values.length > 0) {
1850 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1851 location.href = request;