7 [% USE ColumnsSettings %]
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 = '' %]
16 [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
17 [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
19 [% ShowCourseReservesHeader = 0 %]
20 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
21 [% FOREACH ITEM_RESULT IN itemloop %]
22 [% IF ITEM_RESULT.course_reserves %]
23 [% FOREACH r IN ITEM_RESULT.course_reserves %]
24 [% IF r.course.enabled == 'yes' %]
25 [% ShowCourseReservesHeader = 1 %]
32 [% INCLUDE 'doc-head-open.inc' %]
33 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Details for: [% INCLUDE 'biblio-title-head.inc' %]</title>
34 [% INCLUDE 'doc-head-close.inc' %]
35 [% Asset.css("lib/emoji-picker/css/emoji.css") | $raw %]
37 [% BLOCK cssinclude %][% END %]
38 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
39 [% INCLUDE 'masthead.inc' %]
42 <ul class="breadcrumb">
43 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
44 <li><a href="#"><span>Details for: </span>[% INCLUDE 'biblio-title.inc' %]</a></li>
47 <div class="container-fluid">
48 <div class="row-fluid">
50 <div id="catalogue_detail_biblio" class="maincontent">
53 [% IF ( OPACLocalCoverImages ) %]
54 <div title="[% biblio.biblionumber | html %]" class="[% biblio.biblionumber | html %]" id="local-thumbnail-preview"></div>
57 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
58 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" alt="Cover image" class="adlibris-cover-big" /></a>
61 [% IF ( OPACAmazonCoverImages ) %]
62 [% IF ( OPACURLOpenInNewWindow ) %]
63 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" target="_blank" rel="noreferrer">
65 <a href="http://www.amazon[% AmazonTld | uri %]/dp/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]">
67 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
70 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
71 [% IF ( content_identifier_exists ) %]
72 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/[% SyndeticsCoverImageSize | html %].GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% normalized_upc | html %]&oclc=[% normalized_oclc | html %]" alt="" class="thumbnail" />
74 <span class="no-image">No cover image available</span>
78 [% IF ( GoogleJackets ) %]
79 <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
81 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
82 [% coce_id = normalized_ean || normalized_isbn %]
83 <div title="[% biblio.biblionumber | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
85 [% IF OpenLibraryCovers %]
86 <div title="[% biblio.biblionumber | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div>
88 [% bt_id = ( normalized_upc || normalized_isbn ) %]
89 [% IF ( BakerTaylorEnabled && bt_id ) %]
90 [% IF BakerTaylorBookstoreURL %]
91 [% IF ( OPACURLOpenInNewWindow ) %]
92 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
94 <a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
97 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
100 </div><!-- / #bookcover -->
102 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber | html %]"><!-- unAPI --></abbr>
103 [% IF ( ocoins ) # COinS / Openurl %]
104 <span class="Z3988" title="[% ocoins | html %]"></span>
108 <span class="view current-view"><span id="Normalview">Normal view</span></span>
109 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber | html %]">MARC view</a></span>
110 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber | html %]">ISBD view</a></span>[% END %]
112 [% IF ( OPACXSLTDetailsDisplay ) %]
113 [% XSLTBloc | $raw %]
115 <h1 class="title">[% INCLUDE 'biblio-title.inc' %]</h1>
116 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></h5>[% END %]
118 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
120 [% IF ( description ) %]
121 [% description | html %]
123 [% itemtype | html %]
126 [% IF ( unititle ) %], [% unititle | html %][% END %]
129 [% IF ( MARCAUTHORS ) %]
130 <div class="results_summary">
131 <span class="label">Additional authors:</span>
132 [% IF OPACPopupAuthorsSearch %]
133 <!-- Author search term selection modal -->
134 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
135 <div class="modal-header">
136 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
137 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
139 <div class="modal-body">
140 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
141 <ul id="authorsList">
142 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
144 [% IF (MARCAUTHOR.authoritylink) %]
145 <input type="checkbox" name="checkbox"
146 id="author_[% loop.count | html %]"
147 onclick="makeAuthorRequest()"
148 value="an:[% MARCAUTHOR.authoritylink | html %]" />
150 <input type="checkbox" name="checkbox"
151 id="author_[% loop.count | html %]"
152 onclick="makeAuthorRequest()"
153 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
155 <label for="author_[% loop.count | html %]">
156 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
157 [% SUBFIELD.value | html %]
161 [% END # /FOREACH MARCAUTHORS %]
164 <div class="modal-footer">
165 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
166 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
169 [% END # /OPACPopupAuthorsSearch %]
171 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
172 [% authorsloop = loop %]
173 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
174 [% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]
175 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
176 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]"
177 class="showauthors" data-count="[% authorsloop.count | html %]"
178 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 | html %]</a>
180 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]"
181 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 | html %]</a>
184 [% IF (MARCAUTHOR.authoritylink) %]
185 <a class='authlink' href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink | html %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface | html %]/[% theme | html %]/images/filefind.png"></a>
187 [% IF IDREF and MARCAUTHOR.unimarc3 %]
188 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 | uri %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
190 [% UNLESS ( loop.last ) %]|[% END %]
191 [% END # /FOREACH MARCAUTHORS %]
193 [% END # IF MARCAUTHORS %]
195 [% IF ( MARCSERIES ) %]
196 <span class="results_summary series"><span class="label">Series:</span>
197 [% FOREACH MARCSERIE IN MARCSERIES %]
198 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
199 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
200 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value | html %]</a>
202 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
203 . [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %]
206 [% UNLESS ( loop.last ) %]|[% END %]
207 [% END # / FOREACH MARCSERIES %]
209 [% END # /MARCSERIES %]
211 [% IF ( editionstatement ) %]
212 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement | html %][% IF ( editionresponsibility ) %]/[% editionresponsibility | html %][% END %]</span>
214 [% IF ( publishercode ) %]
215 <span class="results_summary publisher"><span class="label">Published by :</span>
216 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
217 [% publishercode | html %]
218 </a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %]
223 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages | html %] [% illus | html %] [% size | html %]</span>
226 [% IF ( MARCISBNS ) %]
227 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN | html %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
229 [% IF ( normalized_isbn ) %]
230 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn | html %]</span>
235 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn | html %]</span>
238 [% IF ( collectiontitle ) %]
239 <span class="results_summary collection"><span class="label">Collection: </span>
240 [% collectiontitle | html %]
241 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn | html %][% END %]
242 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume | html %] [% END %]
247 [% IF ( unititles ) %]
248 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
249 [% FOREACH unititle IN unititles %]
250 [% unititle.unititle | html %] ;
255 [% IF ( MARCSUBJCTS ) %]
256 <div class="results_summary subject">
257 <span class="label">Subject(s):</span>
259 [% IF OPACPopupAuthorsSearch %]
260 <!-- Search term selection modal -->
261 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
262 <div class="modal-header">
263 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
264 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
266 <div id="subjectsList" class="modal-body">
267 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
268 <label for="all_subjects">
271 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
272 [% subjectsloop = loop %]
273 [% IF MARCSUBJCT.authoritylink %]
274 <ul id="subjectsList[% loop.count | html %]" data-authid="[% MARCSUBJCT.authoritylink | html %]">
276 <ul id="subjectsList[% loop.count | html %]">
278 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
280 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count | html %]_[% loop.count | html %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
281 <label for="subject_[% subjectsloop.count | html %]_[% loop.count | html %]">
282 [% SUBFIELD.value | html %]
289 <div class="modal-footer">
290 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
291 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
294 [% END # /OPACPopupAuthorsSearch%]
296 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
297 [% subjectsloop = loop %]
298 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
299 [% SUBFIELD.separator | html %]
300 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
301 <a role="button" data-toggle="modal" title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value | html %]" 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 | html %], [% loop.count | html %]); return false;">[% SUBFIELD.value | html %]</a>
303 <a title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value | html %]" 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 | html %]</a>
306 [% IF (MARCSUBJCT.authoritylink) %]
307 <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink | html %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface | html %]/[% theme | html %]/images/filefind.png" /></a>
309 [% UNLESS ( loop.last ) %] | [% END %]
310 [% END # / FOREACH MARCSUBJCTS %]
312 [% ELSE # /IF MARCSUBJCTS %]
313 [% 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 | html %]</a> | [% END %]</span>[% END %]
316 [% IF ( copyrightdate ) %]
317 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
320 [% UNLESS ( item_level_itypes ) %]
322 <img src="[% imageurl | html %]" alt="" />
324 <span class="results_summary itemtype"><span class="label">Item type: </span>
325 [% IF ( description ) %]
326 [% description | html %]
328 [% itemtype | html %]
333 [% IF ( MARCURLS ) %]
334 <div class="results_summary online_resources"><span class="label">Online resources:</span>
336 [% FOREACH MARCurl IN MARCURLS %]
337 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %]
339 [% IF ( OPACURLOpenInNewWindow ) %]
340 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
341 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
343 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
346 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
347 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]">
349 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
352 [% MARCurl.linktext | html %]</a>
353 [% IF ( MARCurl.notes ) %]
355 [% FOREACH note IN MARCurl.notes %]
356 <li>[% note.note | html %]</li>
361 [% END # /FOREACH MARCURLS %]
364 [% END # / IF MARCURLS %]
365 [% END # / IF OPACXSLTDetailsDisplay %]
367 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
368 [% IF ( LibraryThingForLibrariesID ) %]
369 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
370 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
371 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
372 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
374 <span class="results_summary">
375 <span class="label">Reviews from LibraryThing.com:</span>
376 <span style="display: block;" class="ltfl_reviews"></span>
378 [% END # / LibraryThingForLibrariesID %]
380 <!--This grabs all of the lists a bib record appears in -->
381 [% IF shelves.count %]
382 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
383 [% FOREACH s IN shelves %]
384 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
385 [% IF ( loop.last ) %][% ELSE %]|[% END %]
390 [% IF ( TagsShowEnabled ) %]
391 <div class="results_summary tags">
393 <span class="label">Tags from this library:</span>
395 [% FOREACH TagLoo IN TagLoop %]
396 <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term | html %]</a> <span class="weight">([% TagLoo.weight_total | html %])</span>
397 [% IF ( loop.last ) %][% ELSE %], [% END %]
402 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
404 [% IF ( TagsInputEnabled ) %]
405 [% IF ( loggedinusername ) %]
406 <form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
407 <label for="newtag[% biblio.biblionumber | html %]">New tag(s), separated by a comma:</label>
408 <p class="emoji-picker-container">
410 name="newtag[% biblio.biblionumber | html %]"
411 id="newtag[% biblio.biblionumber | html %]"
414 data-emojiable="true"
415 data-emoji-input="unicode">
417 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblio.biblionumber | html %]" type="submit" value="Add" />
418 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber | html %]" href="#">(done)</a>
421 <span id="newtag[% biblio.biblionumber | html %]_status" class="tagstatus" style="display:none;">
424 <a class="tag_add" id="tag_add[% biblio.biblionumber | html %]" href="#">Add tag(s)</a>
426 <span id="login4tags">
427 [% IF Koha.Preference('casAuthentication') %]
428 [%# CAS authentication is too complicated for modal window %]
429 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
431 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
435 [% END # / IF TagsInputEnabled %]
437 [% END # /IF TagsShowEnabled %]
439 [% IF ( SyndeticsEnabled ) %]
440 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
441 <span class="results_summary">
442 <span class="label">Series information:</span>
443 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn | html %]&type=series&num=1&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a>
445 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
446 [% IF ( SyndeticsAVPROFILEExists ) %]
447 <span class="results_summary">
448 <span class="label">Audiovisual profile:</span>
449 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/avprofile.html&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]&type=xw10">Click to open in new window</a>
451 [% END # / IF SyndeticsAVPROFILEExists %]
453 [% IF ( SyndeticsFICTIONExists ) %]
454 <span class="results_summary">
455 <span class="label">Fiction notes:</span>
456 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn | html %]/fiction.html&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]&type=xw10">Click to open in new window</a>
458 [% END # / IF SyndeticsFICTIONExists %]
460 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
461 <span class="results_summary">
462 <span class="label">Awards:</span>
463 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn | html %]&type=awards&client=[% SyndeticsClientCode | html %][% IF ( normalized_upc ) %]&upc=[% normalized_upc | html %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc | html %][% END %]">Click to open in new window</a>
465 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
466 [% END # / IF SyndeticsEnabled%]
468 [% IF ( OpacStarRatings != 'disable' ) %]
469 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
470 <div class="results_summary ratings">
472 [% SET rating_avg = ratings.get_avg_rating() %]
473 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
475 [% IF ( borrowernumber ) %]
476 <select id="star_rating" name="rating" data-rating-enabled="1" autocomplete="off">
478 <select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off">
480 [% IF ( rating_avg_int == 0 ) %]
481 <option value="" selected="selected"></option>
483 [% FOREACH i IN [ 1 2 3 4 5 ] %]
484 [% IF rating_avg_int == i %]
485 <option value="[% i | html %]" selected="selected">[% i | html %]</option>
487 <option value="[% i | html %]">[% i | html %]</option>
491 <img id="rating-loading" style="display:none" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" alt="" />
493 <!-- define some hidden vars for ratings -->
495 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber | html %]" />
496 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value | html %]" />
498 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
501 <span id="rating_value_text">Your rating: [% my_rating.rating_value | html %].</span>
502 <span id="cancel_rating_text"><a href="#"><i class="fa fa-remove"></i> Cancel rating</a>.</span>
504 <span id="rating_value_text"></span>
505 <span id="cancel_rating_text" style="display:none;"><a href="#"><i class="fa fa-remove"></i> Cancel rating</a>.</span>
508 <span id="rating_text">Average rating: [% rating_avg | html %] ([% ratings.count | html %] votes)</span>
511 [% END # / IF OpacStarRatings != 'disable' %]
513 [% IF ( BakerTaylorContentURL ) %]
514 <span class="results_summary">
515 <span class="label">Enhanced content: </span>
516 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL | url %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL | url %]">Content Cafe</a>[% END %]
518 [% END # / IF BakerTaylorContentURL %]
520 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
521 [% IF ( NovelistSelectView == 'above') %]
522 <span class="results_summary NovelistSelect" style="display:none;">
523 <span class="label">Novelist Select: </span>
524 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
528 [% END # / IF NovelistSelectProfile %]
530 [% IF ( Babeltheque ) %]
531 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn | html %]"/>
532 <div id="BW_notes"></div>
533 <div id="BW_critiques"></div>
534 <div id="BW_critiques_pro"></div>
535 <div id="BW_citations"></div>
536 [% END # / IF Babeltheque%]
538 </div> <!-- / #catalogue_detail_biblio -->
540 <div id="bibliodescriptions" class="toptabs">
542 [% IF ( defaulttab == 'holdings' ) %]
543 <li id="tab_holdings" class="ui-tabs-active">
545 <li id="tab_holdings">
547 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
548 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
550 [% IF (SeparateHoldings) %]
551 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
553 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
554 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
556 [% IF ( SYNDETICS_TOC ) %]
557 <li id="tab_toc"> <a href="#toc">TOC</a></li>
559 [% IF ( SyndeticsEnabled ) %]
560 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
561 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
563 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
564 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
565 [% IF ( LibraryThingForLibrariesID ) %]
566 <li id="tab_LTFLreviews">
567 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
568 <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>
572 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
573 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
575 [% END # / IF SyndeticsEnabled %]
577 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
578 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
579 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
582 [% IF ( subscriptionsnumber ) %]
583 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
584 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber | html %] )</a>
588 [% IF Koha.Preference( 'reviewson' ) == 1 %]
589 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a></li>
592 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
593 [% IF ( NovelistSelectView == 'tab') %]
594 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
598 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
599 <li id="tab_editions"><a href="#editions">Editions</a></li>
602 [% IF ( serialcollection ) %]
603 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
604 <a href="#serialcollection">Serial collection</a>
608 [% IF ( OPACLocalCoverImages && localimages.size ) %]
609 <li id="tab_images"><a href="#images">Images</a></li>
612 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
613 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
616 [% IF ( IDreamBooksReviews ) %]
617 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
621 [% IF ( serialcollection ) %]
622 <div id="serialcollection">
623 <table id="serialcollectiont" class="table table-bordered table-striped">
626 <th id="serial_library">Library</th>
627 <th id="serial_collection">Serial collection</th>
628 <th id="serial_itemcallnumber">Item call number</th>
632 [% FOREACH serialcollection IN serialcollections %]
634 <td>[% serialcollection.branch | html %]</td>
635 <td>[% serialcollection.text | html %]</td>
636 <td>[% serialcollection.itemcallnumber | html %]</td>
642 [% END # / IF serialcollection %]
646 [% IF too_many_items %]
647 <p>This record has many physical items ([% items_count | html %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber | uri %]&viewallitems=1">Click here to view them all.</a></p>
648 [% ELSIF ( itemloop.size ) %]
649 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
650 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
651 [% IF acquisition_details.total_quantity == 1 %]
652 <span>1 item is on order.</span>
654 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
657 [% IF holds_count.defined || priority %]
659 [% IF holds_count.defined %]
660 <span>Total holds: [% holds_count | html %]</span>
663 [% IF holds_count.defined %]
664 <span>(priority [% priority | html %])</span>
666 <span>Overall queue priority: [% priority | html %]</span>
672 [% IF ( ALTERNATEHOLDINGS ) %]
673 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
674 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
677 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
678 [% IF acquisition_details.total_quantity == 1 %]
679 <span>1 item is on order.</span>
681 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
684 <div id="noitems">No physical items for this record</div>
687 [% END # IF itemloop.size %]
688 [% PROCESS 'shelfbrowser.inc' %]
689 [% INCLUDE shelfbrowser tab='holdings' %]
690 <br style="clear:both;" />
691 </div> <!-- / #holdings -->
693 [% IF (SeparateHoldings) %]
694 <div id="otherholdings">
695 [% IF (otheritemloop.size) %]
696 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
698 <span>No other items.</span>
700 [% INCLUDE shelfbrowser tab='otherholdings' %]
702 [% END # / SeparateHoldings %]
704 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
705 <div id="descriptions">
706 <div class="content_set">
708 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
709 <h4>Enhanced descriptions from Syndetics:</h4>
710 <p>[% SYNDETICS_SUMMARY | html %]</p>
713 [% IF ( MARCNOTES ) %]
715 [% FOREACH MARCNOTE IN MARCNOTES %]
717 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
718 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
720 [% MARCNOTE.marcnote | html | html_line_break %]
727 <p>[% notes | html %]</p>
732 </div> <!-- / #descriptions -->
733 [% END # / IF MARCNOTES || notes %]
735 [% IF ( SyndeticsEnabled ) %]
736 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
738 <div class="content_set">
739 <h3>Table of contents provided by Syndetics</h3>
741 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
742 <li><b>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | html %])[% END %]</li>
747 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
749 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
751 <div class="content_set">
752 <h3>Excerpt provided by Syndetics</h3>
753 [% SYNDETICS_EXCERPT | html %]
756 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
758 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
760 <div class="content_set">
761 <h3>Reviews provided by Syndetics</h3>
762 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
763 [% IF ( SYNDETICS_REVIEW.title ) %]
764 <h4>[% SYNDETICS_REVIEW.title | html %]</h4>
765 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
767 [% IF ( review.content ) %]
768 [% review.content | html %]
776 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
778 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
780 <div class="content_set">
781 <h3>Author notes provided by Syndetics</h3>
782 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
783 [% IF ( SYNDETICS_ANOTE.content ) %]
784 [% SYNDETICS_ANOTE.content | html %]
789 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
790 [% END # / IF SyndeticsEnabled %]
792 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
793 <div id="NovelistSelect" >
794 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
796 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
798 [% IF ( subscriptionsnumber ) %]
799 <div id="subscriptions">
800 <h2>This is a serial</h2>
801 <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
802 [% FOREACH subscription IN subscriptions %]
803 [% IF ( subscription.branchcode ) %]
804 <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
806 [% IF ( subscription.branchcode ) %]
807 <h3>At library: [% subscription.branchcode | html %]</h3>
810 [% IF ( subscription.closed ) %]
811 <p class="subscription_closed">This subscription is closed.</p>
813 [% IF ( subscription.location ) %]
814 <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
816 [% IF ( subscription.callnumber ) %]
817 <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
819 [% IF ( subscription.subscriptionnotes ) %]
820 <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
822 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
823 [% IF ( subscription.letter ) %]<span class="email_notifications">
824 [% IF ( loggedinusername ) %]
825 [% IF ( subscription.hasalert ) %]
826 <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 | html %]&biblionumber=[% subscription.biblionumber | html %]">Cancel email notification</a>
828 <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 | html %]&biblionumber=[% subscription.biblionumber | html %]">Subscribe to email notification on new issues</a>
831 <span>You must log in if you want to subscribe to email notification on new issues</span>
834 [% IF ( subscription.missinglist ) %]
835 <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
837 [% IF ( subscription.opacnote ) %]
838 <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
840 [% IF ( subscription.latestserials ) %]
841 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
842 <table class="table table-bordered table-striped" id="subscriptionst">
845 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
846 <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
847 <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
848 <th id="serial_status" data-colname="serial_status">Status</th>
849 <th id="serial_notes" data-colname="serial_notes">Note</th>
853 [% FOREACH latestserial IN subscription.latestserials %]
855 <td class="serialseq">[% latestserial.serialseq | html %]</td>
856 <td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
857 <td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
858 <td class="serial_status">
859 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
860 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
861 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
862 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
863 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
864 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
865 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
866 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
867 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
868 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
869 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
870 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
872 <td class="serial_notes">[% latestserial.notes | html %]</td>
874 [% END # / FOREACH latestserials %]
877 [% END # / IF subscription.latestserials %]
878 [% END # / FOREACH subscriptions %]
879 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
880 </div> <!-- / #subscriptions -->
881 [% END # IF subscriptionsnumber %]
883 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
884 <!-- Library Thing for Libraries Content -->
885 <div id="LFTLSimilarItems">
886 <div class="content_set">
887 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
888 <!-- but breaks Xhtml validation -->
889 <!-- <span class="results_summary">-->
890 <div id="ltfl_related"></div>
891 <div id="ltfl_similars"></div>
895 <div id="LTFLTagBrowse">
896 <div class="content_set">
897 <!-- <span class="results_summary"> -->
898 <div id="ltfl_tagbrowse" class="ltfl"></div>
902 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
904 [% IF Koha.Preference( 'reviewson' ) == 1 %]
906 <div id="newcomment"></div>
908 [% FOREACH review IN reviews %]
909 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
910 <div class="commentline yours" id="c[% review.reviewid | html %]">
911 [% IF ( review.avatarurl ) %]
912 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
914 [% IF review.approved %]
915 <h5>Your comment</h5>
917 <h5>Your comment (preview, pending approval)</h5>
919 <small>[% review.datereviewed | $KohaDates %]</small>
921 [% FILTER html_break %]
922 [% review.review | html %]
924 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | html %]&reviewid=[% review.reviewid | html %]');">Edit</a>
928 <div class="commentline">
929 [% IF ( ShowReviewer != "none" && review.patron) %]
931 [% IF ( review.avatarurl ) %]
932 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
934 [% SWITCH ShowReviewer %]
936 <h5>Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h5>
938 <h5>Comment by [% review.patron.firstname | html %]</h5>
940 <h5>Comment by [% review.patron.surname | html %]</h5>
941 [% CASE 'firstandinitial' %]
942 <h5>Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h5>
943 [% CASE 'username' %]
944 <h5>Comment by [% review.patron.userid | html %]</h5>
947 <small>[% review.datereviewed | $KohaDates %]</small>
949 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
950 [% END # / IF ShowReviewer != "none" && review.patron %]
952 [% FILTER html_break %]
953 [% review.review | html %]
956 </div> <!-- / .commentline -->
958 [% END # / FOREACH reviews %]
960 <p>There are no comments for this item.</p>
961 [% END # / IF reviews %]
963 [% IF ( loggedinusername ) %]
964 [% UNLESS ( loggedincommenter ) %]
965 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | html %]'); return false;">
966 Post your comments on this item.
970 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
971 [% END # / IF loggedinusername %]
972 </div> <!-- / #comments -->
973 [% END # / IF reviewson %]
975 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
977 <h4>Other editions of this work</h4>
978 <table class="table table-bordered table-striped">
979 [% FOREACH XISBN IN XISBNS %]
982 [% IF ( OPACAmazonCoverImages ) %]
983 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
986 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
987 [% IF ( XISBN.content_identifier_exists ) %]
988 <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc | html %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc | html %][% END %]&type=xw10" alt="" />
990 <span class="no-image">No cover image available</span>
991 [% END # / IF XISBN.content_identifier_exists %]
992 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
995 [% UNLESS ( item_level_itypes ) %]
996 <td>[% XISBN.description | html %]</td>
998 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
999 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
1000 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
1001 [% IF ( XISBN.publishercode ) %]
1002 <p>[% XISBN.publishercode | html %]
1003 [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
1004 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
1005 [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
1010 [% END # / FOREACH XISBNS %]
1012 </div> <!-- / #editions -->
1013 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1015 [% IF ( HTML5MediaEnabled ) %]
1016 <div id="html5media">
1017 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1019 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1020 <[% HTML5MediaParent _ ctrl_preload | html %] >
1021 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] />
1022 <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
1023 </[% HTML5MediaParent | html %]>
1027 [% END # / IF HTML5MediaEnabled %]
1029 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1031 <p>Click on an image to view it in the image viewer</p>
1032 [% FOREACH image IN localimages %]
1034 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber | html %]&imagenumber=[% image | html %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image | html %]" /></a>
1037 </div><!-- / #images -->
1038 [% END # / IF OPACLocalCoverImages && localimages.size %]
1040 [% IF ( IDreamBooksReviews ) %]
1041 <div id="idb_critic_reviews">
1042 <div id="idb_review_snippets"></div>
1043 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1046 </div> <!-- / #bibliodescriptions -->
1048 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1049 <div id="NovelistSelect">
1050 <h3>Novelist Select</h3>
1051 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1055 [% IF ( Babeltheque ) %]
1057 <div id="BW_etiquettes"></div>
1058 <div id="BW_suggestions"></div>
1060 <div class="clearfix"></div>
1062 <div id="BW_podcasts"></div>
1064 <div class="clearfix"></div>
1066 <div id="BW_videos"></div>
1068 [% END # / IF Babeltheque %]
1070 [%# Following on one line due to translation issues %]
1071 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1073 </div> <!-- /.span9 -->
1076 <div id="ulactioncontainer">
1078 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1079 <div class="nav_results">
1080 <div class="l_Results" style="display:none;">
1081 [% IF ( listResults ) %]
1082 <a href="#" id="a_listResults"><i class="fa fa-bars"></i> Browse results</a>
1084 <span><i class="fa fa-bars"></i> Browse results</span>
1086 <a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a>
1088 <ul class="pg_menu clearfix">
1089 <li class="left_results">
1090 [% IF ( previousBiblionumber ) %]
1091 <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"></i> Previous</a>
1093 <span>Previous</span>
1096 [%# busc is already URI encoded %]
1097 <li class="back_results"><a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a></li>
1098 <li class="right_results">
1099 [% IF ( nextBiblionumber ) %]
1100 <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"></i></a>
1106 [% IF ( listResults ) %]
1107 <div class="results-pagination">
1108 <div class="nav_pages">
1109 <ul id="listResults">
1110 [% FOREACH listitem IN listResults %]
1111 [% IF ( listitem.biblionumber == biblionumber ) %]
1112 <li class="li_pag_[% loop.count | html %] highlight">
1114 <li class="li_pag_[% loop.count | html %]">
1116 <a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]" title="View record "[% listitem.title | html %]"" class="a_pag" id="a_pag_[% loop.count | html %]">[% loop.count + offset | html %]</a></li>
1120 <div class="pagination_list">
1121 <ul id="ul_pagination_lists">
1122 [% FOREACH listitem IN listResults %]
1123 [% IF ( listitem.biblionumber == biblionumber ) %]
1124 <li id="li_pag_[% loop.count | html %]" class="highlight" title="Go to detail"><span class="li_pag_index"><i class="fa fa-arrow-left"></i> [% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% title | html %]</a><br> [% IF ( author ) %]by [% author | html %][% END %]</li>
1126 <li id="li_pag_[% loop.count | html %]" title="Go to detail"><span class="li_pag_index">[% loop.count + offset | html %]</span><a href="opac-detail.pl?biblionumber=[% listitem.biblionumber | uri %]&query_desc=[% query_desc |uri %]">[% listitem.title | html %]</a><br> [% IF ( listitem.author ) %]by [% listitem.author | html %][% END %]</li>
1133 <div class="pagination_footer">
1134 <a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a>
1137 [% END # / IF OpacBrowseResults && busc %]
1139 [% INCLUDE 'opac-detail-sidebar.inc' %]
1141 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1142 <div id="NovelistSelect">
1143 <h4>Novelist Select</h4>
1144 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
1148 [% IF ( Babeltheque ) %]
1149 <div class="babeltheque_adds">
1150 <div id="BW_critiques_aj"></div>
1151 <div id="BW_citations_aj"></div>
1155 [% IF ( SocialNetworks ) %]
1156 <div id="social_networks" class="clearfix">
1158 <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>
1159 <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>
1160 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1161 <div><a id="twitter" href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-text="[% title |url %]" data-lang="[% lang | html %]">Tweet</a></div>
1164 </div> <!-- / .ulactioncontainer -->
1165 </div> <!-- / .span4 -->
1166 </div> <!-- / .row-fluid -->
1167 <div class="row-fluid">
1168 [% IF ( LibraryThingForLibrariesID ) %]
1169 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1170 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1171 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1174 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1175 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1178 [% IF ( Babeltheque ) %]
1179 <script src="[% Babeltheque_url_js | html %]"></script>
1181 </div> <!-- / .row-fluid -->
1182 </div> <!-- / .container-fluid -->
1183 </div> <!-- / .main -->
1185 [% INCLUDE 'opac-bottom.inc' %]
1187 [%# End of template %]
1189 [% BLOCK items_table %]
1190 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1193 [% IF ( item_level_itypes ) %]
1194 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %]
1195 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1196 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %]
1197 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1198 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1199 [% IF ( itemdata_ccode ) %]
1200 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1201 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1202 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
1203 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1204 [% IF ( itemdata_enumchron ) %]
1205 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1206 [% IF ( itemdata_uri ) %]
1207 <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %]
1208 [% IF ( itemdata_copynumber ) %]
1209 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %]
1210 <th id="item_status" data-colname="item_status" class="status">Status</th>
1211 [% IF ( itemdata_itemnotes ) %]
1212 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1213 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1214 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1215 [% IF holds_count.defined %]
1216 <th id="item_holds" data-colname="item_holds">Item holds</th>
1217 [% ELSIF show_priority %]
1218 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1220 [% IF ( ShowCourseReservesHeader ) %]
1221 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %]
1225 [% FOREACH ITEM_RESULT IN items %]
1226 [% IF ITEM_RESULT.this_branch %]
1227 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1229 <tr vocab="http://schema.org/" typeof="Offer">
1231 [% IF ( item_level_itypes ) %]
1233 [% UNLESS ( noItemTypeImages ) %]
1234 [% IF ( ITEM_RESULT.imageurl ) %]
1235 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1238 [% ITEM_RESULT.description | html %]
1241 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1242 <td class="location" property="seller">
1243 <link property="itemOffered" href="#record" />
1244 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1245 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1246 [% IF ( ITEM_RESULT.branchurl ) %]
1247 <a href="[% ITEM_RESULT.branchurl | url %]">[% ITEM_RESULT.branchname | html %]</a>
1249 <span>[% ITEM_RESULT.branchname | html %]</span>
1252 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div>
1254 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1255 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1261 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1262 <td class="location" property="seller">
1263 <link property="itemOffered" href="#record" />
1264 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1265 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1266 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1267 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1268 [% IF ( home_branch_url ) %]
1269 <a href="[% home_branch_url | url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</a>
1271 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1274 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1277 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div>
1279 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1280 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1286 [% IF ( itemdata_ccode ) %]
1287 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1290 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1291 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1294 <td class="call_no" property="sku">
1295 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1296 [% ITEM_RESULT.itemcallnumber | html %]
1297 [% IF ( OPACShelfBrowser ) %]
1298 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1299 (<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</a>)
1301 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | uri %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | uri %]#[% tab | uri %]">Browse shelf</a>)
1306 [% IF ( itemdata_enumchron ) %]
1307 <td class="vol_info">
1308 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1309 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1310 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1311 <span class="sep"> -- </span>
1312 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1314 [% ELSIF ITEM_RESULT.enumchron %]
1315 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1316 [% ELSIF ITEM_RESULT.serialseq %]
1317 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1319 [% IF ( ITEM_RESULT.publisheddate ) %]
1320 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1324 [% IF ( itemdata_uri ) %]
1326 [% IF ITEM_RESULT.uri %]
1327 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1328 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1329 <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | html %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1331 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber | uri %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1335 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1336 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri | url %]" property="url">[% ITEM_RESULT.uri | html %]</a>
1338 <a href="[% ITEM_RESULT.uri | url %]" property="url">[% ITEM_RESULT.uri | html %]</a>
1344 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1345 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1346 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1347 <td class="date_due"><span title="[% ITEM_RESULT.datedue | html %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1348 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1349 [% IF holds_count.defined || show_priority %]
1350 <td class="holds_count">
1351 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1352 [% IF ITEM_RESULT.priority %]
1353 [% IF holds_count.defined %]
1354 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1356 <span>[% ITEM_RESULT.priority | html %]</span>
1361 [% IF ShowCourseReservesHeader %]
1363 [% IF ITEM_RESULT.course_reserves %]
1364 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1365 [% IF r.course.enabled == 'yes' %]
1367 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1368 [% r.course.course_name | html %]
1369 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1370 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1371 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1378 [% END # /IF ShowCourseReservesHeader %]
1383 [% END %][%# end of items_table block %]
1385 [% BLOCK jsinclude %]
1386 [% INCLUDE 'datatables.inc' %]
1387 [% INCLUDE 'columns_settings.inc' %]
1388 [% INCLUDE greybox.inc %]
1389 [% IF ( SocialNetworks ) %]
1390 <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>
1392 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1394 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1395 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1396 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1400 [% IF ( OpacHighlightedWords ) %]
1401 var q_array = new Array(); // holds search terms if available
1403 function highlightOff() {
1404 $("#catalogue_detail_biblio").removeHighlight();
1405 $(".highlight_toggle").toggle();
1407 function highlightOn() {
1409 for (x in q_array) {
1410 if ( q_array[x].length > 0 ) {
1411 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1412 q_array[x] = q_array[x].toLowerCase();
1413 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1414 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1415 $(".title").highlight(q_array[x]);
1416 $(".author").highlight(q_array[x]);
1417 $(".results_summary").highlight(q_array[x]);
1421 $(".highlight_toggle").toggle();
1425 $(document).ready(function() {
1427 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1434 text: location.href,
1437 document.getElementById("qrcode").appendChild( qrcode );
1440 $(".show_qrcode").on("click", function(){
1441 var qrcodeImg = $("#qrcode");
1442 if( qrcodeImg.hasClass("hidden") ){
1443 qrcodeImg.removeClass("hidden");
1445 qrcodeImg.addClass("hidden");
1450 $('#bibliodescriptions').tabs();
1451 $(".branch-info-tooltip-trigger").uitooltip({
1452 position: { my: "left+15 center", at: "right center" },
1455 content: function(){
1456 var element = $(this).next("div");
1457 return element.html();
1461 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1462 $(".l_Results").show();
1463 $("#a_listResults").on("click", function(e){
1465 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1468 $(".close_pagination").on("click", function(e){
1470 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1474 var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1476 KohaTable("#holdingst", {
1477 dom: '<"clearfix">t',
1479 { "targets": [ -1 ], "sortable": false, "searchable": false },
1480 { "type": "title-string", "targets" : [ "title-string" ] }
1482 "bKohaColumnsUseNames": true,
1484 }, columns_settings);
1486 KohaTable("#otherholdingst", {
1487 dom: '<"clearfix">t',
1489 { "targets": [ -1 ], "sortable": false, "searchable": false },
1490 { "type": "title-string", "targets" : [ "title-string" ] }
1492 "bKohaColumnsUseNames": true,
1494 }, columns_settings);
1496 var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1498 KohaTable("#subscriptionst", {
1499 dom: '<"clearfix">t',
1500 "sorting": [[ 1, "desc" ]],
1502 { "type": "title-string", "targets" : [ "title-string" ] }
1505 "bKohaColumnsUseNames": true
1506 }, serial_column_settings);
1508 [% IF ( TagsInputEnabled && loggedinusername ) %]
1509 $(".tag_add").click(function(){
1510 var thisid = $(this).attr("id");
1511 thisid = thisid.replace("tag_add","");
1513 $("#tagform"+thisid).show();
1514 $("#newtag"+thisid).focus();
1515 $("#newtag"+thisid+"_status").empty().hide();
1518 $(".cancel_tag_add").click(function(){
1519 var thisid = $(this).attr("id");
1520 thisid = thisid.replace("cancel","");
1521 $("#tagform"+thisid).hide();
1522 $("#tag_add"+thisid).show();
1523 $("#newtag"+thisid).val("");
1524 $("#newtag"+thisid+"_status").empty().hide();
1527 $(".tagbutton").click(function(){
1528 var thisid = $(this).attr("title");
1529 var tag = $("#newtag"+thisid).val();
1530 if (!tag || (tag == "")) {
1531 alert(MSG_NO_TAG_SPECIFIED);
1534 KOHA.Tags.add_tag_button(thisid, tag);
1539 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1540 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1541 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1542 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1543 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1544 var default_order_index = 1;
1545 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1546 var default_order_index = 2;
1548 var default_order_index = 0;
1551 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1552 q_array = query_desc.split(" ");
1553 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1555 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1556 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1557 [% IF ( GoogleJackets ) %]
1558 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1560 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1561 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1564 [% IF OpenLibraryCovers %]
1565 KOHA.OpenLibrary.GetCoverFromIsbn();
1567 [% IF OPACLocalCoverImages %]
1568 KOHA.LocalCover.GetCoverFromBibnumber(true);
1570 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1571 novSelect.loadContentForQuery(
1573 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1574 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1577 '[% NovelistSelectProfile | html %]',
1578 '[% NovelistSelectPassword | html %]',
1580 if ( d.length > 0 ){ //If no content
1581 $(".NovelistSelect").show();
1586 [% IF ( OPACShelfBrowser ) %]
1588 (function prepareShelfBrowser(){
1590 $(".main").on("click",".close_shelf",function(e){
1592 $("#shelfbrowser").toggle();
1594 $(".main").on("click", "#browser_previous a", function(e){
1597 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1600 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1602 success: function(data){
1603 $("#shelfbrowser").replaceWith(data);
1604 [% IF ( GoogleJackets ) %]
1605 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1607 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1608 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1610 [% IF OpenLibraryCovers %]
1611 KOHA.OpenLibrary.GetCoverFromIsbn();
1613 [% IF OPACLocalCoverImages %]
1614 KOHA.LocalCover.GetCoverFromBibnumber(true);
1620 $(".main").on("click", "#browser_next a", function(e){
1623 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1626 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1628 success: function(data){
1629 $("#shelfbrowser").replaceWith(data);
1630 [% IF ( GoogleJackets ) %]
1631 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1633 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1634 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1636 [% IF OpenLibraryCovers %]
1637 KOHA.OpenLibrary.GetCoverFromIsbn();
1639 [% IF OPACLocalCoverImages %]
1640 KOHA.LocalCover.GetCoverFromBibnumber(true);
1647 [% IF ( OpacStarRatings != 'disable' ) %]
1648 // -----------------------------------------------------
1649 // star-ratings code
1650 // -----------------------------------------------------
1651 // hide 'rate' button if javascript enabled
1653 $('input[name="rate_button"]').remove();
1655 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1656 $('#star_rating').barrating({
1657 theme: 'fontawesome-stars',
1658 showSelectedRating: false,
1660 deselectable: false,
1661 readonly: rating_enabled,
1662 onSelect: function(value, text) {
1663 $("#rating-loading").show();
1664 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1665 rating_old_value: $("#rating_value").attr("value"),
1666 borrowernumber: "[% borrowernumber | html %]",
1667 biblionumber: "[% biblio.biblionumber | html %]",
1668 rating_value: value,
1670 }, function (data) {
1671 $("#rating_value").val(data.rating_value);
1672 if (data.rating_value) {
1673 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1674 $("#cancel_rating_text").show();
1676 $("#rating_value_text").text('');
1677 $("#cancel_rating_text").hide();
1679 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1680 $("#rating-loading").hide();
1685 $("#cancel_rating_text a").on("click", function(e){
1687 $("#star_rating").barrating("set", "");
1690 [% END # / IF ( OpacStarRatings != 'disable' )%]
1692 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1693 var isbn = $(".isbn:last").text().split(" ")[1];
1695 isbn = isbn.replace(/\W*$/, '');
1696 isbn = isbn.replace(/-/, '');
1698 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1699 // Use Microsoft XDR for IE version 8 or above
1700 var xdr = new XDomainRequest();
1701 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1702 xdr.onload = function() {
1703 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1704 eval(json); // json is now a regular JSON object
1705 parseIDBJSON(json); // parse using same function as for jQuery's success event
1709 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1714 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1717 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1718 function parseIDBJSON( json ) {
1719 if(json.total_results > 0 && json.book.rating > 0){
1720 var isbn = $(".isbn:last").text().split(" ")[1];
1721 isbn = isbn.replace(/\W+/g, '');
1723 [% IF ( IDreamBooksReadometer ) %]
1724 $(".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>');
1727 [% IF ( IDreamBooksReviews ) %]
1728 //build new tab for critic reviews
1729 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1731 //append happy-sad cloud review
1733 $("#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>");
1735 //insert data into Book reviews tab
1736 $.each(json.book.critic_reviews, function(){
1737 $("#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>");
1739 $("#seemoreidb").attr('href', json.book.detail_link);
1740 $("#tab_idb_critic_reviews").show();
1744 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1747 [% IF OPACPopupAuthorsSearch %]
1750 function showAuthors(element){
1751 var authornumber = $(element).attr("data-count");
1753 // Check checkbox related to the clicked link
1754 $("#authorsList input[type='checkbox']").attr('checked', false);
1755 $("#author_"+authornumber).attr('checked', true);
1757 makeAuthorRequest();
1760 function checkAll(checkbox, elem) {
1761 var check = $(checkbox).attr('checked') ? true : false;
1762 $(elem).find("input[type='checkbox']").attr('checked', check);
1763 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1766 function makeAuthorRequest(){
1769 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1770 values.push($(this).val());
1773 if (values.length > 0) {
1774 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1775 $("#validAuthorSearch").attr("href", request);
1777 $("#validAuthorSearch").removeAttr("href");
1783 function showSubjects(element, subjectnumber, subfieldnumber){
1785 // Check checkbox related to the clicked link
1786 $("#subjectsList input[type='checkbox']").attr('checked', false);
1787 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1789 makeSubjectRequest();
1793 function makeSubjectRequest() {
1795 $("#subjectsList > ul").each(function() {
1796 var all_checked = true;
1797 var local_values = [];
1798 $(this).find('input[type="checkbox"]').each(function() {
1799 if($(this).attr('checked')) {
1800 local_values.push($(this).val());
1802 all_checked = false;
1805 var authid = $(this).attr('data-authid');
1806 if(all_checked && authid) {
1807 values.push('an:' + authid);
1809 values = values.concat(local_values);
1812 if(values.length > 0) {
1813 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1814 $("#validSubjectSearch").attr('href', request);
1816 $("#validSubjectSearch").removeAttr("href");
1819 $(document).ready(function() {
1820 $("a.showauthors").click(function(e){
1828 [% END # / IF OPACPopupAuthorsSearch %]