6 [% USE ColumnsSettings %]
7 [% USE AuthorisedValues %]
8 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
9 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
10 [% IF Koha.Preference('AmazonAssocTag') %]
11 [% AmazonAssocTag = '?tag=' _ Koha.Preference('AmazonAssocTag') %]
13 [% AmazonAssocTag = '' %]
16 [% ShowCourseReservesHeader = 0 %]
17 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
18 [% FOREACH ITEM_RESULT IN itemloop %]
19 [% IF ITEM_RESULT.course_reserves %]
20 [% FOREACH r IN ITEM_RESULT.course_reserves %]
21 [% IF r.course.enabled == 'yes' %]
22 [% ShowCourseReservesHeader = 1 %]
29 [% IF ( using_https ) %]
30 [% SET protocol = "https://" %]
32 [% SET protocol = "http://" %]
34 [% INCLUDE 'doc-head-open.inc' %]
35 <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>
36 [% INCLUDE 'doc-head-close.inc' %]
38 [% BLOCK cssinclude %][% Asset.css("css/right-to-left.css") %][% END %]
40 [% IF ( OpacStarRatings != 'disable' ) %]
41 [% BLOCK cssinclude %][% Asset.css("css/jquery.rating.css") %][% END %]
43 [% INCLUDE greybox.inc %]
44 [% Asset.css("lib/emoji-picker/css/emoji.css") %]
46 [% INCLUDE 'bodytag.inc' bodyid='opac-detail' bodyclass='scrollto' %]
47 [% INCLUDE 'masthead.inc' %]
50 <ul class="breadcrumb">
51 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
52 <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>
55 <div class="container-fluid">
56 <div class="row-fluid">
58 <div id="catalogue_detail_biblio" class="maincontent">
61 [% IF ( OPACLocalCoverImages ) %]
62 <div title="[% biblio.biblionumber %]" class="[% biblio.biblionumber %]" id="local-thumbnail-preview"></div>
64 [% IF ( OPACAmazonCoverImages ) %]
65 [% IF ( OPACURLOpenInNewWindow ) %]
66 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %][% AmazonAssocTag %]#reader-link" target="_blank" rel="noreferrer">
68 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %][% AmazonAssocTag %]">
70 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
73 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
74 [% IF ( content_identifier_exists ) %]
75 [% IF ( using_https ) %]
76 <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" />
78 <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" />
82 <span class="no-image">No cover image available</span>
86 [% IF ( GoogleJackets ) %]
87 <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
89 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
90 [% coce_id = normalized_ean || normalized_isbn %]
91 <div style="block" title="[% biblio.biblionumber %]" class="[% coce_id %]" id="coce-thumbnail-preview"></div>
93 [% IF OpenLibraryCovers %]
94 <div title="[% biblio.biblionumber %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
96 [% bt_id = ( normalized_upc || normalized_isbn ) %]
97 [% IF ( BakerTaylorEnabled && bt_id ) %]
98 [% IF BakerTaylorBookstoreURL %]
99 [% IF ( OPACURLOpenInNewWindow ) %]
100 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]" target="_blank" rel="noreferrer"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
102 <a href="https://[% BakerTaylorBookstoreURL |html %][% bt_id %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" /></a>
105 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% bt_id %]" />
108 </div><!-- / #bookcover -->
110 <abbr class="unapi-id" title="koha:biblionumber:[% biblio.biblionumber %]"><!-- unAPI --></abbr>
111 [% IF ( ocoins ) # COinS / Openurl %]
112 <span class="Z3988" title="[% ocoins %]"></span>
116 <span class="view current-view"><span id="Normalview">Normal view</span></span>
117 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblio.biblionumber %]">MARC view</a></span>
118 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblio.biblionumber %]">ISBD view</a></span>[% END %]
120 [% IF ( OPACXSLTDetailsDisplay ) %]
123 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
124 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
126 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
128 [% IF ( description ) %]
134 [% IF ( unititle ) %], [% unititle %][% END %]
137 [% IF ( MARCAUTHORS ) %]
138 <div class="results_summary">
139 <span class="label">Additional authors:</span>
140 [% IF OPACPopupAuthorsSearch %]
141 <!-- Author search term selection modal -->
142 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
143 <div class="modal-header">
144 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
145 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
147 <div class="modal-body">
148 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
149 <ul id="authorsList">
150 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
152 [% IF (MARCAUTHOR.authoritylink) %]
153 <input type="checkbox" name="checkbox"
154 id="author_[% loop.count %]"
155 onclick="makeAuthorRequest()"
156 value="an:[% MARCAUTHOR.authoritylink %]" />
158 <input type="checkbox" name="checkbox"
159 id="author_[% loop.count %]"
160 onclick="makeAuthorRequest()"
161 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
163 <label for="author_[% loop.count %]">
164 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
169 [% END # /FOREACH MARCAUTHORS %]
172 <div class="modal-footer">
173 <a id="validAuthorSearch" href="#" class="btn btn-primary">Search</a>
174 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
177 [% END # /OPACPopupAuthorsSearch %]
179 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
180 [% authorsloop = loop %]
181 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
182 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
183 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
184 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
185 class="showauthors" data-count="[% authorsloop.count %]"
186 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>
188 <a title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
189 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>
192 [% IF (MARCAUTHOR.authoritylink) %]
193 <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>
195 [% IF IDREF and MARCAUTHOR.unimarc3 %]
196 <a href="/cgi-bin/koha/opac-idref.pl?unimarc3=[% MARCAUTHOR.unimarc3 %]" title="IdRef" rel="gb_page_center[600,500]">IdRef</a>
198 [% UNLESS ( loop.last ) %]|[% END %]
199 [% END # /FOREACH MARCAUTHORS %]
201 [% END # IF MARCAUTHORS %]
203 [% IF ( MARCSERIES ) %]
204 <span class="results_summary series"><span class="label">Series:</span>
205 [% FOREACH MARCSERIE IN MARCSERIES %]
206 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
207 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
208 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
210 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
211 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
214 [% UNLESS ( loop.last ) %]|[% END %]
215 [% END # / FOREACH MARCSERIES %]
217 [% END # /MARCSERIES %]
219 [% IF ( editionstatement ) %]
220 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
222 [% IF ( publishercode ) %]
223 <span class="results_summary publisher"><span class="label">Published by :</span>
224 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
225 [% publishercode |html %]
226 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
231 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
234 [% IF ( MARCISBNS ) %]
235 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
237 [% IF ( normalized_isbn ) %]
238 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
243 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
246 [% IF ( collectiontitle ) %]
247 <span class="results_summary collection"><span class="label">Collection: </span>
248 [% collectiontitle %]
249 [% IF ( collectionissn ) %] [% ', ISSN ' _ collectionissn %][% END %]
250 [% IF ( collectionvolume ) %] [% ' ; ' _ collectionvolume %] [% END %]
255 [% IF ( unititles ) %]
256 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
257 [% FOREACH unititle IN unititles %]
258 [% unititle.unititle %] ;
263 [% IF ( MARCSUBJCTS ) %]
264 <div class="results_summary subject">
265 <span class="label">Subject(s):</span>
267 [% IF OPACPopupAuthorsSearch %]
268 <!-- Search term selection modal -->
269 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
270 <div class="modal-header">
271 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
272 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
274 <div id="subjectsList" class="modal-body">
275 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
276 <label for="all_subjects">
279 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
280 [% subjectsloop = loop %]
281 [% IF MARCSUBJCT.authoritylink %]
282 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
284 <ul id="subjectsList[% loop.count %]">
286 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
288 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
289 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
297 <div class="modal-footer">
298 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
299 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
302 [% END # /OPACPopupAuthorsSearch%]
304 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
305 [% subjectsloop = loop %]
306 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
307 [% SUBFIELD.separator %]
308 [% IF Koha.Preference( 'OPACPopupAuthorsSearch' ) == 1 %]
309 <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>
311 <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>
314 [% IF (MARCSUBJCT.authoritylink) %]
315 <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>
317 [% UNLESS ( loop.last ) %] | [% END %]
318 [% END # / FOREACH MARCSUBJCTS %]
320 [% ELSE # /IF MARCSUBJCTS %]
321 [% 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 %]
324 [% IF ( copyrightdate ) %]
325 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
328 [% UNLESS ( item_level_itypes ) %]
330 <img src="[% imageurl %]" alt="" />
332 <span class="results_summary itemtype"><span class="label">Item type: </span>
333 [% IF ( description ) %]
341 [% IF ( MARCURLS ) %]
342 <div class="results_summary online_resources"><span class="label">Online resources:</span>
344 [% FOREACH MARCurl IN MARCURLS %]
345 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
347 [% IF ( OPACURLOpenInNewWindow ) %]
348 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
349 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblio.biblionumber %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
351 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">
354 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
355 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblio.biblionumber %]" title="[% MARCurl.MARCURL %]">
357 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
360 [% MARCurl.linktext %]</a>
361 [% IF ( MARCurl.notes ) %]
363 [% FOREACH note IN MARCurl.notes %]
364 <li>[% note.note %]</li>
369 [% END # /FOREACH MARCURLS %]
372 [% END # / IF MARCURLS %]
373 [% END # / IF OPACXSLTDetailsDisplay %]
375 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
376 [% IF ( LibraryThingForLibrariesID ) %]
377 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
378 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
379 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
380 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
382 <span class="results_summary">
383 <span class="label">Reviews from LibraryThing.com:</span>
384 <span style="display: block;" class="ltfl_reviews"></span>
386 [% END # / LibraryThingForLibrariesID %]
388 <!--This grabs all of the lists a bib record appears in -->
389 [% IF shelves.count %]
390 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
391 [% FOREACH s IN shelves %]
392 <a href="/cgi-bin/koha/opac-shelves.pl?op=view&shelfnumber=[% s.shelfnumber %]">[% s.shelfname %]</a>
393 [% IF ( loop.last ) %][% ELSE %]|[% END %]
398 [% IF ( TagsShowEnabled ) %]
399 <div class="results_summary tags">
401 <span class="label">Tags from this library:</span>
403 [% FOREACH TagLoo IN TagLoop %]
404 <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a> <span class="weight">([% TagLoo.weight_total %])</span>
405 [% IF ( loop.last ) %][% ELSE %], [% END %]
410 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
412 [% IF ( TagsInputEnabled ) %]
413 [% IF ( loggedinusername ) %]
414 <form id="tagform[% biblio.biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
415 <label for="newtag[% biblio.biblionumber %]">New tag(s), separated by a comma:</label>
416 <p class="emoji-picker-container">
418 name="newtag[% biblio.biblionumber %]"
419 id="newtag[% biblio.biblionumber %]"
422 data-emojiable="true"
423 data-emoji-input="unicode">
425 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblio.biblionumber %]" type="submit" value="Add" />
426 <a class="cancel_tag_add" id="cancel[% biblio.biblionumber %]" href="#">(done)</a>
429 <span id="newtag[% biblio.biblionumber %]_status" class="tagstatus" style="display:none;">
432 <a class="tag_add" id="tag_add[% biblio.biblionumber %]" href="#">Add tag(s)</a>
434 <span id="login4tags">
435 [% IF Koha.Preference('casAuthentication') %]
436 [%# CAS authentication is too complicated for modal window %]
437 <a href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
439 <a class="loginModal-trigger" data-toggle="modal" role="button" href="/cgi-bin/koha/opac-user.pl">Log in to add tags.</a>
443 [% END # / IF TagsInputEnabled %]
445 [% END # /IF TagsShowEnabled %]
447 [% IF ( SyndeticsEnabled ) %]
448 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
449 <span class="results_summary">
450 <span class="label">Series information:</span>
451 [% IF ( using_https ) %]
452 <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>
454 <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>
457 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
458 [% IF ( SyndeticsAVPROFILEExists ) %]
459 <span class="results_summary">
460 <span class="label">Audiovisual profile:</span>
461 [% IF ( using_https ) %]
462 <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>
464 <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>
467 [% END # / IF SyndeticsAVPROFILEExists %]
469 [% IF ( SyndeticsFICTIONExists ) %]
470 <span class="results_summary">
471 <span class="label">Fiction notes:</span>
472 [% IF ( using_https ) %]
473 <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>
475 <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>
478 [% END # / IF SyndeticsFICTIONExists %]
480 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
481 <span class="results_summary">
482 <span class="label">Awards:</span>
483 [% IF ( using_https ) %]
484 <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>
486 <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>
489 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
490 [% END # / IF SyndeticsEnabled%]
492 [% IF ( OpacStarRatings != 'disable' ) %]
493 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
494 <div class="results_summary ratings">
496 [% SET rating_avg = ratings.get_avg_rating() %]
497 [% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
498 [% FOREACH i IN [ 1 2 3 4 5 ] %]
499 [% IF rating_avg_int == i && borrowernumber %]
500 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
501 [% ELSIF rating_avg_int == i %]
502 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
503 [% ELSIF borrowernumber %]
504 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
506 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
510 <!-- define some hidden vars for ratings -->
512 <input type="hidden" name='biblionumber' value="[% biblio.biblionumber %]" />
513 <input type="hidden" name='rating_value' id='rating_value' value="[% my_rating.rating_value %]" />
515 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
518 <span id="rating_value_text">your rating: [% my_rating.rating_value %], </span>
520 <span id="rating_value_text"></span>
523 <span id="rating_text">average rating: [% rating_avg %] ([% ratings.count %] votes)</span>
526 [% END # / IF OpacStarRatings != 'disable' %]
528 [% IF ( BakerTaylorContentURL ) %]
529 <span class="results_summary">
530 <span class="label">Enhanced content: </span>
531 [% IF ( OPACURLOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank" rel="noreferrer">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
533 [% END # / IF BakerTaylorContentURL %]
535 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
536 [% IF ( NovelistSelectView == 'above') %]
537 <span class="results_summary NovelistSelect" style="display:none;">
538 <span class="label">Novelist Select: </span>
539 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
542 [% END # / IF NovelistSelectProfile %]
544 [% IF ( Babeltheque ) %]
545 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
546 <div id="BW_notes"></div>
547 <div id="BW_critiques"></div>
548 <div id="BW_critiques_pro"></div>
549 <div id="BW_citations"></div>
550 [% END # / IF Babeltheque%]
552 </div> <!-- / #catalogue_detail_biblio -->
554 <div id="bibliodescriptions" class="toptabs">
556 [% IF ( defaulttab == 'holdings' ) %]
557 <li id="tab_holdings" class="ui-tabs-active">
559 <li id="tab_holdings">
561 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
562 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' %][% END %]</a>
564 [% IF (SeparateHoldings) %]
565 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' %]</a></li>
567 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
568 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
570 [% IF ( SYNDETICS_TOC ) %]
571 <li id="tab_toc"> <a href="#toc">TOC</a></li>
573 [% IF ( SyndeticsEnabled ) %]
574 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
575 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
577 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
578 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
579 [% IF ( LibraryThingForLibrariesID ) %]
580 <li id="tab_LTFLreviews">
581 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
582 <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>
586 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
587 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
589 [% END # / IF SyndeticsEnabled %]
591 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
592 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
593 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
596 [% IF ( subscriptionsnumber ) %]
597 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
598 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber %] )</a>
602 [% IF Koha.Preference( 'reviewson' ) == 1 %]
603 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' %]</a></li>
606 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
607 [% IF ( NovelistSelectView == 'tab') %]
608 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
612 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
613 <li id="tab_editions"><a href="#editions">Editions</a></li>
616 [% IF ( serialcollection ) %]
617 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
618 <a href="#serialcollection">Serial collection</a>
622 [% IF ( OPACLocalCoverImages && localimages.size ) %]
623 <li id="tab_images"><a href="#images">Images</a></li>
626 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
627 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
630 [% IF ( IDreamBooksReviews ) %]
631 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
635 [% IF ( serialcollection ) %]
636 <div id="serialcollection">
637 <table id="serialcollectiont" class="table table-bordered table-striped">
640 <th id="serial_library">Library</th>
641 <th id="serial_collection">Serial collection</th>
642 <th id="serial_itemcallnumber">Item call number</th>
646 [% FOREACH serialcollection IN serialcollections %]
648 <td>[% serialcollection.branch %]</td>
649 <td>[% serialcollection.text %]</td>
650 <td>[% serialcollection.itemcallnumber %]</td>
656 [% END # / IF serialcollection %]
660 [% IF too_many_items %]
661 <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblio.biblionumber %]&viewallitems=1">Click here to view them all.</a></p>
662 [% ELSIF ( itemloop.size ) %]
663 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
664 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
665 [% IF acquisition_details.total_quantity == 1 %]
666 <span>1 item is on order.</span>
668 <span>[% acquisition_details.total_quantity %] items are on order.</span>
671 [% IF holds_count.defined || priority %]
673 [% IF holds_count.defined %]
674 <span>Total holds: [% holds_count %]</span>
677 [% IF holds_count.defined %]
678 <span>(priority [% priority %])</span>
680 <span>Overall queue priority: [% priority %]</span>
686 [% IF ( ALTERNATEHOLDINGS ) %]
687 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
688 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
691 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
692 [% IF acquisition_details.total_quantity == 1 %]
693 <span>1 item is on order.</span>
695 <span>[% acquisition_details.total_quantity %] items are on order.</span>
698 <div id="noitems">No physical items for this record</div>
701 [% END # IF itemloop.size %]
702 [% PROCESS 'shelfbrowser.inc' %]
703 [% INCLUDE shelfbrowser tab='holdings' %]
704 <br style="clear:both;" />
705 </div> <!-- / #holdings -->
707 [% IF (SeparateHoldings) %]
708 <div id="otherholdings">
709 [% IF (otheritemloop.size) %]
710 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
712 <span>No other items.</span>
714 [% INCLUDE shelfbrowser tab='otherholdings' %]
716 [% END # / SeparateHoldings %]
718 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
719 <div id="descriptions">
720 <div class="content_set">
722 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
723 <h4>Enhanced descriptions from Syndetics:</h4>
724 <p>[% SYNDETICS_SUMMARY %]</p>
727 [% IF ( MARCNOTES ) %]
729 [% FOREACH MARCNOTE IN MARCNOTES %]
731 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
732 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
734 [% MARCNOTE.marcnote FILTER html_line_break %]
746 </div> <!-- / #descriptions -->
747 [% END # / IF MARCNOTES || notes %]
749 [% IF ( SyndeticsEnabled ) %]
750 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
752 <div class="content_set">
753 <h3>Table of contents provided by Syndetics</h3>
755 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
756 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
761 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
763 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
765 <div class="content_set">
766 <h3>Excerpt provided by Syndetics</h3>
767 [% SYNDETICS_EXCERPT %]
770 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
772 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
774 <div class="content_set">
775 <h3>Reviews provided by Syndetics</h3>
776 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
777 [% IF ( SYNDETICS_REVIEW.title ) %]
778 <h4>[% SYNDETICS_REVIEW.title %]</h4>
779 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
781 [% IF ( review.content ) %]
790 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
792 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
794 <div class="content_set">
795 <h3>Author notes provided by Syndetics</h3>
796 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
797 [% IF ( SYNDETICS_ANOTE.content ) %]
798 [% SYNDETICS_ANOTE.content %]
803 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
804 [% END # / IF SyndeticsEnabled %]
806 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
807 <div id="NovelistSelect" >
808 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
810 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
812 [% IF ( subscriptionsnumber ) %]
813 <div id="subscriptions">
814 <h2>This is a serial</h2>
815 <p class="subscription_count">There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
816 [% FOREACH subscription IN subscriptions %]
817 [% IF ( subscription.branchcode ) %]
818 <h3>At library: [% Branches.GetName( subscription.branchcode ) %]</h3>
820 [% IF ( subscription.branchcode ) %]
821 <h3>At library: [% subscription.branchcode %]</h3>
824 [% IF ( subscription.closed ) %]
825 <p class="subscription_closed">This subscription is closed.</p>
827 [% IF ( subscription.callnumber ) %]
828 <p class="subscription_callnumber">Call number: [% subscription.callnumber %]</p>
830 [% IF ( subscription.subscriptionnotes ) %]
831 <p class="subscription_notes">[% subscription.subscriptionnotes FILTER html_line_break %] </p>
833 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
834 [% IF ( subscription.letter ) %]<span class="email_notifications">
835 [% IF ( loggedinusername ) %]
836 [% IF ( subscription.hasalert ) %]
837 <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 %]&biblionumber=[% subscription.biblionumber %]">Cancel email notification</a>
839 <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 %]&biblionumber=[% subscription.biblionumber %]">Subscribe to email notification on new issues</a>
842 <span>You must log in if you want to subscribe to email notification on new issues</span>
845 [% IF ( subscription.missinglist ) %]
846 <p class="subscription_missing">Missing issues: [% subscription.missinglist %] </p>
848 [% IF ( subscription.opacnote ) %]
849 <p class="subscription_opacnote">[% subscription.opacnote FILTER html_line_break %]</p>
851 [% IF ( subscription.latestserials ) %]
852 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
853 <table class="table table-bordered table-striped" id="subscriptionst">
856 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
857 <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
858 <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
859 <th id="serial_status" data-colname="serial_status">Status</th>
860 <th id="serial_notes" data-colname="serial_notes">Note</th>
864 [% FOREACH latestserial IN subscription.latestserials %]
866 <td class="serialseq">[% latestserial.serialseq %]</td>
867 <td class="publisheddate">[% latestserial.publisheddate %]</td>
868 <td class="planneddate">[% latestserial.planneddate %]</td>
869 <td class="serial_status">
870 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
871 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
872 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
873 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
874 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
875 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
876 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
877 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
878 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
879 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
880 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
881 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
883 <td class="serial_notes">[% latestserial.notes %]</td>
885 [% END # / FOREACH latestserials %]
888 [% END # / IF subscription.latestserials %]
889 [% END # / FOREACH subscriptions %]
890 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber %]">More details</a></p>
891 </div> <!-- / #subscriptions -->
892 [% END # IF subscriptionsnumber %]
894 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
895 <!-- Library Thing for Libraries Content -->
896 <div id="LFTLSimilarItems">
897 <div class="content_set">
898 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
899 <!-- but breaks Xhtml validation -->
900 <!-- <span class="results_summary">-->
901 <div id="ltfl_related"></div>
902 <div id="ltfl_similars"></div>
906 <div id="LTFLTagBrowse">
907 <div class="content_set">
908 <!-- <span class="results_summary"> -->
909 <div id="ltfl_tagbrowse" class="ltfl"></div>
913 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
915 [% IF Koha.Preference( 'reviewson' ) == 1 %]
917 <div id="newcomment"></div>
919 [% FOREACH review IN reviews %]
920 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
921 <div class="commentline yours" id="c[% review.reviewid %]">
922 [% IF ( review.avatarurl ) %]
923 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
925 [% IF review.approved %]
926 <h5>Your comment</h5>
928 <h5>Your comment (preview, pending approval)</h5>
930 <small>[% review.datereviewed | $KohaDates %]</small>
932 [% FILTER html_break %]
933 [% review.review |html %]
935 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
939 <div class="commentline">
940 [% IF ( ShowReviewer != "none" && review.patron) %]
942 [% IF ( review.avatarurl ) %]
943 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
945 [% SWITCH ShowReviewer %]
947 <h5>Comment by [% review.patron.title %] [% review.patron.firstname %] [% review.patron.surname %]</h5>
949 <h5>Comment by [% review.patron.firstname %]</h5>
951 <h5>Comment by [% review.patron.surname %]</h5>
952 [% CASE 'firstandinitial' %]
953 <h5>Comment by [% review.patron.firstname %] [% review.patron.surname|truncate(2,'.') %]</h5>
954 [% CASE 'username' %]
955 <h5>Comment by [% review.patron.userid %]</h5>
958 <small>[% review.datereviewed | $KohaDates %]</small>
960 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
961 [% END # / IF ShowReviewer != "none" && review.patron %]
963 [% FILTER html_break %]
964 [% review.review |html %]
967 </div> <!-- / .commentline -->
969 [% END # / FOREACH reviews %]
971 <p>There are no comments for this item.</p>
972 [% END # / IF reviews %]
974 [% IF ( loggedinusername ) %]
975 [% UNLESS ( loggedincommenter ) %]
976 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber %]'); return false;">
977 Post your comments on this item.
981 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
982 [% END # / IF loggedinusername %]
983 </div> <!-- / #comments -->
984 [% END # / IF reviewson %]
986 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
988 <h4>Other editions of this work</h4>
989 <table class="table table-bordered table-striped">
990 [% FOREACH XISBN IN XISBNS %]
993 [% IF ( OPACAmazonCoverImages ) %]
994 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
997 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
998 [% IF ( XISBN.content_identifier_exists ) %]
999 [% IF ( using_https ) %]
1000 <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="" />
1002 <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="" />
1005 <span class="no-image">No cover image available</span>
1006 [% END # / IF XISBN.content_identifier_exists %]
1007 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
1010 [% UNLESS ( item_level_itypes ) %]
1011 <td>[% XISBN.description %]</td>
1013 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
1014 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author |html %][% END %]
1015 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate %][% END %]
1016 [% IF ( XISBN.publishercode ) %]
1017 <p>[% XISBN.publishercode |html %]
1018 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
1019 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear %][% END %]
1020 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
1025 [% END # / FOREACH XISBNS %]
1027 </div> <!-- / #editions -->
1028 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1030 [% IF ( HTML5MediaEnabled ) %]
1031 <div id="html5media">
1032 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1034 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1035 <[% HTML5MediaParent _ ctrl_preload %] >
1036 <[% HTML5MediaSet.child _ ' src="' _ HTML5MediaSet.srcblock _'"' _ HTML5MediaSet.typeblock %] />
1037 <span>[[% HTML5MediaParent %] tag not supported by your browser.]</span>
1038 </[% HTML5MediaParent %]>
1042 [% END # / IF HTML5MediaEnabled %]
1044 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1046 <p>Click on an image to view it in the image viewer</p>
1047 [% FOREACH image IN localimages %]
1049 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblio.biblionumber %]&imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image %]" /></a>
1052 </div><!-- / #images -->
1053 [% END # / IF OPACLocalCoverImages && localimages.size %]
1055 [% IF ( IDreamBooksReviews ) %]
1056 <div id="idb_critic_reviews">
1057 <div id="idb_review_snippets"></div>
1058 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1061 </div> <!-- / #bibliodescriptions -->
1063 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1064 <div id="NovelistSelect">
1065 <h3>Novelist Select</h3>
1066 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]"></div>
1070 [% IF ( Babeltheque ) %]
1072 <div id="BW_etiquettes"></div>
1073 <div id="BW_suggestions"></div>
1075 <div class="clearfix"></div>
1077 <div id="BW_podcasts"></div>
1079 <div class="clearfix"></div>
1081 <div id="BW_videos"></div>
1083 [% END # / IF Babeltheque %]
1085 [%# Following on one line due to translation issues %]
1086 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1088 </div> <!-- /.span9 -->
1091 <div id="ulactioncontainer">
1093 [% IF ( OpacBrowseResults && busc ) %]
1094 <div class="nav_results">
1095 <div class="l_Results">
1096 [% IF ( listResults ) %]
1097 <a href="#" id="a_listResults">Browse results</a>
1099 <span>Browse results</span>
1102 <ul class="pg_menu clearfix">
1103 <li class="left_results">
1104 [% IF ( previousBiblionumber ) %]
1105 <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>
1107 <span>Previous</span>
1110 [%# busc is already URI encoded %]
1111 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1112 <li class="right_results">
1113 [% IF ( nextBiblionumber ) %]
1114 <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>
1120 [% IF ( listResults ) %]
1121 <div class="results-pagination">
1122 <div class="nav_pages">
1123 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1124 <ul id="listResults"></ul>
1126 <div class="pagination_list">
1127 <ul id="ul_pagination_list"></ul>
1132 [% END # / IF OpacBrowseResults && busc %]
1134 [% INCLUDE 'opac-detail-sidebar.inc' %]
1136 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1137 <div id="NovelistSelect">
1138 <h4>Novelist Select</h4>
1139 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
1143 [% IF ( Babeltheque ) %]
1144 <div class="babeltheque_adds">
1145 <div id="BW_critiques_aj"></div>
1146 <div id="BW_citations_aj"></div>
1150 [% IF ( SocialNetworks ) %]
1151 <div id="social_networks" class="clearfix">
1153 <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>
1154 <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>
1155 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1156 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1157 <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>
1160 </div> <!-- / .ulactioncontainer -->
1161 </div> <!-- / .span4 -->
1162 </div> <!-- / .row-fluid -->
1163 <div class="row-fluid">
1164 [% IF ( LibraryThingForLibrariesID ) %]
1165 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1166 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1167 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1170 [% IF ( NovelistSelectProfile && normalized_isbn ) %]
1171 <script type="text/javascript" src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1174 [% IF ( Babeltheque ) %]
1175 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1177 </div> <!-- / .row-fluid -->
1178 </div> <!-- / .container-fluid -->
1179 </div> <!-- / .main -->
1181 [% INCLUDE 'opac-bottom.inc' %]
1183 [%# End of template %]
1185 [% BLOCK items_table %]
1186 <table class="table table-bordered table-striped" id="[% table_id %]">
1189 [% IF ( item_level_itypes ) %]
1190 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %]
1191 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1192 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %]
1193 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1194 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1195 [% IF ( itemdata_ccode ) %]
1196 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1197 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1198 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
1199 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1200 [% IF ( itemdata_enumchron ) %]
1201 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1202 [% IF ( itemdata_uri ) %]
1203 <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %]
1204 [% IF ( itemdata_copynumber ) %]
1205 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %]
1206 <th id="item_status" data-colname="item_status" class="status">Status</th>
1207 [% IF ( itemdata_itemnotes ) %]
1208 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1209 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1210 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1211 [% IF holds_count.defined %]
1212 <th id="item_holds" data-colname="item_holds">Item holds</th>
1213 [% ELSIF show_priority %]
1214 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1216 [% IF ( ShowCourseReservesHeader ) %]
1217 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %]
1221 [% FOREACH ITEM_RESULT IN items %]
1222 [% IF ITEM_RESULT.this_branch %]
1223 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1225 <tr vocab="http://schema.org/" typeof="Offer">
1227 [% IF ( item_level_itypes ) %]
1229 [% UNLESS ( noItemTypeImages ) %]
1230 [% IF ( ITEM_RESULT.imageurl ) %]
1231 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1234 [% ITEM_RESULT.description %]
1237 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1238 <td class="location" property="seller">
1239 <link property="itemOffered" href="#record" />
1240 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1241 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1242 [% IF ( ITEM_RESULT.branchurl ) %]
1243 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1245 <span>[% ITEM_RESULT.branchname %]</span>
1248 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1250 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1251 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1257 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1258 <td class="location" property="seller">
1259 <link property="itemOffered" href="#record" />
1260 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1261 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1262 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1263 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1264 [% IF ( home_branch_url ) %]
1265 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1267 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1270 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1273 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1275 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1276 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1282 [% IF ( itemdata_ccode ) %]
1283 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1286 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1287 <td class="shelving_location">[% ITEM_RESULT.location_description %]</td>
1290 <td class="call_no" property="sku">
1291 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1292 [% ITEM_RESULT.itemcallnumber %]
1293 [% IF ( OPACShelfBrowser ) %]
1294 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1295 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1297 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1302 [% IF ( itemdata_enumchron ) %]
1303 <td class="vol_info">
1304 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1305 <span class="enum">[% ITEM_RESULT.enumchron %]</span>
1306 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1307 <span class="sep"> -- </span>
1308 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1310 [% ELSIF ITEM_RESULT.enumchron %]
1311 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1312 [% ELSIF ITEM_RESULT.serialseq %]
1313 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1315 [% IF ( ITEM_RESULT.publisheddate ) %]
1316 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1320 [% IF ( itemdata_uri ) %]
1322 [% IF ITEM_RESULT.uri %]
1323 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1324 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1325 <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1327 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&biblionumber=[% biblio.biblionumber %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1331 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1332 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1334 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1340 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1341 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1342 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1343 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1344 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>
1345 [% IF holds_count.defined || show_priority %]
1346 <td class="holds_count">
1347 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1348 [% IF ITEM_RESULT.priority %]
1349 [% IF holds_count.defined %]
1350 <span>(priority [% ITEM_RESULT.priority %])</span>
1352 <span>[% ITEM_RESULT.priority %]</span>
1357 [% IF ShowCourseReservesHeader %]
1359 [% IF ITEM_RESULT.course_reserves %]
1360 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1361 [% IF r.course.enabled == 'yes' %]
1363 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1364 [% r.course.course_name %]
1365 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1366 [% IF r.course.section %] [% r.course.section %] [% END %]
1367 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1374 [% END # /IF ShowCourseReservesHeader %]
1379 [% END %][%# end of items_table block %]
1381 [% BLOCK jsinclude %]
1382 [% INCLUDE 'datatables.inc' %]
1383 [% INCLUDE 'columns_settings.inc' %]
1384 [% IF ( SocialNetworks ) %]
1385 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1387 {lang: '[% lang %]'}
1390 <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>
1392 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") %][% END %]
1394 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %][% END %]
1396 <script type="text/javascript">
1399 [% IF ( OpacBrowseResults && busc ) %]
1400 var arrPagination = new Array();
1401 var pag_index_ini = [% indexPag %];
1402 [% IF ( listResults ) %]
1403 [% FOREACH listResult IN listResults %]
1404 arrPagination[[% listResult.index %]] = {
1405 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1406 title:"[% listResult.title|remove('\n')|html %]",
1407 author:"[% listResult.author|html %]",
1408 biblionumber:[% listResult.biblionumber %]
1414 [% IF ( OpacHighlightedWords ) %]
1415 var q_array = new Array(); // holds search terms if available
1417 function highlightOff() {
1418 $("#catalogue_detail_biblio").removeHighlight();
1419 $(".highlight_toggle").toggle();
1421 function highlightOn() {
1423 for (x in q_array) {
1424 if ( q_array[x].length > 0 ) {
1425 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1426 q_array[x] = q_array[x].toLowerCase();
1427 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1428 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1429 $(".title").highlight(q_array[x]);
1430 $(".author").highlight(q_array[x]);
1431 $(".results_summary").highlight(q_array[x]);
1435 $(".highlight_toggle").toggle();
1439 $(document).ready(function() {
1440 $('#bibliodescriptions').tabs();
1441 $(".branch-info-tooltip-trigger").uitooltip({
1442 position: { my: "left+15 center", at: "right center" },
1445 content: function(){
1446 var element = $(this).next("div");
1447 return element.html();
1451 var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %];
1453 KohaTable("#holdingst", {
1454 dom: 'B<"clearfix">t',
1456 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
1457 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1459 "bKohaColumnsUseNames": true
1460 }, columns_settings);
1462 KohaTable("#otherholdingst", {
1463 dom: 'B<"clearfix">t',
1465 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
1466 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1468 "bKohaColumnsUseNames": true
1469 }, columns_settings);
1471 var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) %];
1473 KohaTable("#subscriptionst", {
1474 dom: 'B<"clearfix">t',
1476 { "sType": "title-string", "aTargets" : [ "title-string" ] }
1478 "bKohaColumnsUseNames": true
1479 }, serial_column_settings);
1481 [% IF ( TagsInputEnabled && loggedinusername ) %]
1482 $(".tag_add").click(function(){
1483 var thisid = $(this).attr("id");
1484 thisid = thisid.replace("tag_add","");
1486 $("#tagform"+thisid).show();
1487 $("#newtag"+thisid).focus();
1488 $("#newtag"+thisid+"_status").empty().hide();
1491 $(".cancel_tag_add").click(function(){
1492 var thisid = $(this).attr("id");
1493 thisid = thisid.replace("cancel","");
1494 $("#tagform"+thisid).hide();
1495 $("#tag_add"+thisid).show();
1496 $("#newtag"+thisid).val("");
1497 $("#newtag"+thisid+"_status").empty().hide();
1500 $(".tagbutton").click(function(){
1501 var thisid = $(this).attr("title");
1502 var tag = $("#newtag"+thisid).val();
1503 if (!tag || (tag == "")) {
1504 alert(MSG_NO_TAG_SPECIFIED);
1507 KOHA.Tags.add_tag_button(thisid, tag);
1512 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1513 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1514 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1515 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1516 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1517 var default_order_index = 1;
1518 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1519 var default_order_index = 2;
1521 var default_order_index = 0;
1524 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1525 q_array = query_desc.split(" ");
1526 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1528 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1529 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1530 [% IF ( GoogleJackets ) %]
1531 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1533 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1534 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1537 [% IF OpenLibraryCovers %]
1538 KOHA.OpenLibrary.GetCoverFromIsbn();
1540 [% IF OPACLocalCoverImages %]
1541 KOHA.LocalCover.GetCoverFromBibnumber(true);
1543 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1544 novSelect.loadContentForQuery(
1546 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1547 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1550 '[% NovelistSelectProfile %]',
1551 '[% NovelistSelectPassword %]',
1553 if ( d.length > 0 ){ //If no content
1554 $(".NovelistSelect").show();
1559 [% IF ( OpacBrowseResults && busc ) %]
1560 var list_title_showmsg = _("Show pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1561 var list_title_hidemsg = _("Hide pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1562 if (arrPagination.length > 0) {
1563 renderPagIndexList(pag_index_ini, $("#listResults"));
1564 var reslist = $("#a_listResults");
1565 reslist.attr('title', list_title_showmsg);
1567 $("#a_listResults").click(function(e) {
1568 if (arrPagination.length > 0) {
1570 var navigation = $(".results-pagination");
1571 if (navigation.css("display") == 'none') {
1573 $(this).attr('title',list_title_hidemsg);
1574 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1577 $(this).attr('title',list_title_showmsg);
1581 $("#close_pagination").click(function(e) {
1583 var navigation = $(".results-pagination");
1587 [% IF ( OPACShelfBrowser ) %]
1589 (function prepareShelfBrowser(){
1591 $(".main").on("click",".close_shelf",function(e){
1593 $("#shelfbrowser").toggle();
1595 $(".main").on("click", "#browser_previous a", function(e){
1598 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1601 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1603 success: function(data){
1604 $("#shelfbrowser").replaceWith(data);
1605 [% IF ( GoogleJackets ) %]
1606 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1608 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1609 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1611 [% IF OpenLibraryCovers %]
1612 KOHA.OpenLibrary.GetCoverFromIsbn();
1614 [% IF OPACLocalCoverImages %]
1615 KOHA.LocalCover.GetCoverFromBibnumber(true);
1621 $(".main").on("click", "#browser_next a", function(e){
1624 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1627 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1629 success: function(data){
1630 $("#shelfbrowser").replaceWith(data);
1631 [% IF ( GoogleJackets ) %]
1632 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1634 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1635 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1637 [% IF OpenLibraryCovers %]
1638 KOHA.OpenLibrary.GetCoverFromIsbn();
1640 [% IF OPACLocalCoverImages %]
1641 KOHA.LocalCover.GetCoverFromBibnumber(true);
1648 [% IF ( OpacStarRatings != 'disable' ) %]
1649 // -----------------------------------------------------
1650 // star-ratings code
1651 // -----------------------------------------------------
1652 // hide 'rate' button if javascript enabled
1654 $('input[name="rate_button"]').remove();
1657 $(".auto-submit-star").rating({
1658 cancel: _("Cancel rating"),
1659 callback: function (value, link) {
1661 // if the new value equals the old value, dont execute callback...
1663 if ($("#rating_value").attr("value") != value) {
1667 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1668 rating_old_value: $("#rating_value").attr("value"),
1669 borrowernumber: "[% borrowernumber %]",
1670 biblionumber: "[% biblio.biblionumber %]",
1671 rating_value: value,
1673 }, function (data) {
1675 if (data.auth_status != 'ok') {
1676 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1678 $("#rating_value").val(data.rating_value);
1680 if (data.rating_value) {
1681 $("#rating_value_text").text(_("your rating: %s, ").format(data.rating_value));
1683 $("#rating_value_text").text('');
1686 $("#rating_text").text(_("average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1695 // -----------------------------------------------------
1696 [% END # / IF ( OpacStarRatings != 'disable' )%]
1698 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1699 var isbn = $(".isbn:last").text().split(" ")[1];
1701 isbn = isbn.replace(/\W*$/, '');
1702 isbn = isbn.replace(/-/, '');
1704 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1705 // Use Microsoft XDR for IE version 8 or above
1706 var xdr = new XDomainRequest();
1707 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1708 xdr.onload = function() {
1709 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1710 eval(json); // json is now a regular JSON object
1711 parseIDBJSON(json); // parse using same function as for jQuery's success event
1715 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1720 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1723 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1724 function parseIDBJSON( json ) {
1725 if(json.total_results > 0 && json.book.rating > 0){
1726 var isbn = $(".isbn:last").text().split(" ")[1];
1727 isbn = isbn.replace(/\W+/g, '');
1729 [% IF ( IDreamBooksReadometer ) %]
1730 $(".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>');
1733 [% IF ( IDreamBooksReviews ) %]
1734 //build new tab for critic reviews
1735 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1737 //append happy-sad cloud review
1739 $("#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>");
1741 //insert data into Book reviews tab
1742 $.each(json.book.critic_reviews, function(){
1743 $("#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>");
1745 $("#seemoreidb").attr('href', json.book.detail_link);
1746 $("#tab_idb_critic_reviews").show();
1750 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1752 [% IF ( OpacBrowseResults && busc ) %]
1754 var totalPagItemList = 10;
1756 function rewindList()
1758 var ul = $("#listResults");
1759 var li_ini = ul.children(':first').next();
1760 var index_ini = pag_index_ini;
1762 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1764 var li_end = ul.children(':last').prev();
1765 var index_end = arrPagination.length - 1;
1767 index_end = parseInt(li_end.attr("class").substring(7), 10);
1769 if (index_ini > pag_index_ini) {
1770 renderPagIndexList(index_ini - 1, ul, false);
1771 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1775 function forwardList()
1777 var ul = $("#listResults");
1778 var li_ini = ul.children(':first').next();
1779 var index_ini = pag_index_ini;
1781 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1783 var li_end = ul.children(':last').prev();
1784 var index_end = arrPagination.length - 1;
1786 index_end = parseInt(li_end.attr("class").substring(7), 10);
1788 if (index_end < arrPagination.length - 1) {
1789 renderPagIndexList(index_ini + 1, ul, false);
1790 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1794 function renderPagIndexList(index, ul)
1796 var $kids = ul.children("li");
1797 if ($kids.length > 0) {
1798 $kids.each(function() {
1804 var ini = index - 1;
1805 var end = ini + totalPagItemList - 1;
1807 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1811 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1812 if (arrPagination[i] == undefined) continue;
1813 var li = $("<li />");
1814 if (arrPagination[i].url != "") {
1815 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1816 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1817 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1818 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1819 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1820 html += ">" + i + "</a>";
1823 li.attr("class", "li_pag_" + i);
1828 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1829 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>":"»";
1832 }//renderPagIndexList
1835 function renderPagination(index, total, ul, highlIndex)
1837 for (var i = pag_index_ini; i <= total; i++) {
1838 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1839 $("#li_pag_" + i).remove();
1842 for (var i = index; i <= total && j < totalPagItemList; i++) {
1843 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1844 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1845 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1846 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1848 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1852 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1853 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1854 $("#li_pag_" + i).remove();
1855 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1856 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1857 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1863 [% END # / IF ( OpacBrowseResults && busc ) %]
1867 [% IF OPACPopupAuthorsSearch %]
1868 <script type="text/javascript">
1870 function showAuthors(element){
1871 var authornumber = $(element).attr("data-count");
1873 // Check checkbox related to the clicked link
1874 $("#authorsList input[type='checkbox']").attr('checked', false);
1875 $("#author_"+authornumber).attr('checked', true);
1877 makeAuthorRequest();
1880 function checkAll(checkbox, elem) {
1881 var check = $(checkbox).attr('checked') ? true : false;
1882 $(elem).find("input[type='checkbox']").attr('checked', check);
1883 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1886 function makeAuthorRequest(){
1889 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1890 values.push($(this).val());
1893 if (values.length > 0) {
1894 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1895 $("#validAuthorSearch").attr("href", request);
1897 $("#validAuthorSearch").removeAttr("href");
1903 function showSubjects(element, subjectnumber, subfieldnumber){
1905 // Check checkbox related to the clicked link
1906 $("#subjectsList input[type='checkbox']").attr('checked', false);
1907 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1909 makeSubjectRequest();
1913 function makeSubjectRequest() {
1915 $("#subjectsList > ul").each(function() {
1916 var all_checked = true;
1917 var local_values = [];
1918 $(this).find('input[type="checkbox"]').each(function() {
1919 if($(this).attr('checked')) {
1920 local_values.push($(this).val());
1922 all_checked = false;
1925 var authid = $(this).attr('data-authid');
1926 if(all_checked && authid) {
1927 values.push('an:' + authid);
1929 values = values.concat(local_values);
1932 if(values.length > 0) {
1933 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1934 $("#validSubjectSearch").attr('href', request);
1936 $("#validSubjectSearch").removeAttr("href");
1939 $(document).ready(function() {
1940 $("a.showauthors").click(function(e){
1948 [% END # / IF OPACPopupAuthorsSearch %]