5 [% USE AuthorisedValues %]
6 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
7 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
9 [% ShowCourseReservesHeader = 0 %]
10 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
11 [% FOREACH ITEM_RESULT IN itemloop %]
12 [% IF ITEM_RESULT.course_reserves %]
13 [% FOREACH r IN ITEM_RESULT.course_reserves %]
14 [% IF r.course.enabled == 'yes' %]
15 [% ShowCourseReservesHeader = 1 %]
22 [% IF ( using_https ) %]
23 [% SET protocol = "https://" %]
25 [% SET protocol = "http://" %]
27 [% INCLUDE 'doc-head-open.inc' %]
28 <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>
29 [% INCLUDE 'doc-head-close.inc' %]
31 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
33 [% IF ( OpacStarRatings != 'disable' ) %]
34 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
36 [% INCLUDE greybox.inc %]
38 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
39 [% INCLUDE 'masthead.inc' %]
42 <ul class="breadcrumb">
43 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
44 <li><a href="#">Details for: [% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</a></li>
47 <div class="container-fluid">
48 <div class="row-fluid">
50 <div id="catalogue_detail_biblio" class="maincontent">
53 [% IF ( OPACLocalCoverImages ) %]
54 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
56 [% IF ( OPACAmazonCoverImages ) %]
57 [% IF ( OPACURLOpenInNewWindow ) %]
58 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank" rel="noreferrer">
60 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
62 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
65 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
66 [% IF ( content_identifier_exists ) %]
67 [% IF ( using_https ) %]
68 <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" />
70 <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" />
74 <span class="no-image">No cover image available</span>
78 [% IF ( GoogleJackets ) %]
79 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
81 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
82 [% coce_id = normalized_ean || normalized_isbn %]
83 <div style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
85 [% IF OpenLibraryCovers %]
86 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
88 [% bt_id = ( normalized_upc || normalized_isbn ) %]
89 [% IF ( BakerTaylorEnabled && bt_id ) %]
90 [% IF BakerTaylorBookstoreURL %]
91 [% IF ( OPACURLOpenInNewWindow ) %]
92 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
94 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
97 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
100 </div><!-- / #bookcover -->
102 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
103 [% IF ( ocoins ) # COinS / Openurl %]
104 <span class="Z3988" title="[% ocoins %]"></span>
108 <span class="view current-view"><span id="Normalview">Normal view</span></span>
109 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
110 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
112 [% IF ( OPACXSLTDetailsDisplay ) %]
115 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
116 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
118 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
120 [% IF ( description ) %]
126 [% IF ( unititle ) %], [% unititle %][% END %]
129 [% IF ( MARCAUTHORS ) %]
130 <div class="results_summary">
131 <span class="label">Additional authors:</span>
132 [% IF OPACPopupAuthorsSearch %]
133 <!-- Author search term selection modal -->
134 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
135 <div class="modal-header">
136 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
137 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
139 <div class="modal-body">
140 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
141 <ul id="authorsList">
142 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
144 [% IF (MARCAUTHOR.authoritylink) %]
145 <input type="checkbox" name="checkbox"
146 id="author_[% loop.count %]"
147 onclick="makeAuthorRequest()"
148 value="an:[% MARCAUTHOR.authoritylink %]" />
150 <input type="checkbox" name="checkbox"
151 id="author_[% loop.count %]"
152 onclick="makeAuthorRequest()"
153 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
155 <label for="author_[% loop.count %]">
156 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
161 [% END # /FOREACH MARCAUTHORS %]
164 <div class="modal-footer">
165 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
166 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
169 [% END # /OPACPopupAuthorsSearch %]
171 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
172 [% authorsloop = loop %]
173 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
174 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
175 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
176 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
177 class="showauthors" data-count="[% authorsloop.count %]"
178 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>
180 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
181 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>
184 [% IF (MARCAUTHOR.authoritylink) %]
185 <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>
187 [% IF IDREF and MARCAUTHOR.unimarc3 %]
188 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
190 [% UNLESS ( loop.last ) %]|[% END %]
191 [% END # /FOREACH MARCAUTHORS %]
193 [% END # IF MARCAUTHORS %]
195 [% IF ( MARCSERIES ) %]
196 <span class="results_summary series"><span class="label">Series:</span>
197 [% FOREACH MARCSERIE IN MARCSERIES %]
198 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
199 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
200 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
202 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
203 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
206 [% UNLESS ( loop.last ) %]|[% END %]
207 [% END # / FOREACH MARCSERIES %]
209 [% END # /MARCSERIES %]
211 [% IF ( editionstatement ) %]
212 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
214 [% IF ( publishercode ) %]
215 <span class="results_summary publisher"><span class="label">Published by :</span>
216 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
217 [% publishercode |html %]
218 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
223 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
226 [% IF ( MARCISBNS ) %]
227 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
229 [% IF ( normalized_isbn ) %]
230 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
235 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
238 [% IF ( collectiontitle ) %]
239 <span class="results_summary collection"><span class="label">Collection: </span>
240 [% collectiontitle %]
241 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
242 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
247 [% IF ( unititles ) %]
248 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
249 [% FOREACH unititle IN unititles %]
250 [% unititle.unititle %] ;
255 [% IF ( MARCSUBJCTS ) %]
256 <div class="results_summary subject">
257 <span class="label">Subject(s):</span>
259 [% IF OPACPopupAuthorsSearch %]
260 <!-- Search term selection modal -->
261 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
262 <div class="modal-header">
263 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
264 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
266 <div id="subjectsList" class="modal-body">
267 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
268 <label for="all_subjects">
271 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
272 [% subjectsloop = loop %]
273 [% IF MARCSUBJCT.authoritylink %]
274 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
276 <ul id="subjectsList[% loop.count %]">
278 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
280 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
281 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
289 <div class="modal-footer">
290 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
291 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
294 [% END # /OPACPopupAuthorsSearch%]
296 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
297 [% subjectsloop = loop %]
298 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
299 [% SUBFIELD.separator %]
300 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
301 <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>
303 <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>
306 [% IF (MARCSUBJCT.authoritylink) %]
307 <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>
309 [% UNLESS ( loop.last ) %] | [% END %]
310 [% END # / FOREACH MARCSUBJCTS %]
312 [% ELSE # /IF MARCSUBJCTS %]
313 [% 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 %]
316 [% IF ( copyrightdate ) %]
317 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
320 [% UNLESS ( item_level_itypes ) %]
322 <img src="[% imageurl %]" alt="" />
324 <span class="results_summary itemtype"><span class="label">Item type: </span>
325 [% IF ( description ) %]
333 [% IF ( MARCURLS ) %]
334 <div class="results_summary online_resources"><span class="label">Online resources:</span>
336 [% FOREACH MARCurl IN MARCURLS %]
337 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
339 [% IF ( OPACURLOpenInNewWindow ) %]
340 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
341 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
343 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
346 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
347 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
349 <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 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
368 [% IF ( LibraryThingForLibrariesID ) %]
369 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
370 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
371 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
372 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
374 <span class="results_summary">
375 <span class="label">Reviews from LibraryThing.com:</span>
376 <span style="display: block;" class="ltfl_reviews"></span>
378 [% END # / LibraryThingForLibrariesID %]
380 <!--This grabs all of the lists a bib record appears in -->
381 [% IF shelves.count %]
382 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
383 [% FOREACH s IN shelves %]
384 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
385 [% IF ( loop.last ) %][% ELSE %]|[% END %]
390 [% IF ( TagsShowEnabled ) %]
391 <div class="results_summary tags">
393 <span class="label">Tags from this library:</span>
395 [% FOREACH TagLoo IN TagLoop %]
396 <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>
397 [% IF ( loop.last ) %][% ELSE %], [% END %]
402 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
404 [% IF ( TagsInputEnabled ) %]
405 [% IF ( loggedinusername ) %]
406 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
407 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
408 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
409 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
410 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
412 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
415 <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a>
417 <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>
419 [% END # / IF TagsInputEnabled %]
421 [% END # /IF TagsShowEnabled %]
423 [% IF ( SyndeticsEnabled ) %]
424 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
425 <span class="results_summary">
426 <span class="label">Series information:</span>
427 [% IF ( using_https ) %]
428 <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>
430 <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>
433 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
434 [% IF ( SyndeticsAVPROFILEExists ) %]
435 <span class="results_summary">
436 <span class="label">Audiovisual profile:</span>
437 [% IF ( using_https ) %]
438 <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>
440 <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>
443 [% END # / IF SyndeticsAVPROFILEExists %]
445 [% IF ( SyndeticsFICTIONExists ) %]
446 <span class="results_summary">
447 <span class="label">Fiction notes:</span>
448 [% IF ( using_https ) %]
449 <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>
451 <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>
454 [% END # / IF SyndeticsFICTIONExists %]
456 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
457 <span class="results_summary">
458 <span class="label">Awards:</span>
459 [% IF ( using_https ) %]
460 <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>
462 <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>
465 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
466 [% END # / IF SyndeticsEnabled%]
468 [% IF ( OpacStarRatings != 'disable' ) %]
469 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
470 <div class="results_summary ratings">
472 [% SET rating_avg = ratings.get_avg_rating() %]
473 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
474 [% FOREACH i IN [ 1 2 3 4 5 ] %]
475 [% IF rating_avg_int == i && borrowernumber %]
476 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
477 [% ELSIF rating_avg_int == i %]
478 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
479 [% ELSIF borrowernumber %]
480 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
482 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
486 <!-- define some hidden vars for ratings -->
488 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
489 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
491 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
494 <span id="rating_value_text">your rating: [% my_rating.rating_value %], </span>
496 <span id="rating_value_text"></span>
499 <span id="rating_text">average rating: [% rating_avg %] ([% ratings.count %] votes)</span>
502 [% END # / IF OpacStarRatings != 'disable' %]
504 [% IF ( BakerTaylorContentURL ) %]
505 <span class="results_summary">
506 <span class="label">Enhanced content: </span>
507 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
509 [% END # / IF BakerTaylorContentURL %]
511 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
512 [% IF ( NovelistSelectView == 'above') %]
513 <span class="results_summary NovelistSelect" style="display:none;">
514 <span class="label">Novelist Select: </span>
515 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
518 [% END # / IF NovelistSelectProfile %]
520 [% IF ( Babeltheque ) %]
521 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
522 <div id="BW_notes"></div>
523 <div id="BW_critiques"></div>
524 <div id="BW_critiques_pro"></div>
525 <div id="BW_citations"></div>
526 [% END # / IF Babeltheque%]
528 </div> <!-- / #catalogue_detail_biblio -->
530 <div id="bibliodescriptions" class="toptabs">
533 [% IF ( defaulttab == 'holdings' ) %]
534 <li id="tab_holdings" class="ui-tabs-active">
536 <li id="tab_holdings">
538 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
540 [% IF (SeparateHoldings) %]
541 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
543 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
544 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
546 [% IF ( SYNDETICS_TOC ) %]
547 <li id="tab_toc"> <a href="#toc">TOC</a></li>
549 [% IF ( SyndeticsEnabled ) %]
550 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
551 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
553 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
554 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
555 [% IF ( LibraryThingForLibrariesID ) %]
556 <li id="tab_LTFLreviews">
557 [% IF ( using_https ) %]
558 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
559 <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>
561 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
562 <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>
567 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
568 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
570 [% END # / IF SyndeticsEnabled %]
572 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
573 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
574 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
577 [% IF ( subscriptionsnumber ) %]
578 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
579 <a href="#subscriptions">Subscriptions</a>
583 [% IF Koha.Preference( 'reviewson' ) == 1 %]
584 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
587 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
588 [% IF ( NovelistSelectView == 'tab') %]
589 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
593 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
594 <li id="tab_editions"><a href="#editions">Editions</a></li>
597 [% IF ( serialcollection ) %]
598 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
599 <a href="#serialcollection">Serial collection</a>
603 [% IF ( OPACLocalCoverImages && localimages.size ) %]
604 <li id="tab_images"><a href="#images">Images</a></li>
607 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
608 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
611 [% IF ( IDreamBooksReviews ) %]
612 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
616 [% IF ( serialcollection ) %]
617 <div id="serialcollection">
618 <table id="serialcollectiont" class="table table-bordered table-striped">
621 <th id="serial_library">Library</th>
622 <th id="serial_collection">Serial collection</th>
623 <th id="serial_itemcallnumber">Item call number</th>
627 [% FOREACH serialcollection IN serialcollections %]
629 <td>[% serialcollection.branch %]</td>
630 <td>[% serialcollection.text %]</td>
631 <td>[% serialcollection.itemcallnumber %]</td>
637 [% END # / IF serialcollection %]
641 [% IF too_many_items %]
642 <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>
643 [% ELSIF ( itemloop.size ) %]
644 [% INCLUDE items_table items=itemloop tab="holdings" %]
645 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
646 [% IF acquisition_details.total_quantity == 1 %]
649 [% acquisition_details.total_quantity %] items are on order.
652 [% IF holds_count.defined || priority %]
654 [% IF holds_count.defined %]
655 Total holds: [% holds_count %]
658 [% IF holds_count.defined %]
659 (priority [% priority %])
661 Overall queue priority: [% priority %]
667 [% IF ( ALTERNATEHOLDINGS ) %]
668 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
669 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
672 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
673 [% IF acquisition_details.total_quantity == 1 %]
676 [% acquisition_details.total_quantity %] items are on order.
679 <div id="noitems">No physical items for this record</div>
682 [% END # IF itemloop.size %]
683 [% PROCESS 'shelfbrowser.inc' %]
684 [% INCLUDE shelfbrowser tab='holdings' %]
685 <br style="clear:both;" />
686 </div> <!-- / #holdings -->
688 [% IF (SeparateHoldings) %]
689 <div id="otherholdings">
690 [% IF (otheritemloop.size) %]
691 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
695 [% INCLUDE shelfbrowser tab='otherholdings' %]
697 [% END # / SeparateHoldings %]
699 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
700 <div id="descriptions">
701 <div class="content_set">
703 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
704 <h4>Enhanced descriptions from Syndetics:</h4>
705 <p>[% SYNDETICS_SUMMARY %]</p>
708 [% IF ( MARCNOTES ) %]
710 [% FOREACH MARCNOTE IN MARCNOTES %]
712 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
713 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
715 [% MARCNOTE.marcnote FILTER html_line_break %]
727 </div> <!-- / #descriptions -->
728 [% END # / IF MARCNOTES || notes %]
730 [% IF ( SyndeticsEnabled ) %]
731 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
733 <div class="content_set">
734 <h3>Table of contents provided by Syndetics</h3>
736 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
737 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
742 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
744 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
746 <div class="content_set">
747 <h3>Excerpt provided by Syndetics</h3>
748 [% SYNDETICS_EXCERPT %]
751 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
753 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
755 <div class="content_set">
756 <h3>Reviews provided by Syndetics</h3>
757 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
758 [% IF ( SYNDETICS_REVIEW.title ) %]
759 <h4>[% SYNDETICS_REVIEW.title %]</h4>
760 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
762 [% IF ( review.content ) %]
771 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
773 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
775 <div class="content_set">
776 <h3>Author notes provided by Syndetics</h3>
777 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
778 [% IF ( SYNDETICS_ANOTE.content ) %]
779 [% SYNDETICS_ANOTE.content %]
784 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
785 [% END # / IF SyndeticsEnabled %]
787 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
788 <div id="NovelistSelect" >
789 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
791 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
793 [% IF ( subscriptionsnumber ) %]
794 <div id="subscriptions">
795 <h2>This is a serial</h2>
796 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
797 [% FOREACH subscription IN subscriptions %]
798 [% IF ( subscription.branchcode ) %]
799 <h3>At library: [% Branches.GetName( subscription.branchname ) %]</h3>
801 [% IF ( subscription.branchcode ) %]
802 <h3>At library: [% subscription.branchcode %]</h3>
805 [% IF ( subscription.closed ) %]
806 <p>This subscription is closed.</p>
808 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
809 [% IF ( subscription.subscriptionnotes ) %]
810 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
812 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
813 [% IF ( subscription.missinglist ) %]
814 <p>Missing issues: [% subscription.missinglist %] </p>
816 [% IF ( subscription.opacnote ) %]
817 <p>[% subscription.opacnote FILTER html_line_break %]</p>
819 [% IF ( subscription.callnumber ) %]
820 <p>Call number: [% subscription.callnumber %]</p>
822 [% IF ( subscription.latestserials ) %]
823 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
824 <table class="table table-bordered table-striped">
831 [% FOREACH latestserial IN subscription.latestserials %]
833 <td>[% latestserial.serialseq %]</td>
834 <td>[% latestserial.planneddate %]</td>
836 [% IF (latestserial.status1 ) %]Expected[% END %]
837 [% IF (latestserial.status2 ) %]Arrived[% END %]
838 [% IF (latestserial.status3 ) %]Late[% END %]
839 [% IF (latestserial.status4 ) %]Missing[% END %]
840 [% IF (latestserial.status41 ) %]Missing (never received)[% END %]
841 [% IF (latestserial.status42 ) %]Missing (sold out)[% END %]
842 [% IF (latestserial.status43 ) %]Missing (damaged)[% END %]
843 [% IF (latestserial.status44 ) %]Missing (lost)[% END %]
844 [% IF (latestserial.status5 ) %]Not issued[% END %]
845 [% IF (latestserial.status6 ) %]Delete[% END %]
846 [% IF (latestserial.status7 ) %]Claimed[% END %]
847 [% IF (latestserial.status8 ) %]Stopped[% END %]
849 <td>[% latestserial.notes %]</td>
851 [% END # / FOREACH latestserials %]
853 [% END # / IF subscription.latestserials %]
854 [% END # / FOREACH subscriptions %]
855 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
856 </div> <!-- / #subscriptions -->
857 [% END # IF subscriptionsnumber %]
859 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
860 <!-- Library Thing for Libraries Content -->
861 <div id="LFTLSimilarItems">
862 <div class="content_set">
863 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
864 <!-- but breaks Xhtml validation -->
865 <!-- <span class="results_summary">-->
866 <div id="ltfl_related"></div>
867 <div id="ltfl_similars"></div>
871 <div id="LTFLTagBrowse">
872 <div class="content_set">
873 <!-- <span class="results_summary"> -->
874 <div id="ltfl_tagbrowse" class="ltfl"></div>
878 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
880 [% IF Koha.Preference( 'reviewson' ) == 1 %]
882 <div id="newcomment"></div>
884 [% FOREACH review IN reviews %]
885 [% IF review.borrowernumber == borrowernumber %]
886 <div class="commentline yours" id="c[% review.reviewid %]">
887 [% IF ( review.avatarurl ) %]
888 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
890 [% IF review.approved %]
891 <h5>Your comment</h5>
893 <h5>Your comment (preview, pending approval)</h5>
895 <small>[% review.datereviewed | $KohaDates %]</small>
897 [% FILTER html_break %]
898 [% review.review |html %]
900 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
904 <div class="commentline">
905 [% IF ( ShowReviewer != "none" ) %]
906 [% IF ( review.avatarurl ) %]
907 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
909 [% SWITCH ShowReviewer %]
911 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
913 <h5>Comment by [% review.firstname %]</h5>
915 <h5>Comment by [% review.surname %]</h5>
916 [% CASE 'firstandinitial' %]
917 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
918 [% CASE 'username' %]
919 <h5>Comment by [% review.userid %]</h5>
921 <small>[% review.datereviewed | $KohaDates %]</small>
922 [% ELSIF ( ShowReviewer == "none") %]
923 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
924 [% END # / IF ShowReviewer != "none"%]
926 [% FILTER html_break %]
927 [% review.review |html %]
930 </div> <!-- / .commentline -->
932 [% END # / FOREACH reviews %]
934 <p>There are no comments for this item.</p>
935 [% END # / IF reviews %]
937 [% IF ( loggedinusername ) %]
938 [% UNLESS ( loggedincommenter ) %]
939 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
940 Post your comments on this item.
944 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
945 [% END # / IF loggedinusername %]
946 </div> <!-- / #comments -->
947 [% END # / IF reviewson %]
949 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
951 <h4>Other editions of this work</h4>
952 <table class="table table-bordered table-striped">
953 [% FOREACH XISBN IN XISBNS %]
956 [% IF ( OPACAmazonCoverImages ) %]
957 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
960 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
961 [% IF ( XISBN.content_identifier_exists ) %]
962 [% IF ( using_https ) %]
963 <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="" />
965 <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="" />
968 <span class="no-image">No cover image available</span>
969 [% END # / IF XISBN.content_identifier_exists %]
970 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
973 [% UNLESS ( item_level_itypes ) %]
974 <td>[% XISBN.description %]</td>
976 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
977 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
978 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
979 [% IF ( XISBN.publishercode ) %]
980 <p>[% XISBN.publishercode |html %]
981 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
982 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
983 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
988 [% END # / FOREACH XISBNS %]
990 </div> <!-- / #editions -->
991 [% END # / IF OPACFRBRizeEditions && XISBNS %]
993 [% IF ( HTML5MediaEnabled ) %]
994 <div id="html5media">
995 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
997 <[% HTML5MediaParent %] controls preload=none>
998 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
999 [[% HTML5MediaParent %] tag not supported by your browser.]
1000 </[% HTML5MediaParent %]>
1004 [% END # / IF HTML5MediaEnabled %]
1006 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1008 <p>Click on an image to view it in the image viewer</p>
1009 [% FOREACH image IN localimages %]
1011 <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>
1014 </div><!-- / #images -->
1015 [% END # / IF OPACLocalCoverImages && localimages.size %]
1017 [% IF ( IDreamBooksReviews ) %]
1018 <div id="idb_critic_reviews">
1019 <div id="idb_review_snippets"></div>
1020 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1023 </div> <!-- / #bibliodescriptions -->
1025 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1026 <div id="NovelistSelect">
1027 <h3>Novelist Select</h3>
1028 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]"></div>
1032 [% IF ( Babeltheque ) %]
1034 <div id="BW_etiquettes"></div>
1035 <div id="BW_suggestions"></div>
1037 <div class="clearfix"></div>
1039 <div id="BW_podcasts"></div>
1041 <div class="clearfix"></div>
1043 <div id="BW_videos"></div>
1045 [% END # / IF Babeltheque %]
1047 [% INCLUDE "openlibrary-readapi.inc" bib = {
1048 normalized_isbn => normalized_isbn,
1050 normalized_oclc => normalized_oclc
1053 </div> <!-- /.span9 -->
1056 <div id="ulactioncontainer">
1058 [% IF ( OpacBrowseResults && busc ) %]
1059 <div class="nav_results">
1060 <div class="l_Results">
1061 [% IF ( listResults ) %]
1062 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1064 <span>Browse results</span>
1067 <ul class="pg_menu clearfix">
1068 <li class="left_results">
1069 [% IF ( previousBiblionumber ) %]
1070 <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>
1072 <span>Previous</span>
1075 [%# busc is already URI encoded %]
1076 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1077 <li class="right_results">
1078 [% IF ( nextBiblionumber ) %]
1079 <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>
1085 [% IF ( listResults ) %]
1086 <div class="results-pagination">
1087 <div class="nav_pages">
1088 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1089 <ul id="listResults"></ul>
1091 <div class="pagination_list">
1092 <ul id="ul_pagination_list"></ul>
1097 [% END # / IF OpacBrowseResults && busc %]
1099 [% INCLUDE 'opac-detail-sidebar.inc' %]
1101 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1102 <div id="NovelistSelect">
1103 <h4>Novelist Select</h4>
1104 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
1108 [% IF ( Babeltheque ) %]
1109 <div class="babeltheque_adds">
1110 <div id="BW_critiques_aj"></div>
1111 <div id="BW_citations_aj"></div>
1115 [% IF ( SocialNetworks ) %]
1116 <div id="social_networks" class="clearfix">
1118 <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>
1119 <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>
1120 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1121 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1122 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1123 <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>
1126 </div> <!-- / .ulactioncontainer -->
1127 </div> <!-- / .span4 -->
1128 </div> <!-- / .row-fluid -->
1129 <div class="row-fluid">
1130 [% IF ( LibraryThingForLibrariesID ) %]
1131 [% IF ( using_https ) %]
1132 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1133 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1134 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1136 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1137 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1138 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1139 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1143 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1144 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1147 [% IF ( Babeltheque ) %]
1148 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1150 </div> <!-- / .row-fluid -->
1151 </div> <!-- / .container-fluid -->
1152 </div> <!-- / .main -->
1154 [% INCLUDE 'opac-bottom.inc' %]
1156 [%# End of template %]
1158 [% BLOCK items_table %]
1159 <table class="holdingst table table-bordered table-striped">
1162 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1163 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1164 <th id="item_current_location" class="item_location">Current location</th>
1166 [% UNLESS ( singleBranchMode ) %]
1167 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1168 <th id="item_home_location" class="item_location">Home library</th>
1171 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1172 <th id="item_callnumber" class="call_no">Call number</th>
1173 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1174 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1175 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1176 <th id="item_status" class="status">Status</th>
1177 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1178 <th id="item_datedue" class="date_due">Date due</th>
1179 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1180 [% IF holds_count.defined %]
1181 <th id="item_holds">Item holds</th>
1182 [% ELSIF show_priority %]
1183 <th id="item_priority">Item hold queue priority</th>
1185 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1189 [% FOREACH ITEM_RESULT IN items %]
1190 [% IF ITEM_RESULT.this_branch %]
1191 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1193 <tr vocab="http://schema.org/" typeof="Offer">
1195 [% IF ( item_level_itypes ) %]
1197 [% UNLESS ( noItemTypeImages ) %]
1198 [% IF ( ITEM_RESULT.imageurl ) %]
1199 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1202 [% ITEM_RESULT.description %]
1205 [% UNLESS singleBranchMode %]
1206 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1207 <td class="location" property="seller">
1208 <link property="itemOffered" href="#record" />
1209 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1210 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1211 [% IF ( ITEM_RESULT.branchurl ) %]
1212 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1214 <span>[% ITEM_RESULT.branchname %]</span>
1217 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1219 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1220 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1226 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1227 <td class="location" property="seller">
1228 <link property="itemOffered" href="#record" />
1229 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1230 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1231 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1232 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1233 [% IF ( home_branch_url ) %]
1234 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1236 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1239 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1242 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1244 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1245 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1252 <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1255 [% IF ( itemdata_ccode ) %]
1256 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1258 <td class="call_no" property="sku">
1259 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1260 [% ITEM_RESULT.itemcallnumber %]
1261 [% IF ( OPACShelfBrowser ) %]
1262 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1263 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1265 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1270 [% IF ( itemdata_enumchron ) %]
1271 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1273 [% IF ( itemdata_uri ) %]
1275 [% IF ITEM_RESULT.uri %]
1276 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1277 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1278 <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblionumber |url %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1280 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblionumber |url %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1284 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1285 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1287 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1293 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1294 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1295 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1296 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1297 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1298 [% IF holds_count.defined || show_priority %]
1299 <td class="holds_count">
1300 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1301 [% IF ITEM_RESULT.priority %]
1302 [% IF holds_count.defined %]
1303 (priority [% ITEM_RESULT.priority %])
1305 [% ITEM_RESULT.priority %]
1310 [% IF ShowCourseReservesHeader %]
1312 [% IF ITEM_RESULT.course_reserves %]
1313 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1314 [% IF r.course.enabled == 'yes' %]
1316 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1317 [% r.course.course_name %]
1318 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1319 [% IF r.course.section %] [% r.course.section %] [% END %]
1320 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1327 [% END # /IF ShowCourseReservesHeader %]
1332 [% END %][%# end of items_table block %]
1334 [% BLOCK jsinclude %]
1335 [% INCLUDE 'datatables.inc' %]
1336 [% IF ( SocialNetworks ) %]
1337 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1339 {lang: '[% lang %]'}
1342 <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>
1344 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1346 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1348 <script type="text/javascript">
1351 [% IF ( OpacBrowseResults && busc ) %]
1352 var arrPagination = new Array();
1353 var pag_index_ini = [% indexPag %];
1354 [% IF ( listResults ) %]
1355 [% FOREACH listResult IN listResults %]
1356 arrPagination[[% listResult.index %]] = {
1357 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1358 title:"[% listResult.title|remove('\n')|html %]",
1359 author:"[% listResult.author|html %]",
1360 biblionumber:[% listResult.biblionumber %]
1366 [% IF ( OpacHighlightedWords ) %]
1367 var q_array = new Array(); // holds search terms if available
1369 function highlightOff() {
1370 $("#catalogue_detail_biblio").removeHighlight();
1371 $(".highlight_toggle").toggle();
1373 function highlightOn() {
1375 for (x in q_array) {
1376 if ( q_array[x].length > 0 ) {
1377 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1378 q_array[x] = q_array[x].toLowerCase();
1379 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1380 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1381 $(".title").highlight(q_array[x]);
1382 $(".author").highlight(q_array[x]);
1383 $(".results_summary").highlight(q_array[x]);
1387 $(".highlight_toggle").toggle();
1391 $(document).ready(function() {
1392 $('#bibliodescriptions').tabs();
1393 $(".branch-info-tooltip-trigger").uitooltip({
1394 position: { my: "left+15 center", at: "right center" },
1397 content: function(){
1398 var element = $(this).next("div");
1399 return element.html();
1402 [% IF ( TagsInputEnabled && loggedinusername ) %]
1403 $(".tag_add").click(function(){
1404 var thisid = $(this).attr("id");
1405 thisid = thisid.replace("tag_add","");
1407 $("#tagform"+thisid).show();
1408 $("#newtag"+thisid).focus();
1409 $("#newtag"+thisid+"_status").empty().hide();
1412 $(".cancel_tag_add").click(function(){
1413 var thisid = $(this).attr("id");
1414 thisid = thisid.replace("cancel","");
1415 $("#tagform"+thisid).hide();
1416 $("#tag_add"+thisid).show();
1417 $("#newtag"+thisid).val("");
1418 $("#newtag"+thisid+"_status").empty().hide();
1421 $(".tagbutton").click(function(){
1422 var thisid = $(this).attr("title");
1423 var tag = $("#newtag"+thisid).val();
1424 if (!tag || (tag == "")) {
1425 alert(MSG_NO_TAG_SPECIFIED);
1428 KOHA.Tags.add_tag_button(thisid, tag);
1433 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1434 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1435 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1436 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1437 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1438 var default_order_index = 1;
1439 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1440 var default_order_index = 2;
1442 var default_order_index = 0;
1444 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1446 [% IF ( item_level_itypes ) %]null,[% END %]
1447 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]null,[% END %]
1448 [% UNLESS ( singleBranchMode ) %]
1449 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
1451 [% IF ( itemdata_ccode ) %]null,[% END %]
1453 [% IF ( itemdata_enumchron ) %]null,[% END %]
1454 [% IF ( itemdata_uri ) %]null,[% END %]
1455 [% IF ( itemdata_copynumber ) %]null,[% END %]
1457 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1458 { "sType": "title-string" },
1459 [% IF ( OPACShowBarcode ) %]null,[% END %]
1460 [% IF holds_count.defined %]
1462 [% ELSIF show_priority %]
1465 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1467 "aaSorting": [[ default_order_index, 'asc' ]]
1470 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1471 q_array = query_desc.split(" ");
1472 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1474 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1475 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1476 [% IF ( GoogleJackets ) %]
1477 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1479 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1480 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1483 [% IF OpenLibraryCovers %]
1484 KOHA.OpenLibrary.GetCoverFromIsbn();
1486 [% IF OPACLocalCoverImages %]
1487 KOHA.LocalCover.GetCoverFromBibnumber(true);
1489 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1490 novSelect.loadContentForQuery(
1492 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1493 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1496 '[% NovelistSelectProfile %]',
1497 '[% NovelistSelectPassword %]',
1499 if ( d.length > 0 ){ //If no content
1500 $(".NovelistSelect").show();
1505 [% IF ( OpacBrowseResults && busc ) %]
1506 if (arrPagination.length > 0) {
1507 renderPagIndexList(pag_index_ini, $("#listResults"));
1509 $("#a_listResults").click(function(e) {
1510 if (arrPagination.length > 0) {
1512 var navigation = $(".results-pagination");
1513 if (navigation.css("display") == 'none') {
1515 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1516 $(this).attr('title',newtitle);
1517 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1520 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1521 $(this).attr('title',newtitle);
1525 $("#close_pagination").click(function(e) {
1527 var navigation = $(".results-pagination");
1531 [% IF ( OPACShelfBrowser ) %]
1533 (function prepareShelfBrowser(){
1535 $(".main").on("click",".close_shelf",function(e){
1537 $("#shelfbrowser").toggle();
1539 $(".main").on("click", "#browser_previous a", function(e){
1542 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1545 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1547 success: function(data){
1548 $("#shelfbrowser").replaceWith(data);
1549 [% IF ( GoogleJackets ) %]
1550 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1552 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1553 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1555 [% IF OpenLibraryCovers %]
1556 KOHA.OpenLibrary.GetCoverFromIsbn();
1558 [% IF OPACLocalCoverImages %]
1559 KOHA.LocalCover.GetCoverFromBibnumber(true);
1565 $(".main").on("click", "#browser_next a", function(e){
1568 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1571 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1573 success: function(data){
1574 $("#shelfbrowser").replaceWith(data);
1575 [% IF ( GoogleJackets ) %]
1576 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1578 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1579 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1581 [% IF OpenLibraryCovers %]
1582 KOHA.OpenLibrary.GetCoverFromIsbn();
1584 [% IF OPACLocalCoverImages %]
1585 KOHA.LocalCover.GetCoverFromBibnumber(true);
1592 [% IF ( OpacStarRatings != 'disable' ) %]
1593 // -----------------------------------------------------
1594 // star-ratings code
1595 // -----------------------------------------------------
1596 // hide 'rate' button if javascript enabled
1598 $('input[name="rate_button"]').remove();
1601 $(".auto-submit-star").rating({
1602 callback: function (value, link) {
1604 // if the new value equals the old value, dont execute callback...
1606 if ($("#rating_value").attr("value") != value) {
1610 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1611 rating_old_value: $("#rating_value").attr("value"),
1612 borrowernumber: "[% borrowernumber %]",
1613 biblionumber: "[% biblionumber %]",
1614 rating_value: value,
1616 }, function (data) {
1618 if (data.auth_status != 'ok') {
1619 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1621 $("#rating_value").val(data.rating_value);
1623 if (data.rating_value) {
1624 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1626 $("#rating_value_text").text('');
1629 $("#rating_text").text(_("average rating: ") + data.rating_avg + " (" + data.rating_total + ' ' + _("votes") + ")");
1638 // -----------------------------------------------------
1639 [% END # / IF ( OpacStarRatings != 'disable' )%]
1641 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1642 var isbn = $(".isbn:last").text().split(" ")[1];
1644 isbn = isbn.replace(/\W*$/, '');
1645 isbn = isbn.replace(/-/, '');
1647 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1648 // Use Microsoft XDR for IE version 8 or above
1649 var xdr = new XDomainRequest();
1650 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1651 xdr.onload = function() {
1652 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1653 eval(json); // json is now a regular JSON object
1654 parseIDBJSON(json); // parse using same function as for jQuery's success event
1658 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1663 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1666 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1667 function parseIDBJSON( json ) {
1668 if(json.total_results > 0 && json.book.rating > 0){
1669 var isbn = $(".isbn:last").text().split(" ")[1];
1670 isbn = isbn.replace(/\W+/g, '');
1672 [% IF ( IDreamBooksReadometer ) %]
1673 $(".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>');
1676 [% IF ( IDreamBooksReviews ) %]
1677 //build new tab for critic reviews
1678 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1680 //append happy-sad cloud review
1682 $("#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>");
1684 //insert data into Book reviews tab
1685 $.each(json.book.critic_reviews, function(){
1686 $("#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>");
1688 $("#seemoreidb").attr('href', json.book.detail_link);
1689 $("#tab_idb_critic_reviews").show();
1693 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1695 [% IF ( OpacBrowseResults && busc ) %]
1697 var totalPagItemList = 10;
1699 function rewindList()
1701 var ul = $("#listResults");
1702 var li_ini = ul.children(':first').next();
1703 var index_ini = pag_index_ini;
1705 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1707 var li_end = ul.children(':last').prev();
1708 var index_end = arrPagination.length - 1;
1710 index_end = parseInt(li_end.attr("class").substring(7), 10);
1712 if (index_ini > pag_index_ini) {
1713 renderPagIndexList(index_ini - 1, ul, false);
1714 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1718 function forwardList()
1720 var ul = $("#listResults");
1721 var li_ini = ul.children(':first').next();
1722 var index_ini = pag_index_ini;
1724 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1726 var li_end = ul.children(':last').prev();
1727 var index_end = arrPagination.length - 1;
1729 index_end = parseInt(li_end.attr("class").substring(7), 10);
1731 if (index_end < arrPagination.length - 1) {
1732 renderPagIndexList(index_ini + 1, ul, false);
1733 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1737 function renderPagIndexList(index, ul)
1739 var $kids = ul.children("li");
1740 if ($kids.length > 0) {
1741 $kids.each(function() {
1747 var ini = index - 1;
1748 var end = ini + totalPagItemList - 1;
1750 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1754 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1755 if (arrPagination[i] == undefined) continue;
1756 var li = $("<li />");
1757 if (arrPagination[i].url != "") {
1758 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1759 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1760 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1761 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1762 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1763 html += ">" + i + "</a>";
1766 li.attr("class", "li_pag_" + i);
1771 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1772 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>":"»";
1775 }//renderPagIndexList
1778 function renderPagination(index, total, ul, highlIndex)
1780 for (var i = pag_index_ini; i <= total; i++) {
1781 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1782 $("#li_pag_" + i).remove();
1785 for (var i = index; i <= total && j < totalPagItemList; i++) {
1786 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1787 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1788 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1789 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1791 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1795 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1796 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1797 $("#li_pag_" + i).remove();
1798 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1799 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1800 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1806 [% END # / IF ( OpacBrowseResults && busc ) %]
1810 [% IF OPACPopupAuthorsSearch %]
1811 <script type="text/javascript">
1813 function showAuthors(element){
1814 var authornumber = $(element).attr("data-count");
1816 // Check checkbox related to the clicked link
1817 $("#authorsList input[type='checkbox']").attr('checked', false);
1818 $("#author_"+authornumber).attr('checked', true);
1820 makeAuthorRequest();
1823 function checkAll(checkbox, elem) {
1824 var check = $(checkbox).attr('checked') ? true : false;
1825 $(elem).find("input[type='checkbox']").attr('checked', check);
1826 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1829 function makeAuthorRequest(){
1832 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1833 values.push($(this).val());
1836 if (values.length > 0) {
1837 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1838 $("#validAuthorSearch").attr("href", request);
1840 $("#validAuthorSearch").removeAttr("href");
1846 function showSubjects(element, subjectnumber, subfieldnumber){
1848 // Check checkbox related to the clicked link
1849 $("#subjectsList input[type='checkbox']").attr('checked', false);
1850 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1852 makeSubjectRequest();
1856 function makeSubjectRequest() {
1858 $("#subjectsList > ul").each(function() {
1859 var all_checked = true;
1860 var local_values = [];
1861 $(this).find('input[type="checkbox"]').each(function() {
1862 if($(this).attr('checked')) {
1863 local_values.push($(this).val());
1865 all_checked = false;
1868 var authid = $(this).attr('data-authid');
1869 if(all_checked && authid) {
1870 values.push('an:' + authid);
1872 values = values.concat(local_values);
1875 if(values.length > 0) {
1876 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1877 $("#validSubjectSearch").attr('href', request);
1879 $("#validSubjectSearch").removeAttr("href");
1882 $(document).ready(function() {
1883 $("a.showauthors").click(function(e){
1891 [% END # / IF OPACPopupAuthorsSearch %]