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 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 || normalized_upc) ) %]
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=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
543 [% END # / IF NovelistSelectProfile %]
545 [% IF ( Babeltheque ) %]
546 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
547 <div id="BW_notes"></div>
548 <div id="BW_critiques"></div>
549 <div id="BW_critiques_pro"></div>
550 <div id="BW_citations"></div>
551 [% END # / IF Babeltheque%]
553 </div> <!-- / #catalogue_detail_biblio -->
555 <div id="bibliodescriptions" class="toptabs">
557 [% IF ( defaulttab == 'holdings' ) %]
558 <li id="tab_holdings" class="ui-tabs-active">
560 <li id="tab_holdings">
562 [% BLOCK holding_tab_title %][% IF SeparateHoldings %]<span>[% LoginBranchname %] holdings</span>[% ELSE %]<span>Holdings</span>[% END %][% END %]
563 <a href="#holdings">[% PROCESS holding_tab_title %] [% UNLESS too_many_items %][% ' ( ' _ (itemloop.size || 0) _ ' )' %][% END %]</a>
565 [% IF (SeparateHoldings) %]
566 <li><a href="#otherholdings">Other holdings [% ' ( ' _ (otheritemloop.size || 0) _ ' )' %]</a></li>
568 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
569 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
571 [% IF ( SYNDETICS_TOC ) %]
572 <li id="tab_toc"> <a href="#toc">TOC</a></li>
574 [% IF ( SyndeticsEnabled ) %]
575 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
576 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
578 [% IF ( ( SyndeticsReviews && SYNDETICS_REVIEWS ) || ( LibraryThingForLibrariesTabbedView && LibraryThingForLibrariesID) ) %]
579 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
580 [% IF ( LibraryThingForLibrariesID ) %]
581 <li id="tab_LTFLreviews">
582 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]"></script>
583 <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>
587 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
588 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
590 [% END # / IF SyndeticsEnabled %]
592 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
593 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
594 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
597 [% IF ( subscriptionsnumber ) %]
598 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
599 <a href="#subscriptions">Subscriptions ( [% subscriptionsnumber %] )</a>
603 [% IF Koha.Preference( 'reviewson' ) == 1 %]
604 <li id="tab_comments"><a href="#comments">Comments[% ' ( ' _ (reviews.size || 0) _ ' )' %]</a></li>
607 [% IF ( NovelistSelectProfile && (normalized_isbn || normalized_upc) ) %]
608 [% IF ( NovelistSelectView == 'tab') %]
609 <li id="tab_NovelistSelect" class="NovelistSelect" style="display:none;"> <a href="#NovelistSelect">Novelist Select</a></li>
613 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
614 <li id="tab_editions"><a href="#editions">Editions</a></li>
617 [% IF ( serialcollection ) %]
618 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
619 <a href="#serialcollection">Serial collection</a>
623 [% IF ( OPACLocalCoverImages && localimages.size ) %]
624 <li id="tab_images"><a href="#images">Images</a></li>
627 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
628 [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li>
631 [% IF ( IDreamBooksReviews ) %]
632 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
636 [% IF ( serialcollection ) %]
637 <div id="serialcollection">
638 <table id="serialcollectiont" class="table table-bordered table-striped">
641 <th id="serial_library">Library</th>
642 <th id="serial_collection">Serial collection</th>
643 <th id="serial_itemcallnumber">Item call number</th>
647 [% FOREACH serialcollection IN serialcollections %]
649 <td>[% serialcollection.branch %]</td>
650 <td>[% serialcollection.text %]</td>
651 <td>[% serialcollection.itemcallnumber %]</td>
657 [% END # / IF serialcollection %]
661 [% IF too_many_items %]
662 <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>
663 [% ELSIF ( itemloop.size ) %]
664 [% INCLUDE items_table items=itemloop tab="holdings" table_id="holdingst" %]
665 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
666 [% IF acquisition_details.total_quantity == 1 %]
667 <span>1 item is on order.</span>
669 <span>[% acquisition_details.total_quantity %] items are on order.</span>
672 [% IF holds_count.defined || priority %]
674 [% IF holds_count.defined %]
675 <span>Total holds: [% holds_count %]</span>
678 [% IF holds_count.defined %]
679 <span>(priority [% priority %])</span>
681 <span>Overall queue priority: [% priority %]</span>
687 [% IF ( ALTERNATEHOLDINGS ) %]
688 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
689 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
692 [% IF Koha.Preference('OPACAcquisitionDetails') and acquisition_details.total_quantity > 0 %]
693 [% IF acquisition_details.total_quantity == 1 %]
694 <span>1 item is on order.</span>
696 <span>[% acquisition_details.total_quantity %] items are on order.</span>
699 <div id="noitems">No physical items for this record</div>
702 [% END # IF itemloop.size %]
703 [% PROCESS 'shelfbrowser.inc' %]
704 [% INCLUDE shelfbrowser tab='holdings' %]
705 <br style="clear:both;" />
706 </div> <!-- / #holdings -->
708 [% IF (SeparateHoldings) %]
709 <div id="otherholdings">
710 [% IF (otheritemloop.size) %]
711 [% INCLUDE items_table items=otheritemloop tab="otherholdings" table_id="otherholdingst" %]
713 <span>No other items.</span>
715 [% INCLUDE shelfbrowser tab='otherholdings' %]
717 [% END # / SeparateHoldings %]
719 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
720 <div id="descriptions">
721 <div class="content_set">
723 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
724 <h4>Enhanced descriptions from Syndetics:</h4>
725 <p>[% SYNDETICS_SUMMARY %]</p>
728 [% IF ( MARCNOTES ) %]
730 [% FOREACH MARCNOTE IN MARCNOTES %]
732 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
733 <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
735 [% MARCNOTE.marcnote FILTER html_line_break %]
747 </div> <!-- / #descriptions -->
748 [% END # / IF MARCNOTES || notes %]
750 [% IF ( SyndeticsEnabled ) %]
751 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
753 <div class="content_set">
754 <h3>Table of contents provided by Syndetics</h3>
756 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
757 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
762 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
764 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
766 <div class="content_set">
767 <h3>Excerpt provided by Syndetics</h3>
768 [% SYNDETICS_EXCERPT %]
771 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
773 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
775 <div class="content_set">
776 <h3>Reviews provided by Syndetics</h3>
777 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
778 [% IF ( SYNDETICS_REVIEW.title ) %]
779 <h4>[% SYNDETICS_REVIEW.title %]</h4>
780 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
782 [% IF ( review.content ) %]
791 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
793 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
795 <div class="content_set">
796 <h3>Author notes provided by Syndetics</h3>
797 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
798 [% IF ( SYNDETICS_ANOTE.content ) %]
799 [% SYNDETICS_ANOTE.content %]
804 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
805 [% END # / IF SyndeticsEnabled %]
807 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab' && (normalized_isbn || normalized_upc) ) %]
808 <div id="NovelistSelect" >
809 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
811 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
813 [% IF ( subscriptionsnumber ) %]
814 <div id="subscriptions">
815 <h2>This is a serial</h2>
816 <p class="subscription_count">There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
817 [% FOREACH subscription IN subscriptions %]
818 [% IF ( subscription.branchcode ) %]
819 <h3>At library: [% Branches.GetName( subscription.branchcode ) %]</h3>
821 [% IF ( subscription.branchcode ) %]
822 <h3>At library: [% subscription.branchcode %]</h3>
825 [% IF ( subscription.closed ) %]
826 <p class="subscription_closed">This subscription is closed.</p>
828 [% IF ( subscription.callnumber ) %]
829 <p class="subscription_callnumber">Call number: [% subscription.callnumber %]</p>
831 [% IF ( subscription.subscriptionnotes ) %]
832 <p class="subscription_notes">[% subscription.subscriptionnotes FILTER html_line_break %] </p>
834 <p class="subscription_dates">Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
835 [% IF ( subscription.letter ) %]<span class="email_notifications">
836 [% IF ( loggedinusername ) %]
837 [% IF ( subscription.hasalert ) %]
838 <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&subscriptionid=[% subscription.subscriptionid %]&biblionumber=[% subscription.biblionumber %]">Cancel email notification</a>
840 <a style="color:#000;" class="btn" title="Subscribe to email notification on new issues" href="/cgi-bin/koha/opac-alert-subscribe.pl?subscriptionid=[% subscription.subscriptionid %]&biblionumber=[% subscription.biblionumber %]">Subscribe to email notification on new issues</a>
843 <span>You must log in if you want to subscribe to email notification on new issues</span>
846 [% IF ( subscription.missinglist ) %]
847 <p class="subscription_missing">Missing issues: [% subscription.missinglist %] </p>
849 [% IF ( subscription.opacnote ) %]
850 <p class="subscription_opacnote">[% subscription.opacnote FILTER html_line_break %]</p>
852 [% IF ( subscription.latestserials ) %]
853 <p class="subscription_latestissues"> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
854 <table class="table table-bordered table-striped" id="subscriptionst">
857 <th id="serial_serialseq" data-colname="serial_serialseq">Issue #</th>
858 <th id="serial_publisheddate" data-colname="serial_publisheddate" class="title-string">Publication date</th>
859 <th id="serial_planneddate" data-colname="serial_planneddate" class="title-string">Received date</th>
860 <th id="serial_status" data-colname="serial_status">Status</th>
861 <th id="serial_notes" data-colname="serial_notes">Note</th>
865 [% FOREACH latestserial IN subscription.latestserials %]
867 <td class="serialseq">[% latestserial.serialseq %]</td>
868 <td class="publisheddate">[% latestserial.publisheddate %]</td>
869 <td class="planneddate">[% latestserial.planneddate %]</td>
870 <td class="serial_status">
871 [% IF (latestserial.status1 ) %]<span>Expected</span>[% END %]
872 [% IF (latestserial.status2 ) %]<span>Arrived</span>[% END %]
873 [% IF (latestserial.status3 ) %]<span>Late</span>[% END %]
874 [% IF (latestserial.status4 ) %]<span>Missing</span>[% END %]
875 [% IF (latestserial.status41 ) %]<span>Missing (never received)</span>[% END %]
876 [% IF (latestserial.status42 ) %]<span>Missing (sold out)</span>[% END %]
877 [% IF (latestserial.status43 ) %]<span>Missing (damaged)</span>[% END %]
878 [% IF (latestserial.status44 ) %]<span>Missing (lost)</span>[% END %]
879 [% IF (latestserial.status5 ) %]<span>Not issued</span>[% END %]
880 [% IF (latestserial.status6 ) %]<span>Delete</span>[% END %]
881 [% IF (latestserial.status7 ) %]<span>Claimed</span>[% END %]
882 [% IF (latestserial.status8 ) %]<span>Stopped</span>[% END %]
884 <td class="serial_notes">[% latestserial.notes %]</td>
886 [% END # / FOREACH latestserials %]
889 [% END # / IF subscription.latestserials %]
890 [% END # / FOREACH subscriptions %]
891 <p class="subscription_moredetails"><a href="opac-serial-issues.pl?biblionumber=[% biblio.biblionumber %]">More details</a></p>
892 </div> <!-- / #subscriptions -->
893 [% END # IF subscriptionsnumber %]
895 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
896 <!-- Library Thing for Libraries Content -->
897 <div id="LFTLSimilarItems">
898 <div class="content_set">
899 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
900 <!-- but breaks Xhtml validation -->
901 <!-- <span class="results_summary">-->
902 <div id="ltfl_related"></div>
903 <div id="ltfl_similars"></div>
907 <div id="LTFLTagBrowse">
908 <div class="content_set">
909 <!-- <span class="results_summary"> -->
910 <div id="ltfl_tagbrowse" class="ltfl"></div>
914 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
916 [% IF Koha.Preference( 'reviewson' ) == 1 %]
918 <div id="newcomment"></div>
920 [% FOREACH review IN reviews %]
921 [% IF borrowernumber && review.borrowernumber == borrowernumber %]
922 <div class="commentline yours" id="c[% review.reviewid %]">
923 [% IF ( review.avatarurl ) %]
924 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
926 [% IF review.approved %]
927 <h5>Your comment</h5>
929 <h5>Your comment (preview, pending approval)</h5>
931 <small>[% review.datereviewed | $KohaDates %]</small>
933 [% FILTER html_break %]
934 [% review.review |html %]
936 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
940 <div class="commentline">
941 [% IF ( ShowReviewer != "none" && review.patron) %]
943 [% IF ( review.avatarurl ) %]
944 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
946 [% SWITCH ShowReviewer %]
948 <h5>Comment by [% review.patron.title %] [% review.patron.firstname %] [% review.patron.surname %]</h5>
950 <h5>Comment by [% review.patron.firstname %]</h5>
952 <h5>Comment by [% review.patron.surname %]</h5>
953 [% CASE 'firstandinitial' %]
954 <h5>Comment by [% review.patron.firstname %] [% review.patron.surname|truncate(2,'.') %]</h5>
955 [% CASE 'username' %]
956 <h5>Comment by [% review.patron.userid %]</h5>
959 <small>[% review.datereviewed | $KohaDates %]</small>
961 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
962 [% END # / IF ShowReviewer != "none" && review.patron %]
964 [% FILTER html_break %]
965 [% review.review |html %]
968 </div> <!-- / .commentline -->
970 [% END # / FOREACH reviews %]
972 <p>There are no comments for this item.</p>
973 [% END # / IF reviews %]
975 [% IF ( loggedinusername ) %]
976 [% UNLESS ( loggedincommenter ) %]
977 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblio.biblionumber %]'); return false;">
978 Post your comments on this item.
982 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
983 [% END # / IF loggedinusername %]
984 </div> <!-- / #comments -->
985 [% END # / IF reviewson %]
987 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
989 <h4>Other editions of this work</h4>
990 <table class="table table-bordered table-striped">
991 [% FOREACH XISBN IN XISBNS %]
994 [% IF ( OPACAmazonCoverImages ) %]
995 <img src="https://images-na.ssl-images-amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
998 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
999 [% IF ( XISBN.content_identifier_exists ) %]
1000 [% IF ( using_https ) %]
1001 <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="" />
1003 <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="" />
1006 <span class="no-image">No cover image available</span>
1007 [% END # / IF XISBN.content_identifier_exists %]
1008 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
1011 [% UNLESS ( item_level_itypes ) %]
1012 <td>[% XISBN.description %]</td>
1014 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
1015 [% IF ( XISBN.author ) %]<span> by </span>[% XISBN.author |html %][% END %]
1016 [% IF ( XISBN.copyrightdate ) %]<span> ©</span>[% XISBN.copyrightdate %][% END %]
1017 [% IF ( XISBN.publishercode ) %]
1018 <p>[% XISBN.publishercode |html %]
1019 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
1020 [% IF ( XISBN.publicationyear ) %][% ', ' _ XISBN.publicationyear %][% END %]
1021 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
1026 [% END # / FOREACH XISBNS %]
1028 </div> <!-- / #editions -->
1029 [% END # / IF OPACFRBRizeEditions && XISBNS %]
1031 [% IF ( HTML5MediaEnabled ) %]
1032 <div id="html5media">
1033 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
1035 [% SET ctrl_preload = ' controls preload=none' #translatability %]
1036 <[% HTML5MediaParent _ ctrl_preload %] >
1037 <[% HTML5MediaSet.child _ ' src="' _ HTML5MediaSet.srcblock _'"' _ HTML5MediaSet.typeblock %] />
1038 <span>[[% HTML5MediaParent %] tag not supported by your browser.]</span>
1039 </[% HTML5MediaParent %]>
1043 [% END # / IF HTML5MediaEnabled %]
1045 [% IF ( OPACLocalCoverImages && localimages.size ) %]
1047 <p>Click on an image to view it in the image viewer</p>
1048 [% FOREACH image IN localimages %]
1050 <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>
1053 </div><!-- / #images -->
1054 [% END # / IF OPACLocalCoverImages && localimages.size %]
1056 [% IF ( IDreamBooksReviews ) %]
1057 <div id="idb_critic_reviews">
1058 <div id="idb_review_snippets"></div>
1059 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
1062 </div> <!-- / #bibliodescriptions -->
1064 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' && ( normalized_isbn || normalized_upc ) ) %]
1065 <div id="NovelistSelect">
1066 <h3>Novelist Select</h3>
1067 <div data-novelist-novelistselect="[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]"></div>
1071 [% IF ( Babeltheque ) %]
1073 <div id="BW_etiquettes"></div>
1074 <div id="BW_suggestions"></div>
1076 <div class="clearfix"></div>
1078 <div id="BW_podcasts"></div>
1080 <div class="clearfix"></div>
1082 <div id="BW_videos"></div>
1084 [% END # / IF Babeltheque %]
1086 [%# Following on one line due to translation issues %]
1087 [% INCLUDE "openlibrary-readapi.inc" bib = { normalized_isbn => normalized_isbn,lccn => lccn, normalized_oclc => normalized_oclc } %]
1089 </div> <!-- /.span9 -->
1092 <div id="ulactioncontainer">
1094 [% IF ( OpacBrowseResults && busc ) %]
1095 <div class="nav_results">
1096 <div class="l_Results">
1097 [% IF ( listResults ) %]
1098 <a href="#" id="a_listResults">Browse results</a>
1100 <span>Browse results</span>
1103 <ul class="pg_menu clearfix">
1104 <li class="left_results">
1105 [% IF ( previousBiblionumber ) %]
1106 <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>
1108 <span>Previous</span>
1111 [%# busc is already URI encoded %]
1112 <li class="back_results"><a href="opac-search.pl?[% busc %]" title="Back to the results search list">Back to results</a></li>
1113 <li class="right_results">
1114 [% IF ( nextBiblionumber ) %]
1115 <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>
1121 [% IF ( listResults ) %]
1122 <div class="results-pagination">
1123 <div class="nav_pages">
1124 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1125 <ul id="listResults"></ul>
1127 <div class="pagination_list">
1128 <ul id="ul_pagination_list"></ul>
1133 [% END # / IF OpacBrowseResults && busc %]
1135 [% INCLUDE 'opac-detail-sidebar.inc' %]
1137 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right' && ( normalized_isbn || normalized_upc ) ) %]
1138 <div id="NovelistSelect">
1139 <h4>Novelist Select</h4>
1140 <div data-novelist-novelistselect=[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]></div>
1144 [% IF ( Babeltheque ) %]
1145 <div class="babeltheque_adds">
1146 <div id="BW_critiques_aj"></div>
1147 <div id="BW_citations_aj"></div>
1151 [% IF ( SocialNetworks ) %]
1152 <div id="social_networks" class="clearfix">
1154 <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>
1155 <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>
1156 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1157 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1158 <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>
1161 </div> <!-- / .ulactioncontainer -->
1162 </div> <!-- / .span4 -->
1163 </div> <!-- / .row-fluid -->
1164 <div class="row-fluid">
1165 [% IF ( LibraryThingForLibrariesID ) %]
1166 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]"></script>
1167 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1168 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1171 [% IF ( NovelistSelectProfile && normalized_isbn || normalized_upc) ) %]
1172 <script src="https://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1175 [% IF ( Babeltheque ) %]
1176 <script src="[% Babeltheque_url_js %]"></script>
1178 </div> <!-- / .row-fluid -->
1179 </div> <!-- / .container-fluid -->
1180 </div> <!-- / .main -->
1182 [% INCLUDE 'opac-bottom.inc' %]
1184 [%# End of template %]
1186 [% BLOCK items_table %]
1187 <table class="table table-bordered table-striped" id="[% table_id %]">
1190 [% IF ( item_level_itypes ) %]
1191 <th id="item_itemtype" data-colname="item_itemtype" class="itype">Item type</th>[% END %]
1192 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1193 <th id="item_current_location" data-colname="item_current_location" class="item_location">Current location</th>[% END %]
1194 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1195 <th id="item_home_location" data-colname="item_home_location" class="item_location">Home library</th>[% END %]
1196 [% IF ( itemdata_ccode ) %]
1197 <th id="item_ccode" data-colname="item_ccode" class="collection">Collection</th>[% END %]
1198 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1199 <th id="item_shelving_location" data-colname="item_shelving_location" class="shelving_location">Shelving location</th>[% END %]
1200 <th id="item_callnumber" data-colname="item_callnumber" class="call_no">Call number</th>
1201 [% IF ( itemdata_enumchron ) %]
1202 <th id="item_enumchron" data-colname="item_enumchron" class="vol_info">Vol info</th>[% END %]
1203 [% IF ( itemdata_uri ) %]
1204 <th id="item_url" data-colname="item_url" class="url">URL</th>[% END %]
1205 [% IF ( itemdata_copynumber ) %]
1206 <th id="item_copy" data-colname="item_copy" class="copynumber">Copy number</th>[% END %]
1207 <th id="item_status" data-colname="item_status" class="status">Status</th>
1208 [% IF ( itemdata_itemnotes ) %]
1209 <th id="item_notes" data-colname="item_notes" class="notes">Notes</th>[% END %]
1210 <th id="item_datedue" data-colname="item_datedue" class="date_due">Date due</th>
1211 <th id="item_barcode" data-colname="item_barcode" class="barcode">Barcode</th>
1212 [% IF holds_count.defined %]
1213 <th id="item_holds" data-colname="item_holds">Item holds</th>
1214 [% ELSIF show_priority %]
1215 <th id="item_priority" data-colname="item_priority">Item hold queue priority</th>
1217 [% IF ( ShowCourseReservesHeader ) %]
1218 <th id="item_coursereserves" data-colname="item_coursereserves">Course reserves</th>[% END %]
1222 [% FOREACH ITEM_RESULT IN items %]
1223 [% IF ITEM_RESULT.this_branch %]
1224 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1226 <tr vocab="http://schema.org/" typeof="Offer">
1228 [% IF ( item_level_itypes ) %]
1230 [% UNLESS ( noItemTypeImages ) %]
1231 [% IF ( ITEM_RESULT.imageurl ) %]
1232 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1235 [% ITEM_RESULT.description %]
1238 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1239 <td class="location" property="seller">
1240 <link property="itemOffered" href="#record" />
1241 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1242 <span class="[% ITEM_RESULT.holding_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1243 [% IF ( ITEM_RESULT.branchurl ) %]
1244 <a href="[% ITEM_RESULT.branchurl %]">[% ITEM_RESULT.branchname %]</a>
1246 <span>[% ITEM_RESULT.branchname %]</span>
1249 <div class="branch-info-tooltip">[% ITEM_RESULT.holding_branch_opac_info %]</div>
1251 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'holding' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1252 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1258 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1259 <td class="location" property="seller">
1260 <link property="itemOffered" href="#record" />
1261 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1262 <span class="[% ITEM_RESULT.home_branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]" title="">
1263 [% IF Branches.GetURL( ITEM_RESULT.homebranch ) %]
1264 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1265 [% IF ( home_branch_url ) %]
1266 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1268 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1271 <span>[% Branches.GetName( ITEM_RESULT.homebranch ) %]</span>
1274 <div class="branch-info-tooltip">[% ITEM_RESULT.home_branch_opac_info %]</div>
1276 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'home' || Koha.Preference('OpacLocationOnDetail') == 'both' ) %]
1277 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1283 [% IF ( itemdata_ccode ) %]
1284 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1287 [% IF ( Koha.Preference('OpacLocationOnDetail') == 'column' && itemdata_location ) %]
1288 <td class="shelving_location">[% ITEM_RESULT.location_description %]</td>
1291 <td class="call_no" property="sku">
1292 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1293 [% ITEM_RESULT.itemcallnumber %]
1294 [% IF ( OPACShelfBrowser ) %]
1295 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1296 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1298 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1303 [% IF ( itemdata_enumchron ) %]
1304 <td class="vol_info">
1305 [% IF ITEM_RESULT.enumchron && ITEM_RESULT.serialseq %]
1306 <span class="enum">[% ITEM_RESULT.enumchron %]</span>
1307 [% IF ( ITEM_RESULT.serialseq && ITEM_RESULT.enumchron!=ITEM_RESULT.serialseq ) %]
1308 <span class="sep"> -- </span>
1309 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1311 [% ELSIF ITEM_RESULT.enumchron %]
1312 <span class="enum">[% ITEM_RESULT.enumchron | html %]</span>
1313 [% ELSIF ITEM_RESULT.serialseq %]
1314 <span class="serialseq">[% ITEM_RESULT.serialseq | html %]</span>
1316 [% IF ( ITEM_RESULT.publisheddate ) %]
1317 <span class="pubdate">([% ITEM_RESULT.publisheddate | $KohaDates %])</span>
1321 [% IF ( itemdata_uri ) %]
1323 [% IF ITEM_RESULT.uri %]
1324 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1325 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1326 <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>
1328 <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>
1332 [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1333 <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1335 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1341 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1342 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1343 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1344 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1345 <td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>
1346 [% IF holds_count.defined || show_priority %]
1347 <td class="holds_count">
1348 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1349 [% IF ITEM_RESULT.priority %]
1350 [% IF holds_count.defined %]
1351 <span>(priority [% ITEM_RESULT.priority %])</span>
1353 <span>[% ITEM_RESULT.priority %]</span>
1358 [% IF ShowCourseReservesHeader %]
1360 [% IF ITEM_RESULT.course_reserves %]
1361 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1362 [% IF r.course.enabled == 'yes' %]
1364 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1365 [% r.course.course_name %]
1366 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1367 [% IF r.course.section %] [% r.course.section %] [% END %]
1368 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1375 [% END # /IF ShowCourseReservesHeader %]
1380 [% END %][%# end of items_table block %]
1382 [% BLOCK jsinclude %]
1383 [% INCLUDE 'datatables.inc' %]
1384 [% INCLUDE 'columns_settings.inc' %]
1385 [% IF ( SocialNetworks ) %]
1386 <script src="https://apis.google.com/js/plusone.js"></script>
1388 {lang: '[% lang %]'}
1391 <script>!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>
1393 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") %][% END %]
1395 [% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") %][% END %]
1400 [% IF ( OpacBrowseResults && busc ) %]
1401 var arrPagination = new Array();
1402 var pag_index_ini = [% indexPag %];
1403 [% IF ( listResults ) %]
1404 [% FOREACH listResult IN listResults %]
1405 arrPagination[[% listResult.index %]] = {
1406 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1407 title:"[% listResult.title|remove('\n')|html %]",
1408 author:"[% listResult.author|html %]",
1409 biblionumber:[% listResult.biblionumber %]
1415 [% IF ( OpacHighlightedWords ) %]
1416 var q_array = new Array(); // holds search terms if available
1418 function highlightOff() {
1419 $("#catalogue_detail_biblio").removeHighlight();
1420 $(".highlight_toggle").toggle();
1422 function highlightOn() {
1424 for (x in q_array) {
1425 if ( q_array[x].length > 0 ) {
1426 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1427 q_array[x] = q_array[x].toLowerCase();
1428 var myStopwords = "[% Koha.Preference('NotHighlightedWords') %]".toLowerCase().split('|');
1429 if( $.inArray(q_array[x], myStopwords) == -1 ) {
1430 $(".title").highlight(q_array[x]);
1431 $(".author").highlight(q_array[x]);
1432 $(".results_summary").highlight(q_array[x]);
1436 $(".highlight_toggle").toggle();
1440 $(document).ready(function() {
1441 $('#bibliodescriptions').tabs();
1442 $(".branch-info-tooltip-trigger").uitooltip({
1443 position: { my: "left+15 center", at: "right center" },
1446 content: function(){
1447 var element = $(this).next("div");
1448 return element.html();
1452 var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) %];
1454 KohaTable("#holdingst", {
1455 dom: 'B<"clearfix">t',
1457 { "targets": [ -1 ], "sortable": false, "searchable": false },
1458 { "type": "title-string", "targets" : [ "title-string" ] }
1460 "bKohaColumnsUseNames": true
1461 }, columns_settings);
1463 KohaTable("#otherholdingst", {
1464 dom: 'B<"clearfix">t',
1466 { "targets": [ -1 ], "sortable": false, "searchable": false },
1467 { "type": "title-string", "targets" : [ "title-string" ] }
1469 "bKohaColumnsUseNames": true
1470 }, columns_settings);
1472 var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) %];
1474 KohaTable("#subscriptionst", {
1475 dom: 'B<"clearfix">t',
1477 { "type": "title-string", "targets" : [ "title-string" ] }
1479 "bKohaColumnsUseNames": true
1480 }, serial_column_settings);
1482 [% IF ( TagsInputEnabled && loggedinusername ) %]
1483 $(".tag_add").click(function(){
1484 var thisid = $(this).attr("id");
1485 thisid = thisid.replace("tag_add","");
1487 $("#tagform"+thisid).show();
1488 $("#newtag"+thisid).focus();
1489 $("#newtag"+thisid+"_status").empty().hide();
1492 $(".cancel_tag_add").click(function(){
1493 var thisid = $(this).attr("id");
1494 thisid = thisid.replace("cancel","");
1495 $("#tagform"+thisid).hide();
1496 $("#tag_add"+thisid).show();
1497 $("#newtag"+thisid).val("");
1498 $("#newtag"+thisid+"_status").empty().hide();
1501 $(".tagbutton").click(function(){
1502 var thisid = $(this).attr("title");
1503 var tag = $("#newtag"+thisid).val();
1504 if (!tag || (tag == "")) {
1505 alert(MSG_NO_TAG_SPECIFIED);
1508 KOHA.Tags.add_tag_button(thisid, tag);
1513 [%# Note that there is no way atm to target a column with its class name to set it as the default sort order %]
1514 [% IF Koha.Preference('OpacLocationBranchToDisplay') == 'home' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes
1515 OR Koha.Preference('OpacLocationBranchToDisplay') == 'holding' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes
1516 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND NOT item_level_itypes
1517 OR Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'holdingbranch' AND item_level_itypes %]
1518 var default_order_index = 1;
1519 [% ELSIF Koha.Preference('OpacLocationBranchToDisplay') == 'both' AND Koha.Preference('OPACHoldingsDefaultSortField') == 'homebranch' AND item_level_itypes %]
1520 var default_order_index = 2;
1522 var default_order_index = 0;
1525 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1526 q_array = query_desc.split(" ");
1527 q_array = q_array.filter(function(n){ return n }); // Remove empty strings
1529 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1530 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1531 [% IF ( GoogleJackets ) %]
1532 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1534 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1535 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1538 [% IF OpenLibraryCovers %]
1539 KOHA.OpenLibrary.GetCoverFromIsbn();
1541 [% IF OPACLocalCoverImages %]
1542 KOHA.LocalCover.GetCoverFromBibnumber(true);
1544 [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
1545 novSelect.loadContentForQuery(
1547 ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1548 ISBN : '[% IF normalized_isbn %][% normalized_isbn %][% ELSE %][% normalized_upc %][% END %]',
1551 '[% NovelistSelectProfile %]',
1552 '[% NovelistSelectPassword %]',
1554 if ( d.length > 0 ){ //If no content
1555 $(".NovelistSelect").show();
1560 [% IF ( OpacBrowseResults && busc ) %]
1561 var list_title_showmsg = _("Show pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1562 var list_title_hidemsg = _("Hide pagination list (%s-%s / %s)").format([% indexPag %], [% indexPagEnd %], [% totalPag %]);
1563 if (arrPagination.length > 0) {
1564 renderPagIndexList(pag_index_ini, $("#listResults"));
1565 var reslist = $("#a_listResults");
1566 reslist.attr('title', list_title_showmsg);
1568 $("#a_listResults").click(function(e) {
1569 if (arrPagination.length > 0) {
1571 var navigation = $(".results-pagination");
1572 if (navigation.css("display") == 'none') {
1574 $(this).attr('title',list_title_hidemsg);
1575 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1578 $(this).attr('title',list_title_showmsg);
1582 $("#close_pagination").click(function(e) {
1584 var navigation = $(".results-pagination");
1588 [% IF ( OPACShelfBrowser ) %]
1590 (function prepareShelfBrowser(){
1592 $(".main").on("click",".close_shelf",function(e){
1594 $("#shelfbrowser").toggle();
1596 $(".main").on("click", "#browser_previous a", function(e){
1599 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1602 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1604 success: function(data){
1605 $("#shelfbrowser").replaceWith(data);
1606 [% IF ( GoogleJackets ) %]
1607 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1609 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1610 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1612 [% IF OpenLibraryCovers %]
1613 KOHA.OpenLibrary.GetCoverFromIsbn();
1615 [% IF OPACLocalCoverImages %]
1616 KOHA.LocalCover.GetCoverFromBibnumber(true);
1622 $(".main").on("click", "#browser_next a", function(e){
1625 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1628 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1630 success: function(data){
1631 $("#shelfbrowser").replaceWith(data);
1632 [% IF ( GoogleJackets ) %]
1633 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1635 [% IF ( Koha.Preference('Coce') && Koha.Preference('CoceProviders') ) %]
1636 KOHA.coce.getURL('[% Koha.Preference('CoceHost') %]', '[% Koha.Preference('CoceProviders') %]',[% covernewwindow %]);
1638 [% IF OpenLibraryCovers %]
1639 KOHA.OpenLibrary.GetCoverFromIsbn();
1641 [% IF OPACLocalCoverImages %]
1642 KOHA.LocalCover.GetCoverFromBibnumber(true);
1649 [% IF ( OpacStarRatings != 'disable' ) %]
1650 // -----------------------------------------------------
1651 // star-ratings code
1652 // -----------------------------------------------------
1653 // hide 'rate' button if javascript enabled
1655 $('input[name="rate_button"]').remove();
1658 $(".auto-submit-star").rating({
1659 cancel: _("Cancel rating"),
1660 callback: function (value, link) {
1662 // if the new value equals the old value, dont execute callback...
1664 if ($("#rating_value").attr("value") != value) {
1668 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1669 rating_old_value: $("#rating_value").attr("value"),
1670 borrowernumber: "[% borrowernumber %]",
1671 biblionumber: "[% biblio.biblionumber %]",
1672 rating_value: value,
1674 }, function (data) {
1676 if (data.auth_status != 'ok') {
1677 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1679 $("#rating_value").val(data.rating_value);
1681 if (data.rating_value) {
1682 $("#rating_value_text").text(_("your rating: %s, ").format(data.rating_value));
1684 $("#rating_value_text").text('');
1687 $("#rating_text").text(_("average rating: %s (%s votes)").format(data.rating_avg, data.rating_total));
1696 // -----------------------------------------------------
1697 [% END # / IF ( OpacStarRatings != 'disable' )%]
1699 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1700 var isbn = $(".isbn:last").text().split(" ")[1];
1702 isbn = isbn.replace(/\W*$/, '');
1703 isbn = isbn.replace(/-/, '');
1705 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1706 // Use Microsoft XDR for IE version 8 or above
1707 var xdr = new XDomainRequest();
1708 xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1709 xdr.onload = function() {
1710 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1711 eval(json); // json is now a regular JSON object
1712 parseIDBJSON(json); // parse using same function as for jQuery's success event
1716 $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1721 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1724 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1725 function parseIDBJSON( json ) {
1726 if(json.total_results > 0 && json.book.rating > 0){
1727 var isbn = $(".isbn:last").text().split(" ")[1];
1728 isbn = isbn.replace(/\W+/g, '');
1730 [% IF ( IDreamBooksReadometer ) %]
1731 $(".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>');
1734 [% IF ( IDreamBooksReviews ) %]
1735 //build new tab for critic reviews
1736 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1738 //append happy-sad cloud review
1740 $("#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>");
1742 //insert data into Book reviews tab
1743 $.each(json.book.critic_reviews, function(){
1744 $("#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>");
1746 $("#seemoreidb").attr('href', json.book.detail_link);
1747 $("#tab_idb_critic_reviews").show();
1751 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1753 [% IF ( OpacBrowseResults && busc ) %]
1755 var totalPagItemList = 10;
1757 function rewindList()
1759 var ul = $("#listResults");
1760 var li_ini = ul.children(':first').next();
1761 var index_ini = pag_index_ini;
1763 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1765 var li_end = ul.children(':last').prev();
1766 var index_end = arrPagination.length - 1;
1768 index_end = parseInt(li_end.attr("class").substring(7), 10);
1770 if (index_ini > pag_index_ini) {
1771 renderPagIndexList(index_ini - 1, ul, false);
1772 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1776 function forwardList()
1778 var ul = $("#listResults");
1779 var li_ini = ul.children(':first').next();
1780 var index_ini = pag_index_ini;
1782 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1784 var li_end = ul.children(':last').prev();
1785 var index_end = arrPagination.length - 1;
1787 index_end = parseInt(li_end.attr("class").substring(7), 10);
1789 if (index_end < arrPagination.length - 1) {
1790 renderPagIndexList(index_ini + 1, ul, false);
1791 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1795 function renderPagIndexList(index, ul)
1797 var $kids = ul.children("li");
1798 if ($kids.length > 0) {
1799 $kids.each(function() {
1805 var ini = index - 1;
1806 var end = ini + totalPagItemList - 1;
1808 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1812 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1813 if (arrPagination[i] == undefined) continue;
1814 var li = $("<li />");
1815 if (arrPagination[i].url != "") {
1816 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1817 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1818 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1819 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1820 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1821 html += ">" + i + "</a>";
1824 li.attr("class", "li_pag_" + i);
1829 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1830 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>":"»";
1833 }//renderPagIndexList
1836 function renderPagination(index, total, ul, highlIndex)
1838 for (var i = pag_index_ini; i <= total; i++) {
1839 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1840 $("#li_pag_" + i).remove();
1843 for (var i = index; i <= total && j < totalPagItemList; i++) {
1844 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1845 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1846 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1847 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1849 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1853 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1854 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1855 $("#li_pag_" + i).remove();
1856 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1857 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1858 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1864 [% END # / IF ( OpacBrowseResults && busc ) %]
1868 [% IF OPACPopupAuthorsSearch %]
1871 function showAuthors(element){
1872 var authornumber = $(element).attr("data-count");
1874 // Check checkbox related to the clicked link
1875 $("#authorsList input[type='checkbox']").attr('checked', false);
1876 $("#author_"+authornumber).attr('checked', true);
1878 makeAuthorRequest();
1881 function checkAll(checkbox, elem) {
1882 var check = $(checkbox).attr('checked') ? true : false;
1883 $(elem).find("input[type='checkbox']").attr('checked', check);
1884 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1887 function makeAuthorRequest(){
1890 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1891 values.push($(this).val());
1894 if (values.length > 0) {
1895 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1896 $("#validAuthorSearch").attr("href", request);
1898 $("#validAuthorSearch").removeAttr("href");
1904 function showSubjects(element, subjectnumber, subfieldnumber){
1906 // Check checkbox related to the clicked link
1907 $("#subjectsList input[type='checkbox']").attr('checked', false);
1908 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1910 makeSubjectRequest();
1914 function makeSubjectRequest() {
1916 $("#subjectsList > ul").each(function() {
1917 var all_checked = true;
1918 var local_values = [];
1919 $(this).find('input[type="checkbox"]').each(function() {
1920 if($(this).attr('checked')) {
1921 local_values.push($(this).val());
1923 all_checked = false;
1926 var authid = $(this).attr('data-authid');
1927 if(all_checked && authid) {
1928 values.push('an:' + authid);
1930 values = values.concat(local_values);
1933 if(values.length > 0) {
1934 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1935 $("#validSubjectSearch").attr('href', request);
1937 $("#validSubjectSearch").removeAttr("href");
1940 $(document).ready(function() {
1941 $("a.showauthors").click(function(e){
1949 [% END # / IF OPACPopupAuthorsSearch %]