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 | uri %]&q=[% TagLoo.term | uri %]">[% 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">
373 <ul class="nav nav-tabs" role="tablist">
374 <li id="tab_holdings" class="nav-item" role="presentation">
375 [% BLOCK holding_tab_title %]
376 [% IF SeparateHoldings %]
377 <span>[% Branches.GetLoggedInBranchname | html %] holdings</span>
379 [% IF specific_item %]
380 <span>Item details</span>
382 <span>Holdings</span>
386 <a href="#holdings" class="nav-link" id="holdings-tab" data-toggle="tab" role="tab" aria-controls="holdings" aria-selected="false">
387 [% PROCESS holding_tab_title %] [% UNLESS too_many_items OR specific_item %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]
390 [% IF (SeparateHoldings) %]
391 <li class="nav-item" role="presentation">
392 <a href="#otherholdings" class="nav-link" id="otherholdings-tab" data-toggle="tab" role="tab" aria-controls="otherholdings" aria-selected="false">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a>
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" class="nav-item" role="presentation">
402 <a href="#descriptions" class="nav-link" id="tab_descriptions-tab" data-toggle="tab" role="tab" aria-controls="tab_descriptions" aria-selected="false">Title notes ( [% title_notes_count | html %] )</a>
405 [% IF ComponentParts && ComponentParts.size %]
406 <li id="tab_components" class="nav-item" role="presentation">
407 <a href="#components" class="nav-link" id="tab_components-tab" data-toggle="tab" role="tab" aria-controls="tab_components" aria-selected="false">
408 Components ([% ComponentParts.size | html %])</a>
411 [% IF ( SYNDETICS_TOC ) %]
412 <li id="tab_toc" class="nav-item" role="presentation">
413 <a href="#toc" class="nav-link" id="tab_toc-tab" data-toggle="tab" role="tab" aria-controls="tab_toc" aria-selected="false">TOC</a>
416 [% IF ( SyndeticsEnabled ) %]
417 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
418 <li id="tab_excerpt" class="nav-item" role="presentation">
419 <a href="#excerpt" class="nav-link" id="tab_excerpt-tab" data-toggle="tab" role="tab" aria-controls="tab_excerpt" aria-selected="false">Excerpt</a>
422 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
423 <li id="tab_reviews" class="nav-item" role="presentation">
424 <a href="#reviews" class="nav-link" id="tab_reviews-tab" data-toggle="tab" role="tab" aria-controls="tab_reviews" aria-selected="false">Reviews</a>
426 [% IF ( LibraryThingForLibrariesID ) %]
427 <li id="tab_LTFLreviews">
428 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
429 <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>
433 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
434 <li id="tab_anotes" class="nav-item" role="presentation">
435 <a href="#anotes" class="nav-link" id="tab_anotes-tab" data-toggle="tab" role="tab" aria-controls="tab_anotes" aria-selected="false">About the author</a>
438 [% END # / IF SyndeticsEnabled %]
440 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
441 <li id="tab_LFTLSimilarItems" class="nav-item" role="presentation">
442 <a href="#LFTLSimilarItems" class="nav-link" id="tab_LFTLSimilarItems-tab" data-toggle="tab" role="tab" aria-controls="tab_LFTLSimilarItems" aria-selected="false">Similar items</a>
444 <li id="tab_LTFLTagBrowse">
445 <a href="#LTFLTagBrowse" class="nav-link" id="tab_LTFLTagBrowse-tab" data-toggle="tab" role="tab" aria-controls="tab_LTFLTagBrowse" aria-selected="false">Tag browser</a>
449 [% IF ( subscriptionsnumber ) %]
450 <li id="tab_subscriptions" class="nav-item" role="presentation">
451 <a href="#subscriptions" class="nav-link" id="tab_subscriptions-tab" data-toggle="tab" role="tab" aria-controls="tab_subscriptions" aria-selected="false">
452 Subscriptions ( [% subscriptionsnumber | html %] )</a>
456 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
457 <li id="tab_comments" class="nav-item" role="presentation">
458 <a href="#comments" class="nav-link" id="tab_comments-tab" data-toggle="tab" role="tab" aria-controls="tab_comments" aria-selected="false">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a>
462 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
463 [% IF ( NovelistSelectView == 'tab') %]
464 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;" class="nav-item" role="presentation">
465 <a href="#NovelistSelect" class="nav-link" id="tab_NovelistSelect-tab" data-toggle="tab" role="tab" aria-controls="tab_NovelistSelect" aria-selected="false">Novelist Select</a>
470 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
471 <li id="tab_editions" class="nav-item" role="presentation">
472 <a href="#editions" class="nav-link" id="tab_editions-tab" data-toggle="tab" role="tab" aria-controls="tab_editions" aria-selected="false">Editions</a>
476 [% IF ( serialcollection ) %]
477 <li id="tab_serialcollection" class="nav-item" role="presentation">
478 <a href="#serialcollection" class="nav-link" id="tab_serialcollection-tab" data-toggle="tab" role="tab" aria-controls="tab_serialcollection" aria-selected="false">
484 [% IF ( OPACLocalCoverImages && localimages.count ) %]
485 <li id="tab_images" class="nav-item" role="presentation">
486 <a href="#images" class="nav-link" id="tab_images-tab" data-toggle="tab" role="tab" aria-controls="tab_images" aria-selected="false">Images</a>
490 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
491 <li id="tab_html5media" class="nav-item" role="presentation">
492 <a href="#html5media" class="nav-link" id="tab_html5media-tab" data-toggle="tab" role="tab" aria-controls="tab_html5media" aria-selected="false">
498 [% IF Koha.Preference( 'OPACAuthorIdentifiers' ) && author_identifiers.size %]
499 <li id="tab_author_identifiers"><a href="#author_identifiers">Author identifiers</a></li>
504 <div class="tab-content">
505 [% IF ( serialcollection ) %]
506 <div id="serialcollection" class="tab-pane" role="tabpanel" aria-labelledby="tab_serialcollection-tab">
507 <table id="serialcollectiont" class="table table-bordered table-striped">
508 <caption class="sr-only">Serial collections</caption>
511 <th id="serial_library">Library</th>
512 <th id="serial_collection">Serial collection</th>
513 <th id="serial_itemcallnumber">Item call number</th>
517 [% FOREACH serialcollection IN serialcollections %]
519 <td>[% serialcollection.branch | html %]</td>
520 <td>[% serialcollection.text | html %]</td>
521 <td>[% serialcollection.itemcallnumber | html %]</td>
526 </div> <!-- /#serialcollection -->
527 [% END # / IF serialcollection %]
530 <div id="holdings" class="tab-pane" role="tabpanel" aria-labelledby="holdings-tab">
531 [% IF too_many_items %]
532 <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>
533 [% ELSIF ( itemloop.size ) %]
534 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
535 [% IF specific_item %]
536 <p><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]">Show all items</a></p>
538 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
539 [% IF acquisition_details.total_quantity == 1 %]
540 <span>1 item is on order.</span>
542 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
545 [% IF holds_count.defined || priority %]
547 [% IF holds_count.defined %]
548 <span>Total holds: [% holds_count | html %]</span>
551 [% IF holds_count.defined %]
552 <span>(priority [% priority | html %])</span>
554 <span>Overall queue priority: [% priority | html %]</span>
560 [% END # /IF specific_item %]
562 [% IF ( ALTERNATEHOLDINGS ) %]
563 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
564 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
567 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
568 [% IF acquisition_details.total_quantity == 1 %]
569 <span>1 item is on order.</span>
571 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
574 <div id="noitems">No physical items for this record</div>
577 [% END # IF itemloop.size %]
578 [% PROCESS 'shelfbrowser.inc' %]
579 [% INCLUDE shelfbrowser tab='holdings' %]
580 <br style="clear:both;" />
581 </div> <!-- / #holdings -->
583 [% IF (SeparateHoldings) %]
584 <div id="otherholdings" class="tab-pane" role="tabpanel" aria-labelledby="otherholdings-tab">
585 [% IF (otheritemloop.size) %]
586 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
588 <span>No other items.</span>
590 [% INCLUDE shelfbrowser tab='otherholdings' %]
592 [% END # / SeparateHoldings %]
594 [% IF ( MARCNOTES || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
595 <div id="descriptions" class="tab-pane" role="tabpanel" aria-labelledby="tab_descriptions-tab">
596 <div class="content_set">
598 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
599 <h2>Enhanced descriptions from Syndetics:</h2>
600 <p>[% SYNDETICS_SUMMARY | $raw %]</p>
603 [% IF ( MARCNOTES ) %]
605 [% FOREACH MARCNOTE IN MARCNOTES %]
607 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
608 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
610 [% MARCNOTE.marcnote | html | html_line_break %]
617 </div> <!-- /.content_set -->
618 </div> <!-- / #descriptions -->
619 [% END # / IF MARCNOTES %]
621 [% IF ComponentParts && ComponentParts.size %]
622 <div id="components" class="tab-pane" role="tabpanel" aria-labelledby="tab_components-tab">
623 <div class="content_set">
625 [% FOR PART IN ComponentParts %]
633 [% IF ComponentParts.size == Koha.Preference('MaxComponentRecords')%]
634 <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>
640 [% IF ( SyndeticsEnabled ) %]
641 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
642 <div id="toc" class="tab-pane" role="tabpanel" aria-labelledby="tab_toc-tab">
643 <div class="content_set">
644 <h2>Table of contents provided by Syndetics</h2>
646 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
647 <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
652 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
654 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
655 <div id="excerpt" class="tab-pane" role="tabpanel" aria-labelledby="tab_excerpt-tab">
656 <div class="content_set">
657 <h2>Excerpt provided by Syndetics</h2>
658 [% SYNDETICS_EXCERPT | $raw %]
661 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
663 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
664 <div id="reviews" class="tab-pane" role="tabpanel" aria-labelledby="tab_reviews-tab">
665 <div class="content_set">
666 <h2>Reviews provided by Syndetics</h2>
667 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
668 [% IF ( SYNDETICS_REVIEW.title ) %]
669 <h3>[% SYNDETICS_REVIEW.title | html %]</h3>
670 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
672 [% IF ( review.content ) %]
673 [% review.content | $raw %]
681 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
683 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
684 <div id="anotes" class="tab-pane" role="tabpanel" aria-labelledby="tab_anotes-tab">
685 <div class="content_set">
686 <h2>Author notes provided by Syndetics</h2>
687 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
688 [% IF ( SYNDETICS_ANOTE.content ) %]
689 [% SYNDETICS_ANOTE.content | $raw %]
694 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
695 [% END # / IF SyndeticsEnabled %]
697 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
698 <div id="NovelistSelect" class="tab-pane" role="tabpanel" aria-labelledby="tab_NovelistSelect-tab">
699 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
701 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
703 [% IF ( subscriptionsnumber ) %]
704 <div id="subscriptions" class="tab-pane" role="tabpanel" aria-labelledby="tab_subscriptions-tab">
705 <h2>This is a serial</h2>
706 <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
707 [% FOREACH subscription IN subscriptions %]
708 <div class="subscription">
709 [% IF ( subscription.branchcode ) %]
710 <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
712 [% IF ( subscription.branchcode ) %]
713 <h3>At library: [% subscription.branchcode | html %]</h3>
716 [% IF ( subscription.closed ) %]
717 <p class="subscription_closed">This subscription is closed.</p>
719 [% IF ( subscription.location ) %]
720 <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
722 [% IF ( subscription.callnumber ) %]
723 <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
725 [% IF ( subscription.subscriptionnotes ) %]
726 <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
728 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
729 [% IF ( subscription.letter ) %]
730 <span class="email_notifications">
731 [% IF ( loggedinusername ) %]
732 [% IF ( subscription.hasalert ) %]
733 <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>
735 <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>
738 <span>You must log in if you want to subscribe to email notification on new issues</span>
742 [% IF ( subscription.missinglist ) %]
743 <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
745 [% IF ( subscription.opacnote ) %]
746 <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
748 [% IF ( subscription.latestserials ) %]
749 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
750 <table class="table table-bordered table-striped" id="subscriptionst">
751 <caption class="sr-only">Latest serials</caption>
754 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
755 <th id="serial_publisheddate" data-colname="serial_publisheddate">Publication date</th>
756 <th id="serial_planneddate" data-colname="serial_planneddate">Received date</th>
757 <th id="serial_status" data-colname="serial_status">Status</th>
758 <th id="serial_notes" data-colname="serial_notes">Note</th>
762 [% FOREACH latestserial IN subscription.latestserials %]
764 <td class="serialseq">[% latestserial.serialseq | html %]</td>
765 <td class="publisheddate" data-order="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</td>
766 <td class="planneddate" data-order="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</td>
767 <td class="serial_status">
768 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
769 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
770 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
771 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
772 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
773 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
774 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
775 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
776 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
777 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
778 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
779 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
781 <td class="serial_notes">[% latestserial.notes | html %]</td>
783 [% END # / FOREACH latestserials %]
786 [% END # / IF subscription.latestserials %]
788 [% END # / FOREACH subscriptions %]
789 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
790 </div> <!-- / #subscriptions -->
791 [% END # IF subscriptionsnumber %]
793 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
794 <!-- Library Thing for Libraries Content -->
795 <div id="LFTLSimilarItems" class="tab-pane" role="tabpanel" aria-labelledby="tab_LFTLSimilarItems-tab">
796 <div class="content_set">
797 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
798 <!-- but breaks Xhtml validation -->
799 <!-- <span class="results_summary">-->
800 <div id="ltfl_related"></div>
801 <div id="ltfl_similars"></div>
805 <div id="LTFLTagBrowse" class="tab-pane" role="tabpanel" aria-labelledby="tab_LTFLTagBrowse-tab">
806 <div class="content_set">
807 <!-- <span class="results_summary"> -->
808 <div id="ltfl_tagbrowse" class="ltfl"></div>
812 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
814 [% IF Koha.Preference( 'OPACComments' ) == 1 %]
815 <div id="comments" class="tab-pane" role="tabpanel" aria-labelledby="tab_comments-tab">
816 <div id="newcomment"></div>
818 [% FOREACH review IN reviews %]
819 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
820 <div class="commentline yours" id="c[% review.reviewid | html %]">
821 [% IF ( review.avatarurl ) %]
822 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
824 [% IF review.approved %]
825 <h2 id="comment">Your comment</h2>
827 <h2 id="comment">Your comment (preview, pending approval)</h2>
829 <small>[% review.datereviewed | $KohaDates %]</small>
831 [% FILTER html_break %]
832 [% review.review | html %]
834 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a>
838 <div class="commentline">
839 [% IF ( ShowReviewer != "none" && review.patron) %]
841 [% IF ( review.avatarurl ) %]
842 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
844 [% SWITCH ShowReviewer %]
846 <h2 id="comment">Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h2>
848 <h2 id="comment">Comment by [% review.patron.firstname | html %]</h2>
850 <h2 id="comment">Comment by [% review.patron.surname | html %]</h2>
851 [% CASE 'firstandinitial' %]
852 <h2 id="comment">Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h2>
853 [% CASE 'username' %]
854 <h2 id="comment">Comment by [% review.patron.userid | html %]</h2>
857 <small>[% review.datereviewed | $KohaDates %]</small>
859 <h2 id="comment">Patron comment on [% review.datereviewed | $KohaDates %]</h2>
860 [% END # / IF ShowReviewer != "none" && review.patron %]
862 [% FILTER html_break %]
863 [% review.review | html %]
866 </div> <!-- / .commentline -->
868 [% END # / FOREACH reviews %]
870 <p>There are no comments on this title.</p>
871 [% END # / IF reviews %]
873 [% IF ( loggedinusername ) %]
874 [% UNLESS ( loggedincommenter ) %]
875 <div id="addcomment">
876 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
877 Post your comments on this title.
882 <div id="addcomment">
883 <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.
885 [% END # / IF loggedinusername %]
886 </div> <!-- / #comments -->
887 [% END # / IF OPACComments %]
889 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
890 <div id="editions" class="tab-pane" role="tabpanel" aria-labelledby="tab_editions-tab">
891 <h2>Other editions of this work</h2>
892 <table class="table table-bordered table-striped">
893 <caption class="sr-only">Other editions</caption>
894 [% FOREACH XISBN IN XISBNS %]
897 [% IF ( OPACAmazonCoverImages ) %]
898 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
901 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
902 [% IF ( XISBN.content_identifier_exists ) %]
903 <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="" />
905 <span class="no-image">No cover image available</span>
906 [% END # / IF XISBN.content_identifier_exists %]
907 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
910 [% UNLESS ( item_level_itypes ) %]
911 <td>[% XISBN.description | html %]</td>
914 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
915 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
916 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
917 [% IF ( XISBN.publishercode ) %]
918 <p>[% XISBN.publishercode | html %]
919 [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
920 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
921 [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
926 [% END # / FOREACH XISBNS %]
928 </div> <!-- / #editions -->
929 [% END # / IF OPACFRBRizeEditions && XISBNS %]
931 [% IF ( HTML5MediaEnabled ) %]
932 <div id="html5media" class="tab-pane" role="tabpanel" aria-labelledby="tab_html5media-tab">
933 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
935 [% IF HTML5MediaSet.is_youtube %]
936 <iframe id="player" type="text/html" width="640" height="360"
937 src="[% HTML5MediaSet.srcblock | url %]" frameborder="0"></iframe>
939 [% SET ctrl_preload = ' controls preload=none' #translatability %]
940 <[% HTML5MediaParent _ ctrl_preload | html %] >
941 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | url %]" [% HTML5MediaSet.typeblock | html %] />
942 <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
943 </[% HTML5MediaParent | html %]>
948 [% END # / IF HTML5MediaEnabled %]
950 [% IF ( OPACLocalCoverImages && localimages.count ) %]
951 <div id="images" class="tab-pane" role="tabpanel" aria-labelledby="tab_images-tab">
952 <p>Click on an image to view it in the image viewer</p>
953 [% FOREACH image IN localimages %]
954 <a href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
955 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
958 </div><!-- / #images -->
959 [% END # / IF OPACLocalCoverImages && localimages.size %]
961 [% IF Koha.Preference( 'OPACAuthorIdentifiers' ) && author_identifiers.size %]
962 <div id="author_identifiers" class="tab-pane" role="tabpanel" aria-labelledby="tab_author_identifiers-tab">
963 [% FOR author IN author_identifiers %]
964 <div class="author_identifier">
965 <span class="author_name"><a href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% author.authid | uri %]">[% author.name | html %]</a></span>
967 [% FOR identifier IN author.identifiers %]
969 [% SWITCH identifier.source.lower %]
972 <a href="https://orcid.org/[% identifier.number | url %]">[% identifier.number | html %]</a>
975 <a href="https://www.scopus.com/authid/detail.uri?authorId=[% identifier.number | url %]">[% identifier.number | html %]</a>
978 <a href="https://loop.frontiersin.org/people/[% identifier.number | url %]">[% identifier.number | html %]</a>
981 <a href="https://publons.com/researcher/[% identifier.number | url %]">[% identifier.number | html %]</a>
984 <a href="https://viaf.org/viaf/[% identifier.number | url %]">[% identifier.number | html %]</a>
985 [% CASE %][% identifier.source | html %]: [% identifier.number | html %]
987 [% IF identifier.linkage %]
988 <a href="[% identifier.linkage | url %]">[% identifier.number | html %]</a>
990 [% identifier.number | html %]
1000 </div> <!-- / #bibliodescriptions -->
1002 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1003 <div id="NovelistSelect" class="tab-pane" role="tabpanel" aria-labelledby="tab_NovelistSelect-tab">
1004 <h2>Novelist Select</h2>
1005 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1009 [% IF ( Babeltheque ) %]
1011 <div id="BW_etiquettes"></div>
1012 <div id="BW_suggestions"></div>
1014 <div class="clearfix"></div>
1016 <div id="BW_podcasts"></div>
1018 <div class="clearfix"></div>
1020 <div id="BW_videos"></div>
1022 [% END # / IF Babeltheque %]
1023 </div> <!-- /.tab-content -->
1025 </div> <!-- /.col-lg-10 -->
1027 <div class="col-lg-3">
1028 <div id="ulactioncontainer">
1030 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1031 <div class="nav_results">
1032 <div class="l_Results" style="display:none;">
1033 [% IF ( listResults ) %]
1034 <a href="#" id="a_listResults"><i class="fa fa-bars" aria-hidden="true"></i> Browse results</a>
1036 <span><i class="fa fa-bars" aria-hidden="true"></i> Browse results</span>
1038 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1041 <div class="pg_menu">
1042 <div class="pg_link left_results">
1043 [% IF ( previousBiblionumber ) %]
1044 <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>
1046 <span>Previous</span>
1049 [%# busc is already URI encoded %]
1050 <div class="pg_link back_results">
1051 <a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a>
1053 <div class="pg_link right_results">
1054 [% IF ( nextBiblionumber ) %]
1055 <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>
1060 </div> <!-- /.pg_menu -->
1062 [% IF ( listResults ) %]
1063 <div class="results-pagination">
1064 <div class="nav_pages">
1065 <ul id="listResults">
1066 [% FOREACH listitem IN listResults %]
1067 [% IF ( listitem.biblionumber == biblionumber ) %]
1068 <li class="li_pag_[% loop.count | html %] highlight">
1070 <li class="li_pag_[% loop.count | html %]">
1072 <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>
1074 [% END # /FOREACH listitem %]
1075 </ul> <!-- /#listResults -->
1076 </div> <!-- /.nav_pages -->
1077 <div class="pagination_list">
1078 <ul id="ul_pagination_lists">
1079 [% FOREACH listitem IN listResults %]
1080 [% IF ( listitem.biblionumber == biblionumber ) %]
1081 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1082 <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count + offset | html %]</span>
1083 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]<span>by</span> [% author | html %][% END %]
1086 <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1087 <span class="li_pag_index">[% loop.count + offset | html %]</span>
1088 <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br> [% IF ( listitem.author ) %]<span>by</span> [% listitem.author | html %][% END %]
1090 [% END # /IF listitem.biblionumber %]
1091 [% END # /FOREACH listitem %]
1092 </ul> <!-- /#ul_pagination_list -->
1093 </div> <!-- /.pagination_list -->
1094 </div> <!-- /.results-pagination -->
1095 [% END # /IF ( listResults ) %]
1096 <div class="pagination_footer">
1097 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1099 </div> <!-- /.nav_results -->
1100 [% END # / IF OpacBrowseResults && busc %]
1102 [% INCLUDE 'opac-detail-sidebar.inc' %]
1104 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1105 <div id="NovelistSelect">
1106 <h2>Novelist Select</h2>
1107 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1111 [% IF ( Babeltheque ) %]
1112 <div class="babeltheque_adds">
1113 <div id="BW_critiques_aj"></div>
1114 <div id="BW_citations_aj"></div>
1118 [% IF ( Koha.Preference('SocialNetworks') ) %]
1119 <div id="social_networks" class="clearfix">
1121 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1122 [% FOREACH network IN SocialNetworks.split(",") %]
1123 [% SWITCH network -%]
1124 [% CASE "facebook" -%]
1125 <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>
1126 [% CASE "linkedin" -%]
1127 <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>
1129 <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>
1130 [% CASE "twitter" -%]
1131 <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>
1132 [% END # /SWITCH network -%]
1133 [% END # /FOREACH network %]
1134 </div> <!-- /#social_networks -->
1135 [% END # /IF SocialNetworks %]
1136 </div> <!-- / .ulactioncontainer -->
1137 </div> <!-- / .col-lg-3 -->
1138 </div> <!-- / .row -->
1140 [% IF ( LibraryThingForLibrariesID ) %]
1141 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1142 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1143 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1146 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1147 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1150 [% IF ( Babeltheque && Babeltheque_url_js ) %]
1151 <script src="[% Babeltheque_url_js | html %]"></script>
1153 </div> <!-- / .row -->
1154 </div> <!-- / .container-fluid -->
1155 </div> <!-- / .main -->
1157 [% IF ( OPACPopupAuthorsSearch ) %]
1159 <div class="modal" id="multiSearch" tabindex="-1" role="dialog" aria-labelledby="multiSearchLabel">
1160 <div class="modal-dialog" role="document">
1161 <div class="modal-content">
1162 <div class="modal-header">
1163 <h1 id="multiSearchLabel">Select the item(s) to search</h1>
1164 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1166 <div class="modal-body">
1167 <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>
1168 <a href="#" class="check_none btn btn-link btn-sm"><i class="fa fa-remove" aria-hidden="true"></i> Select none</a>
1172 <div class="modal-footer">
1173 <button id="validMultiSearch" class="btn btn-primary">Search</button>
1174 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
1176 </div> <!-- /.modal-content -->
1177 </div> <!-- /.modal-dialog -->
1178 </div> <!-- /#myModal -->
1181 [% INCLUDE 'opac-bottom.inc' %]
1183 [%# End of template %]
1185 [% BLOCK items_table %]
1186 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1187 <caption class="sr-only">Holdings</caption>
1191 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1192 <th id="item_cover" data-colname="item_cover">Cover image</th>
1194 [% IF ( item_level_itypes ) %]
1195 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>
1197 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1198 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current library</th>
1200 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1201 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>
1203 [% IF ( itemdata_ccode ) %]
1204 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>
1206 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1207 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>
1209 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1210 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1211 <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>
1213 [% IF ( itemdata_enumchron ) %]
1214 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>
1216 [% IF ( itemdata_uri ) %]
1217 <th id="item_url" data-colname="item_url" class="url">URL</th>
1219 [% IF ( itemdata_copynumber ) %]
1220 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>
1222 <th id="item_status" data-colname="item_status" class="status">Status</th>
1223 [% IF ( itemdata_itemnotes ) %]
1224 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>
1226 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1227 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1228 [% IF holds_count.defined %]
1229 <th id="item_holds" data-colname="item_holds">Item holds</th>
1230 [% ELSIF show_priority %]
1231 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1233 [% IF ( ShowCourseReservesHeader ) %]
1234 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>
1239 [% FOREACH ITEM_RESULT IN items %]
1240 <tr vocab="http://schema.org/" typeof="Offer">
1242 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1244 <div class="bookcover">
1245 <div class="cover-slider">
1246 [% FOR image IN ITEM_RESULT.cover_images %]
1247 <div class="cover-image local-coverimg">
1248 <a href="/cgi-bin/koha/opac-image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
1249 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
1258 [% IF ( item_level_itypes ) %]
1260 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
1261 [% IF ( ITEM_RESULT.imageurl ) %]
1262 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1265 [% ITEM_RESULT.description | html %]
1268 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1269 <td class="location" property="seller" data-order="[% ITEM_RESULT.branchname| html %]">
1270 <link property="itemOffered" href="#record" />
1271 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1273 [% IF ( ITEM_RESULT.holding_branch_opac_info ) %]
1274 <a href="[% ITEM_RESULT.branchurl | url %]" class="library_info" data-branchcode="[% ITEM_RESULT.branchcode | html %]">
1275 <i class="fa fa-info-circle" aria-hidden="true"></i> [% ITEM_RESULT.branchname | html %]
1277 [% ELSIF ( ITEM_RESULT.branchurl ) %]
1278 <a href="[% ITEM_RESULT.branchurl | url %]">
1279 [% ITEM_RESULT.branchname | html %]
1282 <span>[% ITEM_RESULT.branchname | html %]</span>
1285 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1286 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1292 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1293 <td class="location" property="seller">
1294 <link property="itemOffered" href="#record" />
1295 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1297 [% IF ( ITEM_RESULT.holding_branch_opac_info ) %]
1298 <a href="[% Branches.GetURL( ITEM_RESULT.homebranch ) | url %]" class="library_info" data-branchcode="[% ITEM_RESULT.homebranch | html %]">
1299 <i class="fa fa-info-circle" aria-hidden="true"></i> [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
1301 [% ELSIF ( Branches.GetURL( ITEM_RESULT.homebranch ) ) %]
1302 <a href="[% Branches.GetURL( ITEM_RESULT.homebranch ) | url %]">
1303 [% Branches.GetName( ITEM_RESULT.homebranch ) | html %]
1306 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1309 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1310 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1316 [% IF ( itemdata_ccode ) %]
1317 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1320 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1321 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1324 <td class="call_no" property="sku">
1325 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1326 [% ITEM_RESULT.itemcallnumber | html %]
1327 [% IF ( OPACShelfBrowser ) %]
1328 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1329 (<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>)
1331 (<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>)
1337 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1338 <td class="materials">[% ITEM_RESULT.materials | html %]</td>
1341 [% IF ( itemdata_enumchron ) %]
1342 <td class="vol_info">
1343 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1344 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1345 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1346 <span class="sep"> -- </span>
1347 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1349 [% ELSIF ITEM_RESULT.enumchron %]
1350 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1351 [% ELSIF ITEM_RESULT.serialseq %]
1352 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1354 [% IF ( ITEM_RESULT.publisheddate ) %]
1355 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1359 [% IF ( itemdata_uri ) %]
1361 [% IF ITEM_RESULT.uri %]
1362 [%# Initialize two helper vars %]
1363 [% SET target_attr = ''; SET rel_attr = '' %]
1364 [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %]
1366 [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %]
1367 [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %]
1368 [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %]
1369 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1370 <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>
1372 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% uri | url %]" property="url">[% uri | html %]</a>
1376 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1377 <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">
1379 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% ITEM_RESULT.uri | url %]" property="url">
1381 [% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]
1386 [% END # /IF itemdata_uri %]
1387 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1388 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1389 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1390 <td class="date_due" data-order="[% ITEM_RESULT.datedue | html %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</td>
1391 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1392 [% IF holds_count.defined || show_priority %]
1393 <td class="holds_count">
1394 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1395 [% IF ITEM_RESULT.priority %]
1396 [% IF holds_count.defined %]
1397 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1399 <span>[% ITEM_RESULT.priority | html %]</span>
1404 [% IF ShowCourseReservesHeader %]
1406 [% IF ITEM_RESULT.course_reserves %]
1407 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1408 [% IF r.course.enabled == 'yes' %]
1410 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1411 [% r.course.course_name | html %]
1412 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1413 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1414 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1421 [% END # /IF ShowCourseReservesHeader %]
1426 [% END %][%# end of items_table block %]
1428 <!-- Library Info Modal -->
1429 <div class="modal" id="libraryInfoModal" tabindex="-1" aria-labelledby="libraryInfoModalLabel" aria-hidden="true">
1430 <div class="modal-dialog">
1431 <div class="modal-content">
1432 <div class="modal-header">
1433 <h5 class="modal-title" id="libraryInfoModalLabel"></h5>
1434 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
1435 <span aria-hidden="true">×</span>
1438 <div class="modal-body">
1439 <div id="libraryInfo"></div>
1441 <div class="modal-footer">
1442 <a id="libraryInfoLink" href="" class="btn btn-primary">Visit web site</a>
1443 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
1445 </div> <!-- /.modal-content -->
1446 </div> <!-- /.modal-dialog -->
1447 </div> <!-- /.modal -->
1449 [% BLOCK jsinclude %]
1450 [% INCLUDE 'datatables.inc' %]
1451 [% INCLUDE 'columns_settings.inc' %]
1452 [% INCLUDE greybox.inc %]
1453 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1455 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1456 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1457 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1460 [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1462 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1464 var interface = "[% interface | html %]";
1465 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1467 [% Asset.js("js/verovio.js") | $raw %]
1469 [% Asset.js("lib/emoji-picker/js/emoji-picker-all.min.js") | $raw %]
1470 [% IF OpenLibraryCovers || OpenLibrarySearch %]
1471 [% Asset.js("js/openlibrary.js") | $raw %]
1475 window.emojiPicker = new EmojiPicker({
1476 emojiable_selector: '[data-emojiable=true]',
1477 assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1478 popupButtonClasses: 'fa fa-smile-o'
1480 window.emojiPicker.discover();
1482 var OPACPopupAuthorsSearch = "[% Koha.Preference('OPACPopupAuthorsSearch') | html %]";
1483 [% IF ( OpacHighlightedWords ) %]
1484 var q_array = new Array(); // holds search terms if available
1486 function highlightOff() {
1487 $("#catalogue_detail_biblio").removeHighlight();
1488 $(".highlight_toggle").toggle();
1490 function highlightOn() {
1492 for (x in q_array) {
1493 if ( q_array[x].length > 0 ) {
1494 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1495 q_array[x] = q_array[x].toLowerCase();
1496 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1497 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1498 $(".title").highlight(q_array[x]);
1499 $(".author").highlight(q_array[x]);
1500 $(".results_summary").highlight(q_array[x]);
1503 $(".highlight_toggle").toggle();
1506 [% END # /IF OpacHighlightedWords %]
1508 function verify_cover_images() {
1509 // Loop over each container in the template which contains covers
1510 $(".cover-slider").each(function( index ){
1511 var lightbox_descriptions = [];
1512 var first_shown = 0;
1513 $(this).find(".cover-image").each( function( index ){
1515 // Find the image in the container
1516 var img = div.find("img")[0];
1517 if( img && $(img).length > 0 ){
1518 var description = "";
1519 if( img.naturalHeight == 0 && div.attr("id") != "googlejacket-coverimg" ){
1520 // No image loaded in the container. Remove the slide
1523 // All slides start hidden. If this is the first one, show it.
1524 if( first_shown == 0 ){
1528 // Check if Amazon image is present
1529 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1532 if ((w == 1) || (h == 1)) {
1533 // Amazon returned single-pixel placeholder
1534 // Remove the container
1537 lightbox_descriptions.push(_("Amazon cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1539 } else if( div.attr("id") == "custom-coverimg" ){
1540 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1541 // No image was loaded via the CustomCoverImages system preference
1542 // Remove the container
1545 lightbox_descriptions.push(_("Custom cover image"));
1547 } else if( div.attr("id") == "syndetics-coverimg" ){
1548 lightbox_descriptions.push(_("Image from Syndetics"))
1549 } else if( div.attr("id") == "googlejacket-coverimg" ){
1550 lightbox_descriptions.push(_("Image from Google Books (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1551 } else if( div.attr("id") == "openlibrary-coverimg" ){
1552 lightbox_descriptions.push(_("Image from OpenLibrary (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1553 } else if( div.attr("id") == "coce-coverimg" ){
1554 // Identify which service's image is being loaded by Coce
1555 var coce_description;
1556 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1557 coce_description = _("Coce image from Amazon.com");
1558 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1559 coce_description = _("Coce image from Google Books");
1560 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1561 coce_description = _("Coce image from Open Library");
1563 div.find(".hint").html(coce_description);
1564 lightbox_descriptions.push(coce_description);
1565 } else if ( div.attr("id") == "bakertaylor-coverimg" ){
1566 lightbox_descriptions.push(_("Image from Baker & Taylor"));
1567 } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1568 lightbox_descriptions.push(_("Local cover image"));
1570 lightbox_descriptions.push(_("Cover image source unknown"));
1578 // Lightbox for cover images
1579 Chocolat(this.querySelectorAll('.cover-image a'), {
1580 description: function(){
1581 return lightbox_descriptions[this.settings.currentImageIndex];
1587 $(".cover-slider").each(function(){
1588 var coverSlide = this;
1589 var coverImages = $(this).find(".cover-image");
1590 if( coverImages.length > 1 ){
1591 coverImages.each(function( index ){
1592 // If more that one image is present, add a navigation link
1593 // for activating the slide
1594 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1596 // Set the first navigation link as active
1597 $(covernav).addClass("nav-active");
1599 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1600 $(coverSlide).append( covernav );
1604 if( $(coverSlide).find(".cover-image:visible").length < 1 ){
1605 $(coverSlide).remove();
1607 $(coverSlide).addClass("cover-slides");
1611 $(".cover-slider").on("click",".cover-nav", function(e){
1613 var cover_slider = $(this).parent();
1614 // Adding click handler for cover image navigation links
1615 var num = $(this).data("num");
1616 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1617 $(this).addClass("nav-active");
1618 $(cover_slider).find(".cover-image").hide();
1619 $(cover_slider).find(".cover-image").eq( num ).show();
1622 $("#editions img").each(function(i){
1623 if ( this.src.indexOf('amazon.com') >= 0 ) {
1626 if ((w == 1) || (h == 1)) {
1627 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1628 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1629 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1633 } /* /verify_images */
1635 let counter_wait = 0;
1636 function wait_for_images(cb){
1641 [% IF GoogleJackets %]
1643 loaded = KOHA.Google.done;
1647 [% IF OpenLibraryCovers %]
1649 loaded = KOHA.OpenLibrary.done;
1653 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1655 loaded = KOHA.coce.done;
1659 if (!loaded && counter_wait < 50) {// Do not wait more than 5 seconds
1660 window.setTimeout(function(){wait_for_images(cb);}, 100);
1662 if (counter_wait >= 50 ) {
1663 console.log("Could not retrieve the images")
1669 $(window).load(function() {
1670 wait_for_images(verify_cover_images);
1673 $(document).ready(function() {
1675 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1682 text: location.href,
1685 document.getElementById("qrcode").appendChild( qrcode );
1688 $(".show_qrcode").on("click", function(){
1689 var qrcodeImg = $("#qrcode");
1690 if( qrcodeImg.hasClass("d-none") ){
1691 qrcodeImg.removeClass("d-none");
1693 qrcodeImg.addClass("d-none");
1696 [% END # /IF OPACDetailQRCode %]
1698 [% SWITCH defaulttab -%]
1699 [% CASE 'holdings' -%]
1700 showBsTab("bibliodescriptions", "holdings");
1701 [% CASE 'components' -%]
1702 showBsTab("bibliodescriptions", "components");
1703 [% CASE 'subscriptions' -%]
1704 showBsTab("bibliodescriptions", "subscriptions");
1705 [% CASE 'serialcollection' -%]
1706 showBsTab("bibliodescriptions", "serialcollection");
1708 showBsTab("bibliodescriptions", "html5media");
1710 showBsTab("bibliodescriptions", "holdings");
1713 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1714 $(".l_Results").show();
1715 $("#a_listResults").on("click", function(e){
1717 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1720 $(".close_pagination").on("click", function(e){
1722 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1724 [% END # /IF OpacBrowseResults %]
1726 var columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1728 KohaTable("#holdingst", {
1729 dom: '<"clearfix">t',
1731 { "targets": [ -1 ], "sortable": false, "searchable": false },
1733 "bKohaColumnsUseNames": true,
1735 }, columns_settings);
1737 KohaTable("#otherholdingst", {
1738 dom: '<"clearfix">t',
1740 { "targets": [ -1 ], "sortable": false, "searchable": false },
1742 "bKohaColumnsUseNames": true,
1744 }, columns_settings);
1746 var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1748 KohaTable("#subscriptionst", {
1749 dom: '<"clearfix">t',
1750 "sorting": [[ 1, "desc" ]],
1752 "bKohaColumnsUseNames": true
1753 }, serial_column_settings);
1755 [% IF ( TagsInputEnabled && loggedinusername ) %]
1756 $(".tag_add").click(function(){
1757 var thisid = $(this).attr("id");
1758 thisid = thisid.replace("tag_add","");
1760 $("#tagform"+thisid).show();
1761 $("#newtag"+thisid).focus();
1762 $("#newtag"+thisid+"_status").empty().hide();
1765 $(".cancel_tag_add").click(function(){
1766 var thisid = $(this).attr("id");
1767 thisid = thisid.replace("cancel","");
1768 $("#tagform"+thisid).hide();
1769 $("#tag_add"+thisid).show();
1770 $("#newtag"+thisid).val("");
1771 $("#newtag"+thisid+"_status").empty().hide();
1774 $(".tagbutton").click(function(){
1775 var thisid = $(this).attr("title");
1776 var tag = $("#newtag"+thisid).val();
1777 if (!tag || (tag == "")) {
1778 alert(MSG_NO_TAG_SPECIFIED);
1781 KOHA.Tags.add_tag_button(thisid, tag);
1786 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1787 [% 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 %]
1788 var default_order_index = 1;
1789 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1790 var default_order_index = 2;
1792 var default_order_index = 0;
1795 [% IF ( query_desc ) %]
1796 [% IF ( OpacHighlightedWords ) %]
1797 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1798 q_array = query_desc.split(" ");
1799 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1801 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1802 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});
1806 [% IF ( GoogleJackets ) %]
1807 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1810 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1811 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1814 [% IF OpenLibraryCovers %]
1815 KOHA.OpenLibrary.GetCoverFromIsbn();
1818 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1819 novSelect.loadContentForQuery(
1821 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1822 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1825 '[% NovelistSelectProfile | html %]',
1826 '[% NovelistSelectPassword | html %]',
1828 if ( d.length > 0 ){ //If no content
1829 $(".NovelistSelect").show();
1834 [% IF ( OPACShelfBrowser ) %]
1835 // Focus on shelf browser if present
1836 var shelfbrowser = $("#shelfbrowser");
1837 if (shelfbrowser.length > 0) {
1838 $('html,body').animate({
1839 scrollTop: shelfbrowser.first().offset().top
1842 shelfbrowser.first().find(':focusable').eq(0).focus();
1845 (function prepareShelfBrowser(){
1847 $(".main").on("click",".close_shelf",function(e){
1849 $("#shelfbrowser").toggle();
1851 $(".main").on("click", "#browser_previous a", function(e){
1854 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1857 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1859 success: function(data){
1860 $("#shelfbrowser").replaceWith(data);
1861 [% IF ( GoogleJackets ) %]
1862 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1864 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1865 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1867 [% IF OpenLibraryCovers %]
1868 KOHA.OpenLibrary.GetCoverFromIsbn();
1870 [% IF OPACLocalCoverImages %]
1871 KOHA.LocalCover.GetCoverFromBibnumber(true);
1877 $(".main").on("click", "#browser_next a", function(e){
1880 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1883 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1885 success: function(data){
1886 $("#shelfbrowser").replaceWith(data);
1887 [% IF ( GoogleJackets ) %]
1888 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1890 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1891 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1893 [% IF OpenLibraryCovers %]
1894 KOHA.OpenLibrary.GetCoverFromIsbn();
1896 [% IF OPACLocalCoverImages %]
1897 KOHA.LocalCover.GetCoverFromBibnumber(true);
1903 [% END # /IF ( OPACShelfBrowser ) %]
1905 [% IF ( OpacStarRatings != 'disable' ) %]
1906 // -----------------------------------------------------
1907 // star-ratings code
1908 // -----------------------------------------------------
1909 // hide 'rate' button if javascript enabled
1911 $('input[name="rate_button"]').remove();
1913 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1914 $('#star_rating').barrating({
1915 theme: 'fontawesome-stars',
1916 showSelectedRating: false,
1918 deselectable: false,
1919 readonly: rating_enabled,
1920 onSelect: function(value, text) {
1921 $("#rating-loading").show();
1922 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1923 rating_old_value: $("#rating_value").attr("value"),
1924 borrowernumber: "[% borrowernumber | html %]",
1925 biblionumber: "[% biblio.biblionumber | html %]",
1926 rating_value: value,
1928 }, function (data) {
1929 $("#rating_value").val(data.rating_value);
1930 if (data.rating_value) {
1931 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1932 $("#cancel_rating_text").show();
1934 $("#rating_value_text").text('');
1935 $("#cancel_rating_text").hide();
1937 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1938 $("#rating-loading").hide();
1943 $("#cancel_rating_text a").on("click", function(e){
1945 $("#star_rating").barrating("set", "");
1948 [% END # / IF ( OpacStarRatings != 'disable' )%]
1951 $(document).ready(function() {
1952 if( OPACPopupAuthorsSearch == "1" ){
1956 "keyword_search" : "au:",
1959 "label" : "subject",
1960 "keyword_search" : "su:",
1963 $(".contributors,.subject").on("click", function(e){
1965 var term = $(this).attr("class");
1966 var selected_term = $(this).text();
1967 var term_links = $("." + term );
1968 if( term_links.length > 1 ){
1969 term_links.each(function( index ){
1971 var preselected = false;
1972 var search_label = $(this).text().trim();
1973 if( $(this).text() == selected_term ){ preselected = true }
1974 if( $(this).hasClass("authority_link") ){
1975 authid = $(this).data("authid");
1976 search_string = "an:" + authid;
1978 search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label );
1980 var termLink = $("<li>")
1981 .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) )
1983 .append( $("<label>", { for: terms[term]["label"] + index, text: search_label } ) )
1984 $("#termsList").append( termLink );
1985 $("#multiSearch").modal("show");
1988 location.href = $(this).attr("href");
1992 $("#multiSearch").on("hide.bs.modal", function(){
1993 $("#termsList").html("");
1996 $(".check_all").on("click", function(e){
1998 $(".select_term").each(function(){
1999 $(this).prop("checked", true );
2003 $(".check_none").on("click", function(e){
2005 $(".select_term").each(function(){
2006 $(this).prop("checked", false );
2010 $("#validMultiSearch").on("click", function(e){
2012 multiSearchRequest();
2014 } /* if( OPACPopupAuthorsSearch == "1" ) */
2016 $(".library_info").on("click", function(e){
2018 var branchcode = $(this).data("branchcode");
2019 var url = $(this).attr("href");
2021 url: "/api/v1/public/libraries/" + branchcode,
2024 success: function(result) {
2025 $("#libraryInfoModalLabel").html( result.name );
2026 $("#libraryInfo").html( result.opac_info );
2028 $("#libraryInfoLink").attr("href", result.url );
2029 $("#libraryInfoLink").show();
2031 $("#libraryInfoLink").hide();
2033 $("#libraryInfoModal").modal("show");
2035 error: function(xhr, status, error) {
2037 location.href = url;
2042 $("#libraryInfoModal").on("hide.bs.modal", function(){
2043 $("#libraryInfoModalLabel, #libraryInfo").html("");
2044 $("#libraryInfoLink").attr("href", "");
2048 function showBsTab( container, panelid ){
2049 if( $( "#" + panelid ).length == 1 ){
2050 $("#" + container + " a[href='#" + panelid + "']").tab("show");
2052 $("#" + container + " a:first").tab("show");
2056 function multiSearchRequest(){
2058 $(".select_term").each(function(){
2059 if( $(this).prop("checked") ){
2060 values.push( $(this).val() );
2064 if (values.length > 0) {
2065 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
2066 location.href = request;