6 [% USE ColumnsSettings %]
7 [% USE AuthorisedValues %]
8 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
9 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
10 [% IF Koha.Preference('AmazonAssocTag') %]
11 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
13 [% AmazonAssocTag = '' %]
16 [% ShowCourseReservesHeader = 0 %]
17 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
18 [% FOREACH ITEM_RESULT IN itemloop %]
19 [% IF ITEM_RESULT.course_reserves %]
20 [% FOREACH r IN ITEM_RESULT.course_reserves %]
21 [% IF r.course.enabled == 'yes' %]
22 [% ShowCourseReservesHeader = 1 %]
29 [% INCLUDE 'doc-head-open.inc' %]
30 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</title>
31 [% INCLUDE 'doc-head-close.inc' %]
33 [% BLOCK cssinclude %][% Asset.css("css/right-to-left.css") %][% END %]
35 [% IF ( OpacStarRatings != 'disable' ) %]
36 [% BLOCK cssinclude %][% Asset.css("css/jquery.rating.css") %][% END %]
38 [% INCLUDE greybox.inc %]
39 [% Asset.css("lib/emoji-picker/css/emoji.css") %]
41 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
42 [% INCLUDE 'masthead.inc' %]
45 <ul class="breadcrumb">
46 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
47 <li><a href="#"><span>Details for: </span>[% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</a></li>
50 <div class="container-fluid">
51 <div class="row-fluid">
53 <div id="catalogue_detail_biblio" class="maincontent">
56 [% IF ( OPACLocalCoverImages ) %]
57 <div title="[% biblio.biblionumber %]" class="[% biblio.biblionumber %]" id="local-thumbnail-preview"></div>
59 [% IF ( OPACAmazonCoverImages ) %]
60 [% IF ( OPACURLOpenInNewWindow ) %]
61 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link" target="_blank" rel="noreferrer">
63 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %][% AmazonAssocTag %]">
65 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
68 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
69 [% IF ( content_identifier_exists ) %]
70 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% normalized_upc %]&oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
72 <span class="no-image">No cover image available</span>
76 [% IF ( GoogleJackets ) %]
77 <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
79 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
80 [% coce_id = normalized_ean || normalized_isbn %]
81 <div title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
83 [% IF OpenLibraryCovers %]
84 <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
86 [% bt_id = ( normalized_upc || normalized_isbn ) %]
87 [% IF ( BakerTaylorEnabled && bt_id ) %]
88 [% IF BakerTaylorBookstoreURL %]
89 [% IF ( OPACURLOpenInNewWindow ) %]
90 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
92 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
95 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
98 </div><!-- / #bookcover -->
100 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber %]"><!-- unAPI --></abbr>
101 [% IF ( ocoins ) # COinS / Openurl %]
102 <span class="Z3988" title="[% ocoins %]"></span>
106 <span class="view current-view"><span id="Normalview">Normal view</span></span>
107 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber %]">MARC view</a></span>
108 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber %]">ISBD view</a></span>[% END %]
110 [% IF ( OPACXSLTDetailsDisplay ) %]
113 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
114 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
116 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
118 [% IF ( description ) %]
124 [% IF ( unititle ) %], [% unititle %][% END %]
127 [% IF ( MARCAUTHORS ) %]
128 <div class="results_summary">
129 <span class="label">Additional authors:</span>
130 [% IF OPACPopupAuthorsSearch %]
131 <!-- Author search term selection modal -->
132 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
133 <div class="modal-header">
134 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
135 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
137 <div class="modal-body">
138 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
139 <ul id="authorsList">
140 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
142 [% IF (MARCAUTHOR.authoritylink) %]
143 <input type="checkbox" name="checkbox"
144 id="author_[% loop.count %]"
145 onclick="makeAuthorRequest()"
146 value="an:[% MARCAUTHOR.authoritylink %]" />
148 <input type="checkbox" name="checkbox"
149 id="author_[% loop.count %]"
150 onclick="makeAuthorRequest()"
151 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
153 <label for="author_[% loop.count %]">
154 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
159 [% END # /FOREACH MARCAUTHORS %]
162 <div class="modal-footer">
163 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
164 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
167 [% END # /OPACPopupAuthorsSearch %]
169 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
170 [% authorsloop = loop %]
171 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
172 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
173 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
174 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
175 class="showauthors" data-count="[% authorsloop.count %]"
176 href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#authorSearch">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
178 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
179 class="showauthors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
182 [% IF (MARCAUTHOR.authoritylink) %]
183 <a class='authlink' href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png"></a>
185 [% IF IDREF and MARCAUTHOR.unimarc3 %]
186 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
188 [% UNLESS ( loop.last ) %]|[% END %]
189 [% END # /FOREACH MARCAUTHORS %]
191 [% END # IF MARCAUTHORS %]
193 [% IF ( MARCSERIES ) %]
194 <span class="results_summary series"><span class="label">Series:</span>
195 [% FOREACH MARCSERIE IN MARCSERIES %]
196 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
197 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
198 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
200 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
201 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
204 [% UNLESS ( loop.last ) %]|[% END %]
205 [% END # / FOREACH MARCSERIES %]
207 [% END # /MARCSERIES %]
209 [% IF ( editionstatement ) %]
210 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
212 [% IF ( publishercode ) %]
213 <span class="results_summary publisher"><span class="label">Published by :</span>
214 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
215 [% publishercode |html %]
216 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
221 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
224 [% IF ( MARCISBNS ) %]
225 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
227 [% IF ( normalized_isbn ) %]
228 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
233 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
236 [% IF ( collectiontitle ) %]
237 <span class="results_summary collection"><span class="label">Collection: </span>
238 [% collectiontitle %]
239 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn %][% END %]
240 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume %] [% END %]
245 [% IF ( unititles ) %]
246 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
247 [% FOREACH unititle IN unititles %]
248 [% unititle.unititle %] ;
253 [% IF ( MARCSUBJCTS ) %]
254 <div class="results_summary subject">
255 <span class="label">Subject(s):</span>
257 [% IF OPACPopupAuthorsSearch %]
258 <!-- Search term selection modal -->
259 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
260 <div class="modal-header">
261 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
262 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
264 <div id="subjectsList" class="modal-body">
265 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
266 <label for="all_subjects">
269 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
270 [% subjectsloop = loop %]
271 [% IF MARCSUBJCT.authoritylink %]
272 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
274 <ul id="subjectsList[% loop.count %]">
276 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
278 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
279 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
287 <div class="modal-footer">
288 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
289 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
292 [% END # /OPACPopupAuthorsSearch%]
294 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
295 [% subjectsloop = loop %]
296 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
297 [% SUBFIELD.separator %]
298 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
299 <a role="button" data-toggle="modal" title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#subjectSearch" onclick="showSubjects(this, [% subjectsloop.count %], [% loop.count %]); return false;">[% SUBFIELD.value %]</a>
301 <a title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value %]</a>
304 [% IF (MARCSUBJCT.authoritylink) %]
305 <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png" /></a>
307 [% UNLESS ( loop.last ) %] | [% END %]
308 [% END # / FOREACH MARCSUBJCTS %]
310 [% ELSE # /IF MARCSUBJCTS %]
311 [% IF ( subjects ) %]<span class="results_summary"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject %]</a> | [% END %]</span>[% END %]
314 [% IF ( copyrightdate ) %]
315 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
318 [% UNLESS ( item_level_itypes ) %]
320 <img src="[% imageurl %]" alt="" />
322 <span class="results_summary itemtype"><span class="label">Item type: </span>
323 [% IF ( description ) %]
331 [% IF ( MARCURLS ) %]
332 <div class="results_summary online_resources"><span class="label">Online resources:</span>
334 [% FOREACH MARCurl IN MARCURLS %]
335 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
337 [% IF ( OPACURLOpenInNewWindow ) %]
338 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
339 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblio.biblionumber %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
341 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
344 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
345 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblio.biblionumber %]" title="[% MARCurl.MARCURL %]">
347 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
350 [% MARCurl.linktext %]</a>
351 [% IF ( MARCurl.notes ) %]
353 [% FOREACH note IN MARCurl.notes %]
354 <li>[% note.note %]</li>
359 [% END # /FOREACH MARCURLS %]
362 [% END # / IF MARCURLS %]
363 [% END # / IF OPACXSLTDetailsDisplay %]
365 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
366 [% IF ( LibraryThingForLibrariesID ) %]
367 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
368 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
369 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
370 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
372 <span class="results_summary">
373 <span class="label">Reviews from LibraryThing.com:</span>
374 <span style="display: block;" class="ltfl_reviews"></span>
376 [% END # / LibraryThingForLibrariesID %]
378 <!--This grabs all of the lists a bib record appears in -->
379 [% IF shelves.count %]
380 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
381 [% FOREACH s IN shelves %]
382 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
383 [% IF ( loop.last ) %][% ELSE %]|[% END %]
388 [% IF ( TagsShowEnabled ) %]
389 <div class="results_summary tags">
391 <span class="label">Tags from this library:</span>
393 [% FOREACH TagLoo IN TagLoop %]
394 <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a> <span class="weight">([% TagLoo.weight_total %])</span>
395 [% IF ( loop.last ) %][% ELSE %], [% END %]
400 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
402 [% IF ( TagsInputEnabled ) %]
403 [% IF ( loggedinusername ) %]
404 <form id="tagform[% biblio.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
405 <label for="newtag[% biblio.biblionumber %]">New tag(s), separated by a comma:</label>
406 <p class="emoji-picker-container">
408 name="newtag[% biblio.biblionumber %]"
409 id="newtag[% biblio.biblionumber %]"
412 data-emojiable="true"
413 data-emoji-input="unicode">
415 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblio.biblionumber %]" type="submit" value="Add" />
416 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber %]" href="#">(done)</a>
419 <span id="newtag[% biblio.biblionumber %]_status" class="tagstatus" style="display:none;">
422 <a class="tag_add" id="tag_add[% biblio.biblionumber %]" href="#">Add tag(s)</a>
424 <span id="login4tags">
425 [% IF Koha.Preference('casAuthentication') %]
426 [%# CAS authentication is too complicated for modal window %]
427 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
429 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
433 [% END # / IF TagsInputEnabled %]
435 [% END # /IF TagsShowEnabled %]
437 [% IF ( SyndeticsEnabled ) %]
438 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
439 <span class="results_summary">
440 <span class="label">Series information:</span>
441 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&type=series&num=1&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
443 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
444 [% IF ( SyndeticsAVPROFILEExists ) %]
445 <span class="results_summary">
446 <span class="label">Audiovisual profile:</span>
447 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
449 [% END # / IF SyndeticsAVPROFILEExists %]
451 [% IF ( SyndeticsFICTIONExists ) %]
452 <span class="results_summary">
453 <span class="label">Fiction notes:</span>
454 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
456 [% END # / IF SyndeticsFICTIONExists %]
458 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
459 <span class="results_summary">
460 <span class="label">Awards:</span>
461 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&type=awards&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
463 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
464 [% END # / IF SyndeticsEnabled%]
466 [% IF ( OpacStarRatings != 'disable' ) %]
467 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
468 <div class="results_summary ratings">
470 [% SET rating_avg = ratings.get_avg_rating() %]
471 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
472 [% FOREACH i IN [ 1 2 3 4 5 ] %]
473 [% IF rating_avg_int == i && borrowernumber %]
474 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
475 [% ELSIF rating_avg_int == i %]
476 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
477 [% ELSIF borrowernumber %]
478 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
480 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
484 <!-- define some hidden vars for ratings -->
486 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber %]" />
487 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
489 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
492 <span id="rating_value_text">your rating: [% my_rating.rating_value %], </span>
494 <span id="rating_value_text"></span>
497 <span id="rating_text">average rating: [% rating_avg %] ([% ratings.count %] votes)</span>
500 [% END # / IF OpacStarRatings != 'disable' %]
502 [% IF ( BakerTaylorContentURL ) %]
503 <span class="results_summary">
504 <span class="label">Enhanced content: </span>
505 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
507 [% END # / IF BakerTaylorContentURL %]
509 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
510 [% IF ( NovelistSelectView == 'above') %]
511 <span class="results_summary NovelistSelect" style="display:none;">
512 <span class="label">Novelist Select: </span>
513 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
517 [% END # / IF NovelistSelectProfile %]
519 [% IF ( Babeltheque ) %]
520 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
521 <div id="BW_notes"></div>
522 <div id="BW_critiques"></div>
523 <div id="BW_critiques_pro"></div>
524 <div id="BW_citations"></div>
525 [% END # / IF Babeltheque%]
527 </div> <!-- / #catalogue_detail_biblio -->
529 <div id="bibliodescriptions" class="toptabs">
531 [% IF ( defaulttab == 'holdings' ) %]
532 <li id="tab_holdings" class="ui-tabs-active">
534 <li id="tab_holdings">
536 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
537 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' %][% END %]</a>
539 [% IF (SeparateHoldings) %]
540 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' %]</a></li>
542 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
543 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
545 [% IF ( SYNDETICS_TOC ) %]
546 <li id="tab_toc"> <a href="#toc">TOC</a></li>
548 [% IF ( SyndeticsEnabled ) %]
549 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
550 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
552 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
553 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
554 [% IF ( LibraryThingForLibrariesID ) %]
555 <li id="tab_LTFLreviews">
556 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]"></script>
557 <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 %]&accessibility=1">here</a>.</noscript>
561 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
562 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
564 [% END # / IF SyndeticsEnabled %]
566 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
567 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
568 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
571 [% IF ( subscriptionsnumber ) %]
572 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
573 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber %] )</a>
577 [% IF Koha.Preference( 'reviewson' ) == 1 %]
578 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' %]</a></li>
581 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
582 [% IF ( NovelistSelectView == 'tab') %]
583 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
587 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
588 <li id="tab_editions"><a href="#editions">Editions</a></li>
591 [% IF ( serialcollection ) %]
592 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
593 <a href="#serialcollection">Serial collection</a>
597 [% IF ( OPACLocalCoverImages && localimages.size ) %]
598 <li id="tab_images"><a href="#images">Images</a></li>
601 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
602 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
605 [% IF ( IDreamBooksReviews ) %]
606 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
610 [% IF ( serialcollection ) %]
611 <div id="serialcollection">
612 <table id="serialcollectiont" class="table table-bordered table-striped">
615 <th id="serial_library">Library</th>
616 <th id="serial_collection">Serial collection</th>
617 <th id="serial_itemcallnumber">Item call number</th>
621 [% FOREACH serialcollection IN serialcollections %]
623 <td>[% serialcollection.branch %]</td>
624 <td>[% serialcollection.text %]</td>
625 <td>[% serialcollection.itemcallnumber %]</td>
631 [% END # / IF serialcollection %]
635 [% IF too_many_items %]
636 <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber %]&viewallitems=1">Click here to view them all.</a></p>
637 [% ELSIF ( itemloop.size ) %]
638 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
639 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
640 [% IF acquisition_details.total_quantity == 1 %]
641 <span>1 item is on order.</span>
643 <span>[% acquisition_details.total_quantity %] items are on order.</span>
646 [% IF holds_count.defined || priority %]
648 [% IF holds_count.defined %]
649 <span>Total holds: [% holds_count %]</span>
652 [% IF holds_count.defined %]
653 <span>(priority [% priority %])</span>
655 <span>Overall queue priority: [% priority %]</span>
661 [% IF ( ALTERNATEHOLDINGS ) %]
662 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
663 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
666 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
667 [% IF acquisition_details.total_quantity == 1 %]
668 <span>1 item is on order.</span>
670 <span>[% acquisition_details.total_quantity %] items are on order.</span>
673 <div id="noitems">No physical items for this record</div>
676 [% END # IF itemloop.size %]
677 [% PROCESS 'shelfbrowser.inc' %]
678 [% INCLUDE shelfbrowser tab='holdings' %]
679 <br style="clear:both;" />
680 </div> <!-- / #holdings -->
682 [% IF (SeparateHoldings) %]
683 <div id="otherholdings">
684 [% IF (otheritemloop.size) %]
685 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
687 <span>No other items.</span>
689 [% INCLUDE shelfbrowser tab='otherholdings' %]
691 [% END # / SeparateHoldings %]
693 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
694 <div id="descriptions">
695 <div class="content_set">
697 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
698 <h4>Enhanced descriptions from Syndetics:</h4>
699 <p>[% SYNDETICS_SUMMARY %]</p>
702 [% IF ( MARCNOTES ) %]
704 [% FOREACH MARCNOTE IN MARCNOTES %]
706 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
707 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
709 [% MARCNOTE.marcnote FILTER html_line_break %]
721 </div> <!-- / #descriptions -->
722 [% END # / IF MARCNOTES || notes %]
724 [% IF ( SyndeticsEnabled ) %]
725 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
727 <div class="content_set">
728 <h3>Table of contents provided by Syndetics</h3>
730 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
731 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
736 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
738 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
740 <div class="content_set">
741 <h3>Excerpt provided by Syndetics</h3>
742 [% SYNDETICS_EXCERPT %]
745 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
747 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
749 <div class="content_set">
750 <h3>Reviews provided by Syndetics</h3>
751 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
752 [% IF ( SYNDETICS_REVIEW.title ) %]
753 <h4>[% SYNDETICS_REVIEW.title %]</h4>
754 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
756 [% IF ( review.content ) %]
765 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
767 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
769 <div class="content_set">
770 <h3>Author notes provided by Syndetics</h3>
771 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
772 [% IF ( SYNDETICS_ANOTE.content ) %]
773 [% SYNDETICS_ANOTE.content %]
778 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
779 [% END # / IF SyndeticsEnabled %]
781 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
782 <div id="NovelistSelect" >
783 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
785 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
787 [% IF ( subscriptionsnumber ) %]
788 <div id="subscriptions">
789 <h2>This is a serial</h2>
790 <p class="subscription_count">There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
791 [% FOREACH subscription IN subscriptions %]
792 [% IF ( subscription.branchcode ) %]
793 <h3>At library: [% Branches.GetName( subscription.branchcode ) %]</h3>
795 [% IF ( subscription.branchcode ) %]
796 <h3>At library: [% subscription.branchcode %]</h3>
799 [% IF ( subscription.closed ) %]
800 <p class="subscription_closed">This subscription is closed.</p>
802 [% IF ( subscription.callnumber ) %]
803 <p class="subscription_callnumber">Call number: [% subscription.callnumber %]</p>
805 [% IF ( subscription.subscriptionnotes ) %]
806 <p class="subscription_notes">[% subscription.subscriptionnotes FILTER html_line_break %] </p>
808 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
809 [% IF ( subscription.letter ) %]<span class="email_notifications">
810 [% IF ( loggedinusername ) %]
811 [% IF ( subscription.hasalert ) %]
812 <span>You have subscribed to email notification on new issues. </span><a style="color:#000;" class="btn" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&subscriptionid=[% subscription.subscriptionid %]&biblionumber=[% subscription.biblionumber %]">Cancel email notification</a>
814 <a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid %]&biblionumber=[% subscription.biblionumber %]">Subscribe to email notification on new issues</a>
817 <span>You must log in if you want to subscribe to email notification on new issues</span>
820 [% IF ( subscription.missinglist ) %]
821 <p class="subscription_missing">Missing issues: [% subscription.missinglist %] </p>
823 [% IF ( subscription.opacnote ) %]
824 <p class="subscription_opacnote">[% subscription.opacnote FILTER html_line_break %]</p>
826 [% IF ( subscription.latestserials ) %]
827 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
828 <table class="table table-bordered table-striped" id="subscriptionst">
831 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
832 <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
833 <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
834 <th id="serial_status" data-colname="serial_status">Status</th>
835 <th id="serial_notes" data-colname="serial_notes">Note</th>
839 [% FOREACH latestserial IN subscription.latestserials %]
841 <td class="serialseq">[% latestserial.serialseq %]</td>
842 <td class="publisheddate">[% latestserial.publisheddate %]</td>
843 <td class="planneddate">[% latestserial.planneddate %]</td>
844 <td class="serial_status">
845 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
846 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
847 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
848 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
849 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
850 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
851 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
852 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
853 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
854 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
855 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
856 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
858 <td class="serial_notes">[% latestserial.notes %]</td>
860 [% END # / FOREACH latestserials %]
863 [% END # / IF subscription.latestserials %]
864 [% END # / FOREACH subscriptions %]
865 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber %]">More details</a></p>
866 </div> <!-- / #subscriptions -->
867 [% END # IF subscriptionsnumber %]
869 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
870 <!-- Library Thing for Libraries Content -->
871 <div id="LFTLSimilarItems">
872 <div class="content_set">
873 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
874 <!-- but breaks Xhtml validation -->
875 <!-- <span class="results_summary">-->
876 <div id="ltfl_related"></div>
877 <div id="ltfl_similars"></div>
881 <div id="LTFLTagBrowse">
882 <div class="content_set">
883 <!-- <span class="results_summary"> -->
884 <div id="ltfl_tagbrowse" class="ltfl"></div>
888 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
890 [% IF Koha.Preference( 'reviewson' ) == 1 %]
892 <div id="newcomment"></div>
894 [% FOREACH review IN reviews %]
895 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
896 <div class="commentline yours" id="c[% review.reviewid %]">
897 [% IF ( review.avatarurl ) %]
898 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
900 [% IF review.approved %]
901 <h5>Your comment</h5>
903 <h5>Your comment (preview, pending approval)</h5>
905 <small>[% review.datereviewed | $KohaDates %]</small>
907 [% FILTER html_break %]
908 [% review.review |html %]
910 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
914 <div class="commentline">
915 [% IF ( ShowReviewer != "none" && review.patron) %]
917 [% IF ( review.avatarurl ) %]
918 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
920 [% SWITCH ShowReviewer %]
922 <h5>Comment by [% review.patron.title %] [% review.patron.firstname %] [% review.patron.surname %]</h5>
924 <h5>Comment by [% review.patron.firstname %]</h5>
926 <h5>Comment by [% review.patron.surname %]</h5>
927 [% CASE 'firstandinitial' %]
928 <h5>Comment by [% review.patron.firstname %] [% review.patron.surname|truncate(2,'.') %]</h5>
929 [% CASE 'username' %]
930 <h5>Comment by [% review.patron.userid %]</h5>
933 <small>[% review.datereviewed | $KohaDates %]</small>
935 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
936 [% END # / IF ShowReviewer != "none" && review.patron %]
938 [% FILTER html_break %]
939 [% review.review |html %]
942 </div> <!-- / .commentline -->
944 [% END # / FOREACH reviews %]
946 <p>There are no comments for this item.</p>
947 [% END # / IF reviews %]
949 [% IF ( loggedinusername ) %]
950 [% UNLESS ( loggedincommenter ) %]
951 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber %]'); return false;">
952 Post your comments on this item.
956 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
957 [% END # / IF loggedinusername %]
958 </div> <!-- / #comments -->
959 [% END # / IF reviewson %]
961 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
963 <h4>Other editions of this work</h4>
964 <table class="table table-bordered table-striped">
965 [% FOREACH XISBN IN XISBNS %]
968 [% IF ( OPACAmazonCoverImages ) %]
969 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
972 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
973 [% IF ( XISBN.content_identifier_exists ) %]
974 <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc %][% END %]&type=xw10" alt="" />
976 <span class="no-image">No cover image available</span>
977 [% END # / IF XISBN.content_identifier_exists %]
978 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
981 [% UNLESS ( item_level_itypes ) %]
982 <td>[% XISBN.description %]</td>
984 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
985 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author |html %][% END %]
986 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate %][% END %]
987 [% IF ( XISBN.publishercode ) %]
988 <p>[% XISBN.publishercode |html %]
989 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
990 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear %][% END %]
991 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
996 [% END # / FOREACH XISBNS %]
998 </div> <!-- / #editions -->
999 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1001 [% IF ( HTML5MediaEnabled ) %]
1002 <div id="html5media">
1003 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1005 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1006 <[% HTML5MediaParent _ ctrl_preload %] >
1007 <[% HTML5MediaSet.child _ ' src="' _ HTML5MediaSet.srcblock _'"' _ HTML5MediaSet.typeblock %] />
1008 <span>[[% HTML5MediaParent %] tag not supported by your browser.]</span>
1009 </[% HTML5MediaParent %]>
1013 [% END # / IF HTML5MediaEnabled %]
1015 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1017 <p>Click on an image to view it in the image viewer</p>
1018 [% FOREACH image IN localimages %]
1020 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber %]&imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image %]" /></a>
1023 </div><!-- / #images -->
1024 [% END # / IF OPACLocalCoverImages && localimages.size %]
1026 [% IF ( IDreamBooksReviews ) %]
1027 <div id="idb_critic_reviews">
1028 <div id="idb_review_snippets"></div>
1029 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1032 </div> <!-- / #bibliodescriptions -->
1034 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1035 <div id="NovelistSelect">
1036 <h3>Novelist Select</h3>
1037 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]"></div>
1041 [% IF ( Babeltheque ) %]
1043 <div id="BW_etiquettes"></div>
1044 <div id="BW_suggestions"></div>
1046 <div class="clearfix"></div>
1048 <div id="BW_podcasts"></div>
1050 <div class="clearfix"></div>
1052 <div id="BW_videos"></div>
1054 [% END # / IF Babeltheque %]
1056 [%# Following on one line due to translation issues %]
1057 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1059 </div> <!-- /.span9 -->
1062 <div id="ulactioncontainer">
1064 [% IF ( OpacBrowseResults && busc ) %]
1065 <div class="nav_results">
1066 <div class="l_Results">
1067 [% IF ( listResults ) %]
1068 <a href="#" id="a_listResults">Browse results</a>
1070 <span>Browse results</span>
1073 <ul class="pg_menu clearfix">
1074 <li class="left_results">
1075 [% IF ( previousBiblionumber ) %]
1076 <a href="opac-detail.pl?biblionumber=[% previousBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>
1078 <span>Previous</span>
1081 [%# busc is already URI encoded %]
1082 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1083 <li class="right_results">
1084 [% IF ( nextBiblionumber ) %]
1085 <a href="opac-detail.pl?biblionumber=[% nextBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>
1091 [% IF ( listResults ) %]
1092 <div class="results-pagination">
1093 <div class="nav_pages">
1094 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1095 <ul id="listResults"></ul>
1097 <div class="pagination_list">
1098 <ul id="ul_pagination_list"></ul>
1103 [% END # / IF OpacBrowseResults && busc %]
1105 [% INCLUDE 'opac-detail-sidebar.inc' %]
1107 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1108 <div id="NovelistSelect">
1109 <h4>Novelist Select</h4>
1110 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
1114 [% IF ( Babeltheque ) %]
1115 <div class="babeltheque_adds">
1116 <div id="BW_critiques_aj"></div>
1117 <div id="BW_citations_aj"></div>
1121 [% IF ( SocialNetworks ) %]
1122 <div id="social_networks" class="clearfix">
1124 <div><a id="facebook" href="http://www.facebook.com/sharer.php?u=[% current_url |url %]&t=[% title |url %]" title="Share on Facebook">Facebook</a></div>
1125 <div><a id="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn">LinkedIn</a></div>
1126 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1127 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1128 <div><a id="twitter" href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-text="[% title |url %]" data-lang="[% lang %]">Tweet</a></div>
1131 </div> <!-- / .ulactioncontainer -->
1132 </div> <!-- / .span4 -->
1133 </div> <!-- / .row-fluid -->
1134 <div class="row-fluid">
1135 [% IF ( LibraryThingForLibrariesID ) %]
1136 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]"></script>
1137 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1138 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1141 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1142 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1145 [% IF ( Babeltheque ) %]
1146 <script src="[% Babeltheque_url_js %]"></script>
1148 </div> <!-- / .row-fluid -->
1149 </div> <!-- / .container-fluid -->
1150 </div> <!-- / .main -->
1152 [% INCLUDE 'opac-bottom.inc' %]
1154 [%# End of template %]
1156 [% BLOCK items_table %]
1157 <table class="table table-bordered table-striped" id="[% table_id %]">
1160 [% IF ( item_level_itypes ) %]
1161 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %]
1162 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1163 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %]
1164 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1165 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1166 [% IF ( itemdata_ccode ) %]
1167 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1168 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1169 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
1170 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1171 [% IF ( itemdata_enumchron ) %]
1172 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1173 [% IF ( itemdata_uri ) %]
1174 <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %]
1175 [% IF ( itemdata_copynumber ) %]
1176 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %]
1177 <th id="item_status" data-colname="item_status" class="status">Status</th>
1178 [% IF ( itemdata_itemnotes ) %]
1179 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1180 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1181 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1182 [% IF holds_count.defined %]
1183 <th id="item_holds" data-colname="item_holds">Item holds</th>
1184 [% ELSIF show_priority %]
1185 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1187 [% IF ( ShowCourseReservesHeader ) %]
1188 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %]
1192 [% FOREACH ITEM_RESULT IN items %]
1193 [% IF ITEM_RESULT.this_branch %]
1194 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1196 <tr vocab="http://schema.org/" typeof="Offer">
1198 [% IF ( item_level_itypes ) %]
1200 [% UNLESS ( noItemTypeImages ) %]
1201 [% IF ( ITEM_RESULT.imageurl ) %]
1202 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1205 [% ITEM_RESULT.description %]
1208 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1209 <td class="location" property="seller">
1210 <link property="itemOffered" href="#record" />
1211 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1212 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1213 [% IF ( ITEM_RESULT.branchurl ) %]
1214 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1216 <span>[% ITEM_RESULT.branchname %]</span>
1219 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1221 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1222 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1228 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1229 <td class="location" property="seller">
1230 <link property="itemOffered" href="#record" />
1231 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1232 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1233 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1234 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1235 [% IF ( home_branch_url ) %]
1236 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1238 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1241 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1244 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1246 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1247 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1253 [% IF ( itemdata_ccode ) %]
1254 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1257 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1258 <td class="shelving_location">[% ITEM_RESULT.location_description %]</td>
1261 <td class="call_no" property="sku">
1262 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1263 [% ITEM_RESULT.itemcallnumber %]
1264 [% IF ( OPACShelfBrowser ) %]
1265 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1266 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1268 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1273 [% IF ( itemdata_enumchron ) %]
1274 <td class="vol_info">
1275 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1276 <span class="enum">[% ITEM_RESULT.enumchron %]</span>
1277 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1278 <span class="sep"> -- </span>
1279 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1281 [% ELSIF ITEM_RESULT.enumchron %]
1282 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1283 [% ELSIF ITEM_RESULT.serialseq %]
1284 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1286 [% IF ( ITEM_RESULT.publisheddate ) %]
1287 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1291 [% IF ( itemdata_uri ) %]
1293 [% IF ITEM_RESULT.uri %]
1294 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1295 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1296 <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1298 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1302 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1303 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1305 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1311 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1312 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1313 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1314 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1315 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>
1316 [% IF holds_count.defined || show_priority %]
1317 <td class="holds_count">
1318 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1319 [% IF ITEM_RESULT.priority %]
1320 [% IF holds_count.defined %]
1321 <span>(priority [% ITEM_RESULT.priority %])</span>
1323 <span>[% ITEM_RESULT.priority %]</span>
1328 [% IF ShowCourseReservesHeader %]
1330 [% IF ITEM_RESULT.course_reserves %]
1331 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1332 [% IF r.course.enabled == 'yes' %]
1334 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1335 [% r.course.course_name %]
1336 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1337 [% IF r.course.section %] [% r.course.section %] [% END %]
1338 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1345 [% END # /IF ShowCourseReservesHeader %]
1350 [% END %][%# end of items_table block %]
1352 [% BLOCK jsinclude %]
1353 [% INCLUDE 'datatables.inc' %]
1354 [% INCLUDE 'columns_settings.inc' %]
1355 [% IF ( SocialNetworks ) %]
1356 <script src="https://apis.google.com/js/plusone.js"></script>
1358 {lang: '[% lang %]'}
1361 <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
1363 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") %][% END %]
1365 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %][% END %]
1370 [% IF ( OpacBrowseResults && busc ) %]
1371 var arrPagination = new Array();
1372 var pag_index_ini = [% indexPag %];
1373 [% IF ( listResults ) %]
1374 [% FOREACH listResult IN listResults %]
1375 arrPagination[[% listResult.index %]] = {
1376 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1377 title:"[% listResult.title|remove('\n')|html %]",
1378 author:"[% listResult.author|html %]",
1379 biblionumber:[% listResult.biblionumber %]
1385 [% IF ( OpacHighlightedWords ) %]
1386 var q_array = new Array(); // holds search terms if available
1388 function highlightOff() {
1389 $("#catalogue_detail_biblio").removeHighlight();
1390 $(".highlight_toggle").toggle();
1392 function highlightOn() {
1394 for (x in q_array) {
1395 if ( q_array[x].length > 0 ) {
1396 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1397 q_array[x] = q_array[x].toLowerCase();
1398 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1399 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1400 $(".title").highlight(q_array[x]);
1401 $(".author").highlight(q_array[x]);
1402 $(".results_summary").highlight(q_array[x]);
1406 $(".highlight_toggle").toggle();
1410 $(document).ready(function() {
1411 $('#bibliodescriptions').tabs();
1412 $(".branch-info-tooltip-trigger").uitooltip({
1413 position: { my: "left+15 center", at: "right center" },
1416 content: function(){
1417 var element = $(this).next("div");
1418 return element.html();
1422 var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %];
1424 KohaTable("#holdingst", {
1425 dom: 'B<"clearfix">t',
1427 { "targets": [ -1 ], "sortable": false, "searchable": false },
1428 { "type": "title-string", "targets" : [ "title-string" ] }
1430 "bKohaColumnsUseNames": true
1431 }, columns_settings);
1433 KohaTable("#otherholdingst", {
1434 dom: 'B<"clearfix">t',
1436 { "targets": [ -1 ], "sortable": false, "searchable": false },
1437 { "type": "title-string", "targets" : [ "title-string" ] }
1439 "bKohaColumnsUseNames": true
1440 }, columns_settings);
1442 var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) %];
1444 KohaTable("#subscriptionst", {
1445 dom: 'B<"clearfix">t',
1447 { "type": "title-string", "targets" : [ "title-string" ] }
1449 "bKohaColumnsUseNames": true
1450 }, serial_column_settings);
1452 [% IF ( TagsInputEnabled && loggedinusername ) %]
1453 $(".tag_add").click(function(){
1454 var thisid = $(this).attr("id");
1455 thisid = thisid.replace("tag_add","");
1457 $("#tagform"+thisid).show();
1458 $("#newtag"+thisid).focus();
1459 $("#newtag"+thisid+"_status").empty().hide();
1462 $(".cancel_tag_add").click(function(){
1463 var thisid = $(this).attr("id");
1464 thisid = thisid.replace("cancel","");
1465 $("#tagform"+thisid).hide();
1466 $("#tag_add"+thisid).show();
1467 $("#newtag"+thisid).val("");
1468 $("#newtag"+thisid+"_status").empty().hide();
1471 $(".tagbutton").click(function(){
1472 var thisid = $(this).attr("title");
1473 var tag = $("#newtag"+thisid).val();
1474 if (!tag || (tag == "")) {
1475 alert(MSG_NO_TAG_SPECIFIED);
1478 KOHA.Tags.add_tag_button(thisid, tag);
1483 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1484 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1485 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1486 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1487 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1488 var default_order_index = 1;
1489 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1490 var default_order_index = 2;
1492 var default_order_index = 0;
1495 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1496 q_array = query_desc.split(" ");
1497 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1499 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1500 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1501 [% IF ( GoogleJackets ) %]
1502 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1504 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1505 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1508 [% IF OpenLibraryCovers %]
1509 KOHA.OpenLibrary.GetCoverFromIsbn();
1511 [% IF OPACLocalCoverImages %]
1512 KOHA.LocalCover.GetCoverFromBibnumber(true);
1514 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1515 novSelect.loadContentForQuery(
1517 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1518 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1521 '[% NovelistSelectProfile %]',
1522 '[% NovelistSelectPassword %]',
1524 if ( d.length > 0 ){ //If no content
1525 $(".NovelistSelect").show();
1530 [% IF ( OpacBrowseResults && busc ) %]
1531 var list_title_showmsg = _("Show pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1532 var list_title_hidemsg = _("Hide pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1533 if (arrPagination.length > 0) {
1534 renderPagIndexList(pag_index_ini, $("#listResults"));
1535 var reslist = $("#a_listResults");
1536 reslist.attr('title', list_title_showmsg);
1538 $("#a_listResults").click(function(e) {
1539 if (arrPagination.length > 0) {
1541 var navigation = $(".results-pagination");
1542 if (navigation.css("display") == 'none') {
1544 $(this).attr('title',list_title_hidemsg);
1545 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1548 $(this).attr('title',list_title_showmsg);
1552 $("#close_pagination").click(function(e) {
1554 var navigation = $(".results-pagination");
1558 [% IF ( OPACShelfBrowser ) %]
1560 (function prepareShelfBrowser(){
1562 $(".main").on("click",".close_shelf",function(e){
1564 $("#shelfbrowser").toggle();
1566 $(".main").on("click", "#browser_previous a", function(e){
1569 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1572 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1574 success: function(data){
1575 $("#shelfbrowser").replaceWith(data);
1576 [% IF ( GoogleJackets ) %]
1577 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1579 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1580 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1582 [% IF OpenLibraryCovers %]
1583 KOHA.OpenLibrary.GetCoverFromIsbn();
1585 [% IF OPACLocalCoverImages %]
1586 KOHA.LocalCover.GetCoverFromBibnumber(true);
1592 $(".main").on("click", "#browser_next a", function(e){
1595 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1598 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1600 success: function(data){
1601 $("#shelfbrowser").replaceWith(data);
1602 [% IF ( GoogleJackets ) %]
1603 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1605 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1606 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1608 [% IF OpenLibraryCovers %]
1609 KOHA.OpenLibrary.GetCoverFromIsbn();
1611 [% IF OPACLocalCoverImages %]
1612 KOHA.LocalCover.GetCoverFromBibnumber(true);
1619 [% IF ( OpacStarRatings != 'disable' ) %]
1620 // -----------------------------------------------------
1621 // star-ratings code
1622 // -----------------------------------------------------
1623 // hide 'rate' button if javascript enabled
1625 $('input[name="rate_button"]').remove();
1628 $(".auto-submit-star").rating({
1629 cancel: _("Cancel rating"),
1630 callback: function (value, link) {
1632 // if the new value equals the old value, dont execute callback...
1634 if ($("#rating_value").attr("value") != value) {
1638 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1639 rating_old_value: $("#rating_value").attr("value"),
1640 borrowernumber: "[% borrowernumber %]",
1641 biblionumber: "[% biblio.biblionumber %]",
1642 rating_value: value,
1644 }, function (data) {
1646 if (data.auth_status != 'ok') {
1647 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1649 $("#rating_value").val(data.rating_value);
1651 if (data.rating_value) {
1652 $("#rating_value_text").text(_("your rating: %s, ").format(data.rating_value));
1654 $("#rating_value_text").text('');
1657 $("#rating_text").text(_("average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1666 // -----------------------------------------------------
1667 [% END # / IF ( OpacStarRatings != 'disable' )%]
1669 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1670 var isbn = $(".isbn:last").text().split(" ")[1];
1672 isbn = isbn.replace(/\W*$/, '');
1673 isbn = isbn.replace(/-/, '');
1675 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1676 // Use Microsoft XDR for IE version 8 or above
1677 var xdr = new XDomainRequest();
1678 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1679 xdr.onload = function() {
1680 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1681 eval(json); // json is now a regular JSON object
1682 parseIDBJSON(json); // parse using same function as for jQuery's success event
1686 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1691 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1694 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1695 function parseIDBJSON( json ) {
1696 if(json.total_results > 0 && json.book.rating > 0){
1697 var isbn = $(".isbn:last").text().split(" ")[1];
1698 isbn = isbn.replace(/\W+/g, '');
1700 [% IF ( IDreamBooksReadometer ) %]
1701 $(".title").append('<a href="'+json.book.detail_link+'" id="idreambooksreadometer"><img src="https://idreambooks.com/remotereadometer/'+isbn+'.jpg" alt="'+json.book.title+_(" by ")+json.book.author+'" title="'+_("Rating based on reviews of ")+json.book.title+'"></a>');
1704 [% IF ( IDreamBooksReviews ) %]
1705 //build new tab for critic reviews
1706 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1708 //append happy-sad cloud review
1710 $("#catalogue_detail_biblio").append("<span class='idreambookssummary results_summary'><a href='"+json.book.detail_link+"'><img src='"+json.book.to_read_or_not_small+"' alt='"+json.book.title+_(" by ")+json.book.author+"' title='"+_("Rating based on reviews of ")+json.book.title+"'>"+json.book.rating+"%</a> <a href='http://www.idreambooks.com/'>"+_("rating based on reviews at iDreamBooks.com")+"</a></span>");
1712 //insert data into Book reviews tab
1713 $.each(json.book.critic_reviews, function(){
1714 $("#idb_review_snippets").append("<div class='review'><div><a href='"+this.review_link+"'>"+this.source+"</a></div><div>\"..."+this.snippet+"...\"</div><div>"+_("Review date: ")+this.review_date+"</div><div><a class='reviewlink' href='"+json.book.detail_link+"'>"+_("Review result: ")+this.pos_or_neg+" <img src='"+this.smiley_or_sad_small+"' alt='"+_("iDreamBooks.com rating")+"' title='"+this.pos_or_neg+"' /></a></div></div>");
1716 $("#seemoreidb").attr('href', json.book.detail_link);
1717 $("#tab_idb_critic_reviews").show();
1721 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1723 [% IF ( OpacBrowseResults && busc ) %]
1725 var totalPagItemList = 10;
1727 function rewindList()
1729 var ul = $("#listResults");
1730 var li_ini = ul.children(':first').next();
1731 var index_ini = pag_index_ini;
1733 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1735 var li_end = ul.children(':last').prev();
1736 var index_end = arrPagination.length - 1;
1738 index_end = parseInt(li_end.attr("class").substring(7), 10);
1740 if (index_ini > pag_index_ini) {
1741 renderPagIndexList(index_ini - 1, ul, false);
1742 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1746 function forwardList()
1748 var ul = $("#listResults");
1749 var li_ini = ul.children(':first').next();
1750 var index_ini = pag_index_ini;
1752 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1754 var li_end = ul.children(':last').prev();
1755 var index_end = arrPagination.length - 1;
1757 index_end = parseInt(li_end.attr("class").substring(7), 10);
1759 if (index_end < arrPagination.length - 1) {
1760 renderPagIndexList(index_ini + 1, ul, false);
1761 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1765 function renderPagIndexList(index, ul)
1767 var $kids = ul.children("li");
1768 if ($kids.length > 0) {
1769 $kids.each(function() {
1775 var ini = index - 1;
1776 var end = ini + totalPagItemList - 1;
1778 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1782 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1783 if (arrPagination[i] == undefined) continue;
1784 var li = $("<li />");
1785 if (arrPagination[i].url != "") {
1786 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1787 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1788 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1789 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1790 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1791 html += ">" + i + "</a>";
1794 li.attr("class", "li_pag_" + i);
1799 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1800 html = (end <= arrPagination.length - 1 && (end - index) >= totalPagItemList)?"<a href='#' id='fw_list_index' onclick='forwardList()' title='" + _("Click to forward the list to") + " " + ini + " - " + end + "'>»</a>":"»";
1803 }//renderPagIndexList
1806 function renderPagination(index, total, ul, highlIndex)
1808 for (var i = pag_index_ini; i <= total; i++) {
1809 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1810 $("#li_pag_" + i).remove();
1813 for (var i = index; i <= total && j < totalPagItemList; i++) {
1814 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1815 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1816 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1817 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1819 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1823 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1824 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1825 $("#li_pag_" + i).remove();
1826 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1827 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1828 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1834 [% END # / IF ( OpacBrowseResults && busc ) %]
1838 [% IF OPACPopupAuthorsSearch %]
1841 function showAuthors(element){
1842 var authornumber = $(element).attr("data-count");
1844 // Check checkbox related to the clicked link
1845 $("#authorsList input[type='checkbox']").attr('checked', false);
1846 $("#author_"+authornumber).attr('checked', true);
1848 makeAuthorRequest();
1851 function checkAll(checkbox, elem) {
1852 var check = $(checkbox).attr('checked') ? true : false;
1853 $(elem).find("input[type='checkbox']").attr('checked', check);
1854 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1857 function makeAuthorRequest(){
1860 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1861 values.push($(this).val());
1864 if (values.length > 0) {
1865 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1866 $("#validAuthorSearch").attr("href", request);
1868 $("#validAuthorSearch").removeAttr("href");
1874 function showSubjects(element, subjectnumber, subfieldnumber){
1876 // Check checkbox related to the clicked link
1877 $("#subjectsList input[type='checkbox']").attr('checked', false);
1878 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1880 makeSubjectRequest();
1884 function makeSubjectRequest() {
1886 $("#subjectsList > ul").each(function() {
1887 var all_checked = true;
1888 var local_values = [];
1889 $(this).find('input[type="checkbox"]').each(function() {
1890 if($(this).attr('checked')) {
1891 local_values.push($(this).val());
1893 all_checked = false;
1896 var authid = $(this).attr('data-authid');
1897 if(all_checked && authid) {
1898 values.push('an:' + authid);
1900 values = values.concat(local_values);
1903 if(values.length > 0) {
1904 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1905 $("#validSubjectSearch").attr('href', request);
1907 $("#validSubjectSearch").removeAttr("href");
1910 $(document).ready(function() {
1911 $("a.showauthors").click(function(e){
1919 [% END # / IF OPACPopupAuthorsSearch %]