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 %]
36 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
37 [% Asset.css("lib/verovio/midiplayer.css") | $raw %]
40 [% BLOCK cssinclude %][% END %]
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>[% INCLUDE 'biblio-title.inc' %]</a></li>
50 <div class="container-fluid">
51 <div class="row-fluid">
53 <div id="catalogue_detail_biblio" class="maincontent">
56 [% IF ( biblio.title ) %]
57 [% img_title = biblio.title %]
59 [% img_title = biblio.biblionumber %]
62 [% IF ( OPACLocalCoverImages ) %]
63 <div title="[% img_title | html %]" class="[% biblio.biblionumber | html %]" id="local-thumbnail-preview"></div>
66 [% IF ( AdlibrisEnabled && normalized_isbn ) %]
67 <a href="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]"><img src="[% AdlibrisURL | url %]?isbn=[% normalized_isbn | uri %]" alt="Cover image" class="adlibris-cover-big" /></a>
70 [% IF ( OPACAmazonCoverImages ) %]
71 [% IF ( OPACURLOpenInNewWindow ) %]
72 <a href="http://www.amazon[% AmazonTld | uri %]/gp/reader/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]#reader-link" target="_blank" rel="noreferrer">
74 <a href="http://www.amazon[% AmazonTld | uri %]/dp/[% normalized_isbn | uri %][% AmazonAssocTag | uri %]">
76 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn | html %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
79 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
80 [% IF ( content_identifier_exists ) %]
81 <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" />
83 <span class="no-image">No cover image available</span>
87 [% IF ( GoogleJackets ) %]
88 <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="gbs-thumbnail-preview"></div>
90 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
91 [% coce_id = normalized_ean || normalized_isbn | html %]
92 <div title="[% img_title | html %]" class="[% coce_id | html %]" id="coce-thumbnail-preview"></div>
94 [% IF OpenLibraryCovers %]
95 <div title="[% img_title | html %]" class="[% normalized_isbn | html %]" id="openlibrary-thumbnail-preview"></div>
97 [% bt_id = ( normalized_upc || normalized_isbn ) %]
98 [% IF ( BakerTaylorEnabled && bt_id ) %]
99 [% IF BakerTaylorBookstoreURL %]
100 [% IF ( OPACURLOpenInNewWindow ) %]
101 <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
103 <a href="https://[% BakerTaylorBookstoreURL | url %][% bt_id | url %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
106 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" />
109 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
110 [% IF ( OPACURLOpenInNewWindow ) %]
111 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]" target="_blank" rel="noreferrer"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
113 <a class="custom_cover_image" href="[% biblio.custom_cover_image_url | url %]"><img alt="Cover image" src="[% biblio.custom_cover_image_url | url %]" /></a>
116 </div><!-- / #bookcover -->
118 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber | html %]"><!-- unAPI --></abbr>
119 [% IF ( ocoins ) # COinS / Openurl %]
120 <span class="Z3988" title="[% ocoins | html %]"></span>
124 <span class="view current-view"><span id="Normalview"><i class="fa fa-file-text-o"></i> Normal view</span></span>
126 <a id="MARCview" class="btn btn-link" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-alt"></i> MARC view</a>
128 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" class="btn btn-link" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber | html %]"><i class="fa fa-list-ul"></i> ISBD view</a></span>[% END %]
130 [% IF ( OPACXSLTDetailsDisplay ) %]
131 [% XSLTBloc | $raw %]
133 <h2 class="title">[% INCLUDE 'biblio-title.inc' %]</h2>
134 [% IF ( author ) %]<span class="results_summary author h3">by <a class="contributors" href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author | html %]</a></span>[% END %]
136 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
138 [% IF ( description ) %]
139 [% description | html %]
141 [% itemtype | html %]
144 [% IF ( unititle ) %], [% unititle | html %][% END %]
147 [% IF ( MARCAUTHORS ) %]
148 <div class="results_summary">
149 <span class="label">Additional authors:</span>
150 [% IF OPACPopupAuthorsSearch %]
151 <!-- Author search term selection modal -->
152 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
153 <div class="modal-header">
154 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
155 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
157 <div class="modal-body">
158 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
159 <ul id="authorsList">
160 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
162 [% IF (MARCAUTHOR.authoritylink) %]
163 <input type="checkbox" name="checkbox"
164 id="author_[% loop.count | html %]"
165 onclick="makeAuthorRequest()"
166 value="an:[% MARCAUTHOR.authoritylink | html %]" />
168 <input type="checkbox" name="checkbox"
169 id="author_[% loop.count | html %]"
170 onclick="makeAuthorRequest()"
171 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
173 <label for="author_[% loop.count | html %]">
174 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
175 [% SUBFIELD.value | html %]
179 [% END # /FOREACH MARCAUTHORS %]
182 <div class="modal-footer">
183 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
184 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
187 [% END # /OPACPopupAuthorsSearch %]
189 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
190 [% authorsloop = loop %]
191 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
192 [% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]
193 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
194 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]"
195 class="showauthors" data-count="[% authorsloop.count | html %]"
196 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>
198 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code | html %] [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]"
199 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>
202 [% IF (MARCAUTHOR.authoritylink) %]
203 <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>
205 [% IF IDREF and MARCAUTHOR.unimarc3 %]
206 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 | uri %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
208 [% UNLESS ( loop.last ) %]|[% END %]
209 [% END # /FOREACH MARCAUTHORS %]
211 [% END # IF MARCAUTHORS %]
213 [% IF ( MARCSERIES ) %]
214 <span class="results_summary series"><span class="label">Series:</span>
215 [% FOREACH MARCSERIE IN MARCSERIES %]
216 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
217 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
218 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value | html %]</a>
220 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
221 . [% MARCSERIES_SUBFIELDS_LOO.volumenum | html %]
224 [% UNLESS ( loop.last ) %]|[% END %]
225 [% END # / FOREACH MARCSERIES %]
227 [% END # /MARCSERIES %]
229 [% IF ( editionstatement ) %]
230 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement | html %][% IF ( editionresponsibility ) %]/[% editionresponsibility | html %][% END %]</span>
232 [% IF ( publishercode ) %]
233 <span class="results_summary publisher"><span class="label">Published by :</span>
234 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
235 [% publishercode | html %]
236 </a> [% IF ( place ) %]([% place | html %])[% END %] [% IF ( publicationyear ) %], [% publicationyear | html %][% END %]
241 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages | html %] [% illus | html %] [% size | html %]</span>
244 [% IF ( MARCISBNS ) %]
245 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN | html %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
247 [% IF ( normalized_isbn ) %]
248 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn | html %]</span>
253 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn | html %]</span>
256 [% IF ( collectiontitle ) %]
257 <span class="results_summary collection"><span class="label">Collection: </span>
258 [% collectiontitle | html %]
259 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn | html %][% END %]
260 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume | html %] [% END %]
265 [% IF ( unititles ) %]
266 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
267 [% FOREACH unititle IN unititles %]
268 [% unititle.unititle | html %] ;
273 [% IF ( MARCSUBJCTS ) %]
274 <div class="results_summary subject">
275 <span class="label">Subject(s):</span>
277 [% IF OPACPopupAuthorsSearch %]
278 <!-- Search term selection modal -->
279 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
280 <div class="modal-header">
281 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
282 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
284 <div id="subjectsList" class="modal-body">
285 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
286 <label for="all_subjects">
289 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
290 [% subjectsloop = loop %]
291 [% IF MARCSUBJCT.authoritylink %]
292 <ul id="subjectsList[% loop.count | html %]" data-authid="[% MARCSUBJCT.authoritylink | html %]">
294 <ul id="subjectsList[% loop.count | html %]">
296 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
298 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count | html %]_[% loop.count | html %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
299 <label for="subject_[% subjectsloop.count | html %]_[% loop.count | html %]">
300 [% SUBFIELD.value | html %]
307 <div class="modal-footer">
308 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
309 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
312 [% END # /OPACPopupAuthorsSearch%]
314 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
315 [% subjectsloop = loop %]
316 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
317 [% SUBFIELD.separator | html %]
318 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
319 <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>
321 <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>
324 [% IF (MARCSUBJCT.authoritylink) %]
325 <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>
327 [% UNLESS ( loop.last ) %] | [% END %]
328 [% END # / FOREACH MARCSUBJCTS %]
330 [% ELSE # /IF MARCSUBJCTS %]
331 [% 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 %]
334 [% IF ( copyrightdate ) %]
335 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate | html %]</span>
338 [% UNLESS ( item_level_itypes ) %]
340 <img src="[% imageurl | html %]" alt="" />
342 <span class="results_summary itemtype"><span class="label">Item type: </span>
343 [% IF ( description ) %]
344 [% description | html %]
346 [% itemtype | html %]
351 [% IF ( MARCURLS ) %]
352 <div class="results_summary online_resources"><span class="label">Online resources:</span>
354 [% FOREACH MARCurl IN MARCURLS %]
355 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %]
357 [% IF ( OPACURLOpenInNewWindow ) %]
358 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
359 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
361 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
364 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
365 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL | uri %]&biblionumber=[% biblio.biblionumber | uri %]" title="[% MARCurl.MARCURL | html %]">
367 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
370 [% MARCurl.linktext | html %]</a>
371 [% IF ( MARCurl.notes ) %]
373 [% FOREACH note IN MARCurl.notes %]
374 <li>[% note.note | html %]</li>
379 [% END # /FOREACH MARCURLS %]
382 [% END # / IF MARCURLS %]
383 [% END # / IF OPACXSLTDetailsDisplay %]
385 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
386 [% IF ( LibraryThingForLibrariesID ) %]
387 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
388 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
389 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
390 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
392 <span class="results_summary">
393 <span class="label">Reviews from LibraryThing.com:</span>
394 <span style="display: block;" class="ltfl_reviews"></span>
396 [% END # / LibraryThingForLibrariesID %]
398 <!--This grabs all of the lists a bib record appears in -->
399 [% IF shelves.count %]
400 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
401 [% FOREACH s IN shelves %]
402 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber | uri %]">[% s.shelfname | html %]</a>
403 [% IF ( loop.last ) %][% ELSE %]|[% END %]
408 [% IF ( TagsShowEnabled ) %]
409 <div class="results_summary tags">
411 <span class="label">Tags from this library:</span>
413 [% FOREACH TagLoo IN TagLoop %]
414 <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>
415 [% IF ( loop.last ) %][% ELSE %], [% END %]
420 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
422 [% IF ( TagsInputEnabled ) %]
423 [% IF ( loggedinusername ) %]
424 <form id="tagform[% biblio.biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
425 <label for="newtag[% biblio.biblionumber | html %]">New tag(s), separated by a comma:</label>
426 <p class="emoji-picker-container">
428 name="newtag[% biblio.biblionumber | html %]"
429 id="newtag[% biblio.biblionumber | html %]"
432 data-emojiable="true"
433 data-emoji-input="unicode">
435 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblio.biblionumber | html %]" type="submit" value="Add" />
436 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber | html %]" href="#">(done)</a>
439 <span id="newtag[% biblio.biblionumber | html %]_status" class="tagstatus" style="display:none;">
442 <a class="tag_add" id="tag_add[% biblio.biblionumber | html %]" href="#">Add tag(s)</a>
444 <span id="login4tags">
445 [% IF Koha.Preference('casAuthentication') %]
446 [%# CAS authentication is too complicated for modal window %]
447 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
449 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
453 [% END # / IF TagsInputEnabled %]
455 [% END # /IF TagsShowEnabled %]
457 [% IF ( SyndeticsEnabled ) %]
458 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
459 <span class="results_summary">
460 <span class="label">Series information:</span>
461 <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>
463 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
464 [% IF ( SyndeticsAVPROFILEExists ) %]
465 <span class="results_summary">
466 <span class="label">Audiovisual profile:</span>
467 <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>
469 [% END # / IF SyndeticsAVPROFILEExists %]
471 [% IF ( SyndeticsFICTIONExists ) %]
472 <span class="results_summary">
473 <span class="label">Fiction notes:</span>
474 <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>
476 [% END # / IF SyndeticsFICTIONExists %]
478 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
479 <span class="results_summary">
480 <span class="label">Awards:</span>
481 <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>
483 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
484 [% END # / IF SyndeticsEnabled%]
486 [% IF ( OpacStarRatings != 'disable' ) %]
487 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
488 <div class="results_summary ratings">
490 [% SET rating_avg = ratings.get_avg_rating() %]
491 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
493 [% IF ( borrowernumber ) %]
494 <select id="star_rating" name="rating" data-rating-enabled="1" autocomplete="off">
496 <select id="star_rating" name="rating" data-rating-enabled="0" disabled="disabled" autocomplete="off">
498 [% IF ( rating_avg_int == 0 ) %]
499 <option value="" selected="selected"></option>
501 [% FOREACH i IN [ 1 2 3 4 5 ] %]
502 [% IF rating_avg_int == i %]
503 <option value="[% i | html %]" selected="selected">[% i | html %]</option>
505 <option value="[% i | html %]">[% i | html %]</option>
509 <img id="rating-loading" style="display:none" src="[% interface | html %]/[% theme | html %]/images/spinner-small.gif" alt="" />
511 <!-- define some hidden vars for ratings -->
513 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber | html %]" />
514 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value | html %]" />
516 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
519 <span id="rating_value_text">Your rating: [% my_rating.rating_value | html %].</span>
520 <span id="cancel_rating_text"><a href="#"><i class="fa fa-remove"></i> Cancel rating</a>.</span>
522 <span id="rating_value_text"></span>
523 <span id="cancel_rating_text" style="display:none;"><a href="#"><i class="fa fa-remove"></i> Cancel rating</a>.</span>
526 <span id="rating_text">Average rating: [% rating_avg | html %] ([% ratings.count | html %] votes)</span>
529 [% END # / IF OpacStarRatings != 'disable' %]
531 [% IF ( BakerTaylorContentURL ) %]
532 <span class="results_summary">
533 <span class="label">Enhanced content: </span>
534 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL | url %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL | url %]">Content Cafe</a>[% END %]
536 [% END # / IF BakerTaylorContentURL %]
538 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
539 [% IF ( NovelistSelectView == 'above') %]
540 <span class="results_summary NovelistSelect" style="display:none;">
541 <span class="label">Novelist Select: </span>
542 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
546 [% END # / IF NovelistSelectProfile %]
548 [% IF ( Babeltheque ) %]
549 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn | html %]"/>
550 <div id="BW_notes"></div>
551 <div id="BW_critiques"></div>
552 <div id="BW_critiques_pro"></div>
553 <div id="BW_citations"></div>
554 [% END # / IF Babeltheque%]
556 </div> <!-- / #catalogue_detail_biblio -->
558 <div id="bibliodescriptions" class="toptabs">
560 [% IF ( defaulttab == 'holdings' ) %]
561 <li id="tab_holdings" class="ui-tabs-active">
563 <li id="tab_holdings">
565 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname | html %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
566 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' | html %][% END %]</a>
568 [% IF (SeparateHoldings) %]
569 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' | html %]</a></li>
571 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
572 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
574 [% IF ( SYNDETICS_TOC ) %]
575 <li id="tab_toc"> <a href="#toc">TOC</a></li>
577 [% IF ( SyndeticsEnabled ) %]
578 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
579 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
581 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
582 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
583 [% IF ( LibraryThingForLibrariesID ) %]
584 <li id="tab_LTFLreviews">
585 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID | html %]"></script>
586 <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>
590 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
591 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
593 [% END # / IF SyndeticsEnabled %]
595 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
596 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
597 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
600 [% IF ( subscriptionsnumber ) %]
601 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
602 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber | html %] )</a>
606 [% IF Koha.Preference( 'reviewson' ) == 1 %]
607 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' | html %]</a></li>
610 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
611 [% IF ( NovelistSelectView == 'tab') %]
612 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
616 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
617 <li id="tab_editions"><a href="#editions">Editions</a></li>
620 [% IF ( serialcollection ) %]
621 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
622 <a href="#serialcollection">Serial collection</a>
626 [% IF ( OPACLocalCoverImages && localimages.size ) %]
627 <li id="tab_images"><a href="#images">Images</a></li>
630 [% IF HTML5MediaEnabled && HTML5MediaSets.size %]
631 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
634 [% IF ( IDreamBooksReviews ) %]
635 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
639 [% IF ( serialcollection ) %]
640 <div id="serialcollection">
641 <table id="serialcollectiont" class="table table-bordered table-striped">
644 <th id="serial_library">Library</th>
645 <th id="serial_collection">Serial collection</th>
646 <th id="serial_itemcallnumber">Item call number</th>
650 [% FOREACH serialcollection IN serialcollections %]
652 <td>[% serialcollection.branch | html %]</td>
653 <td>[% serialcollection.text | html %]</td>
654 <td>[% serialcollection.itemcallnumber | html %]</td>
660 [% END # / IF serialcollection %]
664 [% IF too_many_items %]
665 <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>
666 [% ELSIF ( itemloop.size ) %]
667 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
668 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
669 [% IF acquisition_details.total_quantity == 1 %]
670 <span>1 item is on order.</span>
672 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
675 [% IF holds_count.defined || priority %]
677 [% IF holds_count.defined %]
678 <span>Total holds: [% holds_count | html %]</span>
681 [% IF holds_count.defined %]
682 <span>(priority [% priority | html %])</span>
684 <span>Overall queue priority: [% priority | html %]</span>
690 [% IF ( ALTERNATEHOLDINGS ) %]
691 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
692 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding | html %]</div>
695 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
696 [% IF acquisition_details.total_quantity == 1 %]
697 <span>1 item is on order.</span>
699 <span>[% acquisition_details.total_quantity | html %] items are on order.</span>
702 <div id="noitems">No physical items for this record</div>
705 [% END # IF itemloop.size %]
706 [% PROCESS 'shelfbrowser.inc' %]
707 [% INCLUDE shelfbrowser tab='holdings' %]
708 <br style="clear:both;" />
709 </div> <!-- / #holdings -->
711 [% IF (SeparateHoldings) %]
712 <div id="otherholdings">
713 [% IF (otheritemloop.size) %]
714 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
716 <span>No other items.</span>
718 [% INCLUDE shelfbrowser tab='otherholdings' %]
720 [% END # / SeparateHoldings %]
722 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
723 <div id="descriptions">
724 <div class="content_set">
726 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
727 <h4>Enhanced descriptions from Syndetics:</h4>
728 <p>[% SYNDETICS_SUMMARY | $raw %]</p>
731 [% IF ( MARCNOTES ) %]
733 [% FOREACH MARCNOTE IN MARCNOTES %]
735 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
736 <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
738 [% MARCNOTE.marcnote | html | html_line_break %]
745 <p>[% notes | html %]</p>
750 </div> <!-- / #descriptions -->
751 [% END # / IF MARCNOTES || notes %]
753 [% IF ( SyndeticsEnabled ) %]
754 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
756 <div class="content_set">
757 <h3>Table of contents provided by Syndetics</h3>
759 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
760 <li><strong>[% SYNDETICS_TO.l | html %] [% SYNDETICS_TO.t | html %]</strong>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p | $raw %])[% END %]</li>
765 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
767 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
769 <div class="content_set">
770 <h3>Excerpt provided by Syndetics</h3>
771 [% SYNDETICS_EXCERPT | $raw %]
774 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
776 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
778 <div class="content_set">
779 <h3>Reviews provided by Syndetics</h3>
780 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
781 [% IF ( SYNDETICS_REVIEW.title ) %]
782 <h4>[% SYNDETICS_REVIEW.title | html %]</h4>
783 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
785 [% IF ( review.content ) %]
786 [% review.content | $raw %]
794 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
796 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
798 <div class="content_set">
799 <h3>Author notes provided by Syndetics</h3>
800 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
801 [% IF ( SYNDETICS_ANOTE.content ) %]
802 [% SYNDETICS_ANOTE.content | $raw %]
807 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
808 [% END # / IF SyndeticsEnabled %]
810 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
811 <div id="NovelistSelect" >
812 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
814 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
816 [% IF ( subscriptionsnumber ) %]
817 <div id="subscriptions">
818 <h2>This is a serial</h2>
819 <p class="subscription_count">There are [% subscriptionsnumber | html %] subscription(s) associated with this title.</p>
820 [% FOREACH subscription IN subscriptions %]
821 [% IF ( subscription.branchcode ) %]
822 <h3>At library: [% Branches.GetName( subscription.branchcode ) | html %]</h3>
824 [% IF ( subscription.branchcode ) %]
825 <h3>At library: [% subscription.branchcode | html %]</h3>
828 [% IF ( subscription.closed ) %]
829 <p class="subscription_closed">This subscription is closed.</p>
831 [% IF ( subscription.location ) %]
832 <p class="subscription_location">Location: [% AuthorisedValues.GetByCode( 'LOC', subscription.location, 1 ) | html %]
834 [% IF ( subscription.callnumber ) %]
835 <p class="subscription_callnumber">Call number: [% subscription.callnumber | html %]</p>
837 [% IF ( subscription.subscriptionnotes ) %]
838 <p class="subscription_notes">[% subscription.subscriptionnotes | html | html_line_break %] </p>
840 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
841 [% IF ( subscription.letter ) %]<span class="email_notifications">
842 [% IF ( loggedinusername ) %]
843 [% IF ( subscription.hasalert ) %]
844 <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>
846 <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>
849 <span>You must log in if you want to subscribe to email notification on new issues</span>
852 [% IF ( subscription.missinglist ) %]
853 <p class="subscription_missing">Missing issues: [% subscription.missinglist | html | html_line_break %] </p>
855 [% IF ( subscription.opacnote ) %]
856 <p class="subscription_opacnote">[% subscription.opacnote | html | html_line_break %]</p>
858 [% IF ( subscription.latestserials ) %]
859 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount | html %] latest issues for this subscription:</p>
860 <table class="table table-bordered table-striped" id="subscriptionst">
863 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
864 <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
865 <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
866 <th id="serial_status" data-colname="serial_status">Status</th>
867 <th id="serial_notes" data-colname="serial_notes">Note</th>
871 [% FOREACH latestserial IN subscription.latestserials %]
873 <td class="serialseq">[% latestserial.serialseq | html %]</td>
874 <td class="publisheddate"><span title="[% latestserial.publisheddate | html %]">[% latestserial.publisheddate | $KohaDates %]</span></td>
875 <td class="planneddate"><span title="[% latestserial.planneddate | html %]">[% latestserial.planneddate | $KohaDates %]</span></td>
876 <td class="serial_status">
877 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
878 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
879 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
880 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
881 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
882 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
883 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
884 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
885 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
886 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
887 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
888 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
890 <td class="serial_notes">[% latestserial.notes | html %]</td>
892 [% END # / FOREACH latestserials %]
895 [% END # / IF subscription.latestserials %]
896 [% END # / FOREACH subscriptions %]
897 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber | uri %]">More details</a></p>
898 </div> <!-- / #subscriptions -->
899 [% END # IF subscriptionsnumber %]
901 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
902 <!-- Library Thing for Libraries Content -->
903 <div id="LFTLSimilarItems">
904 <div class="content_set">
905 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
906 <!-- but breaks Xhtml validation -->
907 <!-- <span class="results_summary">-->
908 <div id="ltfl_related"></div>
909 <div id="ltfl_similars"></div>
913 <div id="LTFLTagBrowse">
914 <div class="content_set">
915 <!-- <span class="results_summary"> -->
916 <div id="ltfl_tagbrowse" class="ltfl"></div>
920 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
922 [% IF Koha.Preference( 'reviewson' ) == 1 %]
924 <div id="newcomment"></div>
926 [% FOREACH review IN reviews %]
927 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
928 <div class="commentline yours" id="c[% review.reviewid | html %]">
929 [% IF ( review.avatarurl ) %]
930 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
932 [% IF review.approved %]
933 <h5>Your comment</h5>
935 <h5>Your comment (preview, pending approval)</h5>
937 <small>[% review.datereviewed | $KohaDates %]</small>
939 [% FILTER html_break %]
940 [% review.review | html %]
942 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber | uri %]&reviewid=[% review.reviewid | uri %]');">Edit</a>
946 <div class="commentline">
947 [% IF ( ShowReviewer != "none" && review.patron) %]
949 [% IF ( review.avatarurl ) %]
950 <img class="avatar" src="[% review.avatarurl | html %]" height="80" width="80" alt="" />
952 [% SWITCH ShowReviewer %]
954 <h5>Comment by [% review.patron.title | html %] [% review.patron.firstname | html %] [% review.patron.surname | html %]</h5>
956 <h5>Comment by [% review.patron.firstname | html %]</h5>
958 <h5>Comment by [% review.patron.surname | html %]</h5>
959 [% CASE 'firstandinitial' %]
960 <h5>Comment by [% review.patron.firstname | html %] [% review.patron.surname|truncate(2,'.') | html %]</h5>
961 [% CASE 'username' %]
962 <h5>Comment by [% review.patron.userid | html %]</h5>
965 <small>[% review.datereviewed | $KohaDates %]</small>
967 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
968 [% END # / IF ShowReviewer != "none" && review.patron %]
970 [% FILTER html_break %]
971 [% review.review | html %]
974 </div> <!-- / .commentline -->
976 [% END # / FOREACH reviews %]
978 <p>There are no comments on this title.</p>
979 [% END # / IF reviews %]
981 [% IF ( loggedinusername ) %]
982 [% UNLESS ( loggedincommenter ) %]
983 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber | uri %]'); return false;">
984 Post your comments on this title.
988 <div id="addcomment"><a class="login-link loginModal-trigger" role="button" data-toggle="modal" href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
989 [% END # / IF loggedinusername %]
990 </div> <!-- / #comments -->
991 [% END # / IF reviewson %]
993 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
995 <h4>Other editions of this work</h4>
996 <table class="table table-bordered table-striped">
997 [% FOREACH XISBN IN XISBNS %]
1000 [% IF ( OPACAmazonCoverImages ) %]
1001 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn | html %].01._AA75_PU_PU-5_.jpg" alt="" />
1004 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
1005 [% IF ( XISBN.content_identifier_exists ) %]
1006 <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="" />
1008 <span class="no-image">No cover image available</span>
1009 [% END # / IF XISBN.content_identifier_exists %]
1010 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
1013 [% UNLESS ( item_level_itypes ) %]
1014 <td>[% XISBN.description | html %]</td>
1016 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber | uri %]">[% XISBN.title | html %]</a>
1017 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author | html %][% END %]
1018 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate | html %][% END %]
1019 [% IF ( XISBN.publishercode ) %]
1020 <p>[% XISBN.publishercode | html %]
1021 [% IF ( XISBN.place ) %]([% XISBN.place | html %])[% END %]
1022 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear | html %][% END %]
1023 [% IF ( XISBN.pages ) %][% XISBN.pages | html %] [% XISBN.illus | html %] [% XISBN.size | html %][% END %]
1028 [% END # / FOREACH XISBNS %]
1030 </div> <!-- / #editions -->
1031 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1033 [% IF ( HTML5MediaEnabled ) %]
1034 <div id="html5media">
1035 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1037 [% IF HTML5MediaSet.is_youtube %]
1038 <iframe id="player" type="text/html" width="640" height="360"
1039 src="[% HTML5MediaSet.srcblock %]" frameborder="0"></iframe>
1041 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1042 <[% HTML5MediaParent _ ctrl_preload | html %] >
1043 <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] />
1044 <span>[[% HTML5MediaParent | html %] tag not supported by your browser.]</span>
1045 </[% HTML5MediaParent | html %]>
1050 [% END # / IF HTML5MediaEnabled %]
1052 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1054 <p>Click on an image to view it in the image viewer</p>
1055 [% FOREACH image IN localimages %]
1057 <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>
1060 </div><!-- / #images -->
1061 [% END # / IF OPACLocalCoverImages && localimages.size %]
1063 [% IF ( IDreamBooksReviews ) %]
1064 <div id="idb_critic_reviews">
1065 <div id="idb_review_snippets"></div>
1066 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1069 </div> <!-- / #bibliodescriptions -->
1071 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1072 <div id="NovelistSelect">
1073 <h3>Novelist Select</h3>
1074 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]"></div>
1078 [% IF ( Babeltheque ) %]
1080 <div id="BW_etiquettes"></div>
1081 <div id="BW_suggestions"></div>
1083 <div class="clearfix"></div>
1085 <div id="BW_podcasts"></div>
1087 <div class="clearfix"></div>
1089 <div id="BW_videos"></div>
1091 [% END # / IF Babeltheque %]
1093 [%# Following on one line due to translation issues %]
1094 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1096 </div> <!-- /.span9 -->
1099 <div id="ulactioncontainer">
1101 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1102 <div class="nav_results">
1103 <div class="l_Results" style="display:none;">
1104 [% IF ( listResults ) %]
1105 <a href="#" id="a_listResults"><i class="fa fa-bars"></i> Browse results</a>
1107 <span><i class="fa fa-bars"></i> Browse results</span>
1109 <a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a>
1111 <ul class="pg_menu clearfix">
1112 <li class="left_results">
1113 [% IF ( previousBiblionumber ) %]
1114 <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>
1116 <span>Previous</span>
1119 [%# busc is already URI encoded %]
1120 <li class="back_results"><a href="opac-search.pl?[% busc | $raw %]" title="Back to the results search list">Back to results</a></li>
1121 <li class="right_results">
1122 [% IF ( nextBiblionumber ) %]
1123 <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>
1129 [% IF ( listResults ) %]
1130 <div class="results-pagination">
1131 <div class="nav_pages">
1132 <ul id="listResults">
1133 [% FOREACH listitem IN listResults %]
1134 [% IF ( listitem.biblionumber == biblionumber ) %]
1135 <li class="li_pag_[% loop.count | html %] highlight">
1137 <li class="li_pag_[% loop.count | html %]">
1139 <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>
1143 <div class="pagination_list">
1144 <ul id="ul_pagination_lists">
1145 [% FOREACH listitem IN listResults %]
1146 [% IF ( listitem.biblionumber == biblionumber ) %]
1147 <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>
1149 <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>
1156 <div class="pagination_footer">
1157 <a href="#" class="close_pagination"><i class="fa fa-remove"></i> Close</a>
1160 [% END # / IF OpacBrowseResults && busc %]
1162 [% INCLUDE 'opac-detail-sidebar.inc' %]
1164 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1165 <div id="NovelistSelect">
1166 <h4>Novelist Select</h4>
1167 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]></div>
1171 [% IF ( Babeltheque ) %]
1172 <div class="babeltheque_adds">
1173 <div id="BW_critiques_aj"></div>
1174 <div id="BW_citations_aj"></div>
1178 [% IF ( Koha.Preference('SocialNetworks') ) %]
1179 <div id="social_networks" class="clearfix">
1181 [% SET SocialNetworks = Koha.Preference('SocialNetworks') %]
1182 [% FOREACH network IN SocialNetworks.split(",") %]
1183 [% SWITCH network -%]
1184 [% CASE "facebook" -%]
1185 <div><a id="facebook" href="https://www.facebook.com/sharer.php?u=[% current_url |url %]&t=[% title |url %]" title="Share on Facebook"><i class="fa fa-facebook"></i></a></div>
1186 [% CASE "linkedin" -%]
1187 <div><a id="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn"><i class="fa fa-linkedin"></i></a></div>
1189 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email"><i class="fa fa-envelope-o"></i></a></div>
1190 [% CASE "twitter" -%]
1191 <div><a id="twitter" href="https://twitter.com/share?url=[% current_url|url %]&text=[% title | uri %]" class="twitter-share-button" data-count="none" data-lang="[% lang | html %]" title="Share on Twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a></div>
1195 [% END # /IF SocialNetworks %]
1196 </div> <!-- / .ulactioncontainer -->
1197 </div> <!-- / .span4 -->
1198 </div> <!-- / .row-fluid -->
1199 <div class="row-fluid">
1200 [% IF ( LibraryThingForLibrariesID ) %]
1201 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID | html %]"></script>
1202 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1203 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID | uri %]&accessibility=1">here</a>.</noscript>
1206 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1207 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1210 [% IF ( Babeltheque ) %]
1211 <script src="[% Babeltheque_url_js | html %]"></script>
1213 </div> <!-- / .row-fluid -->
1214 </div> <!-- / .container-fluid -->
1215 </div> <!-- / .main -->
1217 [% INCLUDE 'opac-bottom.inc' %]
1219 [%# End of template %]
1221 [% BLOCK items_table %]
1222 <table class="table table-bordered table-striped" id="[% table_id | html %]">
1225 [% IF ( item_level_itypes ) %]
1226 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %]
1227 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1228 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %]
1229 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1230 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1231 [% IF ( itemdata_ccode ) %]
1232 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1233 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1234 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
1235 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1236 [% IF ( itemdata_enumchron ) %]
1237 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1238 [% IF ( itemdata_uri ) %]
1239 <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %]
1240 [% IF ( itemdata_copynumber ) %]
1241 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %]
1242 <th id="item_status" data-colname="item_status" class="status">Status</th>
1243 [% IF ( itemdata_itemnotes ) %]
1244 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1245 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1246 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1247 [% IF holds_count.defined %]
1248 <th id="item_holds" data-colname="item_holds">Item holds</th>
1249 [% ELSIF show_priority %]
1250 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1252 [% IF ( ShowCourseReservesHeader ) %]
1253 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %]
1257 [% FOREACH ITEM_RESULT IN items %]
1258 [% IF ITEM_RESULT.this_branch %]
1259 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1261 <tr vocab="http://schema.org/" typeof="Offer">
1263 [% IF ( item_level_itypes ) %]
1265 [% UNLESS ( noItemTypeImages ) %]
1266 [% IF ( ITEM_RESULT.imageurl ) %]
1267 <img src="[% ITEM_RESULT.imageurl | html %]" title="[% ITEM_RESULT.description | html %]" alt="[% ITEM_RESULT.description | html %]" />
1270 [% ITEM_RESULT.description | html %]
1273 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1274 <td class="location" property="seller">
1275 <link property="itemOffered" href="#record" />
1276 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1277 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1278 [% IF ( ITEM_RESULT.branchurl ) %]
1279 <a href="[% ITEM_RESULT.branchurl | url %]">[% ITEM_RESULT.branchname | html %]</a>
1281 <span>[% ITEM_RESULT.branchname | html %]</span>
1284 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info | $raw %]</div>
1286 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1287 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1293 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1294 <td class="location" property="seller">
1295 <link property="itemOffered" href="#record" />
1296 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1297 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1298 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1299 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1300 [% IF ( home_branch_url ) %]
1301 <a href="[% home_branch_url | url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</a>
1303 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1306 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) | html %]</span>
1309 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info | $raw %]</div>
1311 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1312 <span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span>
1318 [% IF ( itemdata_ccode ) %]
1319 <td class="collection">[% ITEM_RESULT.ccode | html %]</td>
1322 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1323 <td class="shelving_location"><span class="shelvingloc">[% ITEM_RESULT.location_description | html %]</span></td>
1326 <td class="call_no" property="sku">
1327 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1328 [% ITEM_RESULT.itemcallnumber | html %]
1329 [% IF ( OPACShelfBrowser ) %]
1330 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1331 (<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>)
1333 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | uri %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | uri %]#[% tab | uri %]">Browse shelf</a>)
1338 [% IF ( itemdata_enumchron ) %]
1339 <td class="vol_info">
1340 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1341 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1342 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1343 <span class="sep"> -- </span>
1344 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1346 [% ELSIF ITEM_RESULT.enumchron %]
1347 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1348 [% ELSIF ITEM_RESULT.serialseq %]
1349 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1351 [% IF ( ITEM_RESULT.publisheddate ) %]
1352 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1356 [% IF ( itemdata_uri ) %]
1358 [% IF ITEM_RESULT.uri %]
1359 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1360 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1361 <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>
1363 <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>
1367 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1368 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri | url %]" property="url">[% ITEM_RESULT.uri | html %]</a>
1370 <a href="[% ITEM_RESULT.uri | url %]" property="url">[% ITEM_RESULT.uri | html %]</a>
1376 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber | html %]</td>[% END %]
1377 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1378 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes | $raw %]</td>[% END %]
1379 <td class="date_due"><span title="[% ITEM_RESULT.datedue | html %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1380 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode | html %]</td>
1381 [% IF holds_count.defined || show_priority %]
1382 <td class="holds_count">
1383 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count | html %] [% END %]
1384 [% IF ITEM_RESULT.priority %]
1385 [% IF holds_count.defined %]
1386 <span>(priority [% ITEM_RESULT.priority | html %])</span>
1388 <span>[% ITEM_RESULT.priority | html %]</span>
1393 [% IF ShowCourseReservesHeader %]
1395 [% IF ITEM_RESULT.course_reserves %]
1396 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1397 [% IF r.course.enabled == 'yes' %]
1399 <a href="opac-course-details.pl?course_id=[% r.course.course_id | uri %]">
1400 [% r.course.course_name | html %]
1401 <!--[% IF r.course.course_number %] [% r.course.course_number | html %] [% END %]-->
1402 [% IF r.course.section %] [% r.course.section | html %] [% END %]
1403 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term, 1 ) | html %] [% END %]
1410 [% END # /IF ShowCourseReservesHeader %]
1415 [% END %][%# end of items_table block %]
1417 [% BLOCK jsinclude %]
1418 [% INCLUDE 'datatables.inc' %]
1419 [% INCLUDE 'columns_settings.inc' %]
1420 [% INCLUDE greybox.inc %]
1421 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.barrating.min.js") | $raw %][% END %]
1423 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
1424 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1425 [% Asset.js("lib/kjua/kjua.min.js") | $raw %]
1428 [% IF ( Koha.Preference('OPACShowMusicalInscripts') ) %]
1430 var interface = "[% interface | html %]";
1431 var PREF_OPACPlayMusicalInscripts = "[% Koha.Preference('OPACPlayMusicalInscripts') | html %]";
1433 [% Asset.js("js/verovio.js") | $raw %]
1437 [% IF ( OpacHighlightedWords ) %]
1438 var q_array = new Array(); // holds search terms if available
1440 function highlightOff() {
1441 $("#catalogue_detail_biblio").removeHighlight();
1442 $(".highlight_toggle").toggle();
1444 function highlightOn() {
1446 for (x in q_array) {
1447 if ( q_array[x].length > 0 ) {
1448 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1449 q_array[x] = q_array[x].toLowerCase();
1450 var myStopwords = "[% Koha.Preference('NotHighlightedWords') | html %]".toLowerCase().split('|');
1451 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1452 $(".title").highlight(q_array[x]);
1453 $(".author").highlight(q_array[x]);
1454 $(".results_summary").highlight(q_array[x]);
1458 $(".highlight_toggle").toggle();
1462 $(document).ready(function() {
1464 [% IF ( Koha.Preference('OPACDetailQRCode') ) %]
1471 text: location.href,
1474 document.getElementById("qrcode").appendChild( qrcode );
1477 $(".show_qrcode").on("click", function(){
1478 var qrcodeImg = $("#qrcode");
1479 if( qrcodeImg.hasClass("hidden") ){
1480 qrcodeImg.removeClass("hidden");
1482 qrcodeImg.addClass("hidden");
1487 $('#bibliodescriptions').tabs();
1488 $(".branch-info-tooltip-trigger").uitooltip({
1489 position: { my: "left+15 center", at: "right center" },
1492 content: function(){
1493 var element = $(this).next("div");
1494 return element.html();
1498 [% IF ( Koha.Preference('OpacBrowseResults') && busc ) %]
1499 $(".l_Results").show();
1500 $("#a_listResults").on("click", function(e){
1502 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1505 $(".close_pagination").on("click", function(e){
1507 $(".results-pagination, .close_pagination, .pg_menu").toggle();
1511 var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw %];
1513 KohaTable("#holdingst", {
1514 dom: '<"clearfix">t',
1516 { "targets": [ -1 ], "sortable": false, "searchable": false },
1517 { "type": "title-string", "targets" : [ "title-string" ] }
1519 "bKohaColumnsUseNames": true,
1521 }, columns_settings);
1523 KohaTable("#otherholdingst", {
1524 dom: '<"clearfix">t',
1526 { "targets": [ -1 ], "sortable": false, "searchable": false },
1527 { "type": "title-string", "targets" : [ "title-string" ] }
1529 "bKohaColumnsUseNames": true,
1531 }, columns_settings);
1533 var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
1535 KohaTable("#subscriptionst", {
1536 dom: '<"clearfix">t',
1537 "sorting": [[ 1, "desc" ]],
1539 { "type": "title-string", "targets" : [ "title-string" ] }
1542 "bKohaColumnsUseNames": true
1543 }, serial_column_settings);
1545 [% IF ( TagsInputEnabled && loggedinusername ) %]
1546 $(".tag_add").click(function(){
1547 var thisid = $(this).attr("id");
1548 thisid = thisid.replace("tag_add","");
1550 $("#tagform"+thisid).show();
1551 $("#newtag"+thisid).focus();
1552 $("#newtag"+thisid+"_status").empty().hide();
1555 $(".cancel_tag_add").click(function(){
1556 var thisid = $(this).attr("id");
1557 thisid = thisid.replace("cancel","");
1558 $("#tagform"+thisid).hide();
1559 $("#tag_add"+thisid).show();
1560 $("#newtag"+thisid).val("");
1561 $("#newtag"+thisid+"_status").empty().hide();
1564 $(".tagbutton").click(function(){
1565 var thisid = $(this).attr("title");
1566 var tag = $("#newtag"+thisid).val();
1567 if (!tag || (tag == "")) {
1568 alert(MSG_NO_TAG_SPECIFIED);
1571 KOHA.Tags.add_tag_button(thisid, tag);
1576 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1577 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1578 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1579 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1580 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1581 var default_order_index = 1;
1582 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1583 var default_order_index = 2;
1585 var default_order_index = 0;
1588 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]";
1589 q_array = query_desc.split(" ");
1590 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1592 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1593 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1594 [% IF ( GoogleJackets ) %]
1595 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1597 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1598 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1601 [% IF OpenLibraryCovers %]
1602 KOHA.OpenLibrary.GetCoverFromIsbn();
1604 [% IF OPACLocalCoverImages %]
1605 KOHA.LocalCover.GetCoverFromBibnumber(true);
1607 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1608 novSelect.loadContentForQuery(
1610 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1611 ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
1614 '[% NovelistSelectProfile | html %]',
1615 '[% NovelistSelectPassword | html %]',
1617 if ( d.length > 0 ){ //If no content
1618 $(".NovelistSelect").show();
1623 [% IF ( OPACShelfBrowser ) %]
1625 (function prepareShelfBrowser(){
1627 $(".main").on("click",".close_shelf",function(e){
1629 $("#shelfbrowser").toggle();
1631 $(".main").on("click", "#browser_previous a", function(e){
1634 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1637 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1639 success: function(data){
1640 $("#shelfbrowser").replaceWith(data);
1641 [% IF ( GoogleJackets ) %]
1642 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1644 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1645 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1647 [% IF OpenLibraryCovers %]
1648 KOHA.OpenLibrary.GetCoverFromIsbn();
1650 [% IF OPACLocalCoverImages %]
1651 KOHA.LocalCover.GetCoverFromBibnumber(true);
1657 $(".main").on("click", "#browser_next a", function(e){
1660 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1663 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1665 success: function(data){
1666 $("#shelfbrowser").replaceWith(data);
1667 [% IF ( GoogleJackets ) %]
1668 KOHA.Google.GetCoverFromIsbn([% covernewwindow | html %]);
1670 [% IF ( Koha.Preference('OpacCoce') && Koha.Preference('CoceProviders') ) %]
1671 KOHA.coce.getURL('[% Koha.Preference('CoceHost') | html %]', '[% Koha.Preference('CoceProviders') | html %]',[% covernewwindow | html %]);
1673 [% IF OpenLibraryCovers %]
1674 KOHA.OpenLibrary.GetCoverFromIsbn();
1676 [% IF OPACLocalCoverImages %]
1677 KOHA.LocalCover.GetCoverFromBibnumber(true);
1684 [% IF ( OpacStarRatings != 'disable' ) %]
1685 // -----------------------------------------------------
1686 // star-ratings code
1687 // -----------------------------------------------------
1688 // hide 'rate' button if javascript enabled
1690 $('input[name="rate_button"]').remove();
1692 var rating_enabled = ( $("#star_rating").data("rating-enabled") == "1" ) ? false : true;
1693 $('#star_rating').barrating({
1694 theme: 'fontawesome-stars',
1695 showSelectedRating: false,
1697 deselectable: false,
1698 readonly: rating_enabled,
1699 onSelect: function(value, text) {
1700 $("#rating-loading").show();
1701 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1702 rating_old_value: $("#rating_value").attr("value"),
1703 borrowernumber: "[% borrowernumber | html %]",
1704 biblionumber: "[% biblio.biblionumber | html %]",
1705 rating_value: value,
1707 }, function (data) {
1708 $("#rating_value").val(data.rating_value);
1709 if (data.rating_value) {
1710 $("#rating_value_text").text(_("Your rating: %s, ").format(data.rating_value));
1711 $("#cancel_rating_text").show();
1713 $("#rating_value_text").text('');
1714 $("#cancel_rating_text").hide();
1716 $("#rating_text").text(_("Average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1717 $("#rating-loading").hide();
1722 $("#cancel_rating_text a").on("click", function(e){
1724 $("#star_rating").barrating("set", "");
1727 [% END # / IF ( OpacStarRatings != 'disable' )%]
1729 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1730 var isbn = $(".isbn:last").text().split(" ")[1];
1732 isbn = isbn.replace(/\W*$/, '');
1733 isbn = isbn.replace(/-/, '');
1735 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1736 // Use Microsoft XDR for IE version 8 or above
1737 var xdr = new XDomainRequest();
1738 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1739 xdr.onload = function() {
1740 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1741 eval(json); // json is now a regular JSON object
1742 parseIDBJSON(json); // parse using same function as for jQuery's success event
1746 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1751 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1754 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1755 function parseIDBJSON( json ) {
1756 if(json.total_results > 0 && json.book.rating > 0){
1757 var isbn = $(".isbn:last").text().split(" ")[1];
1758 isbn = isbn.replace(/\W+/g, '');
1760 [% IF ( IDreamBooksReadometer ) %]
1761 $(".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>');
1764 [% IF ( IDreamBooksReviews ) %]
1765 //build new tab for critic reviews
1766 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1768 //append happy-sad cloud review
1770 $("#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>");
1772 //insert data into Book reviews tab
1773 $.each(json.book.critic_reviews, function(){
1774 $("#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>");
1776 $("#seemoreidb").attr('href', json.book.detail_link);
1777 $("#tab_idb_critic_reviews").show();
1781 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1784 [% IF OPACPopupAuthorsSearch %]
1786 function showAuthors(element){
1787 var authornumber = $(element).attr("data-count");
1789 // Check checkbox related to the clicked link
1790 $("#authorsList input[type='checkbox']").attr('checked', false);
1791 $("#author_"+authornumber).attr('checked', true);
1793 makeAuthorRequest();
1796 function checkAll(checkbox, elem) {
1797 var check = $(checkbox).attr('checked') ? true : false;
1798 $(elem).find("input[type='checkbox']").attr('checked', check);
1799 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1802 function makeAuthorRequest(){
1805 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1806 values.push($(this).val());
1809 if (values.length > 0) {
1810 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1811 $("#validAuthorSearch").attr("href", request);
1813 $("#validAuthorSearch").removeAttr("href");
1819 function showSubjects(element, subjectnumber, subfieldnumber){
1821 // Check checkbox related to the clicked link
1822 $("#subjectsList input[type='checkbox']").attr('checked', false);
1823 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1825 makeSubjectRequest();
1829 function makeSubjectRequest() {
1831 $("#subjectsList > ul").each(function() {
1832 var all_checked = true;
1833 var local_values = [];
1834 $(this).find('input[type="checkbox"]').each(function() {
1835 if($(this).attr('checked')) {
1836 local_values.push($(this).val());
1838 all_checked = false;
1841 var authid = $(this).attr('data-authid');
1842 if(all_checked && authid) {
1843 values.push('an:' + authid);
1845 values = values.concat(local_values);
1848 if(values.length > 0) {
1849 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1850 $("#validSubjectSearch").attr('href', request);
1852 $("#validSubjectSearch").removeAttr("href");
1855 $(document).ready(function() {
1856 $("a.showauthors").click(function(e){
1862 [% END # / IF OPACPopupAuthorsSearch %]