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