4 [% USE AuthorisedValues %]
5 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
6 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
8 [% ShowCourseReservesHeader = 0 %]
9 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
10 [% FOREACH ITEM_RESULT IN itemloop %]
11 [% IF ITEM_RESULT.course_reserves %]
12 [% FOREACH r IN ITEM_RESULT.course_reserves %]
13 [% IF r.course.enabled == 'yes' %]
14 [% ShowCourseReservesHeader = 1 %]
21 [% IF ( using_https ) %]
22 [% SET protocol = "https://" %]
24 [% SET protocol = "http://" %]
26 [% INCLUDE 'doc-head-open.inc' %]
27 <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>
28 [% INCLUDE 'doc-head-close.inc' %]
30 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
32 [% IF ( OpacStarRatings != 'disable' ) %]
33 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
35 [% INCLUDE greybox.inc %]
37 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
38 [% INCLUDE 'masthead.inc' %]
41 <ul class="breadcrumb">
42 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
43 <li><a href="#">Details for: [% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</a></li>
46 <div class="container-fluid">
47 <div class="row-fluid">
49 <div id="catalogue_detail_biblio" class="maincontent">
52 [% IF ( OPACLocalCoverImages ) %]
53 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
55 [% IF ( OPACAmazonCoverImages ) %]
56 [% IF ( OPACURLOpenInNewWindow ) %]
57 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank" rel="noreferrer">
59 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
61 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
64 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
65 [% IF ( content_identifier_exists ) %]
66 [% IF ( using_https ) %]
67 <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" />
69 <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" />
73 <span class="no-image">No cover image available</span>
77 [% IF ( GoogleJackets ) %]
78 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
80 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
81 [% coce_id = normalized_ean || normalized_isbn %]
82 <div style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
84 [% IF OpenLibraryCovers %]
85 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
87 [% bt_id = ( normalized_upc || normalized_isbn ) %]
88 [% IF ( BakerTaylorEnabled && bt_id ) %]
89 [% IF BakerTaylorBookstoreURL %]
90 [% IF ( OPACURLOpenInNewWindow ) %]
91 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
93 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
96 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
99 </div><!-- / #bookcover -->
101 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
102 [% IF ( ocoins ) # COinS / Openurl %]
103 <span class="Z3988" title="[% ocoins %]"></span>
107 <span class="view"><span id="Normalview">Normal view</span></span>
108 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
109 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
111 [% IF ( OPACXSLTDetailsDisplay ) %]
114 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
115 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
117 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
119 [% IF ( description ) %]
125 [% IF ( unititle ) %], [% unititle %][% END %]
128 [% IF ( MARCAUTHORS ) %]
129 <div class="results_summary">
130 <span class="label">Additional authors:</span>
131 [% IF OPACPopupAuthorsSearch %]
132 <!-- Author search term selection modal -->
133 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
134 <div class="modal-header">
135 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
136 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
138 <div class="modal-body">
139 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
140 <ul id="authorsList">
141 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
143 [% IF (MARCAUTHOR.authoritylink) %]
144 <input type="checkbox" name="checkbox"
145 id="author_[% loop.count %]"
146 onclick="makeAuthorRequest()"
147 value="an:[% MARCAUTHOR.authoritylink %]" />
149 <input type="checkbox" name="checkbox"
150 id="author_[% loop.count %]"
151 onclick="makeAuthorRequest()"
152 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
154 <label for="author_[% loop.count %]">
155 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
160 [% END # /FOREACH MARCAUTHORS %]
163 <div class="modal-footer">
164 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
165 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
168 [% END # /OPACPopupAuthorsSearch %]
170 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
171 [% authorsloop = loop %]
172 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
173 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
174 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
175 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
176 class="showauthors" data-count="[% authorsloop.count %]"
177 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>
179 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
180 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>
183 [% IF (MARCAUTHOR.authoritylink) %]
184 <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>
186 [% IF IDREF and MARCAUTHOR.unimarc3 %]
187 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
189 [% UNLESS ( loop.last ) %]|[% END %]
190 [% END # /FOREACH MARCAUTHORS %]
192 [% END # IF MARCAUTHORS %]
194 [% IF ( MARCSERIES ) %]
195 <span class="results_summary series"><span class="label">Series:</span>
196 [% FOREACH MARCSERIE IN MARCSERIES %]
197 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
198 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
199 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
201 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
202 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
205 [% UNLESS ( loop.last ) %]|[% END %]
206 [% END # / FOREACH MARCSERIES %]
208 [% END # /MARCSERIES %]
210 [% IF ( editionstatement ) %]
211 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
213 [% IF ( publishercode ) %]
214 <span class="results_summary publisher"><span class="label">Published by :</span>
215 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
216 [% publishercode |html %]
217 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
222 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
225 [% IF ( MARCISBNS ) %]
226 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
228 [% IF ( normalized_isbn ) %]
229 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
234 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
237 [% IF ( collectiontitle ) %]
238 <span class="results_summary collection"><span class="label">Collection: </span>
239 [% collectiontitle %]
240 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
241 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
246 [% IF ( unititles ) %]
247 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
248 [% FOREACH unititle IN unititles %]
249 [% unititle.unititle %] ;
254 [% IF ( MARCSUBJCTS ) %]
255 <div class="results_summary subject">
256 <span class="label">Subject(s):</span>
258 [% IF OPACPopupAuthorsSearch %]
259 <!-- Search term selection modal -->
260 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
261 <div class="modal-header">
262 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
263 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
265 <div id="subjectsList" class="modal-body">
266 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
267 <label for="all_subjects">
270 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
271 [% subjectsloop = loop %]
272 [% IF MARCSUBJCT.authoritylink %]
273 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
275 <ul id="subjectsList[% loop.count %]">
277 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
279 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
280 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
288 <div class="modal-footer">
289 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
290 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
293 [% END # /OPACPopupAuthorsSearch%]
295 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
296 [% subjectsloop = loop %]
297 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
298 [% SUBFIELD.separator %]
299 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
300 <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>
302 <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>
305 [% IF (MARCSUBJCT.authoritylink) %]
306 <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>
308 [% UNLESS ( loop.last ) %] | [% END %]
309 [% END # / FOREACH MARCSUBJCTS %]
311 [% ELSE # /IF MARCSUBJCTS %]
312 [% 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 %]
315 [% IF ( copyrightdate ) %]
316 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
319 [% UNLESS ( item_level_itypes ) %]
321 <img src="[% imageurl %]" alt="" />
323 <span class="results_summary itemtype"><span class="label">Item type: </span>
324 [% IF ( description ) %]
332 [% IF ( MARCURLS ) %]
333 <div class="results_summary online_resources"><span class="label">Online resources:</span>
335 [% FOREACH MARCurl IN MARCURLS %]
336 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
338 [% IF ( OPACURLOpenInNewWindow ) %]
339 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
340 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
342 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
345 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
346 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
348 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
352 [% MARCurl.linktext %]</a>
353 [% IF ( MARCurl.notes ) %]
355 [% FOREACH note IN MARCurl.notes %]
356 <li>[% note.note %]</li>
361 [% END # /FOREACH MARCURLS %]
364 [% END # / IF MARCURLS %]
365 [% END # / IF OPACXSLTDetailsDisplay %]
367 [% IF ( AuthorisedValueImages && authorised_value_images ) %]
368 <div class="authorised_value_images">
369 [% FOREACH authorised_value_image IN authorised_value_images %]
370 <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
373 [% END # / AuthorisedValueImages && authorised_value_images %]
375 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
376 [% IF ( LibraryThingForLibrariesID ) %]
377 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
378 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
379 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
380 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
382 <span class="results_summary">
383 <span class="label">Reviews from LibraryThing.com:</span>
384 <span style="display: block;" class="ltfl_reviews"></span>
386 [% END # / LibraryThingForLibrariesID %]
388 <!--This grabs all of the lists a bib record appears in -->
389 [% IF shelves.count %]
390 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
391 [% FOREACH s IN shelves %]
392 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
393 [% IF ( loop.last ) %][% ELSE %]|[% END %]
398 [% IF ( TagsShowEnabled ) %]
399 <div class="results_summary tags">
401 <span class="label">Tags from this library:</span>
403 [% FOREACH TagLoo IN TagLoop %]
404 <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>
405 [% IF ( loop.last ) %][% ELSE %], [% END %]
410 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
412 [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
414 [% END # /IF TagsShowEnabled %]
416 [% IF ( TagsInputEnabled ) %]
417 <div class="results_summary tagsinput">
418 [% IF ( loggedinusername ) %]
419 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
420 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
421 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
422 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
423 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
425 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
429 <span id="login4tags">Log in to add tags.</span>
432 [% END # / IF TagsInputEnabled %]
434 [% IF ( SyndeticsEnabled ) %]
435 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
436 <span class="results_summary">
437 <span class="label">Series information:</span>
438 [% IF ( using_https ) %]
439 <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>
441 <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>
444 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
445 [% IF ( SyndeticsAVPROFILEExists ) %]
446 <span class="results_summary">
447 <span class="label">Audiovisual profile:</span>
448 [% IF ( using_https ) %]
449 <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>
451 <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>
454 [% END # / IF SyndeticsAVPROFILEExists %]
456 [% IF ( SyndeticsFICTIONExists ) %]
457 <span class="results_summary">
458 <span class="label">Fiction notes:</span>
459 [% IF ( using_https ) %]
460 <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>
462 <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>
465 [% END # / IF SyndeticsFICTIONExists %]
467 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
468 <span class="results_summary">
469 <span class="label">Awards:</span>
470 [% IF ( using_https ) %]
471 <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>
473 <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>
476 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
477 [% END # / IF SyndeticsEnabled%]
479 [% IF ( OpacStarRatings != 'disable' ) %]
480 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
481 <div class="results_summary ratings">
483 [% FOREACH i IN [ 1 2 3 4 5 ] %]
484 [% IF rating_avg == i && borrowernumber %]
485 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
486 [% ELSIF rating_avg == i %]
487 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
488 [% ELSIF borrowernumber %]
489 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
491 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
495 <!-- define some hidden vars for ratings -->
497 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
498 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
499 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
500 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
502 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
504 [% IF ( rating_value ) %]
505 <span id="rating_value_text">your rating: [% rating_value %], </span>
507 <span id="rating_value_text"></span>
510 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
513 [% END # / IF OpacStarRatings != 'disable' %]
515 [% IF ( BakerTaylorContentURL ) %]
516 <span class="results_summary">
517 <span class="label">Enhanced content: </span>
518 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
520 [% END # / IF BakerTaylorContentURL %]
522 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
523 [% IF ( NovelistSelectView == 'above') %]
524 <span class="results_summary">
525 <span class="label">Novelist Select: </span>
526 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
529 [% END # / IF NovelistSelectProfile %]
531 [% IF ( Babeltheque ) %]
532 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
533 <div id="BW_notes"></div>
534 <div id="BW_critiques"></div>
535 <div id="BW_critiques_pro"></div>
536 <div id="BW_citations"></div>
537 [% END # / IF Babeltheque%]
539 </div> <!-- / #catalogue_detail_biblio -->
541 <div id="bibliodescriptions" class="toptabs">
544 [% IF ( defaulttab == 'holdings' ) %]
545 <li id="tab_holdings" class="ui-tabs-active">
547 <li id="tab_holdings">
549 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
551 [% IF (SeparateHoldings) %]
552 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
554 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
555 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
557 [% IF ( SYNDETICS_TOC ) %]
558 <li id="tab_toc"> <a href="#toc">TOC</a></li>
560 [% IF ( SyndeticsEnabled ) %]
561 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
562 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
564 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
565 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
566 <li id="tab_LTFLreviews">
567 [% IF ( using_https ) %]
568 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
569 <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>
571 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
572 <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>
576 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
577 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
579 [% END # / IF SyndeticsEnabled %]
581 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
582 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
583 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
586 [% IF ( subscriptionsnumber ) %]
587 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
588 <a href="#subscriptions">Subscriptions</a>
592 [% IF Koha.Preference( 'reviewson' ) == 1 %]
593 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
596 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
597 [% IF ( NovelistSelectView == 'tab') %]
598 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
602 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
603 <li id="tab_editions"><a href="#editions">Editions</a></li>
606 [% IF ( serialcollection ) %]
607 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
608 <a href="#serialcollection">Serial collection</a>
612 [% IF ( OPACLocalCoverImages && localimages.size ) %]
613 <li id="tab_images"><a href="#images">Images</a></li>
616 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
617 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
620 [% IF ( IDreamBooksReviews ) %]
621 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
625 [% IF ( serialcollection ) %]
626 <div id="serialcollection">
627 <table id="serialcollectiont" class="table table-bordered table-striped">
630 <th id="serial_library">Library</th>
631 <th id="serial_collection">Serial collection</th>
632 <th id="serial_itemcallnumber">Item call number</th>
636 [% FOREACH serialcollection IN serialcollections %]
638 <td>[% serialcollection.branch %]</td>
639 <td>[% serialcollection.text %]</td>
640 <td>[% serialcollection.itemcallnumber %]</td>
646 [% END # / IF serialcollection %]
650 [% IF too_many_items %]
651 <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&viewallitems=1">Click here to view them all.</a></p>
652 [% ELSIF ( itemloop.size ) %]
653 [% INCLUDE items_table items=itemloop tab="holdings" %]
654 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
655 [% IF acquisition_details.total_quantity == 1 %]
658 [% acquisition_details.total_quantity %] items are on order.
661 [% IF holds_count.defined || priority %]
663 [% IF holds_count.defined %]
664 Total holds: [% holds_count %]
667 [% IF holds_count.defined %]
668 (priority [% priority %])
670 Overall queue priority: [% priority %]
676 [% IF ( ALTERNATEHOLDINGS ) %]
677 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
678 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
681 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
682 [% IF acquisition_details.total_quantity == 1 %]
685 [% acquisition_details.total_quantity %] items are on order.
688 <div id="noitems">No physical items for this record</div>
691 [% END # IF itemloop.size %]
692 [% PROCESS 'shelfbrowser.inc' %]
693 [% INCLUDE shelfbrowser tab='holdings' %]
694 <br style="clear:both;" />
695 </div> <!-- / #holdings -->
697 [% IF (SeparateHoldings) %]
698 <div id="otherholdings">
699 [% IF (otheritemloop.size) %]
700 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
704 [% INCLUDE shelfbrowser tab='otherholdings' %]
706 [% END # / SeparateHoldings %]
708 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
709 <div id="descriptions">
710 <div class="content_set">
712 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
713 <h4>Enhanced descriptions from Syndetics:</h4>
714 <p>[% SYNDETICS_SUMMARY %]</p>
717 [% IF ( MARCNOTES ) %]
719 [% FOREACH MARCNOTE IN MARCNOTES %]
721 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
722 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
724 [% MARCNOTE.marcnote FILTER html_line_break %]
736 </div> <!-- / #descriptions -->
737 [% END # / IF MARCNOTES || notes %]
739 [% IF ( SyndeticsEnabled ) %]
740 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
742 <div class="content_set">
743 <h3>Table of contents provided by Syndetics</h3>
745 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
746 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
751 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
753 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
755 <div class="content_set">
756 <h3>Excerpt provided by Syndetics</h3>
757 [% SYNDETICS_EXCERPT %]
760 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
762 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
764 <div class="content_set">
765 <h3>Reviews provided by Syndetics</h3>
766 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
767 [% IF ( SYNDETICS_REVIEW.title ) %]
768 <h4>[% SYNDETICS_REVIEW.title %]</h4>
769 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
771 [% IF ( review.content ) %]
780 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
782 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
784 <div class="content_set">
785 <h3>Author notes provided by Syndetics</h3>
786 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
787 [% IF ( SYNDETICS_ANOTE.content ) %]
788 [% SYNDETICS_ANOTE.content %]
793 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
794 [% END # / IF SyndeticsEnabled %]
796 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && normalized_isbn ) %]
797 <div id="NovelistSelect">
798 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
800 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
802 [% IF ( subscriptionsnumber ) %]
803 <div id="subscriptions">
804 <h2>This is a serial</h2>
805 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
806 [% FOREACH subscription IN subscriptions %]
807 [% IF ( subscription.branchname ) %]
808 <h3>At library: [% subscription.branchname %]</h3>
810 [% IF ( subscription.branchcode ) %]
811 <h3>At library: [% subscription.branchcode %]</h3>
814 [% IF ( subscription.closed ) %]
815 <p>This subscription is closed.</p>
817 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
818 [% IF ( subscription.subscriptionnotes ) %]
819 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
821 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
822 [% IF ( subscription.missinglist ) %]
823 <p>Missing issues: [% subscription.missinglist %] </p>
825 [% IF ( subscription.opacnote ) %]
826 <p>[% subscription.opacnote FILTER html_line_break %]</p>
828 [% IF ( subscription.callnumber ) %]
829 <p>Call number: [% subscription.callnumber %]</p>
831 [% IF ( subscription.latestserials ) %]
832 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
833 <table class="table table-bordered table-striped">
840 [% FOREACH latestserial IN subscription.latestserials %]
842 <td>[% latestserial.serialseq %]</td>
843 <td>[% latestserial.planneddate %]</td>
845 [% IF ( latestserial.status1 ) %]
848 [% IF ( latestserial.status2 ) %]
851 [% IF ( latestserial.status3 ) %]
854 [% IF ( latestserial.status4 ) %]
857 [% IF ( latestserial.status5 ) %]
865 <td>[% latestserial.notes %]</td>
867 [% END # / FOREACH latestserials %]
869 [% END # / IF subscription.latestserials %]
870 [% END # / FOREACH subscriptions %]
871 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
872 </div> <!-- / #subscriptions -->
873 [% END # IF subscriptionsnumber %]
875 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
876 <!-- Library Thing for Libraries Content -->
877 <div id="LFTLSimilarItems">
878 <div class="content_set">
879 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
880 <!-- but breaks Xhtml validation -->
881 <!-- <span class="results_summary">-->
882 <div id="ltfl_related"></div>
883 <div id="ltfl_similars"></div>
887 <div id="LTFLTagBrowse">
888 <div class="content_set">
889 <!-- <span class="results_summary"> -->
890 <div id="ltfl_tagbrowse" class="ltfl"></div>
894 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
896 [% IF Koha.Preference( 'reviewson' ) == 1 %]
898 <div id="newcomment"></div>
900 [% FOREACH review IN reviews %]
901 [% IF ( review.your_comment ) %]
902 <div class="commentline yours" id="c[% review.reviewid %]">
903 [% IF ( review.avatarurl ) %]
904 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
906 <h5>Your comment</h5>
907 <small>[% review.datereviewed | $KohaDates %]</small>
909 [% FILTER html_break %]
910 [% review.review |html %]
912 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
916 <div class="commentline">
917 [% IF ( ShowReviewer != "none" ) %]
918 [% IF ( review.avatarurl ) %]
919 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
921 [% SWITCH ShowReviewer %]
923 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
925 <h5>Comment by [% review.firstname %]</h5>
927 <h5>Comment by [% review.surname %]</h5>
928 [% CASE 'firstandinitial' %]
929 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
930 [% CASE 'username' %]
931 <h5>Comment by [% review.userid %]</h5>
933 <small>[% review.datereviewed | $KohaDates %]</small>
934 [% ELSIF ( ShowReviewer == "none") %]
935 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
936 [% END # / IF ShowReviewer != "none"%]
938 [% FILTER html_break %]
939 [% review.review |html %]
942 </div> <!-- / .commentline -->
943 [% END # / IF review.your_comment %]
944 [% END # / FOREACH reviews %]
946 <p>There are no comments for this item.</p>
947 [% END # / IF reviews %]
949 [% IF ( loggedinusername ) %]
950 [% UNLESS ( loggedincommenter ) %]
951 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
952 Post or edit your comments on this item.
956 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
957 [% END # / IF loggedinusername %]
958 </div> <!-- / #comments -->
959 [% END # / IF reviewson %]
961 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
963 <h4>Other editions of this work</h4>
964 <table class="table table-bordered table-striped">
965 [% FOREACH XISBN IN XISBNS %]
968 [% IF ( OPACAmazonCoverImages ) %]
969 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
972 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
973 [% IF ( XISBN.content_identifier_exists ) %]
974 [% IF ( using_https ) %]
975 <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="" />
977 <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="" />
980 <span class="no-image">No cover image available</span>
981 [% END # / IF XISBN.content_identifier_exists %]
982 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
985 [% UNLESS ( item_level_itypes ) %]
986 <td>[% XISBN.description %]</td>
988 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
989 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
990 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
991 [% IF ( XISBN.publishercode ) %]
992 <p>[% XISBN.publishercode |html %]
993 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
994 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
995 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
1000 [% END # / FOREACH XISBNS %]
1002 </div> <!-- / #editions -->
1003 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1005 [% IF ( HTML5MediaEnabled ) %]
1006 <div id="html5media">
1008 <[% HTML5MediaParent %] controls preload=none>
1009 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1010 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
1012 [[% HTML5MediaParent %] tag not supported by your browser.]
1013 </[% HTML5MediaParent %]>
1016 [% END # / IF HTML5MediaEnabled %]
1018 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1020 <p>Click on an image to view it in the image viewer</p>
1021 [% FOREACH image IN localimages %]
1023 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image %]" /></a>
1026 </div><!-- / #images -->
1027 [% END # / IF OPACLocalCoverImages && localimages.size %]
1029 [% IF ( IDreamBooksReviews ) %]
1030 <div id="idb_critic_reviews">
1031 <div id="idb_review_snippets"></div>
1032 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1035 </div> <!-- / #bibliodescriptions -->
1037 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && normalized_isbn ) %]
1038 <div id="NovelistSelect">
1039 <h3>Novelist Select</h3>
1040 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
1044 [% IF ( Babeltheque ) %]
1046 <div id="BW_etiquettes"></div>
1047 <div id="BW_suggestions"></div>
1049 <div class="clearfix"></div>
1051 <div id="BW_podcasts"></div>
1053 <div class="clearfix"></div>
1055 <div id="BW_videos"></div>
1057 [% END # / IF Babeltheque %]
1059 [% INCLUDE "openlibrary-readapi.inc" bib = {
1060 normalized_isbn => normalized_isbn,
1062 normalized_oclc => normalized_oclc
1065 </div> <!-- /.span9 -->
1068 <div id="ulactioncontainer">
1070 [% IF ( OpacBrowseResults && busc ) %]
1071 <div class="nav_results">
1072 <div class="l_Results">
1073 [% IF ( listResults ) %]
1074 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1076 <span>Browse results</span>
1079 <ul class="pg_menu clearfix">
1080 <li class="left_results">
1081 [% IF ( previousBiblionumber ) %]
1082 <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>
1084 <span>Previous</span>
1087 [%# busc is already URI encoded %]
1088 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1089 <li class="right_results">
1090 [% IF ( nextBiblionumber ) %]
1091 <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>
1097 [% IF ( listResults ) %]
1098 <div class="results-pagination">
1099 <div class="nav_pages">
1100 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1101 <ul id="listResults"></ul>
1103 <div class="pagination_list">
1104 <ul id="ul_pagination_list"></ul>
1109 [% END # / IF OpacBrowseResults && busc %]
1111 [% INCLUDE 'opac-detail-sidebar.inc' %]
1113 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && normalized_isbn ) %]
1114 <div id="NovelistSelect">
1115 <h4>Novelist Select</h4>
1116 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1120 [% IF ( Babeltheque ) %]
1121 <div class="babeltheque_adds">
1122 <div id="BW_critiques_aj"></div>
1123 <div id="BW_citations_aj"></div>
1127 [% IF ( SocialNetworks ) %]
1128 <div id="social_networks" class="clearfix">
1130 <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>
1131 <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>
1132 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1133 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1134 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1135 <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>
1138 </div> <!-- / .ulactioncontainer -->
1139 </div> <!-- / .span4 -->
1140 </div> <!-- / .row-fluid -->
1141 <div class="row-fluid">
1142 [% IF ( LibraryThingForLibrariesID ) %]
1143 [% IF ( using_https ) %]
1144 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1145 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1146 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1148 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1149 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1150 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1151 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1155 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1156 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1159 [% IF ( Babeltheque ) %]
1160 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1162 </div> <!-- / .row-fluid -->
1163 </div> <!-- / .container-fluid -->
1164 </div> <!-- / .main -->
1166 [% INCLUDE 'opac-bottom.inc' %]
1168 [%# End of template %]
1170 [% BLOCK items_table %]
1171 <table class="holdingst table table-bordered table-striped">
1174 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1175 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1176 <th id="item_current_location" class="item_location">Current location</th>
1178 [% UNLESS ( singleBranchMode ) %]
1179 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1180 <th id="item_home_location" class="item_location">Home library</th>
1183 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1184 <th id="item_callnumber" class="call_no">Call number</th>
1185 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1186 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1187 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1188 <th id="item_status" class="status">Status</th>
1189 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1190 <th id="item_datedue" class="date_due">Date due</th>
1191 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1192 [% IF holds_count.defined %]
1193 <th id="item_holds">Item holds</th>
1194 [% ELSIF show_priority %]
1195 <th id="item_priority">Item hold queue priority</th>
1197 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1201 [% FOREACH ITEM_RESULT IN items %]
1202 [% IF ITEM_RESULT.this_branch %]
1203 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1205 <tr vocab="http://schema.org/" typeof="Offer">
1207 [% IF ( item_level_itypes ) %]
1209 [% UNLESS ( noItemTypeImages ) %]
1210 [% IF ( ITEM_RESULT.imageurl ) %]
1211 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1214 [% ITEM_RESULT.description %]
1217 [% UNLESS singleBranchMode %]
1218 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1219 <td class="location" property="seller">
1220 <link property="itemOffered" href="#record" />
1221 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1222 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1223 [% IF ( ITEM_RESULT.branchurl ) %]
1224 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1226 <span>[% ITEM_RESULT.branchname %]</span>
1229 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1231 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1232 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1238 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1239 <td class="location" property="seller">
1240 <link property="itemOffered" href="#record" />
1241 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1242 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1243 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1244 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1245 [% IF ( home_branch_url ) %]
1246 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1248 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1251 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1254 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1256 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1257 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1264 <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1267 [% IF ( itemdata_ccode ) %]
1268 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1270 <td class="call_no" property="sku">
1271 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1272 [% ITEM_RESULT.itemcallnumber %]
1273 [% IF ( OPACShelfBrowser ) %]
1274 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1275 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1277 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1282 [% IF ( itemdata_enumchron ) %]
1283 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1285 [% IF ( itemdata_uri ) %]
1287 [% IF ITEM_RESULT.uri %]
1288 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1289 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1290 <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | url %]&biblionumber=[% biblionumber |url %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1292 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | url %]&biblionumber=[% biblionumber |url %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1295 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1296 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1298 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1304 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1305 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1306 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1307 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1308 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1309 [% IF holds_count.defined || show_priority %]
1310 <td class="holds_count">
1311 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1312 [% IF ITEM_RESULT.priority %]
1313 [% IF holds_count.defined %]
1314 (priority [% ITEM_RESULT.priority %])
1316 [% ITEM_RESULT.priority %]
1321 [% IF ShowCourseReservesHeader %]
1323 [% IF ITEM_RESULT.course_reserves %]
1324 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1325 [% IF r.course.enabled == 'yes' %]
1327 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1328 [% r.course.course_name %]
1329 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1330 [% IF r.course.section %] [% r.course.section %] [% END %]
1331 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1338 [% END # /IF ShowCourseReservesHeader %]
1343 [% END %][%# end of items_table block %]
1345 [% BLOCK jsinclude %]
1346 [% INCLUDE 'datatables.inc' %]
1347 [% IF ( SocialNetworks ) %]
1348 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1350 {lang: '[% lang %]'}
1353 <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.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
1355 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1357 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1359 <script type="text/javascript">
1362 [% IF ( OpacBrowseResults && busc ) %]
1363 var arrPagination = new Array();
1364 var pag_index_ini = [% indexPag %];
1365 [% IF ( listResults ) %]
1366 [% FOREACH listResult IN listResults %]
1367 arrPagination[[% listResult.index %]] = {
1368 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1369 title:"[% listResult.title|remove('\n')|html %]",
1370 author:"[% listResult.author|html %]",
1371 biblionumber:[% listResult.biblionumber %]
1377 [% IF ( OpacHighlightedWords ) %]
1378 var q_array = new Array(); // holds search terms if available
1380 function highlightOff() {
1381 $("#catalogue_detail_biblio").removeHighlight();
1382 $(".highlight_toggle").toggle();
1384 function highlightOn() {
1386 for (x in q_array) {
1387 if ( q_array[x].length > 0 ) {
1388 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1389 q_array[x] = q_array[x].toLowerCase();
1390 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1391 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1392 $(".title").highlight(q_array[x]);
1393 $(".author").highlight(q_array[x]);
1394 $(".results_summary").highlight(q_array[x]);
1398 $(".highlight_toggle").toggle();
1402 $(document).ready(function() {
1403 $('#bibliodescriptions').tabs();
1404 $(".branch-info-tooltip-trigger").uitooltip({
1405 position: { my: "left+15 center", at: "right center" },
1408 content: function(){
1409 var element = $(this).next("div");
1410 return element.html();
1413 [% IF ( TagsInputEnabled && loggedinusername ) %]
1414 $(".tag_add").click(function(){
1415 var thisid = $(this).attr("id");
1416 thisid = thisid.replace("tag_add","");
1418 $("#tagform"+thisid).show();
1419 $("#newtag"+thisid).focus();
1420 $("#newtag"+thisid+"_status").empty().hide();
1423 $(".cancel_tag_add").click(function(){
1424 var thisid = $(this).attr("id");
1425 thisid = thisid.replace("cancel","");
1426 $("#tagform"+thisid).hide();
1427 $("#tag_add"+thisid).show();
1428 $("#newtag"+thisid).val("");
1429 $("#newtag"+thisid+"_status").empty().hide();
1432 $(".tagbutton").click(function(){
1433 var thisid = $(this).attr("title");
1434 var tag = $("#newtag"+thisid).val();
1435 if (!tag || (tag == "")) {
1436 alert(MSG_NO_TAG_SPECIFIED);
1439 KOHA.Tags.add_tag_button(thisid, tag);
1444 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1446 [% IF ( item_level_itypes ) %]null,[% END %]
1448 [% IF ( OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
1449 [% IF ( itemdata_ccode ) %]null,[% END %]
1451 [% IF ( itemdata_enumchron ) %]null,[% END %]
1452 [% IF ( itemdata_uri ) %]null,[% END %]
1453 [% IF ( itemdata_copynumber ) %]null,[% END %]
1455 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1456 { "sType": "title-string" },
1457 [% IF ( OPACShowBarcode ) %]null,[% END %]
1458 [% IF holds_count.defined %]
1460 [% ELSIF show_priority %]
1463 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1467 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1468 q_array = query_desc.split(" ");
1469 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1471 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1472 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1473 [% IF ( GoogleJackets ) %]
1474 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1476 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1477 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1480 [% IF OpenLibraryCovers %]
1481 KOHA.OpenLibrary.GetCoverFromIsbn();
1483 [% IF OPACLocalCoverImages %]
1484 KOHA.LocalCover.GetCoverFromBibnumber(true);
1486 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1487 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1490 [% IF ( OpacBrowseResults && busc ) %]
1491 if (arrPagination.length > 0) {
1492 renderPagIndexList(pag_index_ini, $("#listResults"));
1494 $("#a_listResults").click(function(e) {
1495 if (arrPagination.length > 0) {
1497 var navigation = $(".results-pagination");
1498 if (navigation.css("display") == 'none') {
1500 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1501 $(this).attr('title',newtitle);
1502 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1505 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1506 $(this).attr('title',newtitle);
1510 $("#close_pagination").click(function(e) {
1512 var navigation = $(".results-pagination");
1516 [% IF ( OPACShelfBrowser ) %]
1518 (function prepareShelfBrowser(){
1520 $(".main").on("click",".close_shelf",function(e){
1522 $("#shelfbrowser").toggle();
1524 $(".main").on("click", "#browser_previous a", function(e){
1527 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1530 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1532 success: function(data){
1533 $("#shelfbrowser").replaceWith(data);
1534 [% IF ( GoogleJackets ) %]
1535 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1537 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1538 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1540 [% IF OpenLibraryCovers %]
1541 KOHA.OpenLibrary.GetCoverFromIsbn();
1543 [% IF OPACLocalCoverImages %]
1544 KOHA.LocalCover.GetCoverFromBibnumber(true);
1550 $(".main").on("click", "#browser_next a", function(e){
1553 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1556 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1558 success: function(data){
1559 $("#shelfbrowser").replaceWith(data);
1560 [% IF ( GoogleJackets ) %]
1561 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1563 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1564 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1566 [% IF OpenLibraryCovers %]
1567 KOHA.OpenLibrary.GetCoverFromIsbn();
1569 [% IF OPACLocalCoverImages %]
1570 KOHA.LocalCover.GetCoverFromBibnumber(true);
1577 [% IF ( OpacStarRatings != 'disable' ) %]
1578 // -----------------------------------------------------
1579 // star-ratings code
1580 // -----------------------------------------------------
1581 // hide 'rate' button if javascript enabled
1583 $('input[name="rate_button"]').remove();
1586 $(".auto-submit-star").rating({
1587 callback: function (value, link) {
1589 // if the new value equals the old value, dont execute callback...
1591 if ($("#rating_value").attr("value") != value) {
1595 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1596 rating_old_value: $("#rating_value").attr("value"),
1597 borrowernumber: "[% borrowernumber %]",
1598 biblionumber: "[% biblionumber %]",
1599 rating_value: value,
1601 }, function (data) {
1603 if (data.auth_status != 'ok') {
1604 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1606 $("#rating_value").val(data.rating_value);
1608 if (data.rating_value) {
1609 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1611 $("#rating_value_text").text('');
1614 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1623 // -----------------------------------------------------
1624 [% END # / IF ( OpacStarRatings != 'disable' )%]
1626 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1627 var isbn = $(".isbn:last").text().split(" ")[1];
1629 isbn = isbn.replace(/\W*$/, '');
1630 isbn = isbn.replace(/-/, '');
1632 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1633 // Use Microsoft XDR for IE version 8 or above
1634 var xdr = new XDomainRequest();
1635 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1636 xdr.onload = function() {
1637 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1638 eval(json); // json is now a regular JSON object
1639 parseIDBJSON(json); // parse using same function as for jQuery's success event
1643 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1648 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1651 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1652 function parseIDBJSON( json ) {
1653 if(json.total_results > 0 && json.book.rating > 0){
1654 var isbn = $(".isbn:last").text().split(" ")[1];
1655 isbn = isbn.replace(/\W+/g, '');
1657 [% IF ( IDreamBooksReadometer ) %]
1658 $(".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>');
1661 [% IF ( IDreamBooksReviews ) %]
1662 //build new tab for critic reviews
1663 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1665 //append happy-sad cloud review
1667 $("#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>");
1669 //insert data into Book reviews tab
1670 $.each(json.book.critic_reviews, function(){
1671 $("#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>");
1673 $("#seemoreidb").attr('href', json.book.detail_link);
1674 $("#tab_idb_critic_reviews").show();
1678 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1680 [% IF ( OpacBrowseResults && busc ) %]
1682 var totalPagItemList = 10;
1684 function rewindList()
1686 var ul = $("#listResults");
1687 var li_ini = ul.children(':first').next();
1688 var index_ini = pag_index_ini;
1690 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1692 var li_end = ul.children(':last').prev();
1693 var index_end = arrPagination.length - 1;
1695 index_end = parseInt(li_end.attr("class").substring(7), 10);
1697 if (index_ini > pag_index_ini) {
1698 renderPagIndexList(index_ini - 1, ul, false);
1699 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1703 function forwardList()
1705 var ul = $("#listResults");
1706 var li_ini = ul.children(':first').next();
1707 var index_ini = pag_index_ini;
1709 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1711 var li_end = ul.children(':last').prev();
1712 var index_end = arrPagination.length - 1;
1714 index_end = parseInt(li_end.attr("class").substring(7), 10);
1716 if (index_end < arrPagination.length - 1) {
1717 renderPagIndexList(index_ini + 1, ul, false);
1718 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1722 function renderPagIndexList(index, ul)
1724 var $kids = ul.children("li");
1725 if ($kids.length > 0) {
1726 $kids.each(function() {
1732 var ini = index - 1;
1733 var end = ini + totalPagItemList - 1;
1735 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1739 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1740 if (arrPagination[i] == undefined) continue;
1741 var li = $("<li />");
1742 if (arrPagination[i].url != "") {
1743 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1744 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1745 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1746 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1747 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1748 html += ">" + i + "</a>";
1751 li.attr("class", "li_pag_" + i);
1756 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1757 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>":"»";
1760 }//renderPagIndexList
1763 function renderPagination(index, total, ul, highlIndex)
1765 for (var i = pag_index_ini; i <= total; i++) {
1766 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1767 $("#li_pag_" + i).remove();
1770 for (var i = index; i <= total && j < totalPagItemList; i++) {
1771 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1772 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1773 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1774 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1776 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1780 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1781 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1782 $("#li_pag_" + i).remove();
1783 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1784 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1785 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1791 [% END # / IF ( OpacBrowseResults && busc ) %]
1795 [% IF OPACPopupAuthorsSearch %]
1796 <script type="text/javascript">
1798 function showAuthors(element){
1799 var authornumber = $(element).attr("data-count");
1801 // Check checkbox related to the clicked link
1802 $("#authorsList input[type='checkbox']").attr('checked', false);
1803 $("#author_"+authornumber).attr('checked', true);
1805 makeAuthorRequest();
1808 function checkAll(checkbox, elem) {
1809 var check = $(checkbox).attr('checked') ? true : false;
1810 $(elem).find("input[type='checkbox']").attr('checked', check);
1811 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1814 function makeAuthorRequest(){
1817 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1818 values.push($(this).val());
1821 if (values.length > 0) {
1822 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1823 $("#validAuthorSearch").attr("href", request);
1825 $("#validAuthorSearch").removeAttr("href");
1831 function showSubjects(element, subjectnumber, subfieldnumber){
1833 // Check checkbox related to the clicked link
1834 $("#subjectsList input[type='checkbox']").attr('checked', false);
1835 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1837 makeSubjectRequest();
1841 function makeSubjectRequest() {
1843 $("#subjectsList > ul").each(function() {
1844 var all_checked = true;
1845 var local_values = [];
1846 $(this).find('input[type="checkbox"]').each(function() {
1847 if($(this).attr('checked')) {
1848 local_values.push($(this).val());
1850 all_checked = false;
1853 var authid = $(this).attr('data-authid');
1854 if(all_checked && authid) {
1855 values.push('an:' + authid);
1857 values = values.concat(local_values);
1860 if(values.length > 0) {
1861 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1862 $("#validSubjectSearch").attr('href', request);
1864 $("#validSubjectSearch").removeAttr("href");
1867 $(document).ready(function() {
1868 $("a.showauthors").click(function(e){
1876 [% END # / IF OPACPopupAuthorsSearch %]