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 ) %]
413 [% IF ( loggedinusername ) %]
414 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
415 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
416 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
417 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
418 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
420 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
423 <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a>
425 <span id="login4tags"><a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a></span>
427 [% END # / IF TagsInputEnabled %]
429 [% END # /IF TagsShowEnabled %]
431 [% IF ( SyndeticsEnabled ) %]
432 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
433 <span class="results_summary">
434 <span class="label">Series information:</span>
435 [% IF ( using_https ) %]
436 <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>
438 <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>
441 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
442 [% IF ( SyndeticsAVPROFILEExists ) %]
443 <span class="results_summary">
444 <span class="label">Audiovisual profile:</span>
445 [% IF ( using_https ) %]
446 <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>
448 <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>
451 [% END # / IF SyndeticsAVPROFILEExists %]
453 [% IF ( SyndeticsFICTIONExists ) %]
454 <span class="results_summary">
455 <span class="label">Fiction notes:</span>
456 [% IF ( using_https ) %]
457 <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>
459 <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>
462 [% END # / IF SyndeticsFICTIONExists %]
464 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
465 <span class="results_summary">
466 <span class="label">Awards:</span>
467 [% IF ( using_https ) %]
468 <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>
470 <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>
473 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
474 [% END # / IF SyndeticsEnabled%]
476 [% IF ( OpacStarRatings != 'disable' ) %]
477 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
478 <div class="results_summary ratings">
480 [% FOREACH i IN [ 1 2 3 4 5 ] %]
481 [% IF rating_avg == i && borrowernumber %]
482 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
483 [% ELSIF rating_avg == i %]
484 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
485 [% ELSIF borrowernumber %]
486 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
488 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
492 <!-- define some hidden vars for ratings -->
494 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
495 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
496 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
497 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
499 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
501 [% IF ( rating_value ) %]
502 <span id="rating_value_text">your rating: [% rating_value %], </span>
504 <span id="rating_value_text"></span>
507 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
510 [% END # / IF OpacStarRatings != 'disable' %]
512 [% IF ( BakerTaylorContentURL ) %]
513 <span class="results_summary">
514 <span class="label">Enhanced content: </span>
515 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
517 [% END # / IF BakerTaylorContentURL %]
519 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
520 [% IF ( NovelistSelectView == 'above') %]
521 <span class="results_summary">
522 <span class="label">Novelist Select: </span>
523 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
526 [% END # / IF NovelistSelectProfile %]
528 [% IF ( Babeltheque ) %]
529 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
530 <div id="BW_notes"></div>
531 <div id="BW_critiques"></div>
532 <div id="BW_critiques_pro"></div>
533 <div id="BW_citations"></div>
534 [% END # / IF Babeltheque%]
536 </div> <!-- / #catalogue_detail_biblio -->
538 <div id="bibliodescriptions" class="toptabs">
541 [% IF ( defaulttab == 'holdings' ) %]
542 <li id="tab_holdings" class="ui-tabs-active">
544 <li id="tab_holdings">
546 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
548 [% IF (SeparateHoldings) %]
549 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
551 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
552 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
554 [% IF ( SYNDETICS_TOC ) %]
555 <li id="tab_toc"> <a href="#toc">TOC</a></li>
557 [% IF ( SyndeticsEnabled ) %]
558 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
559 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
561 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
562 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
563 <li id="tab_LTFLreviews">
564 [% IF ( using_https ) %]
565 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
566 <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>
568 <script src="http://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="http://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
573 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
574 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
576 [% END # / IF SyndeticsEnabled %]
578 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
579 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
580 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
583 [% IF ( subscriptionsnumber ) %]
584 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
585 <a href="#subscriptions">Subscriptions</a>
589 [% IF Koha.Preference( 'reviewson' ) == 1 %]
590 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
593 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
594 [% IF ( NovelistSelectView == 'tab') %]
595 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
599 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
600 <li id="tab_editions"><a href="#editions">Editions</a></li>
603 [% IF ( serialcollection ) %]
604 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
605 <a href="#serialcollection">Serial collection</a>
609 [% IF ( OPACLocalCoverImages && localimages.size ) %]
610 <li id="tab_images"><a href="#images">Images</a></li>
613 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
614 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
617 [% IF ( IDreamBooksReviews ) %]
618 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
622 [% IF ( serialcollection ) %]
623 <div id="serialcollection">
624 <table id="serialcollectiont" class="table table-bordered table-striped">
627 <th id="serial_library">Library</th>
628 <th id="serial_collection">Serial collection</th>
629 <th id="serial_itemcallnumber">Item call number</th>
633 [% FOREACH serialcollection IN serialcollections %]
635 <td>[% serialcollection.branch %]</td>
636 <td>[% serialcollection.text %]</td>
637 <td>[% serialcollection.itemcallnumber %]</td>
643 [% END # / IF serialcollection %]
647 [% IF too_many_items %]
648 <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>
649 [% ELSIF ( itemloop.size ) %]
650 [% INCLUDE items_table items=itemloop tab="holdings" %]
651 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
652 [% IF acquisition_details.total_quantity == 1 %]
655 [% acquisition_details.total_quantity %] items are on order.
658 [% IF holds_count.defined || priority %]
660 [% IF holds_count.defined %]
661 Total holds: [% holds_count %]
664 [% IF holds_count.defined %]
665 (priority [% priority %])
667 Overall queue priority: [% priority %]
673 [% IF ( ALTERNATEHOLDINGS ) %]
674 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
675 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
678 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
679 [% IF acquisition_details.total_quantity == 1 %]
682 [% acquisition_details.total_quantity %] items are on order.
685 <div id="noitems">No physical items for this record</div>
688 [% END # IF itemloop.size %]
689 [% PROCESS 'shelfbrowser.inc' %]
690 [% INCLUDE shelfbrowser tab='holdings' %]
691 <br style="clear:both;" />
692 </div> <!-- / #holdings -->
694 [% IF (SeparateHoldings) %]
695 <div id="otherholdings">
696 [% IF (otheritemloop.size) %]
697 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
701 [% INCLUDE shelfbrowser tab='otherholdings' %]
703 [% END # / SeparateHoldings %]
705 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
706 <div id="descriptions">
707 <div class="content_set">
709 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
710 <h4>Enhanced descriptions from Syndetics:</h4>
711 <p>[% SYNDETICS_SUMMARY %]</p>
714 [% IF ( MARCNOTES ) %]
716 [% FOREACH MARCNOTE IN MARCNOTES %]
718 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
719 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
721 [% MARCNOTE.marcnote FILTER html_line_break %]
733 </div> <!-- / #descriptions -->
734 [% END # / IF MARCNOTES || notes %]
736 [% IF ( SyndeticsEnabled ) %]
737 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
739 <div class="content_set">
740 <h3>Table of contents provided by Syndetics</h3>
742 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
743 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
748 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
750 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
752 <div class="content_set">
753 <h3>Excerpt provided by Syndetics</h3>
754 [% SYNDETICS_EXCERPT %]
757 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
759 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
761 <div class="content_set">
762 <h3>Reviews provided by Syndetics</h3>
763 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
764 [% IF ( SYNDETICS_REVIEW.title ) %]
765 <h4>[% SYNDETICS_REVIEW.title %]</h4>
766 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
768 [% IF ( review.content ) %]
777 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
779 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
781 <div class="content_set">
782 <h3>Author notes provided by Syndetics</h3>
783 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
784 [% IF ( SYNDETICS_ANOTE.content ) %]
785 [% SYNDETICS_ANOTE.content %]
790 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
791 [% END # / IF SyndeticsEnabled %]
793 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && normalized_isbn ) %]
794 <div id="NovelistSelect">
795 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
797 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
799 [% IF ( subscriptionsnumber ) %]
800 <div id="subscriptions">
801 <h2>This is a serial</h2>
802 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
803 [% FOREACH subscription IN subscriptions %]
804 [% IF ( subscription.branchname ) %]
805 <h3>At library: [% subscription.branchname %]</h3>
807 [% IF ( subscription.branchcode ) %]
808 <h3>At library: [% subscription.branchcode %]</h3>
811 [% IF ( subscription.closed ) %]
812 <p>This subscription is closed.</p>
814 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
815 [% IF ( subscription.subscriptionnotes ) %]
816 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
818 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
819 [% IF ( subscription.missinglist ) %]
820 <p>Missing issues: [% subscription.missinglist %] </p>
822 [% IF ( subscription.opacnote ) %]
823 <p>[% subscription.opacnote FILTER html_line_break %]</p>
825 [% IF ( subscription.callnumber ) %]
826 <p>Call number: [% subscription.callnumber %]</p>
828 [% IF ( subscription.latestserials ) %]
829 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
830 <table class="table table-bordered table-striped">
837 [% FOREACH latestserial IN subscription.latestserials %]
839 <td>[% latestserial.serialseq %]</td>
840 <td>[% latestserial.planneddate %]</td>
842 [% IF ( latestserial.status1 ) %]
845 [% IF ( latestserial.status2 ) %]
848 [% IF ( latestserial.status3 ) %]
851 [% IF ( latestserial.status4 ) %]
854 [% IF ( latestserial.status5 ) %]
862 <td>[% latestserial.notes %]</td>
864 [% END # / FOREACH latestserials %]
866 [% END # / IF subscription.latestserials %]
867 [% END # / FOREACH subscriptions %]
868 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
869 </div> <!-- / #subscriptions -->
870 [% END # IF subscriptionsnumber %]
872 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
873 <!-- Library Thing for Libraries Content -->
874 <div id="LFTLSimilarItems">
875 <div class="content_set">
876 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
877 <!-- but breaks Xhtml validation -->
878 <!-- <span class="results_summary">-->
879 <div id="ltfl_related"></div>
880 <div id="ltfl_similars"></div>
884 <div id="LTFLTagBrowse">
885 <div class="content_set">
886 <!-- <span class="results_summary"> -->
887 <div id="ltfl_tagbrowse" class="ltfl"></div>
891 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
893 [% IF Koha.Preference( 'reviewson' ) == 1 %]
895 <div id="newcomment"></div>
897 [% FOREACH review IN reviews %]
898 [% IF ( review.your_comment ) %]
899 <div class="commentline yours" id="c[% review.reviewid %]">
900 [% IF ( review.avatarurl ) %]
901 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
903 <h5>Your comment</h5>
904 <small>[% review.datereviewed | $KohaDates %]</small>
906 [% FILTER html_break %]
907 [% review.review |html %]
909 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
913 <div class="commentline">
914 [% IF ( ShowReviewer != "none" ) %]
915 [% IF ( review.avatarurl ) %]
916 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
918 [% SWITCH ShowReviewer %]
920 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
922 <h5>Comment by [% review.firstname %]</h5>
924 <h5>Comment by [% review.surname %]</h5>
925 [% CASE 'firstandinitial' %]
926 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
927 [% CASE 'username' %]
928 <h5>Comment by [% review.userid %]</h5>
930 <small>[% review.datereviewed | $KohaDates %]</small>
931 [% ELSIF ( ShowReviewer == "none") %]
932 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
933 [% END # / IF ShowReviewer != "none"%]
935 [% FILTER html_break %]
936 [% review.review |html %]
939 </div> <!-- / .commentline -->
940 [% END # / IF review.your_comment %]
941 [% END # / FOREACH reviews %]
943 <p>There are no comments for this item.</p>
944 [% END # / IF reviews %]
946 [% IF ( loggedinusername ) %]
947 [% UNLESS ( loggedincommenter ) %]
948 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
949 Post or edit your comments on this item.
953 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
954 [% END # / IF loggedinusername %]
955 </div> <!-- / #comments -->
956 [% END # / IF reviewson %]
958 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
960 <h4>Other editions of this work</h4>
961 <table class="table table-bordered table-striped">
962 [% FOREACH XISBN IN XISBNS %]
965 [% IF ( OPACAmazonCoverImages ) %]
966 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
969 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
970 [% IF ( XISBN.content_identifier_exists ) %]
971 [% IF ( using_https ) %]
972 <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="" />
974 <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="" />
977 <span class="no-image">No cover image available</span>
978 [% END # / IF XISBN.content_identifier_exists %]
979 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
982 [% UNLESS ( item_level_itypes ) %]
983 <td>[% XISBN.description %]</td>
985 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
986 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
987 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
988 [% IF ( XISBN.publishercode ) %]
989 <p>[% XISBN.publishercode |html %]
990 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
991 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
992 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
997 [% END # / FOREACH XISBNS %]
999 </div> <!-- / #editions -->
1000 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1002 [% IF ( HTML5MediaEnabled ) %]
1003 <div id="html5media">
1005 <[% HTML5MediaParent %] controls preload=none>
1006 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1007 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
1009 [[% HTML5MediaParent %] tag not supported by your browser.]
1010 </[% HTML5MediaParent %]>
1013 [% END # / IF HTML5MediaEnabled %]
1015 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1017 <p>Click on an image to view it in the image viewer</p>
1018 [% FOREACH image IN localimages %]
1020 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image %]" /></a>
1023 </div><!-- / #images -->
1024 [% END # / IF OPACLocalCoverImages && localimages.size %]
1026 [% IF ( IDreamBooksReviews ) %]
1027 <div id="idb_critic_reviews">
1028 <div id="idb_review_snippets"></div>
1029 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1032 </div> <!-- / #bibliodescriptions -->
1034 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && normalized_isbn ) %]
1035 <div id="NovelistSelect">
1036 <h3>Novelist Select</h3>
1037 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
1041 [% IF ( Babeltheque ) %]
1043 <div id="BW_etiquettes"></div>
1044 <div id="BW_suggestions"></div>
1046 <div class="clearfix"></div>
1048 <div id="BW_podcasts"></div>
1050 <div class="clearfix"></div>
1052 <div id="BW_videos"></div>
1054 [% END # / IF Babeltheque %]
1056 [% INCLUDE "openlibrary-readapi.inc" bib = {
1057 normalized_isbn => normalized_isbn,
1059 normalized_oclc => normalized_oclc
1062 </div> <!-- /.span9 -->
1065 <div id="ulactioncontainer">
1067 [% IF ( OpacBrowseResults && busc ) %]
1068 <div class="nav_results">
1069 <div class="l_Results">
1070 [% IF ( listResults ) %]
1071 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1073 <span>Browse results</span>
1076 <ul class="pg_menu clearfix">
1077 <li class="left_results">
1078 [% IF ( previousBiblionumber ) %]
1079 <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>
1081 <span>Previous</span>
1084 [%# busc is already URI encoded %]
1085 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1086 <li class="right_results">
1087 [% IF ( nextBiblionumber ) %]
1088 <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>
1094 [% IF ( listResults ) %]
1095 <div class="results-pagination">
1096 <div class="nav_pages">
1097 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1098 <ul id="listResults"></ul>
1100 <div class="pagination_list">
1101 <ul id="ul_pagination_list"></ul>
1106 [% END # / IF OpacBrowseResults && busc %]
1108 [% INCLUDE 'opac-detail-sidebar.inc' %]
1110 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && normalized_isbn ) %]
1111 <div id="NovelistSelect">
1112 <h4>Novelist Select</h4>
1113 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1117 [% IF ( Babeltheque ) %]
1118 <div class="babeltheque_adds">
1119 <div id="BW_critiques_aj"></div>
1120 <div id="BW_citations_aj"></div>
1124 [% IF ( SocialNetworks ) %]
1125 <div id="social_networks" class="clearfix">
1127 <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>
1128 <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>
1129 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1130 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1131 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1132 <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>
1135 </div> <!-- / .ulactioncontainer -->
1136 </div> <!-- / .span4 -->
1137 </div> <!-- / .row-fluid -->
1138 <div class="row-fluid">
1139 [% IF ( LibraryThingForLibrariesID ) %]
1140 [% IF ( using_https ) %]
1141 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1142 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1143 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1145 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1146 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1147 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1148 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1152 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1153 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1156 [% IF ( Babeltheque ) %]
1157 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1159 </div> <!-- / .row-fluid -->
1160 </div> <!-- / .container-fluid -->
1161 </div> <!-- / .main -->
1163 [% INCLUDE 'opac-bottom.inc' %]
1165 [%# End of template %]
1167 [% BLOCK items_table %]
1168 <table class="holdingst table table-bordered table-striped">
1171 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1172 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1173 <th id="item_current_location" class="item_location">Current location</th>
1175 [% UNLESS ( singleBranchMode ) %]
1176 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1177 <th id="item_home_location" class="item_location">Home library</th>
1180 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1181 <th id="item_callnumber" class="call_no">Call number</th>
1182 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1183 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1184 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1185 <th id="item_status" class="status">Status</th>
1186 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1187 <th id="item_datedue" class="date_due">Date due</th>
1188 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1189 [% IF holds_count.defined %]
1190 <th id="item_holds">Item holds</th>
1191 [% ELSIF show_priority %]
1192 <th id="item_priority">Item hold queue priority</th>
1194 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1198 [% FOREACH ITEM_RESULT IN items %]
1199 [% IF ITEM_RESULT.this_branch %]
1200 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1202 <tr vocab="http://schema.org/" typeof="Offer">
1204 [% IF ( item_level_itypes ) %]
1206 [% UNLESS ( noItemTypeImages ) %]
1207 [% IF ( ITEM_RESULT.imageurl ) %]
1208 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1211 [% ITEM_RESULT.description %]
1214 [% UNLESS singleBranchMode %]
1215 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1216 <td class="location" property="seller">
1217 <link property="itemOffered" href="#record" />
1218 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1219 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1220 [% IF ( ITEM_RESULT.branchurl ) %]
1221 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1223 <span>[% ITEM_RESULT.branchname %]</span>
1226 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1228 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1229 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1235 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1236 <td class="location" property="seller">
1237 <link property="itemOffered" href="#record" />
1238 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1239 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1240 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1241 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1242 [% IF ( home_branch_url ) %]
1243 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1245 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1248 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1251 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1253 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1254 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1261 <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1264 [% IF ( itemdata_ccode ) %]
1265 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1267 <td class="call_no" property="sku">
1268 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1269 [% ITEM_RESULT.itemcallnumber %]
1270 [% IF ( OPACShelfBrowser ) %]
1271 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1272 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1274 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1279 [% IF ( itemdata_enumchron ) %]
1280 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1282 [% IF ( itemdata_uri ) %]
1284 [% IF ITEM_RESULT.uri %]
1285 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1286 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1287 <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>
1289 <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>
1292 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1293 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1295 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1301 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1302 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1303 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1304 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1305 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1306 [% IF holds_count.defined || show_priority %]
1307 <td class="holds_count">
1308 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1309 [% IF ITEM_RESULT.priority %]
1310 [% IF holds_count.defined %]
1311 (priority [% ITEM_RESULT.priority %])
1313 [% ITEM_RESULT.priority %]
1318 [% IF ShowCourseReservesHeader %]
1320 [% IF ITEM_RESULT.course_reserves %]
1321 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1322 [% IF r.course.enabled == 'yes' %]
1324 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1325 [% r.course.course_name %]
1326 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1327 [% IF r.course.section %] [% r.course.section %] [% END %]
1328 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1335 [% END # /IF ShowCourseReservesHeader %]
1340 [% END %][%# end of items_table block %]
1342 [% BLOCK jsinclude %]
1343 [% INCLUDE 'datatables.inc' %]
1344 [% IF ( SocialNetworks ) %]
1345 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1347 {lang: '[% lang %]'}
1350 <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>
1352 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1354 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1356 <script type="text/javascript">
1359 [% IF ( OpacBrowseResults && busc ) %]
1360 var arrPagination = new Array();
1361 var pag_index_ini = [% indexPag %];
1362 [% IF ( listResults ) %]
1363 [% FOREACH listResult IN listResults %]
1364 arrPagination[[% listResult.index %]] = {
1365 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1366 title:"[% listResult.title|remove('\n')|html %]",
1367 author:"[% listResult.author|html %]",
1368 biblionumber:[% listResult.biblionumber %]
1374 [% IF ( OpacHighlightedWords ) %]
1375 var q_array = new Array(); // holds search terms if available
1377 function highlightOff() {
1378 $("#catalogue_detail_biblio").removeHighlight();
1379 $(".highlight_toggle").toggle();
1381 function highlightOn() {
1383 for (x in q_array) {
1384 if ( q_array[x].length > 0 ) {
1385 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1386 q_array[x] = q_array[x].toLowerCase();
1387 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1388 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1389 $(".title").highlight(q_array[x]);
1390 $(".author").highlight(q_array[x]);
1391 $(".results_summary").highlight(q_array[x]);
1395 $(".highlight_toggle").toggle();
1399 $(document).ready(function() {
1400 $('#bibliodescriptions').tabs();
1401 $(".branch-info-tooltip-trigger").uitooltip({
1402 position: { my: "left+15 center", at: "right center" },
1405 content: function(){
1406 var element = $(this).next("div");
1407 return element.html();
1410 [% IF ( TagsInputEnabled && loggedinusername ) %]
1411 $(".tag_add").click(function(){
1412 var thisid = $(this).attr("id");
1413 thisid = thisid.replace("tag_add","");
1415 $("#tagform"+thisid).show();
1416 $("#newtag"+thisid).focus();
1417 $("#newtag"+thisid+"_status").empty().hide();
1420 $(".cancel_tag_add").click(function(){
1421 var thisid = $(this).attr("id");
1422 thisid = thisid.replace("cancel","");
1423 $("#tagform"+thisid).hide();
1424 $("#tag_add"+thisid).show();
1425 $("#newtag"+thisid).val("");
1426 $("#newtag"+thisid+"_status").empty().hide();
1429 $(".tagbutton").click(function(){
1430 var thisid = $(this).attr("title");
1431 var tag = $("#newtag"+thisid).val();
1432 if (!tag || (tag == "")) {
1433 alert(MSG_NO_TAG_SPECIFIED);
1436 KOHA.Tags.add_tag_button(thisid, tag);
1441 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1443 [% IF ( item_level_itypes ) %]null,[% END %]
1445 [% IF ( OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
1446 [% IF ( itemdata_ccode ) %]null,[% END %]
1448 [% IF ( itemdata_enumchron ) %]null,[% END %]
1449 [% IF ( itemdata_uri ) %]null,[% END %]
1450 [% IF ( itemdata_copynumber ) %]null,[% END %]
1452 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1453 { "sType": "title-string" },
1454 [% IF ( OPACShowBarcode ) %]null,[% END %]
1455 [% IF holds_count.defined %]
1457 [% ELSIF show_priority %]
1460 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1464 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1465 q_array = query_desc.split(" ");
1466 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1468 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1469 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1470 [% IF ( GoogleJackets ) %]
1471 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1473 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1474 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1477 [% IF OpenLibraryCovers %]
1478 KOHA.OpenLibrary.GetCoverFromIsbn();
1480 [% IF OPACLocalCoverImages %]
1481 KOHA.LocalCover.GetCoverFromBibnumber(true);
1483 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1484 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1487 [% IF ( OpacBrowseResults && busc ) %]
1488 if (arrPagination.length > 0) {
1489 renderPagIndexList(pag_index_ini, $("#listResults"));
1491 $("#a_listResults").click(function(e) {
1492 if (arrPagination.length > 0) {
1494 var navigation = $(".results-pagination");
1495 if (navigation.css("display") == 'none') {
1497 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1498 $(this).attr('title',newtitle);
1499 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1502 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1503 $(this).attr('title',newtitle);
1507 $("#close_pagination").click(function(e) {
1509 var navigation = $(".results-pagination");
1513 [% IF ( OPACShelfBrowser ) %]
1515 (function prepareShelfBrowser(){
1517 $(".main").on("click",".close_shelf",function(e){
1519 $("#shelfbrowser").toggle();
1521 $(".main").on("click", "#browser_previous a", function(e){
1524 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1527 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1529 success: function(data){
1530 $("#shelfbrowser").replaceWith(data);
1531 [% IF ( GoogleJackets ) %]
1532 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1534 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1535 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1537 [% IF OpenLibraryCovers %]
1538 KOHA.OpenLibrary.GetCoverFromIsbn();
1540 [% IF OPACLocalCoverImages %]
1541 KOHA.LocalCover.GetCoverFromBibnumber(true);
1547 $(".main").on("click", "#browser_next a", function(e){
1550 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1553 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1555 success: function(data){
1556 $("#shelfbrowser").replaceWith(data);
1557 [% IF ( GoogleJackets ) %]
1558 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1560 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1561 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1563 [% IF OpenLibraryCovers %]
1564 KOHA.OpenLibrary.GetCoverFromIsbn();
1566 [% IF OPACLocalCoverImages %]
1567 KOHA.LocalCover.GetCoverFromBibnumber(true);
1574 [% IF ( OpacStarRatings != 'disable' ) %]
1575 // -----------------------------------------------------
1576 // star-ratings code
1577 // -----------------------------------------------------
1578 // hide 'rate' button if javascript enabled
1580 $('input[name="rate_button"]').remove();
1583 $(".auto-submit-star").rating({
1584 callback: function (value, link) {
1586 // if the new value equals the old value, dont execute callback...
1588 if ($("#rating_value").attr("value") != value) {
1592 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1593 rating_old_value: $("#rating_value").attr("value"),
1594 borrowernumber: "[% borrowernumber %]",
1595 biblionumber: "[% biblionumber %]",
1596 rating_value: value,
1598 }, function (data) {
1600 if (data.auth_status != 'ok') {
1601 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1603 $("#rating_value").val(data.rating_value);
1605 if (data.rating_value) {
1606 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1608 $("#rating_value_text").text('');
1611 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1620 // -----------------------------------------------------
1621 [% END # / IF ( OpacStarRatings != 'disable' )%]
1623 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1624 var isbn = $(".isbn:last").text().split(" ")[1];
1626 isbn = isbn.replace(/\W*$/, '');
1627 isbn = isbn.replace(/-/, '');
1629 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1630 // Use Microsoft XDR for IE version 8 or above
1631 var xdr = new XDomainRequest();
1632 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1633 xdr.onload = function() {
1634 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1635 eval(json); // json is now a regular JSON object
1636 parseIDBJSON(json); // parse using same function as for jQuery's success event
1640 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1645 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1648 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1649 function parseIDBJSON( json ) {
1650 if(json.total_results > 0 && json.book.rating > 0){
1651 var isbn = $(".isbn:last").text().split(" ")[1];
1652 isbn = isbn.replace(/\W+/g, '');
1654 [% IF ( IDreamBooksReadometer ) %]
1655 $(".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>');
1658 [% IF ( IDreamBooksReviews ) %]
1659 //build new tab for critic reviews
1660 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1662 //append happy-sad cloud review
1664 $("#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>");
1666 //insert data into Book reviews tab
1667 $.each(json.book.critic_reviews, function(){
1668 $("#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>");
1670 $("#seemoreidb").attr('href', json.book.detail_link);
1671 $("#tab_idb_critic_reviews").show();
1675 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1677 [% IF ( OpacBrowseResults && busc ) %]
1679 var totalPagItemList = 10;
1681 function rewindList()
1683 var ul = $("#listResults");
1684 var li_ini = ul.children(':first').next();
1685 var index_ini = pag_index_ini;
1687 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1689 var li_end = ul.children(':last').prev();
1690 var index_end = arrPagination.length - 1;
1692 index_end = parseInt(li_end.attr("class").substring(7), 10);
1694 if (index_ini > pag_index_ini) {
1695 renderPagIndexList(index_ini - 1, ul, false);
1696 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1700 function forwardList()
1702 var ul = $("#listResults");
1703 var li_ini = ul.children(':first').next();
1704 var index_ini = pag_index_ini;
1706 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1708 var li_end = ul.children(':last').prev();
1709 var index_end = arrPagination.length - 1;
1711 index_end = parseInt(li_end.attr("class").substring(7), 10);
1713 if (index_end < arrPagination.length - 1) {
1714 renderPagIndexList(index_ini + 1, ul, false);
1715 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1719 function renderPagIndexList(index, ul)
1721 var $kids = ul.children("li");
1722 if ($kids.length > 0) {
1723 $kids.each(function() {
1729 var ini = index - 1;
1730 var end = ini + totalPagItemList - 1;
1732 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1736 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1737 if (arrPagination[i] == undefined) continue;
1738 var li = $("<li />");
1739 if (arrPagination[i].url != "") {
1740 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1741 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1742 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1743 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1744 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1745 html += ">" + i + "</a>";
1748 li.attr("class", "li_pag_" + i);
1753 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1754 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>":"»";
1757 }//renderPagIndexList
1760 function renderPagination(index, total, ul, highlIndex)
1762 for (var i = pag_index_ini; i <= total; i++) {
1763 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1764 $("#li_pag_" + i).remove();
1767 for (var i = index; i <= total && j < totalPagItemList; i++) {
1768 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1769 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1770 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1771 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1773 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1777 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1778 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1779 $("#li_pag_" + i).remove();
1780 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1781 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1782 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1788 [% END # / IF ( OpacBrowseResults && busc ) %]
1792 [% IF OPACPopupAuthorsSearch %]
1793 <script type="text/javascript">
1795 function showAuthors(element){
1796 var authornumber = $(element).attr("data-count");
1798 // Check checkbox related to the clicked link
1799 $("#authorsList input[type='checkbox']").attr('checked', false);
1800 $("#author_"+authornumber).attr('checked', true);
1802 makeAuthorRequest();
1805 function checkAll(checkbox, elem) {
1806 var check = $(checkbox).attr('checked') ? true : false;
1807 $(elem).find("input[type='checkbox']").attr('checked', check);
1808 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1811 function makeAuthorRequest(){
1814 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1815 values.push($(this).val());
1818 if (values.length > 0) {
1819 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1820 $("#validAuthorSearch").attr("href", request);
1822 $("#validAuthorSearch").removeAttr("href");
1828 function showSubjects(element, subjectnumber, subfieldnumber){
1830 // Check checkbox related to the clicked link
1831 $("#subjectsList input[type='checkbox']").attr('checked', false);
1832 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1834 makeSubjectRequest();
1838 function makeSubjectRequest() {
1840 $("#subjectsList > ul").each(function() {
1841 var all_checked = true;
1842 var local_values = [];
1843 $(this).find('input[type="checkbox"]').each(function() {
1844 if($(this).attr('checked')) {
1845 local_values.push($(this).val());
1847 all_checked = false;
1850 var authid = $(this).attr('data-authid');
1851 if(all_checked && authid) {
1852 values.push('an:' + authid);
1854 values = values.concat(local_values);
1857 if(values.length > 0) {
1858 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1859 $("#validSubjectSearch").attr('href', request);
1861 $("#validSubjectSearch").removeAttr("href");
1864 $(document).ready(function() {
1865 $("a.showauthors").click(function(e){
1873 [% END # / IF OPACPopupAuthorsSearch %]