5 [% USE AuthorisedValues %]
6 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
7 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
8 [% IF Koha.Preference('AmazonAssocTag') %]
9 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
11 [% AmazonAssocTag = '' %]
14 [% ShowCourseReservesHeader = 0 %]
15 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
16 [% FOREACH ITEM_RESULT IN itemloop %]
17 [% IF ITEM_RESULT.course_reserves %]
18 [% FOREACH r IN ITEM_RESULT.course_reserves %]
19 [% IF r.course.enabled == 'yes' %]
20 [% ShowCourseReservesHeader = 1 %]
27 [% IF ( using_https ) %]
28 [% SET protocol = "https://" %]
30 [% SET protocol = "http://" %]
32 [% INCLUDE 'doc-head-open.inc' %]
33 <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>
34 [% INCLUDE 'doc-head-close.inc' %]
36 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
38 [% IF ( OpacStarRatings != 'disable' ) %]
39 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
41 [% INCLUDE greybox.inc %]
43 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
44 [% INCLUDE 'masthead.inc' %]
47 <ul class="breadcrumb">
48 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
49 <li><a href="#"><span>Details for: </span>[% title |html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield |html %][% END %]</a></li>
52 <div class="container-fluid">
53 <div class="row-fluid">
55 <div id="catalogue_detail_biblio" class="maincontent">
58 [% IF ( OPACLocalCoverImages ) %]
59 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
61 [% IF ( OPACAmazonCoverImages ) %]
62 [% IF ( OPACURLOpenInNewWindow ) %]
63 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link" target="_blank" rel="noreferrer">
65 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %][% AmazonAssocTag %]">
67 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
70 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
71 [% IF ( content_identifier_exists ) %]
72 [% IF ( using_https ) %]
73 <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" />
75 <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" />
79 <span class="no-image">No cover image available</span>
83 [% IF ( GoogleJackets ) %]
84 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
86 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
87 [% coce_id = normalized_ean || normalized_isbn %]
88 <div style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
90 [% IF OpenLibraryCovers %]
91 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
93 [% bt_id = ( normalized_upc || normalized_isbn ) %]
94 [% IF ( BakerTaylorEnabled && bt_id ) %]
95 [% IF BakerTaylorBookstoreURL %]
96 [% IF ( OPACURLOpenInNewWindow ) %]
97 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
99 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
102 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
105 </div><!-- / #bookcover -->
107 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber | html %]"><!-- unAPI --></abbr>
108 [% IF ( ocoins ) # COinS / Openurl %]
109 <span class="Z3988" title="[% ocoins %]"></span>
113 <span class="view current-view"><span id="Normalview">Normal view</span></span>
114 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber | html %]">MARC view</a></span>
115 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber | html %]">ISBD view</a></span>[% END %]
117 [% IF ( OPACXSLTDetailsDisplay ) %]
120 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
121 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
123 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
125 [% IF ( description ) %]
131 [% IF ( unititle ) %], [% unititle %][% END %]
134 [% IF ( MARCAUTHORS ) %]
135 <div class="results_summary">
136 <span class="label">Additional authors:</span>
137 [% IF OPACPopupAuthorsSearch %]
138 <!-- Author search term selection modal -->
139 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
140 <div class="modal-header">
141 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
142 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
144 <div class="modal-body">
145 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
146 <ul id="authorsList">
147 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
149 [% IF (MARCAUTHOR.authoritylink) %]
150 <input type="checkbox" name="checkbox"
151 id="author_[% loop.count %]"
152 onclick="makeAuthorRequest()"
153 value="an:[% MARCAUTHOR.authoritylink %]" />
155 <input type="checkbox" name="checkbox"
156 id="author_[% loop.count %]"
157 onclick="makeAuthorRequest()"
158 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
160 <label for="author_[% loop.count %]">
161 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
166 [% END # /FOREACH MARCAUTHORS %]
169 <div class="modal-footer">
170 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
171 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
174 [% END # /OPACPopupAuthorsSearch %]
176 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
177 [% authorsloop = loop %]
178 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
179 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
180 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
181 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
182 class="showauthors" data-count="[% authorsloop.count %]"
183 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>
185 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
186 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>
189 [% IF (MARCAUTHOR.authoritylink) %]
190 <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>
192 [% IF IDREF and MARCAUTHOR.unimarc3 %]
193 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
195 [% UNLESS ( loop.last ) %]|[% END %]
196 [% END # /FOREACH MARCAUTHORS %]
198 [% END # IF MARCAUTHORS %]
200 [% IF ( MARCSERIES ) %]
201 <span class="results_summary series"><span class="label">Series:</span>
202 [% FOREACH MARCSERIE IN MARCSERIES %]
203 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
204 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
205 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
207 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
208 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
211 [% UNLESS ( loop.last ) %]|[% END %]
212 [% END # / FOREACH MARCSERIES %]
214 [% END # /MARCSERIES %]
216 [% IF ( editionstatement ) %]
217 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
219 [% IF ( publishercode ) %]
220 <span class="results_summary publisher"><span class="label">Published by :</span>
221 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
222 [% publishercode |html %]
223 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
228 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
231 [% IF ( MARCISBNS ) %]
232 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
234 [% IF ( normalized_isbn ) %]
235 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
240 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
243 [% IF ( collectiontitle ) %]
244 <span class="results_summary collection"><span class="label">Collection: </span>
245 [% collectiontitle %]
246 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn %][% END %]
247 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume %] [% END %]
252 [% IF ( unititles ) %]
253 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
254 [% FOREACH unititle IN unititles %]
255 [% unititle.unititle %] ;
260 [% IF ( MARCSUBJCTS ) %]
261 <div class="results_summary subject">
262 <span class="label">Subject(s):</span>
264 [% IF OPACPopupAuthorsSearch %]
265 <!-- Search term selection modal -->
266 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
267 <div class="modal-header">
268 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
269 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
271 <div id="subjectsList" class="modal-body">
272 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
273 <label for="all_subjects">
276 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
277 [% subjectsloop = loop %]
278 [% IF MARCSUBJCT.authoritylink %]
279 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
281 <ul id="subjectsList[% loop.count %]">
283 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
285 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
286 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
294 <div class="modal-footer">
295 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
296 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
299 [% END # /OPACPopupAuthorsSearch%]
301 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
302 [% subjectsloop = loop %]
303 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
304 [% SUBFIELD.separator %]
305 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
306 <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>
308 <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>
311 [% IF (MARCSUBJCT.authoritylink) %]
312 <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>
314 [% UNLESS ( loop.last ) %] | [% END %]
315 [% END # / FOREACH MARCSUBJCTS %]
317 [% ELSE # /IF MARCSUBJCTS %]
318 [% 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 %]
321 [% IF ( copyrightdate ) %]
322 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
325 [% UNLESS ( item_level_itypes ) %]
327 <img src="[% imageurl %]" alt="" />
329 <span class="results_summary itemtype"><span class="label">Item type: </span>
330 [% IF ( description ) %]
338 [% IF ( MARCURLS ) %]
339 <div class="results_summary online_resources"><span class="label">Online resources:</span>
341 [% FOREACH MARCurl IN MARCURLS %]
342 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
344 [% IF ( OPACURLOpenInNewWindow ) %]
345 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
346 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
348 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
351 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
352 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
354 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
357 [% MARCurl.linktext %]</a>
358 [% IF ( MARCurl.notes ) %]
360 [% FOREACH note IN MARCurl.notes %]
361 <li>[% note.note %]</li>
366 [% END # /FOREACH MARCURLS %]
369 [% END # / IF MARCURLS %]
370 [% END # / IF OPACXSLTDetailsDisplay %]
372 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
373 [% IF ( LibraryThingForLibrariesID ) %]
374 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
375 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
376 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
377 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
379 <span class="results_summary">
380 <span class="label">Reviews from LibraryThing.com:</span>
381 <span style="display: block;" class="ltfl_reviews"></span>
383 [% END # / LibraryThingForLibrariesID %]
385 <!--This grabs all of the lists a bib record appears in -->
386 [% IF shelves.count %]
387 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
388 [% FOREACH s IN shelves %]
389 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
390 [% IF ( loop.last ) %][% ELSE %]|[% END %]
395 [% IF ( TagsShowEnabled ) %]
396 <div class="results_summary tags">
398 <span class="label">Tags from this library:</span>
400 [% FOREACH TagLoo IN TagLoop %]
401 <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>
402 [% IF ( loop.last ) %][% ELSE %], [% END %]
407 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
409 [% IF ( TagsInputEnabled ) %]
410 [% IF ( loggedinusername ) %]
411 <form id="tagform[% biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
412 <label for="newtag[% biblionumber | html %]">New tag(s), separated by a comma:</label>
413 <input name="newtag[% biblionumber | html %]" id="newtag[% biblionumber | html %]" maxlength="100" type="text"/>
414 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber | html %]" type="submit" value="Add" />
415 <a class="cancel_tag_add" id="cancel[% biblionumber | html %]" href="#">(done)</a>
417 <span id="newtag[% biblionumber | html %]_status" class="tagstatus" style="display:none;">
420 <a class="tag_add" id="tag_add[% biblionumber | html %]" href="#">Add tag(s)</a>
422 <span id="login4tags">
423 [% IF Koha.Preference('casAuthentication') %]
424 [%# CAS authentication is too complicated for modal window %]
425 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
427 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
431 [% END # / IF TagsInputEnabled %]
433 [% END # /IF TagsShowEnabled %]
435 [% IF ( SyndeticsEnabled ) %]
436 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
437 <span class="results_summary">
438 <span class="label">Series information:</span>
439 [% IF ( using_https ) %]
440 <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>
442 <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>
445 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
446 [% IF ( SyndeticsAVPROFILEExists ) %]
447 <span class="results_summary">
448 <span class="label">Audiovisual profile:</span>
449 [% IF ( using_https ) %]
450 <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>
452 <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>
455 [% END # / IF SyndeticsAVPROFILEExists %]
457 [% IF ( SyndeticsFICTIONExists ) %]
458 <span class="results_summary">
459 <span class="label">Fiction notes:</span>
460 [% IF ( using_https ) %]
461 <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>
463 <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>
466 [% END # / IF SyndeticsFICTIONExists %]
468 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
469 <span class="results_summary">
470 <span class="label">Awards:</span>
471 [% IF ( using_https ) %]
472 <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>
474 <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>
477 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
478 [% END # / IF SyndeticsEnabled%]
480 [% IF ( OpacStarRatings != 'disable' ) %]
481 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
482 <div class="results_summary ratings">
484 [% SET rating_avg = ratings.get_avg_rating() %]
485 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
486 [% FOREACH i IN [ 1 2 3 4 5 ] %]
487 [% IF rating_avg_int == i && borrowernumber %]
488 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
489 [% ELSIF rating_avg_int == i %]
490 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
491 [% ELSIF borrowernumber %]
492 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
494 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
498 <!-- define some hidden vars for ratings -->
500 <input type="hidden" name='biblionumber' value="[% biblionumber | html %]" />
501 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
503 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
506 <span id="rating_value_text">your rating: [% my_rating.rating_value %], </span>
508 <span id="rating_value_text"></span>
511 <span id="rating_text">average rating: [% rating_avg %] ([% ratings.count %] votes)</span>
514 [% END # / IF OpacStarRatings != 'disable' %]
516 [% IF ( BakerTaylorContentURL ) %]
517 <span class="results_summary">
518 <span class="label">Enhanced content: </span>
519 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
521 [% END # / IF BakerTaylorContentURL %]
523 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
524 [% IF ( NovelistSelectView == 'above') %]
525 <span class="results_summary NovelistSelect" style="display:none;">
526 <span class="label">Novelist Select: </span>
527 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
530 [% END # / IF NovelistSelectProfile %]
532 [% IF ( Babeltheque ) %]
533 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
534 <div id="BW_notes"></div>
535 <div id="BW_critiques"></div>
536 <div id="BW_critiques_pro"></div>
537 <div id="BW_citations"></div>
538 [% END # / IF Babeltheque%]
540 </div> <!-- / #catalogue_detail_biblio -->
542 <div id="bibliodescriptions" class="toptabs">
544 [% IF ( defaulttab == 'holdings' ) %]
545 <li id="tab_holdings" class="ui-tabs-active">
547 <li id="tab_holdings">
549 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
550 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' %][% END %]</a>
552 [% IF (SeparateHoldings) %]
553 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' %]</a></li>
555 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
556 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
558 [% IF ( SYNDETICS_TOC ) %]
559 <li id="tab_toc"> <a href="#toc">TOC</a></li>
561 [% IF ( SyndeticsEnabled ) %]
562 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
563 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
565 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
566 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
567 [% IF ( LibraryThingForLibrariesID ) %]
568 <li id="tab_LTFLreviews">
569 [% IF ( using_https ) %]
570 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
571 <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>
573 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
574 <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>
579 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
580 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
582 [% END # / IF SyndeticsEnabled %]
584 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
585 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
586 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
589 [% IF ( subscriptionsnumber ) %]
590 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
591 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber %] )</a>
595 [% IF Koha.Preference( 'reviewson' ) == 1 %]
596 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' %]</a></li>
599 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
600 [% IF ( NovelistSelectView == 'tab') %]
601 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
605 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
606 <li id="tab_editions"><a href="#editions">Editions</a></li>
609 [% IF ( serialcollection ) %]
610 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
611 <a href="#serialcollection">Serial collection</a>
615 [% IF ( OPACLocalCoverImages && localimages.size ) %]
616 <li id="tab_images"><a href="#images">Images</a></li>
619 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
620 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
623 [% IF ( IDreamBooksReviews ) %]
624 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
628 [% IF ( serialcollection ) %]
629 <div id="serialcollection">
630 <table id="serialcollectiont" class="table table-bordered table-striped">
633 <th id="serial_library">Library</th>
634 <th id="serial_collection">Serial collection</th>
635 <th id="serial_itemcallnumber">Item call number</th>
639 [% FOREACH serialcollection IN serialcollections %]
641 <td>[% serialcollection.branch %]</td>
642 <td>[% serialcollection.text %]</td>
643 <td>[% serialcollection.itemcallnumber %]</td>
649 [% END # / IF serialcollection %]
653 [% IF too_many_items %]
654 <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber | html %]&viewallitems=1">Click here to view them all.</a></p>
655 [% ELSIF ( itemloop.size ) %]
656 [% INCLUDE items_table items=itemloop tab="holdings" %]
657 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
658 [% IF acquisition_details.total_quantity == 1 %]
659 <span>1 item is on order.</span>
661 <span>[% acquisition_details.total_quantity %] items are on order.</span>
664 [% IF holds_count.defined || priority %]
666 [% IF holds_count.defined %]
667 <span>Total holds: [% holds_count %]</span>
670 [% IF holds_count.defined %]
671 <span>(priority [% priority %])</span>
673 <span>Overall queue priority: [% priority %]</span>
679 [% IF ( ALTERNATEHOLDINGS ) %]
680 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
681 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
684 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
685 [% IF acquisition_details.total_quantity == 1 %]
686 <span>1 item is on order.</span>
688 <span>[% acquisition_details.total_quantity %] items are on order.</span>
691 <div id="noitems">No physical items for this record</div>
694 [% END # IF itemloop.size %]
695 [% PROCESS 'shelfbrowser.inc' %]
696 [% INCLUDE shelfbrowser tab='holdings' %]
697 <br style="clear:both;" />
698 </div> <!-- / #holdings -->
700 [% IF (SeparateHoldings) %]
701 <div id="otherholdings">
702 [% IF (otheritemloop.size) %]
703 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
705 <span>No other items.</span>
707 [% INCLUDE shelfbrowser tab='otherholdings' %]
709 [% END # / SeparateHoldings %]
711 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
712 <div id="descriptions">
713 <div class="content_set">
715 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
716 <h4>Enhanced descriptions from Syndetics:</h4>
717 <p>[% SYNDETICS_SUMMARY %]</p>
720 [% IF ( MARCNOTES ) %]
722 [% FOREACH MARCNOTE IN MARCNOTES %]
724 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
725 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
727 [% MARCNOTE.marcnote FILTER html_line_break %]
739 </div> <!-- / #descriptions -->
740 [% END # / IF MARCNOTES || notes %]
742 [% IF ( SyndeticsEnabled ) %]
743 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
745 <div class="content_set">
746 <h3>Table of contents provided by Syndetics</h3>
748 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
749 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
754 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
756 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
758 <div class="content_set">
759 <h3>Excerpt provided by Syndetics</h3>
760 [% SYNDETICS_EXCERPT %]
763 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
765 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
767 <div class="content_set">
768 <h3>Reviews provided by Syndetics</h3>
769 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
770 [% IF ( SYNDETICS_REVIEW.title ) %]
771 <h4>[% SYNDETICS_REVIEW.title %]</h4>
772 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
774 [% IF ( review.content ) %]
783 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
785 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
787 <div class="content_set">
788 <h3>Author notes provided by Syndetics</h3>
789 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
790 [% IF ( SYNDETICS_ANOTE.content ) %]
791 [% SYNDETICS_ANOTE.content %]
796 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
797 [% END # / IF SyndeticsEnabled %]
799 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
800 <div id="NovelistSelect" >
801 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
803 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
805 [% IF ( subscriptionsnumber ) %]
806 <div id="subscriptions">
807 <h2>This is a serial</h2>
808 <p class="subscription_count">There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
809 [% FOREACH subscription IN subscriptions %]
810 [% IF ( subscription.branchcode ) %]
811 <h3>At library: [% Branches.GetName( subscription.branchcode ) %]</h3>
813 [% IF ( subscription.branchcode ) %]
814 <h3>At library: [% subscription.branchcode %]</h3>
817 [% IF ( subscription.closed ) %]
818 <p class="subscription_closed">This subscription is closed.</p>
820 [% IF ( subscription.callnumber ) %]
821 <p class="subscription_callnumber">Call number: [% subscription.callnumber %]</p>
823 [% IF ( subscription.subscriptionnotes ) %]
824 <p class="subscription_notes">[% subscription.subscriptionnotes FILTER html_line_break %] </p>
826 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
827 [% IF ( subscription.letter ) %]<span class="email_notifications">
828 [% IF ( loggedinusername ) %]
829 [% IF ( subscription.hasalert ) %]
830 <span>You have subscribed to email notification on new issues. </span><a style="color:#000;" class="btn" title="Cancel email notification" href="/cgi-bin/koha/opac-alert-subscribe.pl?op=cancel&externalid=[% subscription.subscriptionid %]&alerttype=issue&biblionumber=[% subscription.biblionumber %]">Cancel email notification</a>
832 <a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?externalid=[% subscription.subscriptionid %]&alerttype=issue&biblionumber=[% subscription.biblionumber %]">Subscribe to email notification on new issues</a>
835 <span>You must log in if you want to subscribe to email notification on new issues</span>
838 [% IF ( subscription.missinglist ) %]
839 <p class="subscription_missing">Missing issues: [% subscription.missinglist %] </p>
841 [% IF ( subscription.opacnote ) %]
842 <p class="subscription_opacnote">[% subscription.opacnote FILTER html_line_break %]</p>
844 [% IF ( subscription.latestserials ) %]
845 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
846 <table class="table table-bordered table-striped">
853 [% FOREACH latestserial IN subscription.latestserials %]
855 <td>[% latestserial.serialseq %]</td>
856 <td>[% latestserial.planneddate %]</td>
858 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
859 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
860 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
861 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
862 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
863 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
864 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
865 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
866 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
867 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
868 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
869 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
871 <td>[% latestserial.notes %]</td>
873 [% END # / FOREACH latestserials %]
875 [% END # / IF subscription.latestserials %]
876 [% END # / FOREACH subscriptions %]
877 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblionumber | html %]">More details</a></p>
878 </div> <!-- / #subscriptions -->
879 [% END # IF subscriptionsnumber %]
881 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
882 <!-- Library Thing for Libraries Content -->
883 <div id="LFTLSimilarItems">
884 <div class="content_set">
885 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
886 <!-- but breaks Xhtml validation -->
887 <!-- <span class="results_summary">-->
888 <div id="ltfl_related"></div>
889 <div id="ltfl_similars"></div>
893 <div id="LTFLTagBrowse">
894 <div class="content_set">
895 <!-- <span class="results_summary"> -->
896 <div id="ltfl_tagbrowse" class="ltfl"></div>
900 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
902 [% IF Koha.Preference( 'reviewson' ) == 1 %]
904 <div id="newcomment"></div>
906 [% FOREACH review IN reviews %]
907 [% IF review.borrowernumber == borrowernumber %]
908 <div class="commentline yours" id="c[% review.reviewid %]">
909 [% IF ( review.avatarurl ) %]
910 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
912 [% IF review.approved %]
913 <h5>Your comment</h5>
915 <h5>Your comment (preview, pending approval)</h5>
917 <small>[% review.datereviewed | $KohaDates %]</small>
919 [% FILTER html_break %]
920 [% review.review |html %]
922 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
926 <div class="commentline">
927 [% IF ( ShowReviewer != "none" ) %]
928 [% IF ( review.avatarurl ) %]
929 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
931 [% SWITCH ShowReviewer %]
933 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
935 <h5>Comment by [% review.firstname %]</h5>
937 <h5>Comment by [% review.surname %]</h5>
938 [% CASE 'firstandinitial' %]
939 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
940 [% CASE 'username' %]
941 <h5>Comment by [% review.userid %]</h5>
943 <small>[% review.datereviewed | $KohaDates %]</small>
944 [% ELSIF ( ShowReviewer == "none") %]
945 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
946 [% END # / IF ShowReviewer != "none"%]
948 [% FILTER html_break %]
949 [% review.review |html %]
952 </div> <!-- / .commentline -->
954 [% END # / FOREACH reviews %]
956 <p>There are no comments for this item.</p>
957 [% END # / IF reviews %]
959 [% IF ( loggedinusername ) %]
960 [% UNLESS ( loggedincommenter ) %]
961 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber | html %]'); return false;">
962 Post your comments on this item.
966 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
967 [% END # / IF loggedinusername %]
968 </div> <!-- / #comments -->
969 [% END # / IF reviewson %]
971 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
973 <h4>Other editions of this work</h4>
974 <table class="table table-bordered table-striped">
975 [% FOREACH XISBN IN XISBNS %]
978 [% IF ( OPACAmazonCoverImages ) %]
979 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
982 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
983 [% IF ( XISBN.content_identifier_exists ) %]
984 [% IF ( using_https ) %]
985 <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="" />
987 <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="" />
990 <span class="no-image">No cover image available</span>
991 [% END # / IF XISBN.content_identifier_exists %]
992 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
995 [% UNLESS ( item_level_itypes ) %]
996 <td>[% XISBN.description %]</td>
998 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
999 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author |html %][% END %]
1000 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate %][% END %]
1001 [% IF ( XISBN.publishercode ) %]
1002 <p>[% XISBN.publishercode |html %]
1003 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
1004 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear %][% END %]
1005 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
1010 [% END # / FOREACH XISBNS %]
1012 </div> <!-- / #editions -->
1013 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1015 [% IF ( HTML5MediaEnabled ) %]
1016 <div id="html5media">
1017 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1019 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1020 <[% HTML5MediaParent _ ctrl_preload %] >
1021 <[% HTML5MediaSet.child _ 'src="' _ HTML5MediaSet.srcblock _'"' _ HTML5MediaSet.typeblock %] />
1022 <span>[[% HTML5MediaParent %] tag not supported by your browser.]</span>
1023 </[% HTML5MediaParent %]>
1027 [% END # / IF HTML5MediaEnabled %]
1029 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1031 <p>Click on an image to view it in the image viewer</p>
1032 [% FOREACH image IN localimages %]
1034 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblionumber | html %]&imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image %]" /></a>
1037 </div><!-- / #images -->
1038 [% END # / IF OPACLocalCoverImages && localimages.size %]
1040 [% IF ( IDreamBooksReviews ) %]
1041 <div id="idb_critic_reviews">
1042 <div id="idb_review_snippets"></div>
1043 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1046 </div> <!-- / #bibliodescriptions -->
1048 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1049 <div id="NovelistSelect">
1050 <h3>Novelist Select</h3>
1051 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]"></div>
1055 [% IF ( Babeltheque ) %]
1057 <div id="BW_etiquettes"></div>
1058 <div id="BW_suggestions"></div>
1060 <div class="clearfix"></div>
1062 <div id="BW_podcasts"></div>
1064 <div class="clearfix"></div>
1066 <div id="BW_videos"></div>
1068 [% END # / IF Babeltheque %]
1070 [%# Following on one line due to translation issues %]
1071 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1073 </div> <!-- /.span9 -->
1076 <div id="ulactioncontainer">
1078 [% IF ( OpacBrowseResults && busc ) %]
1079 <div class="nav_results">
1080 <div class="l_Results">
1081 [% IF ( listResults ) %]
1082 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1084 <span>Browse results</span>
1087 <ul class="pg_menu clearfix">
1088 <li class="left_results">
1089 [% IF ( previousBiblionumber ) %]
1090 <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>
1092 <span>Previous</span>
1095 [%# busc is already URI encoded %]
1096 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1097 <li class="right_results">
1098 [% IF ( nextBiblionumber ) %]
1099 <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>
1105 [% IF ( listResults ) %]
1106 <div class="results-pagination">
1107 <div class="nav_pages">
1108 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1109 <ul id="listResults"></ul>
1111 <div class="pagination_list">
1112 <ul id="ul_pagination_list"></ul>
1117 [% END # / IF OpacBrowseResults && busc %]
1119 [% INCLUDE 'opac-detail-sidebar.inc' %]
1121 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1122 <div id="NovelistSelect">
1123 <h4>Novelist Select</h4>
1124 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
1128 [% IF ( Babeltheque ) %]
1129 <div class="babeltheque_adds">
1130 <div id="BW_critiques_aj"></div>
1131 <div id="BW_citations_aj"></div>
1135 [% IF ( SocialNetworks ) %]
1136 <div id="social_networks" class="clearfix">
1138 <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>
1139 <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>
1140 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1141 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1142 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1143 <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>
1146 </div> <!-- / .ulactioncontainer -->
1147 </div> <!-- / .span4 -->
1148 </div> <!-- / .row-fluid -->
1149 <div class="row-fluid">
1150 [% IF ( LibraryThingForLibrariesID ) %]
1151 [% IF ( using_https ) %]
1152 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1153 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1154 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1156 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1157 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1158 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1159 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1163 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1164 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1167 [% IF ( Babeltheque ) %]
1168 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1170 </div> <!-- / .row-fluid -->
1171 </div> <!-- / .container-fluid -->
1172 </div> <!-- / .main -->
1174 [% INCLUDE 'opac-bottom.inc' %]
1176 [%# End of template %]
1178 [% BLOCK items_table %]
1179 <table class="holdingst table table-bordered table-striped">
1182 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1183 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1184 <th id="item_current_location" class="item_location">Current location</th>
1186 [% UNLESS ( singleBranchMode ) %]
1187 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1188 <th id="item_home_location" class="item_location">Home library</th>
1191 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1192 <th id="item_callnumber" class="call_no">Call number</th>
1193 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1194 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">URL</th>[% END %]
1195 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1196 <th id="item_status" class="status">Status</th>
1197 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1198 <th id="item_datedue" class="date_due">Date due</th>
1199 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1200 [% IF holds_count.defined %]
1201 <th id="item_holds">Item holds</th>
1202 [% ELSIF show_priority %]
1203 <th id="item_priority">Item hold queue priority</th>
1205 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1209 [% FOREACH ITEM_RESULT IN items %]
1210 [% IF ITEM_RESULT.this_branch %]
1211 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1213 <tr vocab="http://schema.org/" typeof="Offer">
1215 [% IF ( item_level_itypes ) %]
1217 [% UNLESS ( noItemTypeImages ) %]
1218 [% IF ( ITEM_RESULT.imageurl ) %]
1219 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1222 [% ITEM_RESULT.description %]
1225 [% UNLESS singleBranchMode %]
1226 [% IF ( OpacLocationBranchToDisplay == 'holding' || 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.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1231 [% IF ( ITEM_RESULT.branchurl ) %]
1232 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1234 <span>[% ITEM_RESULT.branchname %]</span>
1237 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1239 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1240 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1246 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1247 <td class="location" property="seller">
1248 <link property="itemOffered" href="#record" />
1249 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1250 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1251 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1252 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1253 [% IF ( home_branch_url ) %]
1254 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1256 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1259 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1262 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1264 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1265 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1272 <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1275 [% IF ( itemdata_ccode ) %]
1276 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1278 <td class="call_no" property="sku">
1279 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1280 [% ITEM_RESULT.itemcallnumber %]
1281 [% IF ( OPACShelfBrowser ) %]
1282 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1283 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1285 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1290 [% IF ( itemdata_enumchron ) %]
1291 <td class="vol_info">
1292 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1293 <span class="enum">[% ITEM_RESULT.enumchron %]</span>
1294 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1295 <span class="sep"> -- </span>
1296 <span class="serialseq">[% ITEM_RESULT.serialseq %]</span>
1298 [% ELSIF ITEM_RESULT.enumchron %]
1299 <span class="enum">[% ITEM_RESULT.enumchron %]</span>
1300 [% ELSIF ITEM_RESULT.serialseq %]
1301 <span class="serialseq">[% ITEM_RESULT.serialseq %]</span>
1303 [% IF ( ITEM_RESULT.publisheddate ) %]
1304 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1308 [% IF ( itemdata_uri ) %]
1310 [% IF ITEM_RESULT.uri %]
1311 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1312 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1313 <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>
1315 <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>
1319 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1320 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1322 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1328 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1329 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1330 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1331 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1332 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1333 [% IF holds_count.defined || show_priority %]
1334 <td class="holds_count">
1335 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1336 [% IF ITEM_RESULT.priority %]
1337 [% IF holds_count.defined %]
1338 <span>(priority [% ITEM_RESULT.priority %])</span>
1340 <span>[% ITEM_RESULT.priority %]</span>
1345 [% IF ShowCourseReservesHeader %]
1347 [% IF ITEM_RESULT.course_reserves %]
1348 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1349 [% IF r.course.enabled == 'yes' %]
1351 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1352 [% r.course.course_name %]
1353 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1354 [% IF r.course.section %] [% r.course.section %] [% END %]
1355 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1362 [% END # /IF ShowCourseReservesHeader %]
1367 [% END %][%# end of items_table block %]
1369 [% BLOCK jsinclude %]
1370 [% INCLUDE 'datatables.inc' %]
1371 [% IF ( SocialNetworks ) %]
1372 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1374 {lang: '[% lang %]'}
1377 <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>
1379 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1381 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1383 <script type="text/javascript">
1386 [% IF ( OpacBrowseResults && busc ) %]
1387 var arrPagination = new Array();
1388 var pag_index_ini = [% indexPag %];
1389 [% IF ( listResults ) %]
1390 [% FOREACH listResult IN listResults %]
1391 arrPagination[[% listResult.index %]] = {
1392 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1393 title:"[% listResult.title|remove('\n')|html %]",
1394 author:"[% listResult.author|html %]",
1395 biblionumber:[% listResult.biblionumber %]
1401 [% IF ( OpacHighlightedWords ) %]
1402 var q_array = new Array(); // holds search terms if available
1404 function highlightOff() {
1405 $("#catalogue_detail_biblio").removeHighlight();
1406 $(".highlight_toggle").toggle();
1408 function highlightOn() {
1410 for (x in q_array) {
1411 if ( q_array[x].length > 0 ) {
1412 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1413 q_array[x] = q_array[x].toLowerCase();
1414 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1415 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1416 $(".title").highlight(q_array[x]);
1417 $(".author").highlight(q_array[x]);
1418 $(".results_summary").highlight(q_array[x]);
1422 $(".highlight_toggle").toggle();
1426 $(document).ready(function() {
1427 $('#bibliodescriptions').tabs();
1428 $(".branch-info-tooltip-trigger").uitooltip({
1429 position: { my: "left+15 center", at: "right center" },
1432 content: function(){
1433 var element = $(this).next("div");
1434 return element.html();
1437 [% IF ( TagsInputEnabled && loggedinusername ) %]
1438 $(".tag_add").click(function(){
1439 var thisid = $(this).attr("id");
1440 thisid = thisid.replace("tag_add","");
1442 $("#tagform"+thisid).show();
1443 $("#newtag"+thisid).focus();
1444 $("#newtag"+thisid+"_status").empty().hide();
1447 $(".cancel_tag_add").click(function(){
1448 var thisid = $(this).attr("id");
1449 thisid = thisid.replace("cancel","");
1450 $("#tagform"+thisid).hide();
1451 $("#tag_add"+thisid).show();
1452 $("#newtag"+thisid).val("");
1453 $("#newtag"+thisid+"_status").empty().hide();
1456 $(".tagbutton").click(function(){
1457 var thisid = $(this).attr("title");
1458 var tag = $("#newtag"+thisid).val();
1459 if (!tag || (tag == "")) {
1460 alert(MSG_NO_TAG_SPECIFIED);
1463 KOHA.Tags.add_tag_button(thisid, tag);
1468 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1469 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1470 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1471 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1472 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1473 var default_order_index = 1;
1474 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1475 var default_order_index = 2;
1477 var default_order_index = 0;
1479 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1481 [% IF ( item_level_itypes ) %]null,[% END %]
1482 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]null,[% END %]
1483 [% UNLESS ( singleBranchMode ) %]
1484 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]null,[% END %]
1486 [% IF ( itemdata_ccode ) %]null,[% END %]
1488 [% IF ( itemdata_enumchron ) %]null,[% END %]
1489 [% IF ( itemdata_uri ) %]null,[% END %]
1490 [% IF ( itemdata_copynumber ) %]null,[% END %]
1492 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1493 { "sType": "title-string" },
1494 [% IF ( OPACShowBarcode ) %]null,[% END %]
1495 [% IF holds_count.defined %]
1497 [% ELSIF show_priority %]
1500 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1502 "aaSorting": [[ default_order_index, 'asc' ]]
1505 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1506 q_array = query_desc.split(" ");
1507 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1509 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1510 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1511 [% IF ( GoogleJackets ) %]
1512 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1514 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1515 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1518 [% IF OpenLibraryCovers %]
1519 KOHA.OpenLibrary.GetCoverFromIsbn();
1521 [% IF OPACLocalCoverImages %]
1522 KOHA.LocalCover.GetCoverFromBibnumber(true);
1524 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1525 novSelect.loadContentForQuery(
1527 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1528 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1531 '[% NovelistSelectProfile %]',
1532 '[% NovelistSelectPassword %]',
1534 if ( d.length > 0 ){ //If no content
1535 $(".NovelistSelect").show();
1540 [% IF ( OpacBrowseResults && busc ) %]
1541 if (arrPagination.length > 0) {
1542 renderPagIndexList(pag_index_ini, $("#listResults"));
1544 $("#a_listResults").click(function(e) {
1545 if (arrPagination.length > 0) {
1547 var navigation = $(".results-pagination");
1548 if (navigation.css("display") == 'none') {
1550 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1551 $(this).attr('title',newtitle);
1552 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1555 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1556 $(this).attr('title',newtitle);
1560 $("#close_pagination").click(function(e) {
1562 var navigation = $(".results-pagination");
1566 [% IF ( OPACShelfBrowser ) %]
1568 (function prepareShelfBrowser(){
1570 $(".main").on("click",".close_shelf",function(e){
1572 $("#shelfbrowser").toggle();
1574 $(".main").on("click", "#browser_previous a", function(e){
1577 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1580 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1582 success: function(data){
1583 $("#shelfbrowser").replaceWith(data);
1584 [% IF ( GoogleJackets ) %]
1585 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1587 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1588 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1590 [% IF OpenLibraryCovers %]
1591 KOHA.OpenLibrary.GetCoverFromIsbn();
1593 [% IF OPACLocalCoverImages %]
1594 KOHA.LocalCover.GetCoverFromBibnumber(true);
1600 $(".main").on("click", "#browser_next a", function(e){
1603 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1606 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1608 success: function(data){
1609 $("#shelfbrowser").replaceWith(data);
1610 [% IF ( GoogleJackets ) %]
1611 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1613 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1614 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1616 [% IF OpenLibraryCovers %]
1617 KOHA.OpenLibrary.GetCoverFromIsbn();
1619 [% IF OPACLocalCoverImages %]
1620 KOHA.LocalCover.GetCoverFromBibnumber(true);
1627 [% IF ( OpacStarRatings != 'disable' ) %]
1628 // -----------------------------------------------------
1629 // star-ratings code
1630 // -----------------------------------------------------
1631 // hide 'rate' button if javascript enabled
1633 $('input[name="rate_button"]').remove();
1636 $(".auto-submit-star").rating({
1637 callback: function (value, link) {
1639 // if the new value equals the old value, dont execute callback...
1641 if ($("#rating_value").attr("value") != value) {
1645 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1646 rating_old_value: $("#rating_value").attr("value"),
1647 borrowernumber: "[% borrowernumber %]",
1648 biblionumber: "[% biblionumber | html %]",
1649 rating_value: value,
1651 }, function (data) {
1653 if (data.auth_status != 'ok') {
1654 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1656 $("#rating_value").val(data.rating_value);
1658 if (data.rating_value) {
1659 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1661 $("#rating_value_text").text('');
1664 $("#rating_text").text(_("average rating: ") + data.rating_avg + " (" + data.rating_total + ' ' + _("votes") + ")");
1673 // -----------------------------------------------------
1674 [% END # / IF ( OpacStarRatings != 'disable' )%]
1676 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1677 var isbn = $(".isbn:last").text().split(" ")[1];
1679 isbn = isbn.replace(/\W*$/, '');
1680 isbn = isbn.replace(/-/, '');
1682 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1683 // Use Microsoft XDR for IE version 8 or above
1684 var xdr = new XDomainRequest();
1685 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1686 xdr.onload = function() {
1687 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1688 eval(json); // json is now a regular JSON object
1689 parseIDBJSON(json); // parse using same function as for jQuery's success event
1693 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1698 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1701 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1702 function parseIDBJSON( json ) {
1703 if(json.total_results > 0 && json.book.rating > 0){
1704 var isbn = $(".isbn:last").text().split(" ")[1];
1705 isbn = isbn.replace(/\W+/g, '');
1707 [% IF ( IDreamBooksReadometer ) %]
1708 $(".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>');
1711 [% IF ( IDreamBooksReviews ) %]
1712 //build new tab for critic reviews
1713 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1715 //append happy-sad cloud review
1717 $("#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>");
1719 //insert data into Book reviews tab
1720 $.each(json.book.critic_reviews, function(){
1721 $("#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>");
1723 $("#seemoreidb").attr('href', json.book.detail_link);
1724 $("#tab_idb_critic_reviews").show();
1728 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1730 [% IF ( OpacBrowseResults && busc ) %]
1732 var totalPagItemList = 10;
1734 function rewindList()
1736 var ul = $("#listResults");
1737 var li_ini = ul.children(':first').next();
1738 var index_ini = pag_index_ini;
1740 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1742 var li_end = ul.children(':last').prev();
1743 var index_end = arrPagination.length - 1;
1745 index_end = parseInt(li_end.attr("class").substring(7), 10);
1747 if (index_ini > pag_index_ini) {
1748 renderPagIndexList(index_ini - 1, ul, false);
1749 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1753 function forwardList()
1755 var ul = $("#listResults");
1756 var li_ini = ul.children(':first').next();
1757 var index_ini = pag_index_ini;
1759 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1761 var li_end = ul.children(':last').prev();
1762 var index_end = arrPagination.length - 1;
1764 index_end = parseInt(li_end.attr("class").substring(7), 10);
1766 if (index_end < arrPagination.length - 1) {
1767 renderPagIndexList(index_ini + 1, ul, false);
1768 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1772 function renderPagIndexList(index, ul)
1774 var $kids = ul.children("li");
1775 if ($kids.length > 0) {
1776 $kids.each(function() {
1782 var ini = index - 1;
1783 var end = ini + totalPagItemList - 1;
1785 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1789 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1790 if (arrPagination[i] == undefined) continue;
1791 var li = $("<li />");
1792 if (arrPagination[i].url != "") {
1793 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1794 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1795 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1796 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1797 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1798 html += ">" + i + "</a>";
1801 li.attr("class", "li_pag_" + i);
1806 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1807 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>":"»";
1810 }//renderPagIndexList
1813 function renderPagination(index, total, ul, highlIndex)
1815 for (var i = pag_index_ini; i <= total; i++) {
1816 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1817 $("#li_pag_" + i).remove();
1820 for (var i = index; i <= total && j < totalPagItemList; i++) {
1821 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1822 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1823 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1824 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1826 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1830 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1831 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1832 $("#li_pag_" + i).remove();
1833 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1834 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1835 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1841 [% END # / IF ( OpacBrowseResults && busc ) %]
1845 [% IF OPACPopupAuthorsSearch %]
1846 <script type="text/javascript">
1848 function showAuthors(element){
1849 var authornumber = $(element).attr("data-count");
1851 // Check checkbox related to the clicked link
1852 $("#authorsList input[type='checkbox']").attr('checked', false);
1853 $("#author_"+authornumber).attr('checked', true);
1855 makeAuthorRequest();
1858 function checkAll(checkbox, elem) {
1859 var check = $(checkbox).attr('checked') ? true : false;
1860 $(elem).find("input[type='checkbox']").attr('checked', check);
1861 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1864 function makeAuthorRequest(){
1867 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1868 values.push($(this).val());
1871 if (values.length > 0) {
1872 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1873 $("#validAuthorSearch").attr("href", request);
1875 $("#validAuthorSearch").removeAttr("href");
1881 function showSubjects(element, subjectnumber, subfieldnumber){
1883 // Check checkbox related to the clicked link
1884 $("#subjectsList input[type='checkbox']").attr('checked', false);
1885 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1887 makeSubjectRequest();
1891 function makeSubjectRequest() {
1893 $("#subjectsList > ul").each(function() {
1894 var all_checked = true;
1895 var local_values = [];
1896 $(this).find('input[type="checkbox"]').each(function() {
1897 if($(this).attr('checked')) {
1898 local_values.push($(this).val());
1900 all_checked = false;
1903 var authid = $(this).attr('data-authid');
1904 if(all_checked && authid) {
1905 values.push('an:' + authid);
1907 values = values.concat(local_values);
1910 if(values.length > 0) {
1911 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1912 $("#validSubjectSearch").attr('href', request);
1914 $("#validSubjectSearch").removeAttr("href");
1917 $(document).ready(function() {
1918 $("a.showauthors").click(function(e){
1926 [% END # / IF OPACPopupAuthorsSearch %]