5 [% USE ColumnsSettings %]
6 [% USE AuthorisedValues %]
7 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
8 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
9 [% IF Koha.Preference('AmazonAssocTag') %]
10 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
12 [% AmazonAssocTag = '' %]
15 [% ShowCourseReservesHeader = 0 %]
16 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
17 [% FOREACH ITEM_RESULT IN itemloop %]
18 [% IF ITEM_RESULT.course_reserves %]
19 [% FOREACH r IN ITEM_RESULT.course_reserves %]
20 [% IF r.course.enabled == 'yes' %]
21 [% ShowCourseReservesHeader = 1 %]
28 [% IF ( using_https ) %]
29 [% SET protocol = "https://" %]
31 [% SET protocol = "http://" %]
33 [% INCLUDE 'doc-head-open.inc' %]
34 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</title>
35 [% INCLUDE 'doc-head-close.inc' %]
37 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left_[% KOHA_VERSION %].css" />[% END %]
39 [% IF ( OpacStarRatings != 'disable' ) %]
40 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating_[% KOHA_VERSION %].css" />[% END %]
42 [% INCLUDE greybox.inc %]
43 <link href="[% interface %]/lib/emoji-picker/css/emoji_[% KOHA_VERSION %].css" rel="stylesheet">
45 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
46 [% INCLUDE 'masthead.inc' %]
49 <ul class="breadcrumb">
50 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
51 <li><a href="#"><span>Details for: </span>[% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</a></li>
54 <div class="container-fluid">
55 <div class="row-fluid">
57 <div id="catalogue_detail_biblio" class="maincontent">
60 [% IF ( OPACLocalCoverImages ) %]
61 <div title="[% biblio.biblionumber %]" class="[% biblio.biblionumber %]" id="local-thumbnail-preview"></div>
63 [% IF ( OPACAmazonCoverImages ) %]
64 [% IF ( OPACURLOpenInNewWindow ) %]
65 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link" target="_blank" rel="noreferrer">
67 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %][% AmazonAssocTag %]">
69 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
72 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
73 [% IF ( content_identifier_exists ) %]
74 [% IF ( using_https ) %]
75 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% normalized_upc %]&oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
77 <img src="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% normalized_upc %]&oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
81 <span class="no-image">No cover image available</span>
85 [% IF ( GoogleJackets ) %]
86 <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
88 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
89 [% coce_id = normalized_ean || normalized_isbn %]
90 <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
92 [% IF OpenLibraryCovers %]
93 <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
95 [% bt_id = ( normalized_upc || normalized_isbn ) %]
96 [% IF ( BakerTaylorEnabled && bt_id ) %]
97 [% IF BakerTaylorBookstoreURL %]
98 [% IF ( OPACURLOpenInNewWindow ) %]
99 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
101 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
104 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
107 </div><!-- / #bookcover -->
109 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber %]"><!-- unAPI --></abbr>
110 [% IF ( ocoins ) # COinS / Openurl %]
111 <span class="Z3988" title="[% ocoins %]"></span>
115 <span class="view current-view"><span id="Normalview">Normal view</span></span>
116 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber %]">MARC view</a></span>
117 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber %]">ISBD view</a></span>[% END %]
119 [% IF ( OPACXSLTDetailsDisplay ) %]
122 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
123 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
125 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
127 [% IF ( description ) %]
133 [% IF ( unititle ) %], [% unititle %][% END %]
136 [% IF ( MARCAUTHORS ) %]
137 <div class="results_summary">
138 <span class="label">Additional authors:</span>
139 [% IF OPACPopupAuthorsSearch %]
140 <!-- Author search term selection modal -->
141 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
142 <div class="modal-header">
143 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
144 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
146 <div class="modal-body">
147 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
148 <ul id="authorsList">
149 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
151 [% IF (MARCAUTHOR.authoritylink) %]
152 <input type="checkbox" name="checkbox"
153 id="author_[% loop.count %]"
154 onclick="makeAuthorRequest()"
155 value="an:[% MARCAUTHOR.authoritylink %]" />
157 <input type="checkbox" name="checkbox"
158 id="author_[% loop.count %]"
159 onclick="makeAuthorRequest()"
160 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
162 <label for="author_[% loop.count %]">
163 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
168 [% END # /FOREACH MARCAUTHORS %]
171 <div class="modal-footer">
172 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
173 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
176 [% END # /OPACPopupAuthorsSearch %]
178 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
179 [% authorsloop = loop %]
180 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
181 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
182 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
183 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
184 class="showauthors" data-count="[% authorsloop.count %]"
185 href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#authorSearch">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
187 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
188 class="showauthors" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
191 [% IF (MARCAUTHOR.authoritylink) %]
192 <a class='authlink' href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png"></a>
194 [% IF IDREF and MARCAUTHOR.unimarc3 %]
195 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
197 [% UNLESS ( loop.last ) %]|[% END %]
198 [% END # /FOREACH MARCAUTHORS %]
200 [% END # IF MARCAUTHORS %]
202 [% IF ( MARCSERIES ) %]
203 <span class="results_summary series"><span class="label">Series:</span>
204 [% FOREACH MARCSERIE IN MARCSERIES %]
205 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
206 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
207 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
209 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
210 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
213 [% UNLESS ( loop.last ) %]|[% END %]
214 [% END # / FOREACH MARCSERIES %]
216 [% END # /MARCSERIES %]
218 [% IF ( editionstatement ) %]
219 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
221 [% IF ( publishercode ) %]
222 <span class="results_summary publisher"><span class="label">Published by :</span>
223 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
224 [% publishercode |html %]
225 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
230 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
233 [% IF ( MARCISBNS ) %]
234 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
236 [% IF ( normalized_isbn ) %]
237 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
242 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
245 [% IF ( collectiontitle ) %]
246 <span class="results_summary collection"><span class="label">Collection: </span>
247 [% collectiontitle %]
248 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn %][% END %]
249 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume %] [% END %]
254 [% IF ( unititles ) %]
255 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
256 [% FOREACH unititle IN unititles %]
257 [% unititle.unititle %] ;
262 [% IF ( MARCSUBJCTS ) %]
263 <div class="results_summary subject">
264 <span class="label">Subject(s):</span>
266 [% IF OPACPopupAuthorsSearch %]
267 <!-- Search term selection modal -->
268 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
269 <div class="modal-header">
270 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
271 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
273 <div id="subjectsList" class="modal-body">
274 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
275 <label for="all_subjects">
278 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
279 [% subjectsloop = loop %]
280 [% IF MARCSUBJCT.authoritylink %]
281 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
283 <ul id="subjectsList[% loop.count %]">
285 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
287 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
288 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
296 <div class="modal-footer">
297 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
298 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
301 [% END # /OPACPopupAuthorsSearch%]
303 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
304 [% subjectsloop = loop %]
305 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
306 [% SUBFIELD.separator %]
307 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
308 <a role="button" data-toggle="modal" title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#subjectSearch" onclick="showSubjects(this, [% subjectsloop.count %], [% loop.count %]); return false;">[% SUBFIELD.value %]</a>
310 <a title="[% '$' _ SUBFIELD.code _ ' ' _ SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]">[% SUBFIELD.value %]</a>
313 [% IF (MARCSUBJCT.authoritylink) %]
314 <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png" /></a>
316 [% UNLESS ( loop.last ) %] | [% END %]
317 [% END # / FOREACH MARCSUBJCTS %]
319 [% ELSE # /IF MARCSUBJCTS %]
320 [% IF ( subjects ) %]<span class="results_summary"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject %]</a> | [% END %]</span>[% END %]
323 [% IF ( copyrightdate ) %]
324 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
327 [% UNLESS ( item_level_itypes ) %]
329 <img src="[% imageurl %]" alt="" />
331 <span class="results_summary itemtype"><span class="label">Item type: </span>
332 [% IF ( description ) %]
340 [% IF ( MARCURLS ) %]
341 <div class="results_summary online_resources"><span class="label">Online resources:</span>
343 [% FOREACH MARCurl IN MARCURLS %]
344 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
346 [% IF ( OPACURLOpenInNewWindow ) %]
347 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
348 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblio.biblionumber %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
350 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
353 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
354 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblio.biblionumber %]" title="[% MARCurl.MARCURL %]">
356 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
359 [% MARCurl.linktext %]</a>
360 [% IF ( MARCurl.notes ) %]
362 [% FOREACH note IN MARCurl.notes %]
363 <li>[% note.note %]</li>
368 [% END # /FOREACH MARCURLS %]
371 [% END # / IF MARCURLS %]
372 [% END # / IF OPACXSLTDetailsDisplay %]
374 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
375 [% IF ( LibraryThingForLibrariesID ) %]
376 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
377 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
378 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
379 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
381 <span class="results_summary">
382 <span class="label">Reviews from LibraryThing.com:</span>
383 <span style="display: block;" class="ltfl_reviews"></span>
385 [% END # / LibraryThingForLibrariesID %]
387 <!--This grabs all of the lists a bib record appears in -->
388 [% IF shelves.count %]
389 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
390 [% FOREACH s IN shelves %]
391 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
392 [% IF ( loop.last ) %][% ELSE %]|[% END %]
397 [% IF ( TagsShowEnabled ) %]
398 <div class="results_summary tags">
400 <span class="label">Tags from this library:</span>
402 [% FOREACH TagLoo IN TagLoop %]
403 <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a> <span class="weight">([% TagLoo.weight_total %])</span>
404 [% IF ( loop.last ) %][% ELSE %], [% END %]
409 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
411 [% IF ( TagsInputEnabled ) %]
412 [% IF ( loggedinusername ) %]
413 <form id="tagform[% biblio.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
414 <label for="newtag[% biblio.biblionumber %]">New tag(s), separated by a comma:</label>
415 <p class="emoji-picker-container">
417 name="newtag[% biblio.biblionumber %]"
418 id="newtag[% biblio.biblionumber %]"
421 data-emojiable="true"
422 data-emoji-input="unicode">
424 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblio.biblionumber %]" type="submit" value="Add" />
425 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber %]" href="#">(done)</a>
428 <span id="newtag[% biblio.biblionumber %]_status" class="tagstatus" style="display:none;">
431 <a class="tag_add" id="tag_add[% biblio.biblionumber %]" href="#">Add tag(s)</a>
433 <span id="login4tags">
434 [% IF Koha.Preference('casAuthentication') %]
435 [%# CAS authentication is too complicated for modal window %]
436 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
438 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
442 [% END # / IF TagsInputEnabled %]
444 [% END # /IF TagsShowEnabled %]
446 [% IF ( SyndeticsEnabled ) %]
447 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
448 <span class="results_summary">
449 <span class="label">Series information:</span>
450 [% IF ( using_https ) %]
451 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&type=series&num=1&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
453 <a target="_blank" rel="noreferrer" href="http://www.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&type=series&num=1&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
456 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
457 [% IF ( SyndeticsAVPROFILEExists ) %]
458 <span class="results_summary">
459 <span class="label">Audiovisual profile:</span>
460 [% IF ( using_https ) %]
461 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
463 <a target="_blank" rel="noreferrer" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
466 [% END # / IF SyndeticsAVPROFILEExists %]
468 [% IF ( SyndeticsFICTIONExists ) %]
469 <span class="results_summary">
470 <span class="label">Fiction notes:</span>
471 [% IF ( using_https ) %]
472 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
474 <a target="_blank" rel="noreferrer" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
477 [% END # / IF SyndeticsFICTIONExists %]
479 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
480 <span class="results_summary">
481 <span class="label">Awards:</span>
482 [% IF ( using_https ) %]
483 <a target="_blank" rel="noreferrer" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&type=awards&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
485 <a target="_blank" rel="noreferrer" href="http://www.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&type=awards&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
488 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
489 [% END # / IF SyndeticsEnabled%]
491 [% IF ( OpacStarRatings != 'disable' ) %]
492 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
493 <div class="results_summary ratings">
495 [% SET rating_avg = ratings.get_avg_rating() %]
496 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
497 [% FOREACH i IN [ 1 2 3 4 5 ] %]
498 [% IF rating_avg_int == i && borrowernumber %]
499 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
500 [% ELSIF rating_avg_int == i %]
501 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
502 [% ELSIF borrowernumber %]
503 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
505 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
509 <!-- define some hidden vars for ratings -->
511 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber %]" />
512 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
514 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
517 <span id="rating_value_text">your rating: [% my_rating.rating_value %], </span>
519 <span id="rating_value_text"></span>
522 <span id="rating_text">average rating: [% rating_avg %] ([% ratings.count %] votes)</span>
525 [% END # / IF OpacStarRatings != 'disable' %]
527 [% IF ( BakerTaylorContentURL ) %]
528 <span class="results_summary">
529 <span class="label">Enhanced content: </span>
530 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
532 [% END # / IF BakerTaylorContentURL %]
534 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
535 [% IF ( NovelistSelectView == 'above') %]
536 <span class="results_summary NovelistSelect" style="display:none;">
537 <span class="label">Novelist Select: </span>
538 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
541 [% END # / IF NovelistSelectProfile %]
543 [% IF ( Babeltheque ) %]
544 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
545 <div id="BW_notes"></div>
546 <div id="BW_critiques"></div>
547 <div id="BW_critiques_pro"></div>
548 <div id="BW_citations"></div>
549 [% END # / IF Babeltheque%]
551 </div> <!-- / #catalogue_detail_biblio -->
553 <div id="bibliodescriptions" class="toptabs">
555 [% IF ( defaulttab == 'holdings' ) %]
556 <li id="tab_holdings" class="ui-tabs-active">
558 <li id="tab_holdings">
560 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
561 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' %][% END %]</a>
563 [% IF (SeparateHoldings) %]
564 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' %]</a></li>
566 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
567 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
569 [% IF ( SYNDETICS_TOC ) %]
570 <li id="tab_toc"> <a href="#toc">TOC</a></li>
572 [% IF ( SyndeticsEnabled ) %]
573 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
574 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
576 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
577 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
578 [% IF ( LibraryThingForLibrariesID ) %]
579 <li id="tab_LTFLreviews">
580 [% IF ( using_https ) %]
581 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
582 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
584 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
585 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="http://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&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 %] )</a>
606 [% IF Koha.Preference( 'reviewson' ) == 1 %]
607 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' %]</a></li>
610 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
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 ) %]
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 %]</td>
653 <td>[% serialcollection.text %]</td>
654 <td>[% serialcollection.itemcallnumber %]</td>
660 [% END # / IF serialcollection %]
664 [% IF too_many_items %]
665 <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber %]&viewallitems=1">Click here to view them all.</a></p>
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 %] items are on order.</span>
675 [% IF holds_count.defined || priority %]
677 [% IF holds_count.defined %]
678 <span>Total holds: [% holds_count %]</span>
681 [% IF holds_count.defined %]
682 <span>(priority [% priority %])</span>
684 <span>Overall queue priority: [% priority %]</span>
690 [% IF ( ALTERNATEHOLDINGS ) %]
691 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
692 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</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 %] 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 %]</p>
731 [% IF ( MARCNOTES ) %]
733 [% FOREACH MARCNOTE IN MARCNOTES %]
735 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
736 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
738 [% MARCNOTE.marcnote FILTER html_line_break %]
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><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% 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 %]
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 %]</h4>
783 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
785 [% IF ( review.content ) %]
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 %]
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 %][% ELSE %][% normalized_upc %][% 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 %] subscription(s) associated with this title.</p>
820 [% FOREACH subscription IN subscriptions %]
821 [% IF ( subscription.branchcode ) %]
822 <h3>At library: [% Branches.GetName( subscription.branchcode ) %]</h3>
824 [% IF ( subscription.branchcode ) %]
825 <h3>At library: [% subscription.branchcode %]</h3>
828 [% IF ( subscription.closed ) %]
829 <p class="subscription_closed">This subscription is closed.</p>
831 [% IF ( subscription.callnumber ) %]
832 <p class="subscription_callnumber">Call number: [% subscription.callnumber %]</p>
834 [% IF ( subscription.subscriptionnotes ) %]
835 <p class="subscription_notes">[% subscription.subscriptionnotes FILTER html_line_break %] </p>
837 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
838 [% IF ( subscription.letter ) %]<span class="email_notifications">
839 [% IF ( loggedinusername ) %]
840 [% IF ( subscription.hasalert ) %]
841 <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&externalid=[% subscription.subscriptionid %]&alerttype=issue&biblionumber=[% subscription.biblionumber %]">Cancel email notification</a>
843 <a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?externalid=[% subscription.subscriptionid %]&alerttype=issue&biblionumber=[% subscription.biblionumber %]">Subscribe to email notification on new issues</a>
846 <span>You must log in if you want to subscribe to email notification on new issues</span>
849 [% IF ( subscription.missinglist ) %]
850 <p class="subscription_missing">Missing issues: [% subscription.missinglist %] </p>
852 [% IF ( subscription.opacnote ) %]
853 <p class="subscription_opacnote">[% subscription.opacnote FILTER html_line_break %]</p>
855 [% IF ( subscription.latestserials ) %]
856 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
857 <table class="table table-bordered table-striped" id="subscriptionst">
860 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
861 <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
862 <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
863 <th id="serial_status" data-colname="serial_status">Status</th>
864 <th id="serial_notes" data-colname="serial_notes">Note</th>
868 [% FOREACH latestserial IN subscription.latestserials %]
870 <td class="serialseq">[% latestserial.serialseq %]</td>
871 <td class="publisheddate">[% latestserial.publisheddate %]</td>
872 <td class="planneddate">[% latestserial.planneddate %]</td>
873 <td class="serial_status">
874 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
875 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
876 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
877 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
878 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
879 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
880 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
881 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
882 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
883 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
884 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
885 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
887 <td class="serial_notes">[% latestserial.notes %]</td>
889 [% END # / FOREACH latestserials %]
892 [% END # / IF subscription.latestserials %]
893 [% END # / FOREACH subscriptions %]
894 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber %]">More details</a></p>
895 </div> <!-- / #subscriptions -->
896 [% END # IF subscriptionsnumber %]
898 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
899 <!-- Library Thing for Libraries Content -->
900 <div id="LFTLSimilarItems">
901 <div class="content_set">
902 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
903 <!-- but breaks Xhtml validation -->
904 <!-- <span class="results_summary">-->
905 <div id="ltfl_related"></div>
906 <div id="ltfl_similars"></div>
910 <div id="LTFLTagBrowse">
911 <div class="content_set">
912 <!-- <span class="results_summary"> -->
913 <div id="ltfl_tagbrowse" class="ltfl"></div>
917 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
919 [% IF Koha.Preference( 'reviewson' ) == 1 %]
921 <div id="newcomment"></div>
923 [% FOREACH review IN reviews %]
924 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
925 <div class="commentline yours" id="c[% review.reviewid %]">
926 [% IF ( review.avatarurl ) %]
927 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
929 [% IF review.approved %]
930 <h5>Your comment</h5>
932 <h5>Your comment (preview, pending approval)</h5>
934 <small>[% review.datereviewed | $KohaDates %]</small>
936 [% FILTER html_break %]
937 [% review.review |html %]
939 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
943 <div class="commentline">
944 [% IF ( ShowReviewer != "none" && review.patron) %]
946 [% IF ( review.avatarurl ) %]
947 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
949 [% SWITCH ShowReviewer %]
951 <h5>Comment by [% review.patron.title %] [% review.patron.firstname %] [% review.patron.surname %]</h5>
953 <h5>Comment by [% review.patron.firstname %]</h5>
955 <h5>Comment by [% review.patron.surname %]</h5>
956 [% CASE 'firstandinitial' %]
957 <h5>Comment by [% review.patron.firstname %] [% review.patron.surname|truncate(2,'.') %]</h5>
958 [% CASE 'username' %]
959 <h5>Comment by [% review.patron.userid %]</h5>
962 <small>[% review.datereviewed | $KohaDates %]</small>
964 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
965 [% END # / IF ShowReviewer != "none" && review.patron %]
967 [% FILTER html_break %]
968 [% review.review |html %]
971 </div> <!-- / .commentline -->
973 [% END # / FOREACH reviews %]
975 <p>There are no comments for this item.</p>
976 [% END # / IF reviews %]
978 [% IF ( loggedinusername ) %]
979 [% UNLESS ( loggedincommenter ) %]
980 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber %]'); return false;">
981 Post your comments on this item.
985 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
986 [% END # / IF loggedinusername %]
987 </div> <!-- / #comments -->
988 [% END # / IF reviewson %]
990 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
992 <h4>Other editions of this work</h4>
993 <table class="table table-bordered table-striped">
994 [% FOREACH XISBN IN XISBNS %]
997 [% IF ( OPACAmazonCoverImages ) %]
998 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
1001 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
1002 [% IF ( XISBN.content_identifier_exists ) %]
1003 [% IF ( using_https ) %]
1004 <img src="https://secure.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc %][% END %]&type=xw10" alt="" />
1006 <img src="http://www.syndetics.com/index.aspx?isbn=[% XISBN.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( XISBN.browser_normalized_upc ) %]&upc=[% XISBN.browser_normalized_upc %][% END %][% IF ( XISBN.browser_normalized_oclc ) %]&oclc=[% XISBN.browser_normalized_oclc %][% END %]&type=xw10" alt="" />
1009 <span class="no-image">No cover image available</span>
1010 [% END # / IF XISBN.content_identifier_exists %]
1011 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
1014 [% UNLESS ( item_level_itypes ) %]
1015 <td>[% XISBN.description %]</td>
1017 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
1018 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author |html %][% END %]
1019 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate %][% END %]
1020 [% IF ( XISBN.publishercode ) %]
1021 <p>[% XISBN.publishercode |html %]
1022 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
1023 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear %][% END %]
1024 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
1029 [% END # / FOREACH XISBNS %]
1031 </div> <!-- / #editions -->
1032 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1034 [% IF ( HTML5MediaEnabled ) %]
1035 <div id="html5media">
1036 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1038 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1039 <[% HTML5MediaParent _ ctrl_preload %] >
1040 <[% HTML5MediaSet.child _ ' src="' _ HTML5MediaSet.srcblock _'"' _ HTML5MediaSet.typeblock %] />
1041 <span>[[% HTML5MediaParent %] tag not supported by your browser.]</span>
1042 </[% HTML5MediaParent %]>
1046 [% END # / IF HTML5MediaEnabled %]
1048 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1050 <p>Click on an image to view it in the image viewer</p>
1051 [% FOREACH image IN localimages %]
1053 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber %]&imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image %]" /></a>
1056 </div><!-- / #images -->
1057 [% END # / IF OPACLocalCoverImages && localimages.size %]
1059 [% IF ( IDreamBooksReviews ) %]
1060 <div id="idb_critic_reviews">
1061 <div id="idb_review_snippets"></div>
1062 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1065 </div> <!-- / #bibliodescriptions -->
1067 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1068 <div id="NovelistSelect">
1069 <h3>Novelist Select</h3>
1070 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]"></div>
1074 [% IF ( Babeltheque ) %]
1076 <div id="BW_etiquettes"></div>
1077 <div id="BW_suggestions"></div>
1079 <div class="clearfix"></div>
1081 <div id="BW_podcasts"></div>
1083 <div class="clearfix"></div>
1085 <div id="BW_videos"></div>
1087 [% END # / IF Babeltheque %]
1089 [%# Following on one line due to translation issues %]
1090 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1092 </div> <!-- /.span9 -->
1095 <div id="ulactioncontainer">
1097 [% IF ( OpacBrowseResults && busc ) %]
1098 <div class="nav_results">
1099 <div class="l_Results">
1100 [% IF ( listResults ) %]
1101 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1103 <span>Browse results</span>
1106 <ul class="pg_menu clearfix">
1107 <li class="left_results">
1108 [% IF ( previousBiblionumber ) %]
1109 <a href="opac-detail.pl?biblionumber=[% previousBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>
1111 <span>Previous</span>
1114 [%# busc is already URI encoded %]
1115 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1116 <li class="right_results">
1117 [% IF ( nextBiblionumber ) %]
1118 <a href="opac-detail.pl?biblionumber=[% nextBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>
1124 [% IF ( listResults ) %]
1125 <div class="results-pagination">
1126 <div class="nav_pages">
1127 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1128 <ul id="listResults"></ul>
1130 <div class="pagination_list">
1131 <ul id="ul_pagination_list"></ul>
1136 [% END # / IF OpacBrowseResults && busc %]
1138 [% INCLUDE 'opac-detail-sidebar.inc' %]
1140 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1141 <div id="NovelistSelect">
1142 <h4>Novelist Select</h4>
1143 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
1147 [% IF ( Babeltheque ) %]
1148 <div class="babeltheque_adds">
1149 <div id="BW_critiques_aj"></div>
1150 <div id="BW_citations_aj"></div>
1154 [% IF ( SocialNetworks ) %]
1155 <div id="social_networks" class="clearfix">
1157 <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>
1158 <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>
1159 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1160 <div><div class="g-plusone" data-size="small" data-count="false"></div></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 %]">Tweet</a></div>
1164 </div> <!-- / .ulactioncontainer -->
1165 </div> <!-- / .span4 -->
1166 </div> <!-- / .row-fluid -->
1167 <div class="row-fluid">
1168 [% IF ( LibraryThingForLibrariesID ) %]
1169 [% IF ( using_https ) %]
1170 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1171 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1172 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1174 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1175 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1176 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1177 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1181 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1182 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init_[% KOHA_VERSION %].js"></script>
1185 [% IF ( Babeltheque ) %]
1186 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1188 </div> <!-- / .row-fluid -->
1189 </div> <!-- / .container-fluid -->
1190 </div> <!-- / .main -->
1192 [% INCLUDE 'opac-bottom.inc' %]
1194 [%# End of template %]
1196 [% BLOCK items_table %]
1197 <table class="table table-bordered table-striped" id="[% table_id %]">
1200 [% IF ( item_level_itypes ) %]
1201 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %]
1202 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1203 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %]
1204 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1205 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1206 [% IF ( itemdata_ccode ) %]
1207 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1208 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1209 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
1210 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1211 [% IF ( itemdata_enumchron ) %]
1212 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1213 [% IF ( itemdata_uri ) %]
1214 <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %]
1215 [% IF ( itemdata_copynumber ) %]
1216 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %]
1217 <th id="item_status" data-colname="item_status" class="status">Status</th>
1218 [% IF ( itemdata_itemnotes ) %]
1219 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1220 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1221 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1222 [% IF holds_count.defined %]
1223 <th id="item_holds" data-colname="item_holds">Item holds</th>
1224 [% ELSIF show_priority %]
1225 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1227 [% IF ( ShowCourseReservesHeader ) %]
1228 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %]
1232 [% FOREACH ITEM_RESULT IN items %]
1233 [% IF ITEM_RESULT.this_branch %]
1234 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1236 <tr vocab="http://schema.org/" typeof="Offer">
1238 [% IF ( item_level_itypes ) %]
1240 [% UNLESS ( noItemTypeImages ) %]
1241 [% IF ( ITEM_RESULT.imageurl ) %]
1242 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1245 [% ITEM_RESULT.description %]
1248 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1249 <td class="location" property="seller">
1250 <link property="itemOffered" href="#record" />
1251 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1252 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1253 [% IF ( ITEM_RESULT.branchurl ) %]
1254 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1256 <span>[% ITEM_RESULT.branchname %]</span>
1259 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1261 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1262 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1268 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1269 <td class="location" property="seller">
1270 <link property="itemOffered" href="#record" />
1271 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1272 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1273 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1274 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1275 [% IF ( home_branch_url ) %]
1276 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1278 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1281 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1284 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1286 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1287 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1293 [% IF ( itemdata_ccode ) %]
1294 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1297 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1298 <td class="shelving_location">[% ITEM_RESULT.location_description %]</td>
1301 <td class="call_no" property="sku">
1302 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1303 [% ITEM_RESULT.itemcallnumber %]
1304 [% IF ( OPACShelfBrowser ) %]
1305 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1306 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1308 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1313 [% IF ( itemdata_enumchron ) %]
1314 <td class="vol_info">
1315 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1316 <span class="enum">[% ITEM_RESULT.enumchron %]</span>
1317 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1318 <span class="sep"> -- </span>
1319 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1321 [% ELSIF ITEM_RESULT.enumchron %]
1322 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1323 [% ELSIF ITEM_RESULT.serialseq %]
1324 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1326 [% IF ( ITEM_RESULT.publisheddate ) %]
1327 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1331 [% IF ( itemdata_uri ) %]
1333 [% IF ITEM_RESULT.uri %]
1334 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1335 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1336 <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1338 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1342 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1343 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1345 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1351 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1352 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1353 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1354 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1355 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>
1356 [% IF holds_count.defined || show_priority %]
1357 <td class="holds_count">
1358 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1359 [% IF ITEM_RESULT.priority %]
1360 [% IF holds_count.defined %]
1361 <span>(priority [% ITEM_RESULT.priority %])</span>
1363 <span>[% ITEM_RESULT.priority %]</span>
1368 [% IF ShowCourseReservesHeader %]
1370 [% IF ITEM_RESULT.course_reserves %]
1371 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1372 [% IF r.course.enabled == 'yes' %]
1374 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1375 [% r.course.course_name %]
1376 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1377 [% IF r.course.section %] [% r.course.section %] [% END %]
1378 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1385 [% END # /IF ShowCourseReservesHeader %]
1390 [% END %][%# end of items_table block %]
1392 [% BLOCK jsinclude %]
1393 [% INCLUDE 'datatables.inc' %]
1394 [% INCLUDE 'columns_settings.inc' %]
1395 [% IF ( SocialNetworks ) %]
1396 <script type="text/javascript" src="https://apis.google.com/js/plusone_[% KOHA_VERSION %].js">
1398 {lang: '[% lang %]'}
1401 <script type="text/javascript">!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_[% KOHA_VERSION %].js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
1403 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating_[% KOHA_VERSION %].js"></script>[% END %]
1405 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3_[% KOHA_VERSION %].js"></script>[% END %]
1407 <script type="text/javascript">
1410 [% IF ( OpacBrowseResults && busc ) %]
1411 var arrPagination = new Array();
1412 var pag_index_ini = [% indexPag %];
1413 [% IF ( listResults ) %]
1414 [% FOREACH listResult IN listResults %]
1415 arrPagination[[% listResult.index %]] = {
1416 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1417 title:"[% listResult.title|remove('\n')|html %]",
1418 author:"[% listResult.author|html %]",
1419 biblionumber:[% listResult.biblionumber %]
1425 [% IF ( OpacHighlightedWords ) %]
1426 var q_array = new Array(); // holds search terms if available
1428 function highlightOff() {
1429 $("#catalogue_detail_biblio").removeHighlight();
1430 $(".highlight_toggle").toggle();
1432 function highlightOn() {
1434 for (x in q_array) {
1435 if ( q_array[x].length > 0 ) {
1436 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1437 q_array[x] = q_array[x].toLowerCase();
1438 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1439 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1440 $(".title").highlight(q_array[x]);
1441 $(".author").highlight(q_array[x]);
1442 $(".results_summary").highlight(q_array[x]);
1446 $(".highlight_toggle").toggle();
1450 $(document).ready(function() {
1451 $('#bibliodescriptions').tabs();
1452 $(".branch-info-tooltip-trigger").uitooltip({
1453 position: { my: "left+15 center", at: "right center" },
1456 content: function(){
1457 var element = $(this).next("div");
1458 return element.html();
1462 var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %];
1464 KohaTable("#holdingst", {
1465 dom: 'B<"clearfix">t',
1467 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
1468 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1470 "bKohaColumnsUseNames": true
1471 }, columns_settings);
1473 KohaTable("#otherholdingst", {
1474 dom: 'B<"clearfix">t',
1476 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
1477 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1479 "bKohaColumnsUseNames": true
1480 }, columns_settings);
1482 var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) %];
1484 KohaTable("#subscriptionst", {
1485 dom: 'B<"clearfix">t',
1487 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1489 "bKohaColumnsUseNames": true
1490 }, serial_column_settings);
1492 [% IF ( TagsInputEnabled && loggedinusername ) %]
1493 $(".tag_add").click(function(){
1494 var thisid = $(this).attr("id");
1495 thisid = thisid.replace("tag_add","");
1497 $("#tagform"+thisid).show();
1498 $("#newtag"+thisid).focus();
1499 $("#newtag"+thisid+"_status").empty().hide();
1502 $(".cancel_tag_add").click(function(){
1503 var thisid = $(this).attr("id");
1504 thisid = thisid.replace("cancel","");
1505 $("#tagform"+thisid).hide();
1506 $("#tag_add"+thisid).show();
1507 $("#newtag"+thisid).val("");
1508 $("#newtag"+thisid+"_status").empty().hide();
1511 $(".tagbutton").click(function(){
1512 var thisid = $(this).attr("title");
1513 var tag = $("#newtag"+thisid).val();
1514 if (!tag || (tag == "")) {
1515 alert(MSG_NO_TAG_SPECIFIED);
1518 KOHA.Tags.add_tag_button(thisid, tag);
1523 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1524 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1525 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1526 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1527 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1528 var default_order_index = 1;
1529 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1530 var default_order_index = 2;
1532 var default_order_index = 0;
1535 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1536 q_array = query_desc.split(" ");
1537 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1539 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1540 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1541 [% IF ( GoogleJackets ) %]
1542 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1544 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1545 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1548 [% IF OpenLibraryCovers %]
1549 KOHA.OpenLibrary.GetCoverFromIsbn();
1551 [% IF OPACLocalCoverImages %]
1552 KOHA.LocalCover.GetCoverFromBibnumber(true);
1554 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1555 novSelect.loadContentForQuery(
1557 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1558 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1561 '[% NovelistSelectProfile %]',
1562 '[% NovelistSelectPassword %]',
1564 if ( d.length > 0 ){ //If no content
1565 $(".NovelistSelect").show();
1570 [% IF ( OpacBrowseResults && busc ) %]
1571 if (arrPagination.length > 0) {
1572 renderPagIndexList(pag_index_ini, $("#listResults"));
1574 $("#a_listResults").click(function(e) {
1575 if (arrPagination.length > 0) {
1577 var navigation = $(".results-pagination");
1578 if (navigation.css("display") == 'none') {
1580 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1581 $(this).attr('title',newtitle);
1582 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1585 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1586 $(this).attr('title',newtitle);
1590 $("#close_pagination").click(function(e) {
1592 var navigation = $(".results-pagination");
1596 [% IF ( OPACShelfBrowser ) %]
1598 (function prepareShelfBrowser(){
1600 $(".main").on("click",".close_shelf",function(e){
1602 $("#shelfbrowser").toggle();
1604 $(".main").on("click", "#browser_previous a", function(e){
1607 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1610 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1612 success: function(data){
1613 $("#shelfbrowser").replaceWith(data);
1614 [% IF ( GoogleJackets ) %]
1615 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1617 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1618 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1620 [% IF OpenLibraryCovers %]
1621 KOHA.OpenLibrary.GetCoverFromIsbn();
1623 [% IF OPACLocalCoverImages %]
1624 KOHA.LocalCover.GetCoverFromBibnumber(true);
1630 $(".main").on("click", "#browser_next a", function(e){
1633 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1636 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1638 success: function(data){
1639 $("#shelfbrowser").replaceWith(data);
1640 [% IF ( GoogleJackets ) %]
1641 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1643 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1644 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1646 [% IF OpenLibraryCovers %]
1647 KOHA.OpenLibrary.GetCoverFromIsbn();
1649 [% IF OPACLocalCoverImages %]
1650 KOHA.LocalCover.GetCoverFromBibnumber(true);
1657 [% IF ( OpacStarRatings != 'disable' ) %]
1658 // -----------------------------------------------------
1659 // star-ratings code
1660 // -----------------------------------------------------
1661 // hide 'rate' button if javascript enabled
1663 $('input[name="rate_button"]').remove();
1666 $(".auto-submit-star").rating({
1667 cancel: _("Cancel rating"),
1668 callback: function (value, link) {
1670 // if the new value equals the old value, dont execute callback...
1672 if ($("#rating_value").attr("value") != value) {
1676 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1677 rating_old_value: $("#rating_value").attr("value"),
1678 borrowernumber: "[% borrowernumber %]",
1679 biblionumber: "[% biblio.biblionumber %]",
1680 rating_value: value,
1682 }, function (data) {
1684 if (data.auth_status != 'ok') {
1685 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1687 $("#rating_value").val(data.rating_value);
1689 if (data.rating_value) {
1690 $("#rating_value_text").text(_("your rating: %s, ").format(data.rating_value));
1692 $("#rating_value_text").text('');
1695 $("#rating_text").text(_("average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1704 // -----------------------------------------------------
1705 [% END # / IF ( OpacStarRatings != 'disable' )%]
1707 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1708 var isbn = $(".isbn:last").text().split(" ")[1];
1710 isbn = isbn.replace(/\W*$/, '');
1711 isbn = isbn.replace(/-/, '');
1713 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1714 // Use Microsoft XDR for IE version 8 or above
1715 var xdr = new XDomainRequest();
1716 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1717 xdr.onload = function() {
1718 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1719 eval(json); // json is now a regular JSON object
1720 parseIDBJSON(json); // parse using same function as for jQuery's success event
1724 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1729 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1732 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1733 function parseIDBJSON( json ) {
1734 if(json.total_results > 0 && json.book.rating > 0){
1735 var isbn = $(".isbn:last").text().split(" ")[1];
1736 isbn = isbn.replace(/\W+/g, '');
1738 [% IF ( IDreamBooksReadometer ) %]
1739 $(".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>');
1742 [% IF ( IDreamBooksReviews ) %]
1743 //build new tab for critic reviews
1744 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1746 //append happy-sad cloud review
1748 $("#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>");
1750 //insert data into Book reviews tab
1751 $.each(json.book.critic_reviews, function(){
1752 $("#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>");
1754 $("#seemoreidb").attr('href', json.book.detail_link);
1755 $("#tab_idb_critic_reviews").show();
1759 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1761 [% IF ( OpacBrowseResults && busc ) %]
1763 var totalPagItemList = 10;
1765 function rewindList()
1767 var ul = $("#listResults");
1768 var li_ini = ul.children(':first').next();
1769 var index_ini = pag_index_ini;
1771 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1773 var li_end = ul.children(':last').prev();
1774 var index_end = arrPagination.length - 1;
1776 index_end = parseInt(li_end.attr("class").substring(7), 10);
1778 if (index_ini > pag_index_ini) {
1779 renderPagIndexList(index_ini - 1, ul, false);
1780 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1784 function forwardList()
1786 var ul = $("#listResults");
1787 var li_ini = ul.children(':first').next();
1788 var index_ini = pag_index_ini;
1790 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1792 var li_end = ul.children(':last').prev();
1793 var index_end = arrPagination.length - 1;
1795 index_end = parseInt(li_end.attr("class").substring(7), 10);
1797 if (index_end < arrPagination.length - 1) {
1798 renderPagIndexList(index_ini + 1, ul, false);
1799 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1803 function renderPagIndexList(index, ul)
1805 var $kids = ul.children("li");
1806 if ($kids.length > 0) {
1807 $kids.each(function() {
1813 var ini = index - 1;
1814 var end = ini + totalPagItemList - 1;
1816 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1820 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1821 if (arrPagination[i] == undefined) continue;
1822 var li = $("<li />");
1823 if (arrPagination[i].url != "") {
1824 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1825 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1826 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1827 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1828 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1829 html += ">" + i + "</a>";
1832 li.attr("class", "li_pag_" + i);
1837 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1838 html = (end <= arrPagination.length - 1 && (end - index) >= totalPagItemList)?"<a href='#' id='fw_list_index' onclick='forwardList()' title='" + _("Click to forward the list to") + " " + ini + " - " + end + "'>»</a>":"»";
1841 }//renderPagIndexList
1844 function renderPagination(index, total, ul, highlIndex)
1846 for (var i = pag_index_ini; i <= total; i++) {
1847 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1848 $("#li_pag_" + i).remove();
1851 for (var i = index; i <= total && j < totalPagItemList; i++) {
1852 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1853 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1854 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1855 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1857 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1861 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1862 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1863 $("#li_pag_" + i).remove();
1864 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1865 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1866 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1872 [% END # / IF ( OpacBrowseResults && busc ) %]
1876 [% IF OPACPopupAuthorsSearch %]
1877 <script type="text/javascript">
1879 function showAuthors(element){
1880 var authornumber = $(element).attr("data-count");
1882 // Check checkbox related to the clicked link
1883 $("#authorsList input[type='checkbox']").attr('checked', false);
1884 $("#author_"+authornumber).attr('checked', true);
1886 makeAuthorRequest();
1889 function checkAll(checkbox, elem) {
1890 var check = $(checkbox).attr('checked') ? true : false;
1891 $(elem).find("input[type='checkbox']").attr('checked', check);
1892 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1895 function makeAuthorRequest(){
1898 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1899 values.push($(this).val());
1902 if (values.length > 0) {
1903 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1904 $("#validAuthorSearch").attr("href", request);
1906 $("#validAuthorSearch").removeAttr("href");
1912 function showSubjects(element, subjectnumber, subfieldnumber){
1914 // Check checkbox related to the clicked link
1915 $("#subjectsList input[type='checkbox']").attr('checked', false);
1916 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1918 makeSubjectRequest();
1922 function makeSubjectRequest() {
1924 $("#subjectsList > ul").each(function() {
1925 var all_checked = true;
1926 var local_values = [];
1927 $(this).find('input[type="checkbox"]').each(function() {
1928 if($(this).attr('checked')) {
1929 local_values.push($(this).val());
1931 all_checked = false;
1934 var authid = $(this).attr('data-authid');
1935 if(all_checked && authid) {
1936 values.push('an:' + authid);
1938 values = values.concat(local_values);
1941 if(values.length > 0) {
1942 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1943 $("#validSubjectSearch").attr('href', request);
1945 $("#validSubjectSearch").removeAttr("href");
1948 $(document).ready(function() {
1949 $("a.showauthors").click(function(e){
1957 [% END # / IF OPACPopupAuthorsSearch %]