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' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]
27 [% INCLUDE 'doc-head-close.inc' %]
29 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
31 [% IF ( OpacStarRatings != 'disable' ) %]
32 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
35 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
36 [% INCLUDE 'masthead.inc' %]
39 <ul class="breadcrumb">
40 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
41 <li><a href="#">Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]</a></li>
44 <div class="container-fluid">
45 <div class="row-fluid">
47 <div id="catalogue_detail_biblio" class="maincontent">
50 [% IF ( OPACLocalCoverImages ) %]
51 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
53 [% IF ( OPACAmazonCoverImages ) %]
54 [% IF ( OPACurlOpenInNewWindow ) %]
55 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank">
57 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
59 [% IF ( using_https ) %]
60 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
62 <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
66 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
67 [% IF ( content_identifier_exists ) %]
68 [% IF ( using_https ) %]
69 <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" />
71 <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" />
75 <span class="no-image">No cover image available</span>
79 [% IF ( GoogleJackets ) %]
80 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
82 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
83 [% coce_id = normalized_ean || normalized_isbn %]
84 <div style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
86 [% IF OpenLibraryCovers %]
87 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
89 [% IF ( BakerTaylorEnabled && normalized_isbn ) %]
90 [% IF ( OPACurlOpenInNewWindow ) %]
91 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
93 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
96 </div><!-- / #bookcover -->
98 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
99 [% IF ( ocoins ) # COinS / Openurl %]
100 <span class="Z3988" title="[% ocoins %]"></span>
104 <span class="view"><span id="Normalview">Normal view</span></span>
105 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
106 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
108 [% IF ( OPACXSLTDetailsDisplay ) %]
111 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
112 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
114 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
116 [% IF ( description ) %]
122 [% IF ( unititle ) %], [% unititle %][% END %]
125 [% IF ( MARCAUTHORS ) %]
126 <div class="results_summary">
127 <span class="label">Additional authors:</span>
128 [% IF OPACPopupAuthorsSearch %]
129 <!-- Author search term selection modal -->
130 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
131 <div class="modal-header">
132 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
133 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
135 <div class="modal-body">
136 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
137 <ul id="authorsList">
138 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
140 [% IF (MARCAUTHOR.authoritylink) %]
141 <input type="checkbox" name="checkbox"
142 id="author_[% loop.count %]"
143 onclick="makeAuthorRequest()"
144 value="an:[% MARCAUTHOR.authoritylink %]" />
146 <input type="checkbox" name="checkbox"
147 id="author_[% loop.count %]"
148 onclick="makeAuthorRequest()"
149 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
151 <label for="author_[% loop.count %]">
152 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
157 [% END # /FOREACH MARCAUTHORS %]
160 <div class="modal-footer">
161 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
162 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
165 [% END # /OPACPopupAuthorsSearch %]
167 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
168 [% authorsloop = loop %]
169 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
170 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
171 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
172 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
173 class="showauthors" data-count="[% authorsloop.count %]"
174 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>
176 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
177 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>
180 [% IF (MARCAUTHOR.authoritylink) %]
181 <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>
183 [% UNLESS ( loop.last ) %]|[% END %]
184 [% END # /FOREACH MARCAUTHORS %]
186 [% END # IF MARCAUTHORS %]
188 [% IF ( MARCSERIES ) %]
189 <span class="results_summary series"><span class="label">Series:</span>
190 [% FOREACH MARCSERIE IN MARCSERIES %]
191 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
192 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
193 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
195 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
196 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
199 [% UNLESS ( loop.last ) %]|[% END %]
200 [% END # / FOREACH MARCSERIES %]
202 [% END # /MARCSERIES %]
204 [% IF ( editionstatement ) %]
205 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
207 [% IF ( publishercode ) %]
208 <span class="results_summary publisher"><span class="label">Published by :</span>
209 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
210 [% publishercode |html %]
211 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
216 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
219 [% IF ( MARCISBNS ) %]
220 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
222 [% IF ( normalized_isbn ) %]
223 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
228 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
231 [% IF ( collectiontitle ) %]
232 <span class="results_summary collection"><span class="label">Collection: </span>
233 [% collectiontitle %]
234 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
235 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
240 [% IF ( unititles ) %]
241 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
242 [% FOREACH unititle IN unititles %]
243 [% unititle.unititle %] ;
248 [% IF ( MARCSUBJCTS ) %]
249 <div class="results_summary subject">
250 <span class="label">Subject(s):</span>
252 [% IF OPACPopupAuthorsSearch %]
253 <!-- Search term selection modal -->
254 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
255 <div class="modal-header">
256 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
257 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
259 <div id="subjectsList" class="modal-body">
260 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
261 <label for="all_subjects">
264 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
265 [% subjectsloop = loop %]
266 [% IF MARCSUBJCT.authoritylink %]
267 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
269 <ul id="subjectsList[% loop.count %]">
271 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
273 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
274 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
282 <div class="modal-footer">
283 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
284 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
287 [% END # /OPACPopupAuthorsSearch%]
289 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
290 [% subjectsloop = loop %]
291 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
292 [% SUBFIELD.separator %]
293 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
294 <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>
296 <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>
299 [% IF (MARCSUBJCT.authoritylink) %]
300 <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>
302 [% UNLESS ( loop.last ) %] | [% END %]
303 [% END # / FOREACH MARCSUBJCTS %]
305 [% ELSE # /IF MARCSUBJCTS %]
306 [% 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 %]
309 [% IF ( copyrightdate ) %]
310 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
313 [% UNLESS ( item_level_itypes ) %]
315 <img src="[% imageurl %]" alt="" />
317 <span class="results_summary itemtype"><span class="label">Item type: </span>
318 [% IF ( description ) %]
326 [% IF ( MARCURLS ) %]
327 <div class="results_summary online_resources"><span class="label">Online resources:</span>
329 [% FOREACH MARCurl IN MARCURLS %]
330 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
332 [% IF ( OPACurlOpenInNewWindow ) %]
333 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
334 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
336 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
339 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
340 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
342 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
346 [% MARCurl.linktext %]</a>
347 [% IF ( MARCurl.notes ) %]
349 [% FOREACH note IN MARCurl.notes %]
350 <li>[% note.note %]</li>
355 [% END # /FOREACH MARCURLS %]
358 [% END # / IF MARCURLS %]
359 [% END # / IF OPACXSLTDetailsDisplay %]
361 [% IF ( AuthorisedValueImages && authorised_value_images ) %]
362 <div class="authorised_value_images">
363 [% FOREACH authorised_value_image IN authorised_value_images %]
364 <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
367 [% END # / AuthorisedValueImages && authorised_value_images %]
369 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
370 [% IF ( LibraryThingForLibrariesID ) %]
371 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
372 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
373 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
374 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
376 <span class="results_summary">
377 <span class="label">Reviews from LibraryThing.com:</span>
378 <span style="display: block;" class="ltfl_reviews"></span>
380 [% END # / LibraryThingForLibrariesID %]
382 <!--This grabs all of the lists a bib record appears in -->
383 [% IF ( GetShelves ) %]
384 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
385 [% FOREACH GetShelve IN GetShelves %]
386 <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
387 [% IF ( loop.last ) %][% ELSE %]|[% END %]
390 [% END # / GetShelves %]
392 [% IF ( TagsShowEnabled ) %]
393 <div class="results_summary tags">
395 <span class="label">Tags from this library:</span>
397 [% FOREACH TagLoo IN TagLoop %]
398 <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>
399 [% IF ( loop.last ) %][% ELSE %], [% END %]
404 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
406 [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
408 [% END # /IF TagsShowEnabled %]
410 [% IF ( TagsInputEnabled ) %]
411 <div class="results_summary tagsinput">
412 [% IF ( loggedinusername ) %]
413 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
414 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
415 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
416 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
417 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
419 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
423 <span id="login4tags">Log in to add tags.</span>
426 [% END # / IF TagsInputEnabled %]
428 [% IF ( SyndeticsEnabled ) %]
429 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
430 <span class="results_summary">
431 <span class="label">Series information:</span>
432 [% IF ( using_https ) %]
433 <a target="_blank" 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>
435 <a target="_blank" 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>
438 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
439 [% IF ( SyndeticsAVPROFILEExists ) %]
440 <span class="results_summary">
441 <span class="label">Audiovisual profile:</span>
442 [% IF ( using_https ) %]
443 <a target="_blank" 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>
445 <a target="_blank" 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>
448 [% END # / IF SyndeticsAVPROFILEExists %]
450 [% IF ( SyndeticsFICTIONExists ) %]
451 <span class="results_summary">
452 <span class="label">Fiction notes:</span>
453 [% IF ( using_https ) %]
454 <a target="_blank" 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>
456 <a target="_blank" 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>
459 [% END # / IF SyndeticsFICTIONExists %]
461 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
462 <span class="results_summary">
463 <span class="label">Awards:</span>
464 [% IF ( using_https ) %]
465 <a target="_blank" 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>
467 <a target="_blank" 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>
470 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
471 [% END # / IF SyndeticsEnabled%]
473 [% IF ( OpacStarRatings != 'disable' ) %]
474 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
475 <div class="results_summary ratings">
477 [% FOREACH i IN [ 1 2 3 4 5 ] %]
478 [% IF rating_avg == i && borrowernumber %]
479 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
480 [% ELSIF rating_avg == i %]
481 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
482 [% ELSIF borrowernumber %]
483 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
485 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
489 <!-- define some hidden vars for ratings -->
491 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
492 <input type="hidden" name='borrowernumber' value="[% borrowernumber %]" />
493 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
494 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
495 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
497 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
499 [% IF ( rating_value ) %]
500 <span id="rating_value_text">your rating: [% rating_value %], </span>
502 <span id="rating_value_text"></span>
505 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
508 [% END # / IF OpacStarRatings != 'disable' %]
510 [% IF ( BakerTaylorContentURL ) %]
511 <span class="results_summary">
512 <span class="label">Enhanced content: </span>
513 [% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
515 [% END # / IF BakerTaylorContentURL %]
517 [% IF ( NovelistSelectProfile ) %]
518 [% IF ( NovelistSelectView == 'above') %]
519 <span class="results_summary">
520 <span class="label">Novelist Select: </span>
521 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
524 [% END # / IF NovelistSelectProfile %]
526 [% IF ( Babeltheque ) %]
527 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
528 <div id="BW_notes"></div>
529 <div id="BW_critiques"></div>
530 <div id="BW_critiques_pro"></div>
531 <div id="BW_citations"></div>
532 [% END # / IF Babeltheque%]
534 </div> <!-- / #catalogue_detail_biblio -->
536 <div id="bibliodescriptions" class="toptabs">
539 [% IF ( defaulttab == 'holdings' ) %]
540 <li id="tab_holdings" class="ui-tabs-active">
542 <li id="tab_holdings">
544 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
546 [% IF (SeparateHoldings) %]
547 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
549 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
550 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
552 [% IF ( SYNDETICS_TOC ) %]
553 <li id="tab_toc"> <a href="#toc">TOC</a></li>
555 [% IF ( SyndeticsEnabled ) %]
556 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
557 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
559 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
560 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
561 <li id="tab_LTFLreviews">
562 [% IF ( using_https ) %]
563 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
564 <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>
566 <script src="http://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="http://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
571 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
572 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
574 [% END # / IF SyndeticsEnabled %]
576 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
577 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
578 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
581 [% IF ( subscriptionsnumber ) %]
582 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
583 <a href="#subscriptions">Subscriptions</a>
587 [% IF Koha.Preference( 'reviewson' ) == 1 %]
588 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
591 [% IF ( NovelistSelectProfile ) %]
592 [% IF ( NovelistSelectView == 'tab') %]
593 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
597 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
598 <li id="tab_editions"><a href="#editions">Editions</a></li>
601 [% IF ( serialcollection ) %]
602 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
603 <a href="#serialcollection">Serial collection</a>
607 [% IF ( OPACLocalCoverImages && localimages.size ) %]
608 <li id="tab_images"><a href="#images">Images</a></li>
611 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
612 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
615 [% IF ( IDreamBooksReviews ) %]
616 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
620 [% IF ( serialcollection ) %]
621 <div id="serialcollection">
622 <table id="serialcollectiont" class="table table-bordered table-striped">
625 <th id="serial_library">Library</th>
626 <th id="serial_collection">Serial collection</th>
627 <th id="serial_itemcallnumber">Item call number</th>
631 [% FOREACH serialcollection IN serialcollections %]
633 <td>[% serialcollection.branch %]</td>
634 <td>[% serialcollection.text %]</td>
635 <td>[% serialcollection.itemcallnumber %]</td>
641 [% END # / IF serialcollection %]
645 [% IF too_many_items %]
646 <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>
647 [% ELSIF ( itemloop.size ) %]
648 [% INCLUDE items_table items=itemloop tab="holdings" %]
649 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
650 [% IF acquisition_details.total_quantity == 1 %]
653 [% acquisition_details.total_quantity %] items are on order.
656 [% IF holds_count.defined || priority %]
658 [% IF holds_count.defined %]
659 Total holds: [% holds_count %]
662 [% IF holds_count.defined %]
663 (priority [% priority %])
665 Overall queue priority: [% priority %]
671 [% IF ( ALTERNATEHOLDINGS ) %]
672 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
673 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
676 [% IF Koha.Preference('OPACAcquisitionDetails') and Koha.Preference('AcqCreateItem') != 'ordering' and acquisition_details.total_quantity > 0 %]
677 [% IF acquisition_details.total_quantity == 1 %]
680 [% acquisition_details.total_quantity %] items are on order.
683 <div id="noitems">No physical items for this record</div>
686 [% END # IF itemloop.size %]
687 [% PROCESS 'shelfbrowser.inc' %]
688 [% INCLUDE shelfbrowser tab='holdings' %]
689 <br style="clear:both;" />
690 </div> <!-- / #holdings -->
692 [% IF (SeparateHoldings) %]
693 <div id="otherholdings">
694 [% IF (otheritemloop.size) %]
695 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
699 [% INCLUDE shelfbrowser tab='otherholdings' %]
701 [% END # / SeparateHoldings %]
703 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
704 <div id="descriptions">
705 <div class="content_set">
707 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
708 <h4>Enhanced descriptions from Syndetics:</h4>
709 <p>[% SYNDETICS_SUMMARY %]</p>
712 [% IF ( MARCNOTES ) %]
714 [% FOREACH MARCNOTE IN MARCNOTES %]
715 <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
725 </div> <!-- / #descriptions -->
726 [% END # / IF MARCNOTES || notes %]
728 [% IF ( SyndeticsEnabled ) %]
729 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
731 <div class="content_set">
732 <h3>Table of contents provided by Syndetics</h3>
734 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
735 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
740 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
742 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
744 <div class="content_set">
745 <h3>Excerpt provided by Syndetics</h3>
746 [% SYNDETICS_EXCERPT %]
749 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
751 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
753 <div class="content_set">
754 <h3>Reviews provided by Syndetics</h3>
755 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
756 [% IF ( SYNDETICS_REVIEW.title ) %]
757 <h4>[% SYNDETICS_REVIEW.title %]</h4>
758 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
760 [% IF ( review.content ) %]
769 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
771 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
773 <div class="content_set">
774 <h3>Author notes provided by Syndetics</h3>
775 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
776 [% IF ( SYNDETICS_ANOTE.content ) %]
777 [% SYNDETICS_ANOTE.content %]
782 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
783 [% END # / IF SyndeticsEnabled %]
785 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab') %]
786 <div id="NovelistSelect">
787 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
789 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
791 [% IF ( subscriptionsnumber ) %]
792 <div id="subscriptions">
793 <h2>This is a serial</h2>
794 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
795 [% FOREACH subscription IN subscriptions %]
796 [% IF ( subscription.branchname ) %]
797 <h3>At library: [% subscription.branchname %]</h3>
799 [% IF ( subscription.branchcode ) %]
800 <h3>At library: [% subscription.branchcode %]</h3>
803 [% IF ( subscription.closed ) %]
804 <p>This subscription is closed.</p>
806 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
807 [% IF ( subscription.subscriptionnotes ) %]
808 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
810 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
811 [% IF ( subscription.missinglist ) %]
812 <p>Missing issues: [% subscription.missinglist %] </p>
814 [% IF ( subscription.opacnote ) %]
815 <p>[% subscription.opacnote FILTER html_line_break %]</p>
817 [% IF ( subscription.callnumber ) %]
818 <p>Call number: [% subscription.callnumber %]</p>
820 [% IF ( subscription.latestserials ) %]
821 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
822 <table class="table table-bordered table-striped">
829 [% FOREACH latestserial IN subscription.latestserials %]
831 <td>[% latestserial.serialseq %]</td>
832 <td>[% latestserial.planneddate %]</td>
834 [% IF ( latestserial.status1 ) %]
837 [% IF ( latestserial.status2 ) %]
840 [% IF ( latestserial.status3 ) %]
843 [% IF ( latestserial.status4 ) %]
846 [% IF ( latestserial.status5 ) %]
854 <td>[% latestserial.notes %]</td>
856 [% END # / FOREACH latestserials %]
858 [% END # / IF subscription.latestserials %]
859 [% END # / FOREACH subscriptions %]
860 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
861 </div> <!-- / #subscriptions -->
862 [% END # IF subscriptionsnumber %]
864 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
865 <!-- Library Thing for Libraries Content -->
866 <div id="LFTLSimilarItems">
867 <div class="content_set">
868 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
869 <!-- but breaks Xhtml validation -->
870 <!-- <span class="results_summary">-->
871 <div id="ltfl_related"></div>
872 <div id="ltfl_similars"></div>
876 <div id="LTFLTagBrowse">
877 <div class="content_set">
878 <!-- <span class="results_summary"> -->
879 <div id="ltfl_tagbrowse" class="ltfl"></div>
883 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
885 [% IF Koha.Preference( 'reviewson' ) == 1 %]
887 <div id="newcomment"></div>
889 [% FOREACH review IN reviews %]
890 [% IF ( review.your_comment ) %]
891 <div class="commentline yours" id="c[% review.reviewid %]">
892 [% IF ( review.avatarurl ) %]
893 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
895 <h5>Your comment</h5>
896 <small>[% review.datereviewed | $KohaDates %]</small>
898 [% FILTER html_break %]
899 [% review.review |html %]
901 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
905 <div class="commentline">
906 [% IF ( ShowReviewer != "none" ) %]
907 [% IF ( review.avatarurl ) %]
908 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
910 [% SWITCH ShowReviewer %]
912 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
914 <h5>Comment by [% review.firstname %]</h5>
916 <h5>Comment by [% review.surname %]</h5>
917 [% CASE 'firstandinitial' %]
918 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
919 [% CASE 'username' %]
920 <h5>Comment by [% review.userid %]</h5>
922 <small>[% review.datereviewed | $KohaDates %]</small>
923 [% ELSIF ( ShowReviewer == "none") %]
924 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
925 [% END # / IF ShowReviewer != "none"%]
927 [% FILTER html_break %]
928 [% review.review |html %]
931 </div> <!-- / .commentline -->
932 [% END # / IF review.your_comment %]
933 [% END # / FOREACH reviews %]
935 <p>There are no comments for this item.</p>
936 [% END # / IF reviews %]
938 [% IF ( loggedinusername ) %]
939 [% UNLESS ( loggedincommenter ) %]
940 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
941 Post or edit your comments on this item.
945 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
946 [% END # / IF loggedinusername %]
947 </div> <!-- / #comments -->
948 [% END # / IF reviewson %]
950 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
952 <h4>Other editions of this work</h4>
953 <table class="table table-bordered table-striped">
954 [% FOREACH XISBN IN XISBNS %]
957 [% IF ( OPACAmazonCoverImages ) %]
958 <img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
961 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
962 [% IF ( XISBN.content_identifier_exists ) %]
963 [% IF ( using_https ) %]
964 <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="" />
966 <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="" />
969 <span class="no-image">No cover image available</span>
970 [% END # / IF XISBN.content_identifier_exists %]
971 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
974 [% UNLESS ( item_level_itypes ) %]
975 <td>[% XISBN.description %]</td>
977 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
978 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
979 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
980 [% IF ( XISBN.publishercode ) %]
981 <p>[% XISBN.publishercode |html %]
982 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
983 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
984 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
989 [% END # / FOREACH XISBNS %]
991 </div> <!-- / #editions -->
992 [% END # / IF OPACFRBRizeEditions && XISBNS %]
994 [% IF ( HTML5MediaEnabled ) %]
995 <div id="html5media">
997 <[% HTML5MediaParent %] controls preload=none>
998 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
999 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
1001 [[% HTML5MediaParent %] tag not supported by your browser.]
1002 </[% HTML5MediaParent %]>
1005 [% END # / IF HTML5MediaEnabled %]
1007 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1009 <p>Click on an image to view it in the image viewer</p>
1010 [% FOREACH image IN localimages %]
1012 <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>
1015 </div><!-- / #images -->
1016 [% END # / IF OPACLocalCoverImages && localimages.size %]
1018 [% IF ( IDreamBooksReviews ) %]
1019 <div id="idb_critic_reviews">
1020 <div id="idb_review_snippets"></div>
1021 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1024 </div> <!-- / #bibliodescriptions -->
1026 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' ) %]
1027 <div id="NovelistSelect">
1028 <h3>Novelist Select</h3>
1029 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
1033 [% IF ( Babeltheque ) %]
1035 <div id="BW_etiquettes"></div>
1036 <div id="BW_suggestions"></div>
1038 <div class="clearfix"></div>
1040 <div id="BW_podcasts"></div>
1042 <div class="clearfix"></div>
1044 <div id="BW_videos"></div>
1046 [% END # / IF Babeltheque %]
1047 </div> <!-- /.span8 -->
1050 <div id="ulactioncontainer">
1052 [% IF ( OpacBrowseResults && busc ) %]
1053 <div class="nav_results">
1054 <div class="l_Results">
1055 [% IF ( listResults ) %]
1056 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1058 <span>Browse results</span>
1061 <ul class="pg_menu clearfix">
1062 <li class="left_results">
1063 [% IF ( previousBiblionumber ) %]
1064 <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>
1066 <span>Previous</span>
1069 [%# busc is already URI encoded %]
1070 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1071 <li class="right_results">
1072 [% IF ( nextBiblionumber ) %]
1073 <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>
1079 [% IF ( listResults ) %]
1080 <div class="results-pagination">
1081 <div class="nav_pages">
1082 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1083 <ul id="listResults"></ul>
1085 <div class="pagination_list">
1086 <ul id="ul_pagination_list"></ul>
1091 [% END # / IF OpacBrowseResults && busc %]
1093 [% INCLUDE 'opac-detail-sidebar.inc' %]
1095 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right') %]
1096 <div id="NovelistSelect">
1097 <h4>Novelist Select</h4>
1098 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1102 [% IF ( Babeltheque ) %]
1103 <div class="babeltheque_adds">
1104 <div id="BW_critiques_aj"></div>
1105 <div id="BW_citations_aj"></div>
1109 [% IF ( SocialNetworks ) %]
1110 <div id="social_networks" class="clearfix">
1112 <div><a id="facebook" href="http://www.facebook.com/sharer.php?u=[% protocol %][% current_url |url %]&t=[% title |url %]" title="Share on Facebook">Facebook</a></div>
1113 <div><a id="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=[% protocol %][% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn">LinkedIn</a></div>
1114 <div><a id="delicious" href="http://www.delicious.com/save?url=[% protocol %][% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1115 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% protocol %][% current_url |url %])" title="Share by email">Email</a></div>
1116 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1117 <div><a id="twitter" href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-text="[% title %]" data-lang="[% lang %]">Tweet</a></div>
1120 </div> <!-- / .ulactioncontainer -->
1121 </div> <!-- / .span4 -->
1122 </div> <!-- / .row-fluid -->
1123 <div class="row-fluid">
1124 [% IF ( LibraryThingForLibrariesID ) %]
1125 [% IF ( using_https ) %]
1126 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1127 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1128 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1130 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1131 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1132 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1133 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1137 [% IF ( NovelistSelectProfile ) %]
1138 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1141 [% IF ( Babeltheque ) %]
1142 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1144 </div> <!-- / .row-fluid -->
1145 </div> <!-- / .container-fluid -->
1146 </div> <!-- / .main -->
1148 [% INCLUDE 'opac-bottom.inc' %]
1150 [%# End of template %]
1152 [% BLOCK items_table %]
1153 <table class="holdingst table table-bordered table-striped">
1156 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1157 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1158 <th id="item_current_location" class="item_location">Current location</th>
1160 [% UNLESS ( singleBranchMode ) %]
1161 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1162 <th id="item_home_location" class="item_location">Home library</th>
1165 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1166 <th id="item_callnumber" class="call_no">Call number</th>
1167 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1168 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1169 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1170 <th id="item_status" class="status">Status</th>
1171 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1172 <th id="item_datedue" class="date_due">Date due</th>
1173 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1174 [% IF holds_count.defined %]
1175 <th id="item_holds">Item holds</th>
1176 [% ELSIF show_priority %]
1177 <th id="item_priority">Item hold queue priority</th>
1179 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1183 [% FOREACH ITEM_RESULT IN items %]
1184 [% IF ITEM_RESULT.this_branch %]
1185 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1187 <tr vocab="http://schema.org/" typeof="Offer">
1189 [% IF ( item_level_itypes ) %]
1191 [% UNLESS ( noItemTypeImages ) %]
1192 [% IF ( ITEM_RESULT.imageurl ) %]
1193 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1196 [% ITEM_RESULT.description %]
1199 [% UNLESS singleBranchMode %]
1200 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1201 <td class="location" property="seller">
1202 <link property="itemOffered" href="#record" />
1203 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1204 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1205 [% IF ( ITEM_RESULT.branchurl ) %]
1206 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1208 <span>[% ITEM_RESULT.branchname %]</span>
1211 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1213 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1214 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1220 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1221 <td class="location" property="seller">
1222 <link property="itemOffered" href="#record" />
1223 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1224 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1225 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1226 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1227 [% IF ( home_branch_url ) %]
1228 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1230 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1233 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1236 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1238 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1239 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1246 <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1249 [% IF ( itemdata_ccode ) %]
1250 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1252 <td class="call_no" property="sku">
1253 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1254 [% ITEM_RESULT.itemcallnumber %]
1255 [% IF ( OPACShelfBrowser ) %]
1256 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1257 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1259 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1264 [% IF ( itemdata_enumchron ) %]
1265 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1267 [% IF ( itemdata_uri ) %]
1269 [% IF ITEM_RESULT.uri %]
1270 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1271 <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>
1273 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1278 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1279 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1280 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1281 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1282 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1283 [% IF holds_count.defined || show_priority %]
1284 <td class="holds_count">
1285 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1286 [% IF ITEM_RESULT.priority %]
1287 [% IF holds_count.defined %]
1288 (priority [% ITEM_RESULT.priority %])
1290 [% ITEM_RESULT.priority %]
1295 [% IF ShowCourseReservesHeader %]
1297 [% IF ITEM_RESULT.course_reserves %]
1298 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1300 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1301 [% r.course.course_name %]
1302 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1303 [% IF r.course.section %] [% r.course.section %] [% END %]
1304 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1310 [% END # /IF ShowCourseReservesHeader %]
1315 [% END %][%# end of items_table block %]
1317 [% BLOCK jsinclude %]
1318 [% INCLUDE 'datatables.inc' %]
1319 [% IF ( SocialNetworks ) %]
1320 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1322 {lang: '[% lang %]'}
1325 <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>
1327 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1329 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1331 <script type="text/javascript">
1334 [% IF ( OpacBrowseResults && busc ) %]
1335 var arrPagination = new Array();
1336 var pag_index_ini = [% indexPag %];
1337 [% IF ( listResults ) %]
1338 [% FOREACH listResult IN listResults %]
1339 arrPagination[[% listResult.index %]] = {
1340 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1341 title:"[% listResult.title|remove('\n')|html %]",
1342 author:"[% listResult.author|html %]",
1343 biblionumber:[% listResult.biblionumber %]
1349 [% IF ( OpacHighlightedWords ) %]
1350 var q_array = new Array(); // holds search terms if available
1352 function highlightOff() {
1353 $("#catalogue_detail_biblio").removeHighlight();
1354 $(".highlight_toggle").toggle();
1356 function highlightOn() {
1358 for (x in q_array) {
1359 if ( q_array[x].length > 0 ) {
1360 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1361 q_array[x] = q_array[x].toLowerCase();
1362 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1363 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1364 $(".title").highlight(q_array[x]);
1365 $(".author").highlight(q_array[x]);
1366 $(".results_summary").highlight(q_array[x]);
1370 $(".highlight_toggle").toggle();
1374 $(document).ready(function() {
1375 $('#bibliodescriptions').tabs();
1376 $(".branch-info-tooltip-trigger").uitooltip({
1377 position: { my: "left+15 center", at: "right center" },
1380 content: function(){
1381 var element = $(this).next("div");
1382 return element.html();
1385 [% IF ( TagsInputEnabled && loggedinusername ) %]
1386 $(".tag_add").click(function(){
1387 var thisid = $(this).attr("id");
1388 thisid = thisid.replace("tag_add","");
1390 $("#tagform"+thisid).show();
1391 $("#newtag"+thisid).focus();
1392 $("#newtag"+thisid+"_status").empty().hide();
1395 $(".cancel_tag_add").click(function(){
1396 var thisid = $(this).attr("id");
1397 thisid = thisid.replace("cancel","");
1398 $("#tagform"+thisid).hide();
1399 $("#tag_add"+thisid).show();
1400 $("#newtag"+thisid).val("");
1401 $("#newtag"+thisid+"_status").empty().hide();
1404 $(".tagbutton").click(function(){
1405 var thisid = $(this).attr("title");
1406 var tag = $("#newtag"+thisid).val();
1407 if (!tag || (tag == "")) {
1408 alert(MSG_NO_TAG_SPECIFIED);
1411 KOHA.Tags.add_tag_button(thisid, tag);
1416 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1418 [% IF ( item_level_itypes ) %]null,[% END %]
1420 [% IF ( OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
1421 [% IF ( itemdata_ccode ) %]null,[% END %]
1423 [% IF ( itemdata_enumchron ) %]null,[% END %]
1424 [% IF ( itemdata_uri ) %]null,[% END %]
1425 [% IF ( itemdata_copynumber ) %]null,[% END %]
1427 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1428 { "sType": "title-string" },
1429 [% IF ( OPACShowBarcode ) %]null,[% END %]
1430 [% IF holds_count.defined %]
1432 [% ELSIF show_priority %]
1435 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1439 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1440 q_array = query_desc.split(" ");
1441 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1443 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1444 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1445 [% IF ( GoogleJackets ) %]
1446 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1448 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1449 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1452 [% IF OpenLibraryCovers %]
1453 KOHA.OpenLibrary.GetCoverFromIsbn();
1455 [% IF OPACLocalCoverImages %]
1456 KOHA.LocalCover.GetCoverFromBibnumber(true);
1458 [% IF ( NovelistSelectProfile ) %]
1459 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1462 [% IF ( OpacBrowseResults && busc ) %]
1463 if (arrPagination.length > 0) {
1464 renderPagIndexList(pag_index_ini, $("#listResults"));
1466 $("#a_listResults").click(function(e) {
1467 if (arrPagination.length > 0) {
1469 var navigation = $(".results-pagination");
1470 if (navigation.css("display") == 'none') {
1472 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1473 $(this).attr('title',newtitle);
1474 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1477 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1478 $(this).attr('title',newtitle);
1482 $("#close_pagination").click(function(e) {
1484 var navigation = $(".results-pagination");
1488 [% IF ( OPACShelfBrowser ) %]
1490 (function prepareShelfBrowser(){
1492 $(".main").on("click",".close_shelf",function(e){
1494 $("#shelfbrowser").toggle();
1496 $(".main").on("click", "#browser_previous a", function(e){
1499 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1502 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1504 success: function(data){
1505 $("#shelfbrowser").replaceWith(data);
1506 [% IF ( GoogleJackets ) %]
1507 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1509 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1510 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1512 [% IF OpenLibraryCovers %]
1513 KOHA.OpenLibrary.GetCoverFromIsbn();
1515 [% IF OPACLocalCoverImages %]
1516 KOHA.LocalCover.GetCoverFromBibnumber(true);
1522 $(".main").on("click", "#browser_next a", function(e){
1525 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1528 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1530 success: function(data){
1531 $("#shelfbrowser").replaceWith(data);
1532 [% IF ( GoogleJackets ) %]
1533 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1535 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1536 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1538 [% IF OpenLibraryCovers %]
1539 KOHA.OpenLibrary.GetCoverFromIsbn();
1541 [% IF OPACLocalCoverImages %]
1542 KOHA.LocalCover.GetCoverFromBibnumber(true);
1549 [% IF ( OpacStarRatings != 'disable' ) %]
1550 // -----------------------------------------------------
1551 // star-ratings code
1552 // -----------------------------------------------------
1553 // hide 'rate' button if javascript enabled
1555 $('input[name="rate_button"]').remove();
1558 $(".auto-submit-star").rating({
1559 callback: function (value, link) {
1561 // if the new value equals the old value, dont execute callback...
1563 if ($("#rating_value").attr("value") != value) {
1567 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1568 rating_old_value: $("#rating_value").attr("value"),
1569 borrowernumber: "[% borrowernumber %]",
1570 biblionumber: "[% biblionumber %]",
1571 rating_value: value,
1573 }, function (data) {
1575 if (data.auth_status != 'ok') {
1576 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1578 $("#rating_value").val(data.rating_value);
1580 if (data.rating_value) {
1581 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1583 $("#rating_value_text").text('');
1586 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1595 // -----------------------------------------------------
1596 [% END # / IF ( OpacStarRatings != 'disable' )%]
1598 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1599 var isbn = $(".isbn:last").text().split(" ")[1];
1601 isbn = isbn.replace(/\W*$/, '');
1602 isbn = isbn.replace(/-/, '');
1604 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1605 // Use Microsoft XDR for IE version 8 or above
1606 var xdr = new XDomainRequest();
1607 xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1608 xdr.onload = function() {
1609 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1610 eval(json); // json is now a regular JSON object
1611 parseIDBJSON(json); // parse using same function as for jQuery's success event
1615 $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1620 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1623 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1624 function parseIDBJSON( json ) {
1625 if(json.total_results > 0 && json.book.rating > 0){
1626 var isbn = $(".isbn:last").text().split(" ")[1];
1627 isbn = isbn.replace(/-/, '');
1629 [% IF ( IDreamBooksReadometer ) %]
1630 $(".title").append('<a href="'+json.book.detail_link+'" id="idreambooksreadometer"><img src="http://idreambooks.com/remotereadometer/'+isbn+'.jpg" alt="'+json.book.title+' by '+json.book.author+'" title="Rating based on reviews of '+json.book.title+'"></a>');
1633 [% IF ( IDreamBooksReviews ) %]
1634 //build new tab for critic reviews
1635 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1637 //append happy-sad cloud review
1639 $("#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>");
1641 //insert data into Book reviews tab
1642 $.each(json.book.critic_reviews, function(){
1643 $("#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>");
1645 $("#seemoreidb").attr('href', json.book.detail_link);
1646 $("#tab_idb_critic_reviews").show();
1650 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1652 [% IF ( OpacBrowseResults && busc ) %]
1654 var totalPagItemList = 10;
1656 function rewindList()
1658 var ul = $("#listResults");
1659 var li_ini = ul.children(':first').next();
1660 var index_ini = pag_index_ini;
1662 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1664 var li_end = ul.children(':last').prev();
1665 var index_end = arrPagination.length - 1;
1667 index_end = parseInt(li_end.attr("class").substring(7), 10);
1669 if (index_ini > pag_index_ini) {
1670 renderPagIndexList(index_ini - 1, ul, false);
1671 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1675 function forwardList()
1677 var ul = $("#listResults");
1678 var li_ini = ul.children(':first').next();
1679 var index_ini = pag_index_ini;
1681 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1683 var li_end = ul.children(':last').prev();
1684 var index_end = arrPagination.length - 1;
1686 index_end = parseInt(li_end.attr("class").substring(7), 10);
1688 if (index_end < arrPagination.length - 1) {
1689 renderPagIndexList(index_ini + 1, ul, false);
1690 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1694 function renderPagIndexList(index, ul)
1696 var $kids = ul.children("li");
1697 if ($kids.length > 0) {
1698 $kids.each(function() {
1704 var ini = index - 1;
1705 var end = ini + totalPagItemList - 1;
1707 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1711 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1712 if (arrPagination[i] == undefined) continue;
1713 var li = $("<li />");
1714 if (arrPagination[i].url != "") {
1715 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1716 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1717 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1718 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1719 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1720 html += ">" + i + "</a>";
1723 li.attr("class", "li_pag_" + i);
1728 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1729 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>":"»";
1732 }//renderPagIndexList
1735 function renderPagination(index, total, ul, highlIndex)
1737 for (var i = pag_index_ini; i <= total; i++) {
1738 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1739 $("#li_pag_" + i).remove();
1742 for (var i = index; i <= total && j < totalPagItemList; i++) {
1743 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1744 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1745 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1746 if (arrPagination[i].author) html += "<br /> by " + arrPagination[i].author;
1748 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1752 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1753 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1754 $("#li_pag_" + i).remove();
1755 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1756 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1757 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1763 [% END # / IF ( OpacBrowseResults && busc ) %]
1767 [% IF OPACPopupAuthorsSearch %]
1768 <script type="text/javascript">
1770 function showAuthors(element){
1771 var authornumber = $(element).attr("data-count");
1773 // Check checkbox related to the clicked link
1774 $("#authorsList input[type='checkbox']").attr('checked', false);
1775 $("#author_"+authornumber).attr('checked', true);
1777 makeAuthorRequest();
1780 function checkAll(checkbox, elem) {
1781 var check = $(checkbox).attr('checked') ? true : false;
1782 $(elem).find("input[type='checkbox']").attr('checked', check);
1783 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1786 function makeAuthorRequest(){
1789 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1790 values.push($(this).val());
1793 if (values.length > 0) {
1794 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1795 $("#validAuthorSearch").attr("href", request);
1797 $("#validAuthorSearch").removeAttr("href");
1803 function showSubjects(element, subjectnumber, subfieldnumber){
1805 // Check checkbox related to the clicked link
1806 $("#subjectsList input[type='checkbox']").attr('checked', false);
1807 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1809 makeSubjectRequest();
1813 function makeSubjectRequest() {
1815 $("#subjectsList > ul").each(function() {
1816 var all_checked = true;
1817 var local_values = [];
1818 $(this).find('input[type="checkbox"]').each(function() {
1819 if($(this).attr('checked')) {
1820 local_values.push($(this).val());
1822 all_checked = false;
1825 var authid = $(this).attr('data-authid');
1826 if(all_checked && authid) {
1827 values.push('an:' + authid);
1829 values = values.concat(local_values);
1832 if(values.length > 0) {
1833 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1834 $("#validSubjectSearch").attr('href', request);
1836 $("#validSubjectSearch").removeAttr("href");
1839 $(document).ready(function() {
1840 $("a.showauthors").click(function(e){
1848 [% END # / IF OPACPopupAuthorsSearch %]