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 ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
562 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
563 [% IF ( LibraryThingForLibrariesID ) %]
564 <li id="tab_LTFLreviews">
565 [% IF ( using_https ) %]
566 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
567 <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>
569 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
570 <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>
575 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
576 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
578 [% END # / IF SyndeticsEnabled %]
580 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
581 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
582 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
585 [% IF ( subscriptionsnumber ) %]
586 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
587 <a href="#subscriptions">Subscriptions</a>
591 [% IF Koha.Preference( 'reviewson' ) == 1 %]
592 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
595 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
596 [% IF ( NovelistSelectView == 'tab') %]
597 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
601 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
602 <li id="tab_editions"><a href="#editions">Editions</a></li>
605 [% IF ( serialcollection ) %]
606 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
607 <a href="#serialcollection">Serial collection</a>
611 [% IF ( OPACLocalCoverImages && localimages.size ) %]
612 <li id="tab_images"><a href="#images">Images</a></li>
615 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
616 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
619 [% IF ( IDreamBooksReviews ) %]
620 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
624 [% IF ( serialcollection ) %]
625 <div id="serialcollection">
626 <table id="serialcollectiont" class="table table-bordered table-striped">
629 <th id="serial_library">Library</th>
630 <th id="serial_collection">Serial collection</th>
631 <th id="serial_itemcallnumber">Item call number</th>
635 [% FOREACH serialcollection IN serialcollections %]
637 <td>[% serialcollection.branch %]</td>
638 <td>[% serialcollection.text %]</td>
639 <td>[% serialcollection.itemcallnumber %]</td>
645 [% END # / IF serialcollection %]
649 [% IF too_many_items %]
650 <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>
651 [% ELSIF ( itemloop.size ) %]
652 [% INCLUDE items_table items=itemloop tab="holdings" %]
653 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
654 [% IF acquisition_details.total_quantity == 1 %]
657 [% acquisition_details.total_quantity %] items are on order.
660 [% IF holds_count.defined || priority %]
662 [% IF holds_count.defined %]
663 Total holds: [% holds_count %]
666 [% IF holds_count.defined %]
667 (priority [% priority %])
669 Overall queue priority: [% priority %]
675 [% IF ( ALTERNATEHOLDINGS ) %]
676 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
677 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
680 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
681 [% IF acquisition_details.total_quantity == 1 %]
684 [% acquisition_details.total_quantity %] items are on order.
687 <div id="noitems">No physical items for this record</div>
690 [% END # IF itemloop.size %]
691 [% PROCESS 'shelfbrowser.inc' %]
692 [% INCLUDE shelfbrowser tab='holdings' %]
693 <br style="clear:both;" />
694 </div> <!-- / #holdings -->
696 [% IF (SeparateHoldings) %]
697 <div id="otherholdings">
698 [% IF (otheritemloop.size) %]
699 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
703 [% INCLUDE shelfbrowser tab='otherholdings' %]
705 [% END # / SeparateHoldings %]
707 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
708 <div id="descriptions">
709 <div class="content_set">
711 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
712 <h4>Enhanced descriptions from Syndetics:</h4>
713 <p>[% SYNDETICS_SUMMARY %]</p>
716 [% IF ( MARCNOTES ) %]
718 [% FOREACH MARCNOTE IN MARCNOTES %]
720 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
721 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
723 [% MARCNOTE.marcnote FILTER html_line_break %]
735 </div> <!-- / #descriptions -->
736 [% END # / IF MARCNOTES || notes %]
738 [% IF ( SyndeticsEnabled ) %]
739 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
741 <div class="content_set">
742 <h3>Table of contents provided by Syndetics</h3>
744 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
745 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
750 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
752 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
754 <div class="content_set">
755 <h3>Excerpt provided by Syndetics</h3>
756 [% SYNDETICS_EXCERPT %]
759 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
761 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
763 <div class="content_set">
764 <h3>Reviews provided by Syndetics</h3>
765 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
766 [% IF ( SYNDETICS_REVIEW.title ) %]
767 <h4>[% SYNDETICS_REVIEW.title %]</h4>
768 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
770 [% IF ( review.content ) %]
779 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
781 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
783 <div class="content_set">
784 <h3>Author notes provided by Syndetics</h3>
785 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
786 [% IF ( SYNDETICS_ANOTE.content ) %]
787 [% SYNDETICS_ANOTE.content %]
792 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
793 [% END # / IF SyndeticsEnabled %]
795 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && normalized_isbn ) %]
796 <div id="NovelistSelect">
797 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
799 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
801 [% IF ( subscriptionsnumber ) %]
802 <div id="subscriptions">
803 <h2>This is a serial</h2>
804 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
805 [% FOREACH subscription IN subscriptions %]
806 [% IF ( subscription.branchname ) %]
807 <h3>At library: [% subscription.branchname %]</h3>
809 [% IF ( subscription.branchcode ) %]
810 <h3>At library: [% subscription.branchcode %]</h3>
813 [% IF ( subscription.closed ) %]
814 <p>This subscription is closed.</p>
816 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
817 [% IF ( subscription.subscriptionnotes ) %]
818 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
820 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
821 [% IF ( subscription.missinglist ) %]
822 <p>Missing issues: [% subscription.missinglist %] </p>
824 [% IF ( subscription.opacnote ) %]
825 <p>[% subscription.opacnote FILTER html_line_break %]</p>
827 [% IF ( subscription.callnumber ) %]
828 <p>Call number: [% subscription.callnumber %]</p>
830 [% IF ( subscription.latestserials ) %]
831 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
832 <table class="table table-bordered table-striped">
839 [% FOREACH latestserial IN subscription.latestserials %]
841 <td>[% latestserial.serialseq %]</td>
842 <td>[% latestserial.planneddate %]</td>
844 [% IF ( latestserial.status1 ) %]
847 [% IF ( latestserial.status2 ) %]
850 [% IF ( latestserial.status3 ) %]
853 [% IF ( latestserial.status4 ) %]
856 [% IF ( latestserial.status5 ) %]
864 <td>[% latestserial.notes %]</td>
866 [% END # / FOREACH latestserials %]
868 [% END # / IF subscription.latestserials %]
869 [% END # / FOREACH subscriptions %]
870 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
871 </div> <!-- / #subscriptions -->
872 [% END # IF subscriptionsnumber %]
874 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
875 <!-- Library Thing for Libraries Content -->
876 <div id="LFTLSimilarItems">
877 <div class="content_set">
878 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
879 <!-- but breaks Xhtml validation -->
880 <!-- <span class="results_summary">-->
881 <div id="ltfl_related"></div>
882 <div id="ltfl_similars"></div>
886 <div id="LTFLTagBrowse">
887 <div class="content_set">
888 <!-- <span class="results_summary"> -->
889 <div id="ltfl_tagbrowse" class="ltfl"></div>
893 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
895 [% IF Koha.Preference( 'reviewson' ) == 1 %]
897 <div id="newcomment"></div>
899 [% FOREACH review IN reviews %]
900 [% IF ( review.your_comment ) %]
901 <div class="commentline yours" id="c[% review.reviewid %]">
902 [% IF ( review.avatarurl ) %]
903 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
905 <h5>Your comment</h5>
906 <small>[% review.datereviewed | $KohaDates %]</small>
908 [% FILTER html_break %]
909 [% review.review |html %]
911 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
915 <div class="commentline">
916 [% IF ( ShowReviewer != "none" ) %]
917 [% IF ( review.avatarurl ) %]
918 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
920 [% SWITCH ShowReviewer %]
922 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
924 <h5>Comment by [% review.firstname %]</h5>
926 <h5>Comment by [% review.surname %]</h5>
927 [% CASE 'firstandinitial' %]
928 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
929 [% CASE 'username' %]
930 <h5>Comment by [% review.userid %]</h5>
932 <small>[% review.datereviewed | $KohaDates %]</small>
933 [% ELSIF ( ShowReviewer == "none") %]
934 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
935 [% END # / IF ShowReviewer != "none"%]
937 [% FILTER html_break %]
938 [% review.review |html %]
941 </div> <!-- / .commentline -->
942 [% END # / IF review.your_comment %]
943 [% END # / FOREACH reviews %]
945 <p>There are no comments for this item.</p>
946 [% END # / IF reviews %]
948 [% IF ( loggedinusername ) %]
949 [% UNLESS ( loggedincommenter ) %]
950 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
951 Post or edit your comments on this item.
955 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
956 [% END # / IF loggedinusername %]
957 </div> <!-- / #comments -->
958 [% END # / IF reviewson %]
960 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
962 <h4>Other editions of this work</h4>
963 <table class="table table-bordered table-striped">
964 [% FOREACH XISBN IN XISBNS %]
967 [% IF ( OPACAmazonCoverImages ) %]
968 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
971 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
972 [% IF ( XISBN.content_identifier_exists ) %]
973 [% IF ( using_https ) %]
974 <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="" />
976 <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="" />
979 <span class="no-image">No cover image available</span>
980 [% END # / IF XISBN.content_identifier_exists %]
981 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
984 [% UNLESS ( item_level_itypes ) %]
985 <td>[% XISBN.description %]</td>
987 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
988 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
989 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
990 [% IF ( XISBN.publishercode ) %]
991 <p>[% XISBN.publishercode |html %]
992 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
993 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
994 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
999 [% END # / FOREACH XISBNS %]
1001 </div> <!-- / #editions -->
1002 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1004 [% IF ( HTML5MediaEnabled ) %]
1005 <div id="html5media">
1007 <[% HTML5MediaParent %] controls preload=none>
1008 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1009 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
1011 [[% HTML5MediaParent %] tag not supported by your browser.]
1012 </[% HTML5MediaParent %]>
1015 [% END # / IF HTML5MediaEnabled %]
1017 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1019 <p>Click on an image to view it in the image viewer</p>
1020 [% FOREACH image IN localimages %]
1022 <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>
1025 </div><!-- / #images -->
1026 [% END # / IF OPACLocalCoverImages && localimages.size %]
1028 [% IF ( IDreamBooksReviews ) %]
1029 <div id="idb_critic_reviews">
1030 <div id="idb_review_snippets"></div>
1031 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1034 </div> <!-- / #bibliodescriptions -->
1036 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && normalized_isbn ) %]
1037 <div id="NovelistSelect">
1038 <h3>Novelist Select</h3>
1039 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
1043 [% IF ( Babeltheque ) %]
1045 <div id="BW_etiquettes"></div>
1046 <div id="BW_suggestions"></div>
1048 <div class="clearfix"></div>
1050 <div id="BW_podcasts"></div>
1052 <div class="clearfix"></div>
1054 <div id="BW_videos"></div>
1056 [% END # / IF Babeltheque %]
1058 [% INCLUDE "openlibrary-readapi.inc" bib = {
1059 normalized_isbn => normalized_isbn,
1061 normalized_oclc => normalized_oclc
1064 </div> <!-- /.span9 -->
1067 <div id="ulactioncontainer">
1069 [% IF ( OpacBrowseResults && busc ) %]
1070 <div class="nav_results">
1071 <div class="l_Results">
1072 [% IF ( listResults ) %]
1073 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1075 <span>Browse results</span>
1078 <ul class="pg_menu clearfix">
1079 <li class="left_results">
1080 [% IF ( previousBiblionumber ) %]
1081 <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>
1083 <span>Previous</span>
1086 [%# busc is already URI encoded %]
1087 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1088 <li class="right_results">
1089 [% IF ( nextBiblionumber ) %]
1090 <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>
1096 [% IF ( listResults ) %]
1097 <div class="results-pagination">
1098 <div class="nav_pages">
1099 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1100 <ul id="listResults"></ul>
1102 <div class="pagination_list">
1103 <ul id="ul_pagination_list"></ul>
1108 [% END # / IF OpacBrowseResults && busc %]
1110 [% INCLUDE 'opac-detail-sidebar.inc' %]
1112 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && normalized_isbn ) %]
1113 <div id="NovelistSelect">
1114 <h4>Novelist Select</h4>
1115 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1119 [% IF ( Babeltheque ) %]
1120 <div class="babeltheque_adds">
1121 <div id="BW_critiques_aj"></div>
1122 <div id="BW_citations_aj"></div>
1126 [% IF ( SocialNetworks ) %]
1127 <div id="social_networks" class="clearfix">
1129 <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>
1130 <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>
1131 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1132 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1133 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1134 <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>
1137 </div> <!-- / .ulactioncontainer -->
1138 </div> <!-- / .span4 -->
1139 </div> <!-- / .row-fluid -->
1140 <div class="row-fluid">
1141 [% IF ( LibraryThingForLibrariesID ) %]
1142 [% IF ( using_https ) %]
1143 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1144 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1145 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1147 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1148 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1149 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1150 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1154 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1155 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1158 [% IF ( Babeltheque ) %]
1159 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1161 </div> <!-- / .row-fluid -->
1162 </div> <!-- / .container-fluid -->
1163 </div> <!-- / .main -->
1165 [% INCLUDE 'opac-bottom.inc' %]
1167 [%# End of template %]
1169 [% BLOCK items_table %]
1170 <table class="holdingst table table-bordered table-striped">
1173 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1174 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1175 <th id="item_current_location" class="item_location">Current location</th>
1177 [% UNLESS ( singleBranchMode ) %]
1178 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1179 <th id="item_home_location" class="item_location">Home library</th>
1182 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1183 <th id="item_callnumber" class="call_no">Call number</th>
1184 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1185 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1186 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1187 <th id="item_status" class="status">Status</th>
1188 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1189 <th id="item_datedue" class="date_due">Date due</th>
1190 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1191 [% IF holds_count.defined %]
1192 <th id="item_holds">Item holds</th>
1193 [% ELSIF show_priority %]
1194 <th id="item_priority">Item hold queue priority</th>
1196 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1200 [% FOREACH ITEM_RESULT IN items %]
1201 [% IF ITEM_RESULT.this_branch %]
1202 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1204 <tr vocab="http://schema.org/" typeof="Offer">
1206 [% IF ( item_level_itypes ) %]
1208 [% UNLESS ( noItemTypeImages ) %]
1209 [% IF ( ITEM_RESULT.imageurl ) %]
1210 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1213 [% ITEM_RESULT.description %]
1216 [% UNLESS singleBranchMode %]
1217 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1218 <td class="location" property="seller">
1219 <link property="itemOffered" href="#record" />
1220 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1221 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1222 [% IF ( ITEM_RESULT.branchurl ) %]
1223 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1225 <span>[% ITEM_RESULT.branchname %]</span>
1228 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1230 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1231 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1237 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1238 <td class="location" property="seller">
1239 <link property="itemOffered" href="#record" />
1240 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1241 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1242 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1243 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1244 [% IF ( home_branch_url ) %]
1245 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1247 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1250 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1253 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1255 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1256 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1263 <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1266 [% IF ( itemdata_ccode ) %]
1267 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1269 <td class="call_no" property="sku">
1270 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1271 [% ITEM_RESULT.itemcallnumber %]
1272 [% IF ( OPACShelfBrowser ) %]
1273 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1274 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1276 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1281 [% IF ( itemdata_enumchron ) %]
1282 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1284 [% IF ( itemdata_uri ) %]
1286 [% IF ITEM_RESULT.uri %]
1287 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1288 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1289 <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>
1291 <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>
1294 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1295 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1297 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1303 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1304 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1305 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1306 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1307 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1308 [% IF holds_count.defined || show_priority %]
1309 <td class="holds_count">
1310 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1311 [% IF ITEM_RESULT.priority %]
1312 [% IF holds_count.defined %]
1313 (priority [% ITEM_RESULT.priority %])
1315 [% ITEM_RESULT.priority %]
1320 [% IF ShowCourseReservesHeader %]
1322 [% IF ITEM_RESULT.course_reserves %]
1323 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1324 [% IF r.course.enabled == 'yes' %]
1326 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1327 [% r.course.course_name %]
1328 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1329 [% IF r.course.section %] [% r.course.section %] [% END %]
1330 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1337 [% END # /IF ShowCourseReservesHeader %]
1342 [% END %][%# end of items_table block %]
1344 [% BLOCK jsinclude %]
1345 [% INCLUDE 'datatables.inc' %]
1346 [% IF ( SocialNetworks ) %]
1347 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1349 {lang: '[% lang %]'}
1352 <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>
1354 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1356 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1358 <script type="text/javascript">
1361 [% IF ( OpacBrowseResults && busc ) %]
1362 var arrPagination = new Array();
1363 var pag_index_ini = [% indexPag %];
1364 [% IF ( listResults ) %]
1365 [% FOREACH listResult IN listResults %]
1366 arrPagination[[% listResult.index %]] = {
1367 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1368 title:"[% listResult.title|remove('\n')|html %]",
1369 author:"[% listResult.author|html %]",
1370 biblionumber:[% listResult.biblionumber %]
1376 [% IF ( OpacHighlightedWords ) %]
1377 var q_array = new Array(); // holds search terms if available
1379 function highlightOff() {
1380 $("#catalogue_detail_biblio").removeHighlight();
1381 $(".highlight_toggle").toggle();
1383 function highlightOn() {
1385 for (x in q_array) {
1386 if ( q_array[x].length > 0 ) {
1387 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1388 q_array[x] = q_array[x].toLowerCase();
1389 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1390 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1391 $(".title").highlight(q_array[x]);
1392 $(".author").highlight(q_array[x]);
1393 $(".results_summary").highlight(q_array[x]);
1397 $(".highlight_toggle").toggle();
1401 $(document).ready(function() {
1402 $('#bibliodescriptions').tabs();
1403 $(".branch-info-tooltip-trigger").uitooltip({
1404 position: { my: "left+15 center", at: "right center" },
1407 content: function(){
1408 var element = $(this).next("div");
1409 return element.html();
1412 [% IF ( TagsInputEnabled && loggedinusername ) %]
1413 $(".tag_add").click(function(){
1414 var thisid = $(this).attr("id");
1415 thisid = thisid.replace("tag_add","");
1417 $("#tagform"+thisid).show();
1418 $("#newtag"+thisid).focus();
1419 $("#newtag"+thisid+"_status").empty().hide();
1422 $(".cancel_tag_add").click(function(){
1423 var thisid = $(this).attr("id");
1424 thisid = thisid.replace("cancel","");
1425 $("#tagform"+thisid).hide();
1426 $("#tag_add"+thisid).show();
1427 $("#newtag"+thisid).val("");
1428 $("#newtag"+thisid+"_status").empty().hide();
1431 $(".tagbutton").click(function(){
1432 var thisid = $(this).attr("title");
1433 var tag = $("#newtag"+thisid).val();
1434 if (!tag || (tag == "")) {
1435 alert(MSG_NO_TAG_SPECIFIED);
1438 KOHA.Tags.add_tag_button(thisid, tag);
1443 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1445 [% IF ( item_level_itypes ) %]null,[% END %]
1447 [% IF ( OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
1448 [% IF ( itemdata_ccode ) %]null,[% END %]
1450 [% IF ( itemdata_enumchron ) %]null,[% END %]
1451 [% IF ( itemdata_uri ) %]null,[% END %]
1452 [% IF ( itemdata_copynumber ) %]null,[% END %]
1454 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1455 { "sType": "title-string" },
1456 [% IF ( OPACShowBarcode ) %]null,[% END %]
1457 [% IF holds_count.defined %]
1459 [% ELSIF show_priority %]
1462 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1466 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1467 q_array = query_desc.split(" ");
1468 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1470 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1471 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1472 [% IF ( GoogleJackets ) %]
1473 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1475 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1476 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1479 [% IF OpenLibraryCovers %]
1480 KOHA.OpenLibrary.GetCoverFromIsbn();
1482 [% IF OPACLocalCoverImages %]
1483 KOHA.LocalCover.GetCoverFromBibnumber(true);
1485 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1486 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1489 [% IF ( OpacBrowseResults && busc ) %]
1490 if (arrPagination.length > 0) {
1491 renderPagIndexList(pag_index_ini, $("#listResults"));
1493 $("#a_listResults").click(function(e) {
1494 if (arrPagination.length > 0) {
1496 var navigation = $(".results-pagination");
1497 if (navigation.css("display") == 'none') {
1499 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1500 $(this).attr('title',newtitle);
1501 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1504 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1505 $(this).attr('title',newtitle);
1509 $("#close_pagination").click(function(e) {
1511 var navigation = $(".results-pagination");
1515 [% IF ( OPACShelfBrowser ) %]
1517 (function prepareShelfBrowser(){
1519 $(".main").on("click",".close_shelf",function(e){
1521 $("#shelfbrowser").toggle();
1523 $(".main").on("click", "#browser_previous a", function(e){
1526 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1529 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1531 success: function(data){
1532 $("#shelfbrowser").replaceWith(data);
1533 [% IF ( GoogleJackets ) %]
1534 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1536 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1537 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1539 [% IF OpenLibraryCovers %]
1540 KOHA.OpenLibrary.GetCoverFromIsbn();
1542 [% IF OPACLocalCoverImages %]
1543 KOHA.LocalCover.GetCoverFromBibnumber(true);
1549 $(".main").on("click", "#browser_next a", function(e){
1552 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1555 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1557 success: function(data){
1558 $("#shelfbrowser").replaceWith(data);
1559 [% IF ( GoogleJackets ) %]
1560 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1562 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1563 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1565 [% IF OpenLibraryCovers %]
1566 KOHA.OpenLibrary.GetCoverFromIsbn();
1568 [% IF OPACLocalCoverImages %]
1569 KOHA.LocalCover.GetCoverFromBibnumber(true);
1576 [% IF ( OpacStarRatings != 'disable' ) %]
1577 // -----------------------------------------------------
1578 // star-ratings code
1579 // -----------------------------------------------------
1580 // hide 'rate' button if javascript enabled
1582 $('input[name="rate_button"]').remove();
1585 $(".auto-submit-star").rating({
1586 callback: function (value, link) {
1588 // if the new value equals the old value, dont execute callback...
1590 if ($("#rating_value").attr("value") != value) {
1594 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1595 rating_old_value: $("#rating_value").attr("value"),
1596 borrowernumber: "[% borrowernumber %]",
1597 biblionumber: "[% biblionumber %]",
1598 rating_value: value,
1600 }, function (data) {
1602 if (data.auth_status != 'ok') {
1603 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1605 $("#rating_value").val(data.rating_value);
1607 if (data.rating_value) {
1608 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1610 $("#rating_value_text").text('');
1613 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1622 // -----------------------------------------------------
1623 [% END # / IF ( OpacStarRatings != 'disable' )%]
1625 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1626 var isbn = $(".isbn:last").text().split(" ")[1];
1628 isbn = isbn.replace(/\W*$/, '');
1629 isbn = isbn.replace(/-/, '');
1631 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1632 // Use Microsoft XDR for IE version 8 or above
1633 var xdr = new XDomainRequest();
1634 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1635 xdr.onload = function() {
1636 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1637 eval(json); // json is now a regular JSON object
1638 parseIDBJSON(json); // parse using same function as for jQuery's success event
1642 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1647 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1650 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1651 function parseIDBJSON( json ) {
1652 if(json.total_results > 0 && json.book.rating > 0){
1653 var isbn = $(".isbn:last").text().split(" ")[1];
1654 isbn = isbn.replace(/\W+/g, '');
1656 [% IF ( IDreamBooksReadometer ) %]
1657 $(".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>');
1660 [% IF ( IDreamBooksReviews ) %]
1661 //build new tab for critic reviews
1662 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1664 //append happy-sad cloud review
1666 $("#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>");
1668 //insert data into Book reviews tab
1669 $.each(json.book.critic_reviews, function(){
1670 $("#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>");
1672 $("#seemoreidb").attr('href', json.book.detail_link);
1673 $("#tab_idb_critic_reviews").show();
1677 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1679 [% IF ( OpacBrowseResults && busc ) %]
1681 var totalPagItemList = 10;
1683 function rewindList()
1685 var ul = $("#listResults");
1686 var li_ini = ul.children(':first').next();
1687 var index_ini = pag_index_ini;
1689 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1691 var li_end = ul.children(':last').prev();
1692 var index_end = arrPagination.length - 1;
1694 index_end = parseInt(li_end.attr("class").substring(7), 10);
1696 if (index_ini > pag_index_ini) {
1697 renderPagIndexList(index_ini - 1, ul, false);
1698 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1702 function forwardList()
1704 var ul = $("#listResults");
1705 var li_ini = ul.children(':first').next();
1706 var index_ini = pag_index_ini;
1708 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1710 var li_end = ul.children(':last').prev();
1711 var index_end = arrPagination.length - 1;
1713 index_end = parseInt(li_end.attr("class").substring(7), 10);
1715 if (index_end < arrPagination.length - 1) {
1716 renderPagIndexList(index_ini + 1, ul, false);
1717 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1721 function renderPagIndexList(index, ul)
1723 var $kids = ul.children("li");
1724 if ($kids.length > 0) {
1725 $kids.each(function() {
1731 var ini = index - 1;
1732 var end = ini + totalPagItemList - 1;
1734 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1738 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1739 if (arrPagination[i] == undefined) continue;
1740 var li = $("<li />");
1741 if (arrPagination[i].url != "") {
1742 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1743 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1744 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1745 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1746 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1747 html += ">" + i + "</a>";
1750 li.attr("class", "li_pag_" + i);
1755 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1756 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>":"»";
1759 }//renderPagIndexList
1762 function renderPagination(index, total, ul, highlIndex)
1764 for (var i = pag_index_ini; i <= total; i++) {
1765 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1766 $("#li_pag_" + i).remove();
1769 for (var i = index; i <= total && j < totalPagItemList; i++) {
1770 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1771 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1772 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1773 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1775 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1779 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1780 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1781 $("#li_pag_" + i).remove();
1782 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1783 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1784 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1790 [% END # / IF ( OpacBrowseResults && busc ) %]
1794 [% IF OPACPopupAuthorsSearch %]
1795 <script type="text/javascript">
1797 function showAuthors(element){
1798 var authornumber = $(element).attr("data-count");
1800 // Check checkbox related to the clicked link
1801 $("#authorsList input[type='checkbox']").attr('checked', false);
1802 $("#author_"+authornumber).attr('checked', true);
1804 makeAuthorRequest();
1807 function checkAll(checkbox, elem) {
1808 var check = $(checkbox).attr('checked') ? true : false;
1809 $(elem).find("input[type='checkbox']").attr('checked', check);
1810 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1813 function makeAuthorRequest(){
1816 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1817 values.push($(this).val());
1820 if (values.length > 0) {
1821 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1822 $("#validAuthorSearch").attr("href", request);
1824 $("#validAuthorSearch").removeAttr("href");
1830 function showSubjects(element, subjectnumber, subfieldnumber){
1832 // Check checkbox related to the clicked link
1833 $("#subjectsList input[type='checkbox']").attr('checked', false);
1834 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1836 makeSubjectRequest();
1840 function makeSubjectRequest() {
1842 $("#subjectsList > ul").each(function() {
1843 var all_checked = true;
1844 var local_values = [];
1845 $(this).find('input[type="checkbox"]').each(function() {
1846 if($(this).attr('checked')) {
1847 local_values.push($(this).val());
1849 all_checked = false;
1852 var authid = $(this).attr('data-authid');
1853 if(all_checked && authid) {
1854 values.push('an:' + authid);
1856 values = values.concat(local_values);
1859 if(values.length > 0) {
1860 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1861 $("#validSubjectSearch").attr('href', request);
1863 $("#validSubjectSearch").removeAttr("href");
1866 $(document).ready(function() {
1867 $("a.showauthors").click(function(e){
1875 [% END # / IF OPACPopupAuthorsSearch %]