5 [% USE ColumnsSettings %]
6 [% USE AuthorisedValues %]
7 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
8 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
9 [% IF Koha.Preference('AmazonAssocTag') %]
10 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
12 [% AmazonAssocTag = '' %]
15 [% ShowCourseReservesHeader = 0 %]
16 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
17 [% FOREACH ITEM_RESULT IN itemloop %]
18 [% IF ITEM_RESULT.course_reserves %]
19 [% FOREACH r IN ITEM_RESULT.course_reserves %]
20 [% IF r.course.enabled == 'yes' %]
21 [% ShowCourseReservesHeader = 1 %]
28 [% IF ( using_https ) %]
29 [% SET protocol = "https://" %]
31 [% SET protocol = "http://" %]
33 [% INCLUDE 'doc-head-open.inc' %]
34 <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>
35 [% INCLUDE 'doc-head-close.inc' %]
37 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
39 [% IF ( OpacStarRatings != 'disable' ) %]
40 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
42 [% INCLUDE greybox.inc %]
44 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
45 [% INCLUDE 'masthead.inc' %]
48 <ul class="breadcrumb">
49 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
50 <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>
53 <div class="container-fluid">
54 <div class="row-fluid">
56 <div id="catalogue_detail_biblio" class="maincontent">
59 [% IF ( OPACLocalCoverImages ) %]
60 <div title="[% biblionumber |url %]" class="[% biblionumber | html %]" id="local-thumbnail-preview"></div>
62 [% IF ( OPACAmazonCoverImages ) %]
63 [% IF ( OPACURLOpenInNewWindow ) %]
64 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link" target="_blank" rel="noreferrer">
66 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %][% AmazonAssocTag %]">
68 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
71 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
72 [% IF ( content_identifier_exists ) %]
73 [% IF ( using_https ) %]
74 <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" />
76 <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" />
80 <span class="no-image">No cover image available</span>
84 [% IF ( GoogleJackets ) %]
85 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
87 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
88 [% coce_id = normalized_ean || normalized_isbn %]
89 <div style="block" title="[% biblionumber |url %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
91 [% IF OpenLibraryCovers %]
92 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
94 [% bt_id = ( normalized_upc || normalized_isbn ) %]
95 [% IF ( BakerTaylorEnabled && bt_id ) %]
96 [% IF BakerTaylorBookstoreURL %]
97 [% IF ( OPACURLOpenInNewWindow ) %]
98 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
100 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
103 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
106 </div><!-- / #bookcover -->
108 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber | html %]"><!-- unAPI --></abbr>
109 [% IF ( ocoins ) # COinS / Openurl %]
110 <span class="Z3988" title="[% ocoins %]"></span>
114 <span class="view current-view"><span id="Normalview">Normal view</span></span>
115 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber | html %]">MARC view</a></span>
116 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber | html %]">ISBD view</a></span>[% END %]
118 [% IF ( OPACXSLTDetailsDisplay ) %]
121 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
122 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
124 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
126 [% IF ( description ) %]
132 [% IF ( unititle ) %], [% unititle %][% END %]
135 [% IF ( MARCAUTHORS ) %]
136 <div class="results_summary">
137 <span class="label">Additional authors:</span>
138 [% IF OPACPopupAuthorsSearch %]
139 <!-- Author search term selection modal -->
140 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
141 <div class="modal-header">
142 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
143 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
145 <div class="modal-body">
146 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
147 <ul id="authorsList">
148 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
150 [% IF (MARCAUTHOR.authoritylink) %]
151 <input type="checkbox" name="checkbox"
152 id="author_[% loop.count %]"
153 onclick="makeAuthorRequest()"
154 value="an:[% MARCAUTHOR.authoritylink %]" />
156 <input type="checkbox" name="checkbox"
157 id="author_[% loop.count %]"
158 onclick="makeAuthorRequest()"
159 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
161 <label for="author_[% loop.count %]">
162 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
167 [% END # /FOREACH MARCAUTHORS %]
170 <div class="modal-footer">
171 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
172 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
175 [% END # /OPACPopupAuthorsSearch %]
177 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
178 [% authorsloop = loop %]
179 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
180 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
181 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
182 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
183 class="showauthors" data-count="[% authorsloop.count %]"
184 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>
186 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
187 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>
190 [% IF (MARCAUTHOR.authoritylink) %]
191 <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>
193 [% IF IDREF and MARCAUTHOR.unimarc3 %]
194 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
196 [% UNLESS ( loop.last ) %]|[% END %]
197 [% END # /FOREACH MARCAUTHORS %]
199 [% END # IF MARCAUTHORS %]
201 [% IF ( MARCSERIES ) %]
202 <span class="results_summary series"><span class="label">Series:</span>
203 [% FOREACH MARCSERIE IN MARCSERIES %]
204 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
205 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
206 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
208 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
209 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
212 [% UNLESS ( loop.last ) %]|[% END %]
213 [% END # / FOREACH MARCSERIES %]
215 [% END # /MARCSERIES %]
217 [% IF ( editionstatement ) %]
218 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
220 [% IF ( publishercode ) %]
221 <span class="results_summary publisher"><span class="label">Published by :</span>
222 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
223 [% publishercode |html %]
224 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
229 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
232 [% IF ( MARCISBNS ) %]
233 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
235 [% IF ( normalized_isbn ) %]
236 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
241 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
244 [% IF ( collectiontitle ) %]
245 <span class="results_summary collection"><span class="label">Collection: </span>
246 [% collectiontitle %]
247 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn %][% END %]
248 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume %] [% END %]
253 [% IF ( unititles ) %]
254 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
255 [% FOREACH unititle IN unititles %]
256 [% unititle.unititle %] ;
261 [% IF ( MARCSUBJCTS ) %]
262 <div class="results_summary subject">
263 <span class="label">Subject(s):</span>
265 [% IF OPACPopupAuthorsSearch %]
266 <!-- Search term selection modal -->
267 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
268 <div class="modal-header">
269 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
270 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
272 <div id="subjectsList" class="modal-body">
273 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
274 <label for="all_subjects">
277 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
278 [% subjectsloop = loop %]
279 [% IF MARCSUBJCT.authoritylink %]
280 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
282 <ul id="subjectsList[% loop.count %]">
284 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
286 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
287 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
295 <div class="modal-footer">
296 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
297 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
300 [% END # /OPACPopupAuthorsSearch%]
302 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
303 [% subjectsloop = loop %]
304 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
305 [% SUBFIELD.separator %]
306 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
307 <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>
309 <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>
312 [% IF (MARCSUBJCT.authoritylink) %]
313 <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>
315 [% UNLESS ( loop.last ) %] | [% END %]
316 [% END # / FOREACH MARCSUBJCTS %]
318 [% ELSE # /IF MARCSUBJCTS %]
319 [% 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 %]
322 [% IF ( copyrightdate ) %]
323 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
326 [% UNLESS ( item_level_itypes ) %]
328 <img src="[% imageurl %]" alt="" />
330 <span class="results_summary itemtype"><span class="label">Item type: </span>
331 [% IF ( description ) %]
339 [% IF ( MARCURLS ) %]
340 <div class="results_summary online_resources"><span class="label">Online resources:</span>
342 [% FOREACH MARCurl IN MARCURLS %]
343 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
345 [% IF ( OPACURLOpenInNewWindow ) %]
346 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
347 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
349 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
352 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
353 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
355 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
358 [% MARCurl.linktext %]</a>
359 [% IF ( MARCurl.notes ) %]
361 [% FOREACH note IN MARCurl.notes %]
362 <li>[% note.note %]</li>
367 [% END # /FOREACH MARCURLS %]
370 [% END # / IF MARCURLS %]
371 [% END # / IF OPACXSLTDetailsDisplay %]
373 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
374 [% IF ( LibraryThingForLibrariesID ) %]
375 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
376 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
377 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
378 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
380 <span class="results_summary">
381 <span class="label">Reviews from LibraryThing.com:</span>
382 <span style="display: block;" class="ltfl_reviews"></span>
384 [% END # / LibraryThingForLibrariesID %]
386 <!--This grabs all of the lists a bib record appears in -->
387 [% IF shelves.count %]
388 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
389 [% FOREACH s IN shelves %]
390 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
391 [% IF ( loop.last ) %][% ELSE %]|[% END %]
396 [% IF ( TagsShowEnabled ) %]
397 <div class="results_summary tags">
399 <span class="label">Tags from this library:</span>
401 [% FOREACH TagLoo IN TagLoop %]
402 <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>
403 [% IF ( loop.last ) %][% ELSE %], [% END %]
408 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
410 [% IF ( TagsInputEnabled ) %]
411 [% IF ( loggedinusername ) %]
412 <form id="tagform[% biblionumber | html %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
413 <label for="newtag[% biblionumber | html %]">New tag(s), separated by a comma:</label>
414 <input name="newtag[% biblionumber | html %]" id="newtag[% biblionumber | html %]" maxlength="100" type="text"/>
415 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber | html %]" type="submit" value="Add" />
416 <a class="cancel_tag_add" id="cancel[% biblionumber | html %]" href="#">(done)</a>
418 <span id="newtag[% biblionumber | html %]_status" class="tagstatus" style="display:none;">
421 <a class="tag_add" id="tag_add[% biblionumber | html %]" href="#">Add tag(s)</a>
423 <span id="login4tags">
424 [% IF Koha.Preference('casAuthentication') %]
425 [%# CAS authentication is too complicated for modal window %]
426 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
428 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
432 [% END # / IF TagsInputEnabled %]
434 [% END # /IF TagsShowEnabled %]
436 [% IF ( SyndeticsEnabled ) %]
437 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
438 <span class="results_summary">
439 <span class="label">Series information:</span>
440 [% IF ( using_https ) %]
441 <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>
443 <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>
446 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
447 [% IF ( SyndeticsAVPROFILEExists ) %]
448 <span class="results_summary">
449 <span class="label">Audiovisual profile:</span>
450 [% IF ( using_https ) %]
451 <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>
453 <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>
456 [% END # / IF SyndeticsAVPROFILEExists %]
458 [% IF ( SyndeticsFICTIONExists ) %]
459 <span class="results_summary">
460 <span class="label">Fiction notes:</span>
461 [% IF ( using_https ) %]
462 <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>
464 <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>
467 [% END # / IF SyndeticsFICTIONExists %]
469 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
470 <span class="results_summary">
471 <span class="label">Awards:</span>
472 [% IF ( using_https ) %]
473 <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>
475 <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>
478 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
479 [% END # / IF SyndeticsEnabled%]
481 [% IF ( OpacStarRatings != 'disable' ) %]
482 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
483 <div class="results_summary ratings">
485 [% SET rating_avg = ratings.get_avg_rating() %]
486 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
487 [% FOREACH i IN [ 1 2 3 4 5 ] %]
488 [% IF rating_avg_int == i && borrowernumber %]
489 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
490 [% ELSIF rating_avg_int == i %]
491 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
492 [% ELSIF borrowernumber %]
493 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
495 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
499 <!-- define some hidden vars for ratings -->
501 <input type="hidden" name='biblionumber' value="[% biblionumber | html %]" />
502 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
504 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
507 <span id="rating_value_text">your rating: [% my_rating.rating_value %], </span>
509 <span id="rating_value_text"></span>
512 <span id="rating_text">average rating: [% rating_avg %] ([% ratings.count %] votes)</span>
515 [% END # / IF OpacStarRatings != 'disable' %]
517 [% IF ( BakerTaylorContentURL ) %]
518 <span class="results_summary">
519 <span class="label">Enhanced content: </span>
520 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
522 [% END # / IF BakerTaylorContentURL %]
524 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
525 [% IF ( NovelistSelectView == 'above') %]
526 <span class="results_summary NovelistSelect" style="display:none;">
527 <span class="label">Novelist Select: </span>
528 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
531 [% END # / IF NovelistSelectProfile %]
533 [% IF ( Babeltheque ) %]
534 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
535 <div id="BW_notes"></div>
536 <div id="BW_critiques"></div>
537 <div id="BW_critiques_pro"></div>
538 <div id="BW_citations"></div>
539 [% END # / IF Babeltheque%]
541 </div> <!-- / #catalogue_detail_biblio -->
543 <div id="bibliodescriptions" class="toptabs">
545 [% IF ( defaulttab == 'holdings' ) %]
546 <li id="tab_holdings" class="ui-tabs-active">
548 <li id="tab_holdings">
550 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
551 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' %][% END %]</a>
553 [% IF (SeparateHoldings) %]
554 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' %]</a></li>
556 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
557 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
559 [% IF ( SYNDETICS_TOC ) %]
560 <li id="tab_toc"> <a href="#toc">TOC</a></li>
562 [% IF ( SyndeticsEnabled ) %]
563 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
564 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
566 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
567 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
568 [% IF ( LibraryThingForLibrariesID ) %]
569 <li id="tab_LTFLreviews">
570 [% IF ( using_https ) %]
571 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
572 <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>
574 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
575 <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>
580 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
581 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
583 [% END # / IF SyndeticsEnabled %]
585 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
586 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
587 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
590 [% IF ( subscriptionsnumber ) %]
591 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
592 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber %] )</a>
596 [% IF Koha.Preference( 'reviewson' ) == 1 %]
597 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' %]</a></li>
600 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
601 [% IF ( NovelistSelectView == 'tab') %]
602 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
606 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
607 <li id="tab_editions"><a href="#editions">Editions</a></li>
610 [% IF ( serialcollection ) %]
611 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
612 <a href="#serialcollection">Serial collection</a>
616 [% IF ( OPACLocalCoverImages && localimages.size ) %]
617 <li id="tab_images"><a href="#images">Images</a></li>
620 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
621 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
624 [% IF ( IDreamBooksReviews ) %]
625 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
629 [% IF ( serialcollection ) %]
630 <div id="serialcollection">
631 <table id="serialcollectiont" class="table table-bordered table-striped">
634 <th id="serial_library">Library</th>
635 <th id="serial_collection">Serial collection</th>
636 <th id="serial_itemcallnumber">Item call number</th>
640 [% FOREACH serialcollection IN serialcollections %]
642 <td>[% serialcollection.branch %]</td>
643 <td>[% serialcollection.text %]</td>
644 <td>[% serialcollection.itemcallnumber %]</td>
650 [% END # / IF serialcollection %]
654 [% IF too_many_items %]
655 <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>
656 [% ELSIF ( itemloop.size ) %]
657 [% INCLUDE items_table items=itemloop tab="holdings" %]
658 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
659 [% IF acquisition_details.total_quantity == 1 %]
660 <span>1 item is on order.</span>
662 <span>[% acquisition_details.total_quantity %] items are on order.</span>
665 [% IF holds_count.defined || priority %]
667 [% IF holds_count.defined %]
668 <span>Total holds: [% holds_count %]</span>
671 [% IF holds_count.defined %]
672 <span>(priority [% priority %])</span>
674 <span>Overall queue priority: [% priority %]</span>
680 [% IF ( ALTERNATEHOLDINGS ) %]
681 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
682 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
685 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
686 [% IF acquisition_details.total_quantity == 1 %]
687 <span>1 item is on order.</span>
689 <span>[% acquisition_details.total_quantity %] items are on order.</span>
692 <div id="noitems">No physical items for this record</div>
695 [% END # IF itemloop.size %]
696 [% PROCESS 'shelfbrowser.inc' %]
697 [% INCLUDE shelfbrowser tab='holdings' %]
698 <br style="clear:both;" />
699 </div> <!-- / #holdings -->
701 [% IF (SeparateHoldings) %]
702 <div id="otherholdings">
703 [% IF (otheritemloop.size) %]
704 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
706 <span>No other items.</span>
708 [% INCLUDE shelfbrowser tab='otherholdings' %]
710 [% END # / SeparateHoldings %]
712 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
713 <div id="descriptions">
714 <div class="content_set">
716 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
717 <h4>Enhanced descriptions from Syndetics:</h4>
718 <p>[% SYNDETICS_SUMMARY %]</p>
721 [% IF ( MARCNOTES ) %]
723 [% FOREACH MARCNOTE IN MARCNOTES %]
725 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
726 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
728 [% MARCNOTE.marcnote FILTER html_line_break %]
740 </div> <!-- / #descriptions -->
741 [% END # / IF MARCNOTES || notes %]
743 [% IF ( SyndeticsEnabled ) %]
744 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
746 <div class="content_set">
747 <h3>Table of contents provided by Syndetics</h3>
749 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
750 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
755 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
757 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
759 <div class="content_set">
760 <h3>Excerpt provided by Syndetics</h3>
761 [% SYNDETICS_EXCERPT %]
764 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
766 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
768 <div class="content_set">
769 <h3>Reviews provided by Syndetics</h3>
770 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
771 [% IF ( SYNDETICS_REVIEW.title ) %]
772 <h4>[% SYNDETICS_REVIEW.title %]</h4>
773 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
775 [% IF ( review.content ) %]
784 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
786 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
788 <div class="content_set">
789 <h3>Author notes provided by Syndetics</h3>
790 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
791 [% IF ( SYNDETICS_ANOTE.content ) %]
792 [% SYNDETICS_ANOTE.content %]
797 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
798 [% END # / IF SyndeticsEnabled %]
800 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
801 <div id="NovelistSelect" >
802 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
804 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
806 [% IF ( subscriptionsnumber ) %]
807 <div id="subscriptions">
808 <h2>This is a serial</h2>
809 <p class="subscription_count">There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
810 [% FOREACH subscription IN subscriptions %]
811 [% IF ( subscription.branchcode ) %]
812 <h3>At library: [% Branches.GetName( subscription.branchcode ) %]</h3>
814 [% IF ( subscription.branchcode ) %]
815 <h3>At library: [% subscription.branchcode %]</h3>
818 [% IF ( subscription.closed ) %]
819 <p class="subscription_closed">This subscription is closed.</p>
821 [% IF ( subscription.callnumber ) %]
822 <p class="subscription_callnumber">Call number: [% subscription.callnumber %]</p>
824 [% IF ( subscription.subscriptionnotes ) %]
825 <p class="subscription_notes">[% subscription.subscriptionnotes FILTER html_line_break %] </p>
827 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
828 [% IF ( subscription.letter ) %]<span class="email_notifications">
829 [% IF ( loggedinusername ) %]
830 [% IF ( subscription.hasalert ) %]
831 <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>
833 <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>
836 <span>You must log in if you want to subscribe to email notification on new issues</span>
839 [% IF ( subscription.missinglist ) %]
840 <p class="subscription_missing">Missing issues: [% subscription.missinglist %] </p>
842 [% IF ( subscription.opacnote ) %]
843 <p class="subscription_opacnote">[% subscription.opacnote FILTER html_line_break %]</p>
845 [% IF ( subscription.latestserials ) %]
846 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
847 <table class="table table-bordered table-striped">
854 [% FOREACH latestserial IN subscription.latestserials %]
856 <td>[% latestserial.serialseq %]</td>
857 <td>[% latestserial.planneddate %]</td>
859 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
860 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
861 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
862 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
863 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
864 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
865 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
866 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
867 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
868 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
869 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
870 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
872 <td>[% latestserial.notes %]</td>
874 [% END # / FOREACH latestserials %]
876 [% END # / IF subscription.latestserials %]
877 [% END # / FOREACH subscriptions %]
878 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblionumber | html %]">More details</a></p>
879 </div> <!-- / #subscriptions -->
880 [% END # IF subscriptionsnumber %]
882 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
883 <!-- Library Thing for Libraries Content -->
884 <div id="LFTLSimilarItems">
885 <div class="content_set">
886 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
887 <!-- but breaks Xhtml validation -->
888 <!-- <span class="results_summary">-->
889 <div id="ltfl_related"></div>
890 <div id="ltfl_similars"></div>
894 <div id="LTFLTagBrowse">
895 <div class="content_set">
896 <!-- <span class="results_summary"> -->
897 <div id="ltfl_tagbrowse" class="ltfl"></div>
901 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
903 [% IF Koha.Preference( 'reviewson' ) == 1 %]
905 <div id="newcomment"></div>
907 [% FOREACH review IN reviews %]
908 [% IF review.borrowernumber == borrowernumber %]
909 <div class="commentline yours" id="c[% review.reviewid %]">
910 [% IF ( review.avatarurl ) %]
911 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
913 [% IF review.approved %]
914 <h5>Your comment</h5>
916 <h5>Your comment (preview, pending approval)</h5>
918 <small>[% review.datereviewed | $KohaDates %]</small>
920 [% FILTER html_break %]
921 [% review.review |html %]
923 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
927 <div class="commentline">
928 [% IF ( ShowReviewer != "none" ) %]
929 [% IF ( review.avatarurl ) %]
930 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
932 [% SWITCH ShowReviewer %]
934 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
936 <h5>Comment by [% review.firstname %]</h5>
938 <h5>Comment by [% review.surname %]</h5>
939 [% CASE 'firstandinitial' %]
940 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
941 [% CASE 'username' %]
942 <h5>Comment by [% review.userid %]</h5>
944 <small>[% review.datereviewed | $KohaDates %]</small>
945 [% ELSIF ( ShowReviewer == "none") %]
946 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
947 [% END # / IF ShowReviewer != "none"%]
949 [% FILTER html_break %]
950 [% review.review |html %]
953 </div> <!-- / .commentline -->
955 [% END # / FOREACH reviews %]
957 <p>There are no comments for this item.</p>
958 [% END # / IF reviews %]
960 [% IF ( loggedinusername ) %]
961 [% UNLESS ( loggedincommenter ) %]
962 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber | html %]'); return false;">
963 Post your comments on this item.
967 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
968 [% END # / IF loggedinusername %]
969 </div> <!-- / #comments -->
970 [% END # / IF reviewson %]
972 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
974 <h4>Other editions of this work</h4>
975 <table class="table table-bordered table-striped">
976 [% FOREACH XISBN IN XISBNS %]
979 [% IF ( OPACAmazonCoverImages ) %]
980 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
983 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
984 [% IF ( XISBN.content_identifier_exists ) %]
985 [% IF ( using_https ) %]
986 <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="" />
988 <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="" />
991 <span class="no-image">No cover image available</span>
992 [% END # / IF XISBN.content_identifier_exists %]
993 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
996 [% UNLESS ( item_level_itypes ) %]
997 <td>[% XISBN.description %]</td>
999 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
1000 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author |html %][% END %]
1001 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate %][% END %]
1002 [% IF ( XISBN.publishercode ) %]
1003 <p>[% XISBN.publishercode |html %]
1004 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
1005 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear %][% END %]
1006 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
1011 [% END # / FOREACH XISBNS %]
1013 </div> <!-- / #editions -->
1014 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1016 [% IF ( HTML5MediaEnabled ) %]
1017 <div id="html5media">
1018 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1020 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1021 <[% HTML5MediaParent _ ctrl_preload %] >
1022 <[% HTML5MediaSet.child _ 'src="' _ HTML5MediaSet.srcblock _'"' _ HTML5MediaSet.typeblock %] />
1023 <span>[[% HTML5MediaParent %] tag not supported by your browser.]</span>
1024 </[% HTML5MediaParent %]>
1028 [% END # / IF HTML5MediaEnabled %]
1030 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1032 <p>Click on an image to view it in the image viewer</p>
1033 [% FOREACH image IN localimages %]
1035 <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>
1038 </div><!-- / #images -->
1039 [% END # / IF OPACLocalCoverImages && localimages.size %]
1041 [% IF ( IDreamBooksReviews ) %]
1042 <div id="idb_critic_reviews">
1043 <div id="idb_review_snippets"></div>
1044 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1047 </div> <!-- / #bibliodescriptions -->
1049 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1050 <div id="NovelistSelect">
1051 <h3>Novelist Select</h3>
1052 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]"></div>
1056 [% IF ( Babeltheque ) %]
1058 <div id="BW_etiquettes"></div>
1059 <div id="BW_suggestions"></div>
1061 <div class="clearfix"></div>
1063 <div id="BW_podcasts"></div>
1065 <div class="clearfix"></div>
1067 <div id="BW_videos"></div>
1069 [% END # / IF Babeltheque %]
1071 [%# Following on one line due to translation issues %]
1072 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1074 </div> <!-- /.span9 -->
1077 <div id="ulactioncontainer">
1079 [% IF ( OpacBrowseResults && busc ) %]
1080 <div class="nav_results">
1081 <div class="l_Results">
1082 [% IF ( listResults ) %]
1083 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1085 <span>Browse results</span>
1088 <ul class="pg_menu clearfix">
1089 <li class="left_results">
1090 [% IF ( previousBiblionumber ) %]
1091 <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>
1093 <span>Previous</span>
1096 [%# busc is already URI encoded %]
1097 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1098 <li class="right_results">
1099 [% IF ( nextBiblionumber ) %]
1100 <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>
1106 [% IF ( listResults ) %]
1107 <div class="results-pagination">
1108 <div class="nav_pages">
1109 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1110 <ul id="listResults"></ul>
1112 <div class="pagination_list">
1113 <ul id="ul_pagination_list"></ul>
1118 [% END # / IF OpacBrowseResults && busc %]
1120 [% INCLUDE 'opac-detail-sidebar.inc' %]
1122 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1123 <div id="NovelistSelect">
1124 <h4>Novelist Select</h4>
1125 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
1129 [% IF ( Babeltheque ) %]
1130 <div class="babeltheque_adds">
1131 <div id="BW_critiques_aj"></div>
1132 <div id="BW_citations_aj"></div>
1136 [% IF ( SocialNetworks ) %]
1137 <div id="social_networks" class="clearfix">
1139 <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>
1140 <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>
1141 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1142 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1143 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1144 <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>
1147 </div> <!-- / .ulactioncontainer -->
1148 </div> <!-- / .span4 -->
1149 </div> <!-- / .row-fluid -->
1150 <div class="row-fluid">
1151 [% IF ( LibraryThingForLibrariesID ) %]
1152 [% IF ( using_https ) %]
1153 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1154 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1155 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1157 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1158 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1159 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1160 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1164 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1165 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1168 [% IF ( Babeltheque ) %]
1169 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1171 </div> <!-- / .row-fluid -->
1172 </div> <!-- / .container-fluid -->
1173 </div> <!-- / .main -->
1175 [% INCLUDE 'opac-bottom.inc' %]
1177 [%# End of template %]
1179 [% BLOCK items_table %]
1180 <table class="holdingst table table-bordered table-striped">
1183 [% IF ( item_level_itypes ) %]
1184 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %]
1185 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1186 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %]
1187 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1188 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1189 [% IF ( itemdata_ccode ) %]
1190 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1191 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1192 [% IF ( itemdata_enumchron ) %]
1193 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1194 [% IF ( itemdata_uri ) %]
1195 <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %]
1196 [% IF ( itemdata_copynumber ) %]
1197 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %]
1198 <th id="item_status" data-colname="item_status" class="status">Status</th>
1199 [% IF ( itemdata_itemnotes ) %]
1200 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1201 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1202 [% IF ( OPACShowBarcode ) %]
1203 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>[% END %]
1204 [% IF holds_count.defined %]
1205 <th id="item_holds" data-colname="item_holds">Item holds</th>
1206 [% ELSIF show_priority %]
1207 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1209 [% IF ( ShowCourseReservesHeader ) %]
1210 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %]
1214 [% FOREACH ITEM_RESULT IN items %]
1215 [% IF ITEM_RESULT.this_branch %]
1216 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1218 <tr vocab="http://schema.org/" typeof="Offer">
1220 [% IF ( item_level_itypes ) %]
1222 [% UNLESS ( noItemTypeImages ) %]
1223 [% IF ( ITEM_RESULT.imageurl ) %]
1224 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1227 [% ITEM_RESULT.description %]
1230 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1231 <td class="location" property="seller">
1232 <link property="itemOffered" href="#record" />
1233 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1234 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1235 [% IF ( ITEM_RESULT.branchurl ) %]
1236 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1238 <span>[% ITEM_RESULT.branchname %]</span>
1241 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1243 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1244 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1250 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1251 <td class="location" property="seller">
1252 <link property="itemOffered" href="#record" />
1253 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1254 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1255 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1256 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1257 [% IF ( home_branch_url ) %]
1258 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1260 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1263 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1266 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1268 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1269 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
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 [% INCLUDE 'columns_settings.inc' %]
1372 [% IF ( SocialNetworks ) %]
1373 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1375 {lang: '[% lang %]'}
1378 <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>
1380 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1382 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1384 <script type="text/javascript">
1387 [% IF ( OpacBrowseResults && busc ) %]
1388 var arrPagination = new Array();
1389 var pag_index_ini = [% indexPag %];
1390 [% IF ( listResults ) %]
1391 [% FOREACH listResult IN listResults %]
1392 arrPagination[[% listResult.index %]] = {
1393 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1394 title:"[% listResult.title|remove('\n')|html %]",
1395 author:"[% listResult.author|html %]",
1396 biblionumber:[% listResult.biblionumber %]
1402 [% IF ( OpacHighlightedWords ) %]
1403 var q_array = new Array(); // holds search terms if available
1405 function highlightOff() {
1406 $("#catalogue_detail_biblio").removeHighlight();
1407 $(".highlight_toggle").toggle();
1409 function highlightOn() {
1411 for (x in q_array) {
1412 if ( q_array[x].length > 0 ) {
1413 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1414 q_array[x] = q_array[x].toLowerCase();
1415 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1416 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1417 $(".title").highlight(q_array[x]);
1418 $(".author").highlight(q_array[x]);
1419 $(".results_summary").highlight(q_array[x]);
1423 $(".highlight_toggle").toggle();
1427 $(document).ready(function() {
1428 $('#bibliodescriptions').tabs();
1429 $(".branch-info-tooltip-trigger").uitooltip({
1430 position: { my: "left+15 center", at: "right center" },
1433 content: function(){
1434 var element = $(this).next("div");
1435 return element.html();
1439 var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %];
1440 KohaTable(".holdingst", {
1441 dom: 'B<"clearfix">t',
1443 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
1444 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1446 "bKohaColumnsUseNames": true
1447 }, columns_settings);
1449 [% IF ( TagsInputEnabled && loggedinusername ) %]
1450 $(".tag_add").click(function(){
1451 var thisid = $(this).attr("id");
1452 thisid = thisid.replace("tag_add","");
1454 $("#tagform"+thisid).show();
1455 $("#newtag"+thisid).focus();
1456 $("#newtag"+thisid+"_status").empty().hide();
1459 $(".cancel_tag_add").click(function(){
1460 var thisid = $(this).attr("id");
1461 thisid = thisid.replace("cancel","");
1462 $("#tagform"+thisid).hide();
1463 $("#tag_add"+thisid).show();
1464 $("#newtag"+thisid).val("");
1465 $("#newtag"+thisid+"_status").empty().hide();
1468 $(".tagbutton").click(function(){
1469 var thisid = $(this).attr("title");
1470 var tag = $("#newtag"+thisid).val();
1471 if (!tag || (tag == "")) {
1472 alert(MSG_NO_TAG_SPECIFIED);
1475 KOHA.Tags.add_tag_button(thisid, tag);
1480 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1481 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1482 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1483 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1484 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1485 var default_order_index = 1;
1486 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1487 var default_order_index = 2;
1489 var default_order_index = 0;
1492 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1493 q_array = query_desc.split(" ");
1494 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1496 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1497 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1498 [% IF ( GoogleJackets ) %]
1499 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1501 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1502 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1505 [% IF OpenLibraryCovers %]
1506 KOHA.OpenLibrary.GetCoverFromIsbn();
1508 [% IF OPACLocalCoverImages %]
1509 KOHA.LocalCover.GetCoverFromBibnumber(true);
1511 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1512 novSelect.loadContentForQuery(
1514 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1515 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1518 '[% NovelistSelectProfile %]',
1519 '[% NovelistSelectPassword %]',
1521 if ( d.length > 0 ){ //If no content
1522 $(".NovelistSelect").show();
1527 [% IF ( OpacBrowseResults && busc ) %]
1528 if (arrPagination.length > 0) {
1529 renderPagIndexList(pag_index_ini, $("#listResults"));
1531 $("#a_listResults").click(function(e) {
1532 if (arrPagination.length > 0) {
1534 var navigation = $(".results-pagination");
1535 if (navigation.css("display") == 'none') {
1537 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1538 $(this).attr('title',newtitle);
1539 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1542 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1543 $(this).attr('title',newtitle);
1547 $("#close_pagination").click(function(e) {
1549 var navigation = $(".results-pagination");
1553 [% IF ( OPACShelfBrowser ) %]
1555 (function prepareShelfBrowser(){
1557 $(".main").on("click",".close_shelf",function(e){
1559 $("#shelfbrowser").toggle();
1561 $(".main").on("click", "#browser_previous a", function(e){
1564 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1567 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1569 success: function(data){
1570 $("#shelfbrowser").replaceWith(data);
1571 [% IF ( GoogleJackets ) %]
1572 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1574 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1575 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1577 [% IF OpenLibraryCovers %]
1578 KOHA.OpenLibrary.GetCoverFromIsbn();
1580 [% IF OPACLocalCoverImages %]
1581 KOHA.LocalCover.GetCoverFromBibnumber(true);
1587 $(".main").on("click", "#browser_next a", function(e){
1590 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1593 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1595 success: function(data){
1596 $("#shelfbrowser").replaceWith(data);
1597 [% IF ( GoogleJackets ) %]
1598 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1600 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1601 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1603 [% IF OpenLibraryCovers %]
1604 KOHA.OpenLibrary.GetCoverFromIsbn();
1606 [% IF OPACLocalCoverImages %]
1607 KOHA.LocalCover.GetCoverFromBibnumber(true);
1614 [% IF ( OpacStarRatings != 'disable' ) %]
1615 // -----------------------------------------------------
1616 // star-ratings code
1617 // -----------------------------------------------------
1618 // hide 'rate' button if javascript enabled
1620 $('input[name="rate_button"]').remove();
1623 $(".auto-submit-star").rating({
1624 callback: function (value, link) {
1626 // if the new value equals the old value, dont execute callback...
1628 if ($("#rating_value").attr("value") != value) {
1632 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1633 rating_old_value: $("#rating_value").attr("value"),
1634 borrowernumber: "[% borrowernumber %]",
1635 biblionumber: "[% biblionumber | html %]",
1636 rating_value: value,
1638 }, function (data) {
1640 if (data.auth_status != 'ok') {
1641 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1643 $("#rating_value").val(data.rating_value);
1645 if (data.rating_value) {
1646 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1648 $("#rating_value_text").text('');
1651 $("#rating_text").text(_("average rating: ") + data.rating_avg + " (" + data.rating_total + ' ' + _("votes") + ")");
1660 // -----------------------------------------------------
1661 [% END # / IF ( OpacStarRatings != 'disable' )%]
1663 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1664 var isbn = $(".isbn:last").text().split(" ")[1];
1666 isbn = isbn.replace(/\W*$/, '');
1667 isbn = isbn.replace(/-/, '');
1669 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1670 // Use Microsoft XDR for IE version 8 or above
1671 var xdr = new XDomainRequest();
1672 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1673 xdr.onload = function() {
1674 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1675 eval(json); // json is now a regular JSON object
1676 parseIDBJSON(json); // parse using same function as for jQuery's success event
1680 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1685 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1688 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1689 function parseIDBJSON( json ) {
1690 if(json.total_results > 0 && json.book.rating > 0){
1691 var isbn = $(".isbn:last").text().split(" ")[1];
1692 isbn = isbn.replace(/\W+/g, '');
1694 [% IF ( IDreamBooksReadometer ) %]
1695 $(".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>');
1698 [% IF ( IDreamBooksReviews ) %]
1699 //build new tab for critic reviews
1700 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1702 //append happy-sad cloud review
1704 $("#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>");
1706 //insert data into Book reviews tab
1707 $.each(json.book.critic_reviews, function(){
1708 $("#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>");
1710 $("#seemoreidb").attr('href', json.book.detail_link);
1711 $("#tab_idb_critic_reviews").show();
1715 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1717 [% IF ( OpacBrowseResults && busc ) %]
1719 var totalPagItemList = 10;
1721 function rewindList()
1723 var ul = $("#listResults");
1724 var li_ini = ul.children(':first').next();
1725 var index_ini = pag_index_ini;
1727 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1729 var li_end = ul.children(':last').prev();
1730 var index_end = arrPagination.length - 1;
1732 index_end = parseInt(li_end.attr("class").substring(7), 10);
1734 if (index_ini > pag_index_ini) {
1735 renderPagIndexList(index_ini - 1, ul, false);
1736 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1740 function forwardList()
1742 var ul = $("#listResults");
1743 var li_ini = ul.children(':first').next();
1744 var index_ini = pag_index_ini;
1746 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1748 var li_end = ul.children(':last').prev();
1749 var index_end = arrPagination.length - 1;
1751 index_end = parseInt(li_end.attr("class").substring(7), 10);
1753 if (index_end < arrPagination.length - 1) {
1754 renderPagIndexList(index_ini + 1, ul, false);
1755 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1759 function renderPagIndexList(index, ul)
1761 var $kids = ul.children("li");
1762 if ($kids.length > 0) {
1763 $kids.each(function() {
1769 var ini = index - 1;
1770 var end = ini + totalPagItemList - 1;
1772 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1776 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1777 if (arrPagination[i] == undefined) continue;
1778 var li = $("<li />");
1779 if (arrPagination[i].url != "") {
1780 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1781 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1782 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1783 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1784 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1785 html += ">" + i + "</a>";
1788 li.attr("class", "li_pag_" + i);
1793 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1794 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>":"»";
1797 }//renderPagIndexList
1800 function renderPagination(index, total, ul, highlIndex)
1802 for (var i = pag_index_ini; i <= total; i++) {
1803 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1804 $("#li_pag_" + i).remove();
1807 for (var i = index; i <= total && j < totalPagItemList; i++) {
1808 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1809 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1810 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1811 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1813 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1817 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1818 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1819 $("#li_pag_" + i).remove();
1820 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1821 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1822 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1828 [% END # / IF ( OpacBrowseResults && busc ) %]
1832 [% IF OPACPopupAuthorsSearch %]
1833 <script type="text/javascript">
1835 function showAuthors(element){
1836 var authornumber = $(element).attr("data-count");
1838 // Check checkbox related to the clicked link
1839 $("#authorsList input[type='checkbox']").attr('checked', false);
1840 $("#author_"+authornumber).attr('checked', true);
1842 makeAuthorRequest();
1845 function checkAll(checkbox, elem) {
1846 var check = $(checkbox).attr('checked') ? true : false;
1847 $(elem).find("input[type='checkbox']").attr('checked', check);
1848 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1851 function makeAuthorRequest(){
1854 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1855 values.push($(this).val());
1858 if (values.length > 0) {
1859 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1860 $("#validAuthorSearch").attr("href", request);
1862 $("#validAuthorSearch").removeAttr("href");
1868 function showSubjects(element, subjectnumber, subfieldnumber){
1870 // Check checkbox related to the clicked link
1871 $("#subjectsList input[type='checkbox']").attr('checked', false);
1872 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1874 makeSubjectRequest();
1878 function makeSubjectRequest() {
1880 $("#subjectsList > ul").each(function() {
1881 var all_checked = true;
1882 var local_values = [];
1883 $(this).find('input[type="checkbox"]').each(function() {
1884 if($(this).attr('checked')) {
1885 local_values.push($(this).val());
1887 all_checked = false;
1890 var authid = $(this).attr('data-authid');
1891 if(all_checked && authid) {
1892 values.push('an:' + authid);
1894 values = values.concat(local_values);
1897 if(values.length > 0) {
1898 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1899 $("#validSubjectSearch").attr('href', request);
1901 $("#validSubjectSearch").removeAttr("href");
1904 $(document).ready(function() {
1905 $("a.showauthors").click(function(e){
1913 [% END # / IF OPACPopupAuthorsSearch %]