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&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&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 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 <span class="itypetext">[% description | html %]</span>
176 <span class="itypetext">[% itemtype | html %]</span>
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 | uri %]&type=series&num=1&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% 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 | uri %]/avprofile.html&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% 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 | uri %]/fiction.html&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% 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 | uri %]&type=awards&client=[% SyndeticsClientCode | uri %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | uri %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | uri %][% 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" id="rating-[% biblio.biblionumber | html %]">
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" class="star_rating" name="rating" data-biblionumber="[% biblio.biblionumber | html %]" data-context="rating-[% biblio.biblionumber | html %]" autocomplete="off">
310 <select id="star_rating" class="star_rating" name="rating" 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" class="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' class="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" class="rating_value_text">Your rating: [% my_rating.rating_value | html %].</span>
334 <span id="cancel_rating_text" class="cancel_rating_text"><a href="#" data-context="star_rating"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating.</a></span>
336 <span id="rating_value_text" class="rating_value_text"></span>
337 <span id="cancel_rating_text" class="cancel_rating_text" style="display: none;"><a href="#" data-context="star_rating"><i class="fa fa-remove" aria-hidden="true"></i> Cancel rating.</a></span>
340 <span id="rating_text" class="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" class="nav-item" role="presentation"><a href="#author_identifiers" class="nav-link" id="tab_author_identifiers-tab" data-toggle="tab" role="tab" aria-control="tab_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 | url %]"/>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 | uri %]/SC.GIF&client=[% SyndeticsClientCode | uri %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | uri %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | uri %][% 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 %]
968 [% PROCESS "authority-identifiers.inc" identifier => identifier %]
976 </div> <!-- / #bibliodescriptions -->
978 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
979 <div id="NovelistSelect" class="tab-pane" role="tabpanel" aria-labelledby="tab_NovelistSelect-tab">
980 <h2>Novelist Select</h2>
981 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
985 [% IF ( Babeltheque ) %]
987 <div id="BW_etiquettes"></div>
988 <div id="BW_suggestions"></div>
990 <div class="clearfix"></div>
992 <div id="BW_podcasts"></div>
994 <div class="clearfix"></div>
996 <div id="BW_videos"></div>
998 [% END # / IF Babeltheque %]
999 </div> <!-- /.tab-content -->
1001 </div> <!-- /.col-lg-10 -->
1003 <div class="col-lg-3">
1004 <div id="ulactioncontainer">
1006 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1007 <div class="nav_results">
1008 <div class="l_Results" style="display:none;">
1009 [% IF ( listResults ) %]
1010 <a href="#" id="a_listResults"><i class="fa fa-bars" aria-hidden="true"></i> Browse results</a>
1012 <span><i class="fa fa-bars" aria-hidden="true"></i> Browse results</span>
1014 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1017 <div class="pg_menu">
1018 <div class="pg_link left_results">
1019 [% IF ( previousBiblionumber ) %]
1020 <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>
1022 <span>Previous</span>
1025 [%# busc is already URI encoded %]
1026 <div class="pg_link back_results">
1027 <a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a>
1029 <div class="pg_link right_results">
1030 [% IF ( nextBiblionumber ) %]
1031 <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>
1036 </div> <!-- /.pg_menu -->
1038 [% IF ( listResults ) %]
1039 <div class="results-pagination">
1040 <div class="nav_pages">
1041 <ul id="listResults">
1042 [% FOREACH listitem IN listResults %]
1043 [% IF ( listitem.biblionumber == biblionumber ) %]
1044 <li class="li_pag_[% loop.count | html %] highlight">
1046 <li class="li_pag_[% loop.count | html %]">
1048 [% IF ( listitem.biblionumber == biblionumber ) %]
1049 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]" title="View record "[%- title | html -%] [%- part_number | html -%] [%- part_name | html -%]"" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a>
1051 <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]" title="View record "[% listitem.title | html %] [% listitem.part_number | html %] [% listitem.part_name | html %]"" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a>
1052 [% END # /IF listitem.biblionumber %]
1054 [% END # /FOREACH listitem %]
1055 </ul> <!-- /#listResults -->
1056 </div> <!-- /.nav_pages -->
1057 <div class="pagination_list">
1058 <ul id="ul_pagination_lists">
1059 [% FOREACH listitem IN listResults %]
1060 [% IF ( listitem.biblionumber == biblionumber ) %]
1061 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail">
1062 <span class="li_pag_index"><i class="fa fa-arrow-left" aria-hidden="true"></i> [% loop.count + offset | html %]</span>
1063 <a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %] [% part_number | html %] [% part_name | html %]</a><br> [% IF ( author ) %]<span>by</span> [% author | html %][% END %]
1066 <li id="li_pag_[% loop.count | html %]" title="Go to detail">
1067 <span class="li_pag_index">[% loop.count + offset | html %]</span>
1068 <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %] [% listitem.part_number | html %] [% listitem.part_name | html %]</a><br> [% IF ( listitem.author ) %]<span>by</span> [% listitem.author | html %][% END %]
1070 [% END # /IF listitem.biblionumber %]
1071 [% END # /FOREACH listitem %]
1072 </ul> <!-- /#ul_pagination_list -->
1073 </div> <!-- /.pagination_list -->
1074 </div> <!-- /.results-pagination -->
1075 [% END # /IF ( listResults ) %]
1076 <div class="pagination_footer">
1077 <a href="#" class="close_pagination"><i class="fa fa-remove" aria-hidden="true"></i> Close</a>
1079 </div> <!-- /.nav_results -->
1080 [% END # / IF OpacBrowseResults && busc %]
1082 [% INCLUDE 'opac-detail-sidebar.inc' %]
1084 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1085 <div id="NovelistSelect">
1086 <h2>Novelist Select</h2>
1087 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1091 [% IF ( Babeltheque ) %]
1092 <div class="babeltheque_adds">
1093 <div id="BW_critiques_aj"></div>
1094 <div id="BW_citations_aj"></div>
1098 [% IF ( Koha.Preference('SocialNetworks') ) %]
1099 <div id="social_networks" class="clearfix">
1101 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1102 [% FOREACH network IN SocialNetworks.split(",") %]
1103 [% SWITCH network -%]
1104 [% CASE "facebook" -%]
1105 <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>
1106 [% CASE "linkedin" -%]
1107 <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>
1109 <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>
1110 [% CASE "twitter" -%]
1111 <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>
1112 [% END # /SWITCH network -%]
1113 [% END # /FOREACH network %]
1114 </div> <!-- /#social_networks -->
1115 [% END # /IF SocialNetworks %]
1116 </div> <!-- / .ulactioncontainer -->
1117 </div> <!-- / .col-lg-3 -->
1118 </div> <!-- / .row -->
1120 [% IF ( LibraryThingForLibrariesID ) %]
1121 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1122 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1123 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1126 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1127 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1130 [% IF ( Babeltheque && Babeltheque_url_js ) %]
1131 <script src="[% Babeltheque_url_js | html %]"></script>
1133 </div> <!-- / .row -->
1134 </div> <!-- / .container-fluid -->
1135 </div> <!-- / .main -->
1137 [% IF ( OPACPopupAuthorsSearch ) %]
1139 <div class="modal" id="multiSearch" tabindex="-1" role="dialog" aria-labelledby="multiSearchLabel">
1140 <div class="modal-dialog" role="document">
1141 <div class="modal-content">
1142 <div class="modal-header">
1143 <h1 id="multiSearchLabel">Select the item(s) to search</h1>
1144 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
1146 <div class="modal-body">
1147 <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>
1148 <a href="#" class="check_none btn btn-link btn-sm"><i class="fa fa-remove" aria-hidden="true"></i> Select none</a>
1152 <div class="modal-footer">
1153 <button id="validMultiSearch" class="btn btn-primary">Search</button>
1154 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
1156 </div> <!-- /.modal-content -->
1157 </div> <!-- /.modal-dialog -->
1158 </div> <!-- /#myModal -->
1161 [% INCLUDE 'opac-bottom.inc' %]
1163 [%# End of template %]
1165 [% BLOCK items_table %]
1166 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1167 <caption class="sr-only">Holdings</caption>
1171 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1172 <th id="item_cover" data-colname="item_cover">Cover image</th>
1174 [% IF ( item_level_itypes ) %]
1175 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>
1177 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1178 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current library</th>
1180 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1181 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>
1183 [% IF ( itemdata_ccode ) %]
1184 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>
1186 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1187 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>
1189 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1190 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1191 <th id="item_materials" data-colname="item_materials" class="materials">Materials specified</th>
1193 [% IF ( itemdata_enumchron ) %]
1194 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>
1196 [% IF ( itemdata_uri ) %]
1197 <th id="item_url" data-colname="item_url" class="url">URL</th>
1199 [% IF ( itemdata_copynumber ) %]
1200 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>
1202 <th id="item_status" data-colname="item_status" class="status">Status</th>
1203 [% IF ( itemdata_itemnotes ) %]
1204 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>
1206 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1207 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1208 [% IF holds_count.defined %]
1209 <th id="item_holds" data-colname="item_holds">Item holds</th>
1210 [% ELSIF show_priority %]
1211 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1213 [% IF ( ShowCourseReservesHeader ) %]
1214 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>
1219 [% FOREACH ITEM_RESULT IN items %]
1220 <tr vocab="http://schema.org/" typeof="Offer">
1222 [% IF Koha.Preference('OPACLocalCoverImages') && ( tab == 'holdings' && itemloop_has_images || tab == 'otherholdings' && otheritemloop_has_images ) %]
1224 <div class="bookcover">
1225 <div class="cover-slider">
1226 [% FOR image IN ITEM_RESULT.cover_images %]
1227 <div class="cover-image local-coverimg">
1228 <a href="/cgi-bin/koha/opac-image.pl?itemnumber=[% image.itemnumber | uri %]&imagenumber=[% image.imagenumber | uri %]" title="Local cover image">
1229 <img src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image.imagenumber | uri %]" alt="Local cover image" />
1238 [% IF ( item_level_itypes ) %]
1240 [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %]
1241 [% IF ( ITEM_RESULT.imageurl ) %]
1242 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1245 <span class="itypetext">[% ITEM_RESULT.description | html %]</span>
1248 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1249 <td class="location" property="seller" data-order="[% ITEM_RESULT.branchname| html %]">
1250 <link property="itemOffered" href="#record" />
1251 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1253 [%# Show opac_info or branchurl from holding library %]
1254 [% SET holding_library_name = Branches.GetName( ITEM_RESULT.holdingbranch ) %]
1255 [% SET holding_library_url = Branches.GetURL( ITEM_RESULT.holdingbranch ) %]
1256 [% IF ( ITEM_RESULT.holding_library_info ) %]
1257 <a href="[% holding_library_url | url %]" class="library_info" data-info="[% ITEM_RESULT.holding_library_info | html %]" data-name="[% holding_library_name | html %]">
1258 <i class="fa fa-info-circle" aria-hidden="true"></i> [% holding_library_name | html %]
1260 [% ELSIF holding_library_url %]
1261 <a href="[% holding_library_url | url %]">
1262 [% holding_library_name | html %]
1265 <span>[% holding_library_name | html %]</span>
1268 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1269 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1275 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1276 <td class="location" property="seller">
1277 <link property="itemOffered" href="#record" />
1278 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1280 [%# Show opac_info or branchurl from home library %]
1281 [% SET home_library_name = Branches.GetName( ITEM_RESULT.homebranch ) %]
1282 [% SET home_library_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1283 [% IF ( ITEM_RESULT.home_library_info ) %]
1284 <a href="[% home_library_url | url %]" class="library_info" data-info="[% ITEM_RESULT.home_library_info | html %]" data-name="[% home_library_name | html %]">
1285 <i class="fa fa-info-circle" aria-hidden="true"></i> [% home_library_name | html %]
1287 [% ELSIF home_library_url %]
1288 <a href="[% home_library_url | url %]">
1289 [% home_library_name | html %]
1292 <span>[% home_library_name | html %]</span>
1295 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1296 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1302 [% IF ( itemdata_ccode ) %]
1303 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1306 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1307 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1310 <td class="call_no" property="sku">
1311 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1312 [% ITEM_RESULT.itemcallnumber | html %]
1313 [% IF ( OPACShelfBrowser ) %]
1314 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1315 (<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>)
1317 (<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>)
1323 [% UNLESS TablesSettings.is_hidden( 'opac', 'biblio-detail', 'holdingst', 'item_materials') %]
1324 <td class="materials">[% ITEM_RESULT.materials | html %]</td>
1327 [% IF ( itemdata_enumchron ) %]
1328 [% SET serial = ITEM_RESULT.serial %]
1329 <td class="vol_info">
1330 [% IF ITEM_RESULT.enumchron && serial.serialseq %]
1331 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1332 [% IF ( serial.serialseq && ITEM_RESULT.enumchron!=serial.serialseq ) %]
1333 <span class="sep"> -- </span>
1334 <span class="serialseq">[% serial.serialseq | html %]</span>
1336 [% ELSIF ITEM_RESULT.enumchron %]
1337 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1338 [% ELSIF serial.serialseq %]
1339 <span class="serialseq">[% serial.serialseq | html %]</span>
1341 [% IF ( serial.publisheddate ) %]
1342 <span class="pubdate">([% serial.publisheddate | $KohaDates %])</span>
1346 [% IF ( itemdata_uri ) %]
1348 [% IF ITEM_RESULT.uri %]
1349 [%# Initialize two helper vars %]
1350 [% SET target_attr = ''; SET rel_attr = '' %]
1351 [% IF Koha.Preference('OPACURLOpenInNewWindow') %][% SET target_attr = '_blank'; SET rel_attr = 'noreferrer' %][% END %]
1353 [%# Check if there are multiple URIs; in the single case we only use pref URLLinkText or Link to resource %]
1354 [% IF ITEM_RESULT.uri.split(' \| ').size > 1 %]
1355 [% FOREACH uri IN ITEM_RESULT.uri.split(' \| ') %]
1356 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1357 <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>
1359 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% uri | url %]" property="url">[% uri | html %]</a>
1363 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1364 <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">
1366 <a target="[% target_attr | html %]" rel="[% rel_attr | html %]" href="[% ITEM_RESULT.uri | url %]" property="url">
1368 [% IF Koha.Preference('URLLinkText') %][% Koha.Preference('URLLinkText') | html %][% ELSE %]Link to resource[% END %]
1373 [% END # /IF itemdata_uri %]
1374 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1375 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT.object %]</td>
1376 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1377 [% IF ITEM_RESULT.checkout %]
1378 <td class="date_due" data-order="[% ITEM_RESULT.checkout.date_due | html %]">[% ITEM_RESULT.checkout.date_due | $KohaDates as_due_date => 1 %]</td>
1380 <td class="date_due"></td>
1383 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1384 [% IF holds_count.defined || show_priority %]
1385 <td class="holds_count">
1386 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1387 [% IF ITEM_RESULT.priority %]
1388 [% IF holds_count.defined %]
1389 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1391 <span>[% ITEM_RESULT.priority | html %]</span>
1396 [% IF ShowCourseReservesHeader %]
1398 [% IF ITEM_RESULT.course_reserves %]
1399 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1400 [% IF r.course.enabled == 'yes' %]
1402 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1403 [% r.course.course_name | html %]
1404 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1405 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1406 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1413 [% END # /IF ShowCourseReservesHeader %]
1418 [% END %][%# end of items_table block %]
1420 <!-- Library Info Modal -->
1421 <div class="modal" id="libraryInfoModal" tabindex="-1" aria-labelledby="libraryInfoModalLabel" aria-hidden="true">
1422 <div class="modal-dialog">
1423 <div class="modal-content">
1424 <div class="modal-header">
1425 <h5 class="modal-title" id="libraryInfoModalLabel"></h5>
1426 <button type="button" class="closebtn" data-dismiss="modal" aria-label="Close">
1427 <span aria-hidden="true">×</span>
1430 <div class="modal-body">
1431 <div id="libraryInfo"></div>
1433 <div class="modal-footer">
1434 <a id="libraryInfoLink" href="" class="btn btn-primary">Visit web site</a>
1435 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
1437 </div> <!-- /.modal-content -->
1438 </div> <!-- /.modal-dialog -->
1439 </div> <!-- /.modal -->
1441 [% BLOCK jsinclude %]
1442 [% INCLUDE 'datatables.inc' %]
1443 [% INCLUDE 'columns_settings.inc' %]
1444 [% INCLUDE greybox.inc %]
1445 [% IF ( OpacStarRatings != 'disable' ) %]
1446 [% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %]
1447 [% Asset.js("js/ratings.js") | $raw %]
1450 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1451 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1452 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1455 [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %]
1457 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1459 var interface = "[% interface | html %]";
1460 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1462 [% Asset.js("js/verovio.js") | $raw %]
1464 [% Asset.js("lib/emoji-picker/js/emoji-picker-all.min.js") | $raw %]
1465 [% IF OpenLibraryCovers || OpenLibrarySearch %]
1466 [% Asset.js("js/openlibrary.js") | $raw %]
1470 window.emojiPicker = new EmojiPicker({
1471 emojiable_selector: '[data-emojiable=true]',
1472 assetsPath: '[% interface | html %]/lib/emoji-picker/img/',
1473 popupButtonClasses: 'fa fa-smile-o'
1475 window.emojiPicker.discover();
1477 var OPACPopupAuthorsSearch = "[% Koha.Preference('OPACPopupAuthorsSearch') | html %]";
1478 [% IF ( OpacHighlightedWords ) %]
1479 var q_array = new Array(); // holds search terms if available
1481 function highlightOff() {
1482 $("#catalogue_detail_biblio").removeHighlight();
1483 $(".highlight_toggle").toggle();
1485 function highlightOn() {
1487 for (x in q_array) {
1488 if ( q_array[x].length > 0 ) {
1489 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1490 q_array[x] = q_array[x].toLowerCase();
1491 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1492 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1493 $(".title").highlight(q_array[x]);
1494 $(".author").highlight(q_array[x]);
1495 $(".results_summary").highlight(q_array[x]);
1498 $(".highlight_toggle").toggle();
1501 [% END # /IF OpacHighlightedWords %]
1503 function verify_cover_images() {
1504 // Loop over each container in the template which contains covers
1505 $(".cover-slider").each(function( index ){
1506 var lightbox_descriptions = [];
1507 var first_shown = 0;
1508 $(this).find(".cover-image").each( function( index ){
1510 // Find the image in the container
1511 var img = div.find("img")[0];
1512 if( img && $(img).length > 0 ){
1513 var description = "";
1514 if( img.naturalHeight == 0 && div.attr("id") != "googlejacket-coverimg" ){
1515 // No image loaded in the container. Remove the slide
1518 // All slides start hidden. If this is the first one, show it.
1519 if( first_shown == 0 ){
1523 // Check if Amazon image is present
1524 if ( div.attr("id") == "amazon-bookcoverimg" ) {
1527 if ((w == 1) || (h == 1)) {
1528 // Amazon returned single-pixel placeholder
1529 // Remove the container
1532 lightbox_descriptions.push(_("Amazon cover image (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1534 } else if( div.attr("id") == "custom-coverimg" ){
1535 if ( (img.complete != null) && (!img.complete) || img.naturalHeight == 0 ) {
1536 // No image was loaded via the CustomCoverImages system preference
1537 // Remove the container
1540 lightbox_descriptions.push(_("Custom cover image"));
1542 } else if( div.attr("id") == "syndetics-coverimg" ){
1543 lightbox_descriptions.push(_("Image from Syndetics"))
1544 } else if( div.attr("id") == "googlejacket-coverimg" ){
1545 lightbox_descriptions.push(_("Image from Google Books (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1546 } else if( div.attr("id") == "openlibrary-coverimg" ){
1547 lightbox_descriptions.push(_("Image from OpenLibrary (<a href='%s'>see the original image</a>)").format($(img).data('link')));
1548 } else if( div.hasClass("coce-coverimg" ) ){
1549 // Identify which service's image is being loaded by Coce
1550 var coce_description;
1551 if( $(img).attr("src").indexOf('amazon.com') >= 0 ){
1552 coce_description = _("Coce image from Amazon.com");
1553 } else if( $(img).attr("src").indexOf('google.com') >= 0 ){
1554 coce_description = _("Coce image from Google Books");
1555 } else if( $(img).attr("src").indexOf('openlibrary.org') >= 0 ){
1556 coce_description = _("Coce image from Open Library");
1558 div.find(".hint").html(coce_description);
1559 lightbox_descriptions.push(coce_description);
1560 } else if ( div.attr("id") == "bakertaylor-coverimg" ){
1561 lightbox_descriptions.push(_("Image from Baker & Taylor"));
1562 } else if ( div.attr("class") == "cover-image local-coverimg" ) {
1563 lightbox_descriptions.push(_("Local cover image"));
1565 lightbox_descriptions.push(_("Cover image source unknown"));
1573 // Lightbox for cover images
1574 Chocolat(this.querySelectorAll('.cover-image a'), {
1575 description: function(){
1576 return lightbox_descriptions[this.settings.currentImageIndex];
1582 $(".cover-slider").each(function(){
1583 var coverSlide = this;
1584 var coverImages = $(this).find(".cover-image");
1585 if( coverImages.length > 1 ){
1586 coverImages.each(function( index ){
1587 // If more that one image is present, add a navigation link
1588 // for activating the slide
1589 var covernav = $("<a href=\"#\" data-num=\"" + index + "\" class=\"cover-nav\"></a>");
1591 // Set the first navigation link as active
1592 $(covernav).addClass("nav-active");
1594 $(covernav).html("<i class=\"fa fa-circle\"></i>");
1595 $(coverSlide).append( covernav );
1599 if( $(coverSlide).find(".cover-image:visible").length < 1 ){
1600 $(coverSlide).remove();
1602 $(coverSlide).addClass("cover-slides");
1606 $(".cover-slider").on("click",".cover-nav", function(e){
1608 var cover_slider = $(this).parent();
1609 // Adding click handler for cover image navigation links
1610 var num = $(this).data("num");
1611 $(cover_slider).find(".cover-nav").removeClass("nav-active");
1612 $(this).addClass("nav-active");
1613 $(cover_slider).find(".cover-image").hide();
1614 $(cover_slider).find(".cover-image").eq( num ).show();
1617 $("#editions img").each(function(i){
1618 if ( this.src.indexOf('amazon.com') >= 0 ) {
1621 if ((w == 1) || (h == 1)) {
1622 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1623 } else if ( (this.complete != null) && (!this.complete) || this.naturalHeight == 0 ) {
1624 this.src = 'https://images-na.ssl-images-amazon.com/images/G/01/x-site/icons/no-img-sm.gif';
1628 } /* /verify_images */
1630 let counter_wait = 0;
1631 function wait_for_images(cb){
1636 [% IF GoogleJackets %]
1638 loaded = KOHA.Google.done;
1642 [% IF OpenLibraryCovers %]
1644 loaded = KOHA.OpenLibrary.done;
1648 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1650 loaded = KOHA.coce.done;
1654 if (!loaded && counter_wait < 50) {// Do not wait more than 5 seconds
1655 window.setTimeout(function(){wait_for_images(cb);}, 100);
1657 if (counter_wait >= 50 ) {
1658 console.log("Could not retrieve the images")
1664 $(window).load(function() {
1665 wait_for_images(verify_cover_images);
1668 $(document).ready(function() {
1670 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1677 text: location.href,
1680 document.getElementById("qrcode").appendChild( qrcode );
1683 $(".show_qrcode").on("click", function(){
1684 var qrcodeImg = $("#qrcode");
1685 if( qrcodeImg.hasClass("d-none") ){
1686 qrcodeImg.removeClass("d-none");
1688 qrcodeImg.addClass("d-none");
1691 [% END # /IF OPACDetailQRCode %]
1693 [% SWITCH defaulttab -%]
1694 [% CASE 'holdings' -%]
1695 showBsTab("bibliodescriptions", "holdings");
1696 [% CASE 'components' -%]
1697 showBsTab("bibliodescriptions", "components");
1698 [% CASE 'subscriptions' -%]
1699 showBsTab("bibliodescriptions", "subscriptions");
1700 [% CASE 'serialcollection' -%]
1701 showBsTab("bibliodescriptions", "serialcollection");
1703 showBsTab("bibliodescriptions", "html5media");
1705 showBsTab("bibliodescriptions", "holdings");
1708 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1709 $(".l_Results").show();
1710 $("#a_listResults").on("click", function(e){
1712 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1715 $(".close_pagination").on("click", function(e){
1717 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1719 [% END # /IF OpacBrowseResults %]
1721 var columns_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1723 KohaTable("#holdingst", {
1724 dom: '<"clearfix">t',
1726 { "targets": [ -1 ], "sortable": false, "searchable": false },
1728 "bKohaColumnsUseNames": true,
1730 }, columns_settings);
1732 KohaTable("#otherholdingst", {
1733 dom: '<"clearfix">t',
1735 { "targets": [ -1 ], "sortable": false, "searchable": false },
1737 "bKohaColumnsUseNames": true,
1739 }, columns_settings);
1741 var serial_column_settings = [% TablesSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1743 KohaTable("#subscriptionst", {
1744 dom: '<"clearfix">t',
1745 "sorting": [[ 1, "desc" ]],
1747 "bKohaColumnsUseNames": true
1748 }, serial_column_settings);
1750 [% IF ( TagsInputEnabled && loggedinusername ) %]
1751 $(".tag_add").click(function(){
1752 var thisid = $(this).attr("id");
1753 thisid = thisid.replace("tag_add","");
1755 $("#tagform"+thisid).show();
1756 $("#newtag"+thisid).focus();
1757 $("#newtag"+thisid+"_status").empty().hide();
1760 $(".cancel_tag_add").click(function(){
1761 var thisid = $(this).attr("id");
1762 thisid = thisid.replace("cancel","");
1763 $("#tagform"+thisid).hide();
1764 $("#tag_add"+thisid).show();
1765 $("#newtag"+thisid).val("");
1766 $("#newtag"+thisid+"_status").empty().hide();
1769 $(".tagbutton").click(function(){
1770 var thisid = $(this).attr("title");
1771 var tag = $("#newtag"+thisid).val();
1772 if (!tag || (tag == "")) {
1773 alert(MSG_NO_TAG_SPECIFIED);
1776 KOHA.Tags.add_tag_button(thisid, tag);
1781 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1782 [% 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 %]
1783 var default_order_index = 1;
1784 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1785 var default_order_index = 2;
1787 var default_order_index = 0;
1790 [% IF ( query_desc ) %]
1791 [% IF ( OpacHighlightedWords ) %]
1792 var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1793 q_array = query_desc.split(" ");
1794 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1796 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1797 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});
1801 [% IF ( GoogleJackets ) %]
1802 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1805 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1806 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1809 [% IF OpenLibraryCovers %]
1810 KOHA.OpenLibrary.GetCoverFromIsbn();
1813 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1814 novSelect.loadContentForQuery(
1816 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1817 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1820 '[% NovelistSelectProfile | html %]',
1821 '[% NovelistSelectPassword | html %]',
1823 if ( d.length > 0 ){ //If no content
1824 $(".NovelistSelect").show();
1829 [% IF ( OPACShelfBrowser ) %]
1830 // Focus on shelf browser if present
1831 var shelfbrowser = $("#shelfbrowser");
1832 if (shelfbrowser.length > 0) {
1833 $('html,body').animate({
1834 scrollTop: shelfbrowser.first().offset().top
1837 shelfbrowser.first().find(':focusable').eq(0).focus();
1840 (function prepareShelfBrowser(){
1842 $(".main").on("click",".close_shelf",function(e){
1844 $("#shelfbrowser").toggle();
1846 $(".main").on("click", "#browser_previous a", function(e){
1849 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1852 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1854 success: function(data){
1855 $("#shelfbrowser").replaceWith(data);
1856 [% IF ( GoogleJackets ) %]
1857 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1859 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1860 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1862 [% IF OpenLibraryCovers %]
1863 KOHA.OpenLibrary.GetCoverFromIsbn();
1865 [% IF OPACLocalCoverImages %]
1866 KOHA.LocalCover.GetCoverFromBibnumber(true);
1872 $(".main").on("click", "#browser_next a", function(e){
1875 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1878 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1880 success: function(data){
1881 $("#shelfbrowser").replaceWith(data);
1882 [% IF ( GoogleJackets ) %]
1883 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1885 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1886 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1888 [% IF OpenLibraryCovers %]
1889 KOHA.OpenLibrary.GetCoverFromIsbn();
1891 [% IF OPACLocalCoverImages %]
1892 KOHA.LocalCover.GetCoverFromBibnumber(true);
1898 [% END # /IF ( OPACShelfBrowser ) %]
1901 $(document).ready(function() {
1902 if( OPACPopupAuthorsSearch == "1" ){
1906 "keyword_search" : "au:",
1909 "label" : "subject",
1910 "keyword_search" : "su:",
1913 $(".contributors,.subject").on("click", function(e){
1915 var term = $(this).attr("class");
1916 var selected_term = $(this).text();
1917 var term_links = $("." + term );
1918 if( term_links.length > 1 ){
1919 term_links.each(function( index ){
1921 var preselected = false;
1922 var search_label = $(this).text().trim();
1923 if( $(this).text() == selected_term ){ preselected = true }
1924 if( $(this).hasClass("authority_link") ){
1925 authid = $(this).data("authid");
1926 search_string = "an:" + authid;
1928 search_string = terms[term]["keyword_search"] + encodeURIComponent( search_label );
1930 var termLink = $("<li>")
1931 .append( $("<input>", { type: "checkbox", class: "select_term", value: search_string, id: terms[term]["label"] + index } ).prop("checked", preselected ) )
1933 .append( $("<label>", { for: terms[term]["label"] + index, text: search_label } ) )
1934 $("#termsList").append( termLink );
1935 $("#multiSearch").modal("show");
1938 location.href = $(this).attr("href");
1942 $("#multiSearch").on("hide.bs.modal", function(){
1943 $("#termsList").html("");
1946 $(".check_all").on("click", function(e){
1948 $(".select_term").each(function(){
1949 $(this).prop("checked", true );
1953 $(".check_none").on("click", function(e){
1955 $(".select_term").each(function(){
1956 $(this).prop("checked", false );
1960 $("#validMultiSearch").on("click", function(e){
1962 multiSearchRequest();
1964 } /* if( OPACPopupAuthorsSearch == "1" ) */
1966 $(".library_info").on("click", function(e){
1968 var library_name = $(this).data("name");
1969 var opac_info = $(this).data("info");
1970 var url = $(this).attr("href");
1972 $("#libraryInfoModalLabel").html( library_name );
1973 $("#libraryInfo").html( opac_info );
1975 $("#libraryInfoLink").attr("href", url );
1976 $("#libraryInfoLink").show();
1978 $("#libraryInfoLink").hide();
1980 $("#libraryInfoModal").modal("show");
1981 } else { // FIXME Temporary disabled: see BZ 29144
1983 url: "/api/v1/public/libraries/" + branchcode,
1986 success: function(result) {
1987 $("#libraryInfoModalLabel").html( result.name );
1988 $("#libraryInfo").html( opac_info );
1990 $("#libraryInfoLink").attr("href", result.url );
1991 $("#libraryInfoLink").show();
1993 $("#libraryInfoLink").hide();
1995 $("#libraryInfoModal").modal("show");
1997 error: function(xhr, status, error) {
1999 location.href = url;
2005 $("#libraryInfoModal").on("hide.bs.modal", function(){
2006 $("#libraryInfoModalLabel, #libraryInfo").html("");
2007 $("#libraryInfoLink").attr("href", "");
2011 function showBsTab( container, panelid ){
2012 if( $( "#" + panelid ).length == 1 ){
2013 $("#" + container + " a[href='#" + panelid + "']").tab("show");
2015 $("#" + container + " a:first").tab("show");
2019 function multiSearchRequest(){
2021 $(".select_term").each(function(){
2022 if( $(this).prop("checked") ){
2023 values.push( $(this).val() );
2027 if (values.length > 0) {
2028 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
2029 location.href = request;