3 [% USE AuthorisedValues %]
4 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
5 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
7 [% ShowCourseReservesHeader = 0 %]
8 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
9 [% FOREACH ITEM_RESULT IN itemloop %]
10 [% IF ITEM_RESULT.course_reserves %]
11 [% FOREACH r IN ITEM_RESULT.course_reserves %]
12 [% IF r.course.enabled == 'yes' %]
13 [% ShowCourseReservesHeader = 1 %]
20 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]
21 [% INCLUDE 'doc-head-close.inc' %]
23 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
25 [% IF ( OpacStarRatings != 'disable' ) %]
26 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
29 <body id="opac-detail" class="scrollto">
30 [% INCLUDE 'masthead.inc' %]
33 <ul class="breadcrumb">
34 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
35 <li><a href="#">Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]</a></li>
38 <div class="container-fluid">
39 <div class="row-fluid">
41 <div id="catalogue_detail_biblio" class="maincontent">
44 [% IF ( OPACLocalCoverImages ) %]
45 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
47 [% IF ( OPACAmazonCoverImages ) %]
48 [% IF ( OPACurlOpenInNewWindow ) %]
49 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank"><img src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
51 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
55 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
56 [% IF ( content_identifier_exists ) %]
57 [% IF ( using_https ) %]
58 <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" />
60 <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" />
64 <span class="no-image">No cover image available</span>
68 [% IF ( GoogleJackets ) %]
69 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
71 [% IF OpenLibraryCovers %]
72 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
74 [% IF ( BakerTaylorEnabled && normalized_isbn ) %]
75 [% IF ( OPACurlOpenInNewWindow ) %]
76 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
78 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
81 </div><!-- / #bookcover -->
83 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
84 [% IF ( ocoins ) # COinS / Openurl %]
85 <span class="Z3988" title="[% ocoins %]"></span>
89 <span class="view"><span id="Normalview">Normal view</span></span>
90 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
91 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
93 [% IF ( OPACXSLTDetailsDisplay ) %]
96 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
97 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
99 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
101 [% IF ( description ) %]
107 [% IF ( unititle ) %], [% unititle %][% END %]
110 [% IF ( MARCAUTHORS ) %]
111 <div class="results_summary">
112 <span class="label">Additional authors:</span>
113 [% IF OPACPopupAuthorsSearch %]
114 <!-- Author search term selection modal -->
115 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
116 <div class="modal-header">
117 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
118 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
120 <div class="modal-body">
121 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
122 <ul id="authorsList">
123 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
125 [% IF (MARCAUTHOR.authoritylink) %]
126 <input type="checkbox" name="checkbox"
127 id="author_[% loop.count %]"
128 onclick="makeAuthorRequest()"
129 value="an:[% MARCAUTHOR.authoritylink %]" />
131 <input type="checkbox" name="checkbox"
132 id="author_[% loop.count %]"
133 onclick="makeAuthorRequest()"
134 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
136 <label for="author_[% loop.count %]">
137 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
142 [% END # /FOREACH MARCAUTHORS %]
145 <div class="modal-footer">
146 <a href="#" class="btn btn-primary">Search</a>
147 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
150 [% END # /OPACPopupAuthorsSearch %]
152 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
153 [% authorsloop = loop %]
154 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
155 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
156 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
157 class="showauthors" data-count="[% authorsloop.count %]"
158 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>
160 [% IF (MARCAUTHOR.authoritylink) %]
161 <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>
163 [% UNLESS ( loop.last ) %]|[% END %]
164 [% END # /FOREACH MARCAUTHORS %]
166 [% END # IF MARCAUTHORS %]
168 [% IF ( MARCSERIES ) %]
169 <span class="results_summary series"><span class="label">Series:</span>
170 [% FOREACH MARCSERIE IN MARCSERIES %]
171 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
172 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
173 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
175 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
176 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
179 [% UNLESS ( loop.last ) %]|[% END %]
180 [% END # / FOREACH MARCSERIES %]
182 [% END # /MARCSERIES %]
184 [% IF ( editionstatement ) %]
185 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
187 [% IF ( publishercode ) %]
188 <span class="results_summary publisher"><span class="label">Published by :</span>
189 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
190 [% publishercode |html %]
191 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
196 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
199 [% IF ( MARCISBNS ) %]
200 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN.marcisbn %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
202 [% IF ( normalized_isbn ) %]
203 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
208 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
211 [% IF ( collectiontitle ) %]
212 <span class="results_summary collection"><span class="label">Collection: </span>
213 [% collectiontitle %]
214 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
215 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
220 [% IF ( unititles ) %]
221 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
222 [% FOREACH unititle IN unititles %]
223 [% unititle.unititle %] ;
228 [% IF ( MARCSUBJCTS ) %]
229 <div class="results_summary subject">
230 <span class="label">Subject(s):</span>
232 [% IF OPACPopupAuthorsSearch %]
233 <!-- Search term selection modal -->
234 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
235 <div class="modal-header">
236 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
237 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
239 <div id="subjectsList" class="modal-body">
240 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
241 <label for="all_subjects">
244 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
245 [% subjectsloop = loop %]
246 [% IF MARCSUBJCT.authoritylink %]
247 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
249 <ul id="subjectsList[% loop.count %]">
251 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
253 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
254 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
262 <div class="modal-footer">
263 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
264 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
267 [% END # /OPACPopupAuthorsSearch%]
269 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
270 [% subjectsloop = loop %]
271 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
272 [% SUBFIELD.separator %]
273 <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>
275 [% IF (MARCSUBJCT.authoritylink) %]
276 <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>
278 [% UNLESS ( loop.last ) %] | [% END %]
279 [% END # / FOREACH MARCSUBJCTS %]
281 [% ELSE # /IF MARCSUBJCTS %]
282 [% 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 %]
285 [% IF ( copyrightdate ) %]
286 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
289 [% UNLESS ( item_level_itypes ) %]
291 <img src="[% imageurl %]" alt="" />
293 <span class="results_summary itemtype"><span class="label">Item type: </span>
294 [% IF ( description ) %]
302 [% IF ( MARCURLS ) %]
303 <div class="results_summary online_resources"><span class="label">Online resources:</span>
305 [% FOREACH MARCurl IN MARCURLS %]
306 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
308 [% IF ( OPACurlOpenInNewWindow ) %]
309 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
310 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
312 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
315 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
316 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
318 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
322 [% MARCurl.linktext %]</a>
323 [% IF ( MARCurl.notes ) %]
325 [% FOREACH note IN MARCurl.notes %]
326 <li>[% note.note %]</li>
331 [% END # /FOREACH MARCURLS %]
334 [% END # / IF MARCURLS %]
335 [% END # / IF OPACXSLTDetailsDisplay %]
337 [% IF ( AuthorisedValueImages && authorised_value_images ) %]
338 <div class="authorised_value_images">
339 [% FOREACH authorised_value_image IN authorised_value_images %]
340 <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
343 [% END # / AuthorisedValueImages && authorised_value_images %]
345 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
346 [% IF ( LibraryThingForLibrariesID ) %]
347 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
348 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
349 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
350 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
352 <span class="results_summary">
353 <span class="label">Reviews from LibraryThing.com:</span>
354 <span style="display: block;" class="ltfl_reviews"></span>
356 [% END # / LibraryThingForLibrariesID %]
358 <!--This grabs all of the lists a bib record appears in -->
359 [% IF ( GetShelves ) %]
360 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
361 [% FOREACH GetShelve IN GetShelves %]
362 <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
363 [% IF ( loop.last ) %][% ELSE %]|[% END %]
366 [% END # / GetShelves %]
368 [% IF ( TagsShowEnabled ) %]
369 <div class="results_summary tags">
371 <span class="label">Tags from this library:</span>
373 [% FOREACH TagLoo IN TagLoop %]
374 <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>
375 [% IF ( loop.last ) %][% ELSE %], [% END %]
380 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
382 [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
384 [% END # /IF TagsShowEnabled %]
386 [% IF ( TagsInputEnabled ) %]
387 <div class="results_summary tagsinput">
388 [% IF ( loggedinusername ) %]
389 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
390 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
391 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
392 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
393 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
395 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
399 <span id="login4tags">Log in to add tags.</span>
402 [% END # / IF TagsInputEnabled %]
404 [% IF ( SyndeticsEnabled ) %]
405 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
406 <span class="results_summary">
407 <span class="label">Series information:</span>
408 [% IF ( using_https ) %]
409 <a target="_blank" 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>
411 <a target="_blank" 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>
414 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
415 [% IF ( SyndeticsAVPROFILEExists ) %]
416 <span class="results_summary">
417 <span class="label">Audiovisual profile:</span>
418 [% IF ( using_https ) %]
419 <a target="_blank" 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>
421 <a target="_blank" 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>
424 [% END # / IF SyndeticsAVPROFILEExists %]
426 [% IF ( SyndeticsFICTIONExists ) %]
427 <span class="results_summary">
428 <span class="label">Fiction notes:</span>
429 [% IF ( using_https ) %]
430 <a target="_blank" 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>
432 <a target="_blank" 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>
435 [% END # / IF SyndeticsFICTIONExists %]
437 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
438 <span class="results_summary">
439 <span class="label">Awards:</span>
440 [% IF ( using_https ) %]
441 <a target="_blank" 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>
443 <a target="_blank" 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>
446 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
447 [% END # / IF SyndeticsEnabled%]
449 [% IF ( OpacStarRatings != 'disable' ) %]
450 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
451 <div class="results_summary ratings">
453 [% FOREACH i IN [ 1 2 3 4 5 ] %]
454 [% IF rating_avg == i && borrowernumber %]
455 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
456 [% ELSIF rating_avg == i %]
457 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
458 [% ELSIF borrowernumber %]
459 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
461 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
465 <!-- define some hidden vars for ratings -->
467 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
468 <input type="hidden" name='borrowernumber' value="[% borrowernumber %]" />
469 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
470 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
471 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
473 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
475 [% IF ( rating_value ) %]
476 <span id="rating_value_text">your rating: [% rating_value %], </span>
478 <span id="rating_value_text"></span>
481 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
484 [% END # / IF OpacStarRatings != 'disable' %]
486 [% IF ( BakerTaylorContentURL ) %]
487 <span class="results_summary">
488 <span class="label">Enhanced content: </span>
489 [% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
491 [% END # / IF BakerTaylorContentURL %]
493 [% IF ( NovelistSelectProfile ) %]
494 [% IF ( NovelistSelectView == 'above') %]
495 <span class="results_summary">
496 <span class="label">Novelist Select: </span>
497 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
500 [% END # / IF NovelistSelectProfile %]
502 [% IF ( Babeltheque ) %]
503 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
504 <div id="BW_notes"></div>
505 <div id="BW_critiques"></div>
506 <div id="BW_critiques_pro"></div>
507 <div id="BW_citations"></div>
508 [% END # / IF Babeltheque%]
510 </div> <!-- / #catalogue_detail_biblio -->
512 <div id="bibliodescriptions" class="toptabs">
515 [% IF ( defaulttab == 'holdings' ) %]
516 <li id="tab_holdings" class="ui-tabs-selected">
518 <li id="tab_holdings">
520 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] ( [% itemloop.size || 0 %] )</a>
522 [% IF (SeparateHoldings) %]
523 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
525 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
526 [% IF ( SYNDETICS_TOC ) %]
527 <li id="tab_toc"> <a href="#toc">TOC</a></li>
529 [% IF ( SyndeticsEnabled ) %]
530 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
531 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
533 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
534 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
535 <li id="tab_LTFLreviews">
536 [% IF ( using_https ) %]
537 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
538 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=99-274208589&accessibility=1">here</a>.</noscript>
540 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
541 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="http://www.librarything.com/forlibraries/noscript.php?id=99-274208589&accessibility=1">here</a>.</noscript>
545 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
546 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
548 [% END # / IF SyndeticsEnabled %]
550 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
551 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
552 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
555 [% IF ( subscriptionsnumber ) %]
556 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-selected">[% ELSE %]<li id="tab_subscriptions">[% END %]
557 <a href="#subscriptions">Subscriptions</a>
561 [% IF Koha.Preference( 'reviewson' ) == 1 %]
562 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
565 [% IF ( NovelistSelectProfile ) %]
566 [% IF ( NovelistSelectView == 'tab') %]
567 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
571 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
572 <li id="tab_editions"><a href="#editions">Editions</a></li>
575 [% IF ( serialcollection ) %]
576 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-selected">[% ELSE %]<li id="tab_serialcollection">[% END %]
577 <a href="#serialcollection">Serial collection</a>
581 [% IF ( OPACLocalCoverImages && localimages.size ) %]
582 <li id="tab_images"><a href="#images">Images</a></li>
585 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
586 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
589 [% IF ( IDreamBooksReviews ) %]
590 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
594 [% IF ( serialcollection ) %]
595 <div id="serialcollection">
596 <table id="serialcollectiont" class="table table-bordered table-striped">
599 <th id="serial_library">Library</th>
600 <th id="serial_collection">Serial collection</th>
601 <th id="serial_itemcallnumber">Item callnumber</th>
605 [% FOREACH serialcollection IN serialcollections %]
607 <td>[% serialcollection.branch %]</td>
608 <td>[% serialcollection.text %]</td>
609 <td>[% serialcollection.itemcallnumber %]</td>
615 [% END # / IF serialcollection %]
619 [% IF ( itemloop.size ) %]
620 [% IF ( lotsofitems ) %]
621 <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&viewallitems=1#holdings">Click here to view them all.</a></p>
623 [% INCLUDE items_table items=itemloop tab="holdings" %]
625 [% IF holds_count.defined || priority %]
627 [% IF holds_count.defined %]
628 Total holds: [% holds_count %]
631 [% IF holds_count.defined %]
632 (priority [% priority %])
634 Overall queue priority: [% priority %]
640 [% IF ( ALTERNATEHOLDINGS ) %]
641 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
642 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
645 <div id="noitems">No physical items for this record</div>
647 [% END # IF itemloop.size %]
649 [% INCLUDE shelfbrowser tab='holdings' %]
650 <br style="clear:both;" />
651 </div> <!-- / #holdings -->
653 [% IF (SeparateHoldings) %]
654 <div id="otherholdings">
655 [% IF (otheritemloop.size) %]
656 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
660 [% INCLUDE shelfbrowser tab='otherholdings' %]
662 [% END # / SeparateHoldings %]
664 <div id="descriptions">
665 <div class="content_set">
667 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
668 <h4>Enhanced descriptions from Syndetics:</h4>
669 <p>[% SYNDETICS_SUMMARY %]</p>
672 [% IF ( MARCNOTES ) %]
674 [% FOREACH MARCNOTE IN MARCNOTES %]
675 <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
685 </div> <!-- / #descriptions -->
687 [% IF ( SyndeticsEnabled ) %]
688 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
690 <div class="content_set">
691 <h3>Table of contents provided by Syndetics</h3>
693 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
694 [% IF ( SYNDETICS_TO.p ) %]
695 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
701 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
703 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
705 <div class="content_set">
706 <h3>Excerpt provided by Syndetics</h3>
707 [% SYNDETICS_EXCERPT %]
710 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
712 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
714 <div class="content_set">
715 <h3>Reviews provided by Syndetics</h3>
716 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
717 [% IF ( SYNDETICS_REVIEW.title ) %]
718 <h4>[% SYNDETICS_REVIEW.title %]</h4>
719 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
721 [% IF ( review.content ) %]
730 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
732 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
734 <div class="content_set">
735 <h3>Author notes provided by Syndetics</h3>
736 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
737 [% IF ( SYNDETICS_ANOTE.content ) %]
738 [% SYNDETICS_ANOTE.content %]
743 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
744 [% END # / IF SyndeticsEnabled %]
746 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab') %]
747 <div id="NovelistSelect">
748 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
750 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
752 [% IF ( subscriptionsnumber ) %]
753 <div id="subscriptions">
754 <h2>This is a serial</h2>
755 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
756 [% FOREACH subscription IN subscriptions %]
757 [% IF ( subscription.branchname ) %]
758 <h3>At library: [% subscription.branchname %]</h3>
760 [% IF ( subscription.branchcode ) %]
761 <h3>At library: [% subscription.branchcode %]</h3>
764 [% IF ( subscription.closed ) %]
765 <p>This subscription is closed.</p>
767 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber %]</p>[% END %]</span>
768 [% IF ( subscription.subscriptionnotes ) %]
769 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
771 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
772 [% IF ( subscription.missinglist ) %]
773 <p>Missing issues: [% subscription.missinglist %] </p>
775 [% IF ( subscription.opacnote ) %]
776 <p>[% subscription.opacnote FILTER html_line_break %]</p>
778 [% IF ( subscription.latestserials ) %]
779 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
780 <table class="table table-bordered table-striped">
787 [% FOREACH latestserial IN subscription.latestserials %]
789 <td>[% latestserial.serialseq %]</td>
790 <td>[% latestserial.planneddate %]</td>
792 [% IF ( latestserial.status1 ) %]
795 [% IF ( latestserial.status2 ) %]
798 [% IF ( latestserial.status3 ) %]
801 [% IF ( latestserial.status4 ) %]
804 [% IF ( latestserial.status5 ) %]
812 <td>[% latestserial.notes %]</td>
814 [% END # / FOREACH latestserials %]
816 [% END # / IF subscription.latestserials %]
817 [% END # / FOREACH subscriptions %]
818 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
819 </div> <!-- / #subscriptions -->
820 [% END # IF subscriptionsnumber %]
822 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
823 <!-- Library Thing for Libraries Content -->
824 <div id="LFTLSimilarItems">
825 <div class="content_set">
826 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
827 <!-- but breaks Xhtml validation -->
828 <!-- <span class="results_summary">-->
829 <div id="ltfl_related"></div>
830 <div id="ltfl_similars"></div>
834 <div id="LTFLTagBrowse">
835 <div class="content_set">
836 <!-- <span class="results_summary"> -->
837 <div id="ltfl_tagbrowse" class="ltfl"></div>
841 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
843 [% IF Koha.Preference( 'reviewson' ) == 1 %]
845 <div id="newcomment"></div>
847 [% FOREACH review IN reviews %]
848 [% IF ( review.your_comment ) %]
849 <div class="commentline yours" id="c[% review.reviewid %]">
850 [% IF ( review.avatarurl ) %]
851 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
853 <h5>Your comment</h5>
854 <small>[% review.datereviewed | $KohaDates %]</small>
856 [% FILTER html_break %]
857 [% review.review |html %]
859 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
863 <div class="commentline">
864 [% IF ( ShowReviewer != "none" ) %]
865 [% IF ( review.avatarurl ) %]
866 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
868 [% SWITCH ShowReviewer %]
870 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
872 <h5>Comment by [% review.firstname %]</h5>
874 <h5>Comment by [% review.surname %]</h5>
875 [% CASE 'firstandinitial' %]
876 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
877 [% CASE 'username' %]
878 <h5>Comment by [% review.userid %]</h5>
880 <small>[% review.datereviewed | $KohaDates %]</small>
881 [% ELSIF ( ShowReviewer == "none") %]
882 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
883 [% END # / IF ShowReviewer != "none"%]
885 [% FILTER html_break %]
886 [% review.review |html %]
889 </div> <!-- / .commentline -->
890 [% END # / IF review.your_comment %]
891 [% END # / FOREACH reviews %]
893 <p>There are no comments for this item.</p>
894 [% END # / IF reviews %]
896 [% IF ( loggedinusername ) %]
897 [% UNLESS ( loggedincommenter ) %]
898 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
899 Post or edit your comments on this item.
903 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
904 [% END # / IF loggedinusername %]
905 </div> <!-- / #comments -->
906 [% END # / IF reviewson %]
908 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
910 <h4>Other editions of this work</h4>
911 <table class="table table-bordered table-striped">
912 [% FOREACH XISBN IN XISBNS %]
915 [% IF ( OPACAmazonCoverImages ) %]
916 <img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
919 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
920 [% IF ( XISBN.content_identifier_exists ) %]
921 [% IF ( using_https ) %]
922 <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="" />
924 <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="" />
927 <span class="no-image">No cover image available</span>
928 [% END # / IF XISBN.content_identifier_exists %]
929 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
932 [% UNLESS ( item_level_itypes ) %]
933 <td>[% XISBN.description %]</td>
935 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
936 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
937 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
938 [% IF ( XISBN.publishercode ) %]
939 <p>[% XISBN.publishercode |html %]
940 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
941 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
942 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
947 [% END # / FOREACH XISBNS %]
949 </div> <!-- / #editions -->
950 [% END # / IF OPACFRBRizeEditions && XISBNS %]
952 [% IF ( HTML5MediaEnabled ) %]
953 <div id="html5media">
955 <[% HTML5MediaParent %] controls preload=none>
956 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
957 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
959 [[% HTML5MediaParent %] tag not supported by your browser.]
960 </[% HTML5MediaParent %]>
963 [% END # / IF HTML5MediaEnabled %]
965 [% IF ( OPACLocalCoverImages && localimages.size ) %]
967 <p>Click on an image to view it in the image viewer</p>
968 [% FOREACH image IN localimages %]
970 <a class="localimage" href="/cgi-bin/koha/opac-imageviewer.pl?biblionumber=[% biblionumber %]&imagenumber=[% image %]"><img alt="" src="/cgi-bin/koha/opac-image.pl?thumbnail=1&imagenumber=[% image %]" /></a>
973 </div><!-- / #images -->
974 [% END # / IF OPACLocalCoverImages && localimages.size %]
976 [% IF ( IDreamBooksReviews ) %]
977 <div id="idb_critic_reviews">
978 <div id="idb_review_snippets"></div>
979 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
982 </div> <!-- / #bibliodescriptions -->
984 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' ) %]
985 <div id="NovelistSelect">
986 <h3>Novelist Select</h3>
987 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
991 [% IF ( Babeltheque ) %]
993 <div id="BW_etiquettes"></div>
994 <div id="BW_suggestions"></div>
996 <div class="clearfix"></div>
998 <div id="BW_podcasts"></div>
1000 <div class="clearfix"></div>
1002 <div id="BW_videos"></div>
1004 [% END # / IF Babeltheque %]
1005 </div> <!-- /.span8 -->
1008 <div id="ulactioncontainer">
1010 [% IF ( OpacBrowseResults && busc ) %]
1011 <div class="nav_results">
1012 <div class="l_Results">
1013 [% IF ( listResults ) %]
1014 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1016 <span>Browse results</span>
1019 <ul class="pg_menu clearfix">
1020 <li class="left_results">
1021 [% IF ( previous ) %]<a href="[% previous |url %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>
1023 <span>Previous</span>
1026 <li class="back_results"><a href="opac-search.pl?[% busc |url %]" title="Back to the results search list">Back to results</a></li>
1027 <li class="right_results">
1028 [% IF ( next ) %]<a href="[% next %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>
1034 [% IF ( listResults ) %]
1035 <div class="results-pagination">
1036 <div class="nav_pages">
1037 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1038 <ul id="listResults"></ul>
1040 <div class="pagination_list">
1041 <ul id="ul_pagination_list"></ul>
1046 [% END # / IF OpacBrowseResults && busc %]
1048 [% INCLUDE 'opac-detail-sidebar.inc' %]
1050 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right') %]
1051 <div id="NovelistSelect">
1052 <h4>Novelist Select</h4>
1053 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1057 [% IF ( Babeltheque ) %]
1058 <div class="babeltheque_adds">
1059 <div id="BW_critiques_aj"></div>
1060 <div id="BW_citations_aj"></div>
1064 [% IF ( SocialNetworks ) %]
1065 <div id="social_networks" class="clearfix">
1067 <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>
1068 <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>
1069 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1070 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1071 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1072 <div><a id="twitter" href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-text="[% title %]" data-lang="[% lang %]">Tweet</a></div>
1075 </div> <!-- / .ulactioncontainer -->
1076 </div> <!-- / .span4 -->
1077 </div> <!-- / .row-fluid -->
1078 <div class="row-fluid">
1079 [% IF ( LibraryThingForLibrariesID ) %]
1080 [% IF ( using_https ) %]
1081 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1082 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1083 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1085 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1086 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1087 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1088 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1092 [% IF ( NovelistSelectProfile ) %]
1093 <script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1096 [% IF ( Babeltheque ) %]
1097 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1099 </div> <!-- / .row-fluid -->
1100 </div> <!-- / .container-fluid -->
1101 </div> <!-- / .main -->
1103 [% INCLUDE 'opac-bottom.inc' %]
1105 [%# End of template %]
1107 [% BLOCK items_table %]
1108 <table class="holdingst table table-bordered table-striped">
1111 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1112 <th id="item_location">Location</th>
1113 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1114 <th id="item_callnumber" class="call_no">Call number</th>
1115 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1116 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1117 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy</th>[% END %]
1118 <th id="item_status" class="status">Status</th>
1119 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1120 <th id="item_datedue" class="date_due">Date due</th>
1121 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1122 [% IF holds_count.defined %]
1124 [% ELSIF show_priority %]
1125 <th>Item hold queue priority</th>
1127 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1131 [% FOREACH ITEM_RESULT IN items %]
1132 [% IF ITEM_RESULT.this_branch %]
1133 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1135 <tr vocab="http://schema.org/" typeof="Offer">
1137 [% IF ( item_level_itypes ) %]
1139 [% UNLESS ( noItemTypeImages ) %]
1140 [% IF ( ITEM_RESULT.imageurl ) %]
1141 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1144 [% ITEM_RESULT.description %]
1147 <td class="location" property="seller">
1148 <link property="itemOffered" href="#record" />
1149 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1150 [% UNLESS ( singleBranchMode ) %]
1151 <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1152 [% IF ( ITEM_RESULT.branchurl ) %]
1153 <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1155 <span title="">[% ITEM_RESULT.branchname %]</span>
1157 <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1160 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1162 [% IF ( itemdata_ccode ) %]
1163 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1165 <td class="call_no" property="sku">
1166 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1167 [% ITEM_RESULT.itemcallnumber %]
1168 [% IF ( OPACShelfBrowser ) %]
1169 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1173 [% IF ( itemdata_enumchron ) %]
1174 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1176 [% IF ( itemdata_uri ) %]
1178 [% IF ITEM_RESULT.uri %]
1179 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1180 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | url %]&biblionumber=[% biblionumber |url %]&itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1182 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1187 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1188 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1189 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1190 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td>
1191 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1192 [% IF holds_count.defined || show_priority %]
1193 <td class="holds_count">
1194 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1195 [% IF ITEM_RESULT.priority %]
1196 [% IF holds_count.defined %]
1197 (priority [% ITEM_RESULT.priority %])
1199 [% ITEM_RESULT.priority %]
1204 [% IF ShowCourseReservesHeader %]
1206 [% IF ITEM_RESULT.course_reserves %]
1207 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1209 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1210 [% r.course.course_name %]
1211 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1212 [% IF r.course.section %] [% r.course.section %] [% END %]
1213 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1219 [% END # /IF ShowCourseReservesHeader %]
1224 [% END %][%# end of items_table block %]
1226 [% BLOCK shelfbrowser %]
1227 [% IF ( OpenOPACShelfBrowser and shelfbrowser_tab == tab) %]
1228 <div id="shelfbrowser">
1229 <h5 style="text-align: center;">
1230 [% IF ( starting_homebranch ) %]Browsing [% starting_homebranch %] Shelves[% END %]
1231 [% IF ( starting_location ) %], Shelving location: [% starting_location %][% END %]
1232 [% IF ( starting_ccode ) %], Collection code: [% starting_ccode %][% END %]
1233 <a style="font-size: 75%;" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">Close shelf browser</a>
1236 <table class="table table-bordered table-striped">
1238 <td rowspan="2" style="width:20px;">
1239 <div id="browser_previous">
1240 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% IF ( shelfbrowser_prev_biblionumber ) %][% shelfbrowser_prev_biblionumber %][% ELSE %][% biblionumber %][% END %]&shelfbrowse_itemnumber=[% shelfbrowser_prev_itemnumber %]#shelfbrowser">Previous</a>
1243 [% FOREACH PREVIOUS_SHELF_BROWS IN PREVIOUS_SHELF_BROWSE %]
1245 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% PREVIOUS_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% PREVIOUS_SHELF_BROWS.itemnumber %]#shelfbrowser">
1246 [% IF ( OPACLocalCoverImages ) %]
1247 <div title="[% PREVIOUS_SHELF_BROWS.biblionumber |url %]" class="[% PREVIOUS_SHELF_BROWS.biblionumber %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% PREVIOUS_SHELF_BROWS.biblionumber %]"></div>
1249 [% IF ( OPACAmazonCoverImages ) %]
1250 [% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %]
1251 <img src="http://images.amazon.com/images/P/[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
1253 <span class="no-image">No cover image available</span>
1256 [% IF ( SyndeticsEnabled ) %]
1257 [% IF ( SyndeticsCoverImages ) %]
1258 [% IF ( content_identifier_exists ) %]
1259 [% IF ( using_https ) %]
1260 <img src="https://secure.syndetics.com/index.aspx?isbn=[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% PREVIOUS_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% PREVIOUS_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" />
1262 <img src="http://www.syndetics.com/index.aspx?isbn=[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% PREVIOUS_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% PREVIOUS_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" />
1265 <span class="no-image">No cover image available</span>
1269 [% IF ( GoogleJackets ) %]
1270 [% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %]
1271 <div title="[% PREVIOUS_SHELF_BROWS.biblionumber |url %]" class="[% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]" id="gbs-thumbnail-preview[% loop.count %]"></div>
1273 <span class="no-image">No cover image available</span>
1276 [% IF ( BakerTaylorEnabled ) %]
1277 [% IF ( PREVIOUS_SHELF_BROWS.browser_normalized_isbn ) %]
1278 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% PREVIOUS_SHELF_BROWS.browser_normalized_isbn %]" />
1280 <span class="no-image">No cover image available</span>
1287 [% FOREACH NEXT_SHELF_BROWS IN NEXT_SHELF_BROWSE %]
1289 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% NEXT_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% NEXT_SHELF_BROWS.itemnumber %]#shelfbrowser">
1290 [% IF ( OPACLocalCoverImages ) %]
1291 <div title="[% NEXT_SHELF_BROWS.biblionumber |url %]" class="[% NEXT_SHELF_BROWS.biblionumber %] thumbnail-shelfbrowser" id="local-thumbnail-shelf-[% NEXT_SHELF_BROWS.biblionumber %]"></div>
1293 [% IF ( OPACAmazonCoverImages ) %]
1294 [% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
1295 <img src="http://images.amazon.com/images/P/[% NEXT_SHELF_BROWS.browser_normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
1297 <span class="no-image">No cover image available</span>
1301 [% IF ( SyndeticsEnabled ) %]
1302 [% IF ( SyndeticsCoverImages ) %]
1303 [% IF ( content_identifier_exists ) %]
1304 [% IF ( using_https ) %]
1305 <img src="https://secure.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" />
1307 <img src="http://www.syndetics.com/index.aspx?isbn=[% NEXT_SHELF_BROWS.browser_normalized_isbn %]/SC.GIF&client=[% SyndeticsClientCode %][% IF ( NEXT_SHELF_BROWS.browser_normalized_upc ) %]&upc=[% NEXT_SHELF_BROWS.browser_normalized_upc %][% END %][% IF ( NEXT_SHELF_BROWS.browser_normalized_oclc ) %]&oclc=[% NEXT_SHELF_BROWS.browser_normalized_oclc %][% END %]&type=xw10" alt="" />
1310 <span class="no-image">No cover image available</span>
1315 [% IF ( GoogleJackets ) %]
1316 [% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
1317 <div title="[% NEXT_SHELF_BROWS.biblionumber |url %]" class="[% NEXT_SHELF_BROWS.browser_normalized_isbn %]" id="gbs-thumbnail-preview[% loop.count %]"></div>
1319 <span class="no-image">No cover image available</span>
1322 [% IF ( BakerTaylorEnabled ) %]
1323 [% IF ( NEXT_SHELF_BROWS.browser_normalized_isbn ) %]
1324 <img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% NEXT_SHELF_BROWS.browser_normalized_isbn %]" />
1326 <span class="no-image">No cover image available</span>
1334 <div id="browser_next">
1335 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% IF ( shelfbrowser_next_biblionumber ) %][% shelfbrowser_next_biblionumber %][% ELSE %][% biblionumber %][% END %]&shelfbrowse_itemnumber=[% shelfbrowser_next_itemnumber %]#shelfbrowser">Next</a>
1341 [% FOREACH PREVIOUS_SHELF_BROWS IN PREVIOUS_SHELF_BROWSE %]
1343 [% PREVIOUS_SHELF_BROWS.itemcallnumber %]
1344 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% PREVIOUS_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% PREVIOUS_SHELF_BROWS.itemnumber %]#shelfbrowser">[% PREVIOUS_SHELF_BROWS.title |html %]</a>
1348 [% FOREACH NEXT_SHELF_BROWS IN NEXT_SHELF_BROWSE %]
1349 <td class="top" style="width:20px;">
1350 [% NEXT_SHELF_BROWS.itemcallnumber %]
1351 <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% NEXT_SHELF_BROWS.biblionumber %]&shelfbrowse_itemnumber=[% NEXT_SHELF_BROWS.itemnumber %]#shelfbrowser">[% NEXT_SHELF_BROWS.title |html %]</a>
1358 [% END # end of shelfbrowser block %]
1359 [% BLOCK jsinclude %]
1360 [% INCLUDE 'datatables.inc' %]
1361 [% IF ( SocialNetworks ) %]
1362 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1364 {lang: '[% lang %]'}
1367 <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>
1369 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1371 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1373 <script type="text/javascript">
1376 [% IF ( OpacBrowseResults && busc ) %]
1377 var arrPagination = new Array();
1378 var pag_index_ini = [% indexPag %];
1379 [% IF ( listResults ) %]
1380 [% FOREACH listResult IN listResults %]
1381 arrPagination[[% listResult.index %]] = {url:"[% listResult.url %]", title:"[% listResult.title|remove('\n')|html %]", author:"[% listResult.author|html %]", biblionumber:[% listResult.biblionumber %]};
1386 [% IF ( OpacHighlightedWords ) %]
1387 var q_array = new Array(); // holds search terms if available
1389 function highlightOff() {
1390 $("#catalogue_detail_biblio").removeHighlight();
1391 $(".highlight_toggle").toggle();
1393 function highlightOn() {
1395 for (x in q_array) {
1396 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1397 $(".title").highlight(q_array[x]);
1398 $(".author").highlight(q_array[x]);
1399 $(".results_summary").highlight(q_array[x]);
1401 $(".highlight_toggle").toggle();
1405 $(document).ready(function() {
1406 $('#bibliodescriptions').tabs();
1407 $(".branch-info-tooltip-trigger").tooltip({
1408 position: { my: "left+15 center", at: "right center" },
1411 content: function(){
1412 var element = $(this).next("div");
1413 return element.html();
1416 [% IF ( TagsInputEnabled && loggedinusername ) %]
1417 $(".tag_add").click(function(){
1418 var thisid = $(this).attr("id");
1419 thisid = thisid.replace("tag_add","");
1421 $("#tagform"+thisid).show();
1422 $("#newtag"+thisid).focus();
1423 $("#newtag"+thisid+"_status").empty().hide();
1426 $(".cancel_tag_add").click(function(){
1427 var thisid = $(this).attr("id");
1428 thisid = thisid.replace("cancel","");
1429 $("#tagform"+thisid).hide();
1430 $("#tag_add"+thisid).show();
1431 $("#newtag"+thisid).val("");
1432 $("#newtag"+thisid+"_status").empty().hide();
1435 $(".tagbutton").click(function(){
1436 var thisid = $(this).attr("title");
1437 var tag = $("#newtag"+thisid).val();
1438 if (!tag || (tag == "")) {
1439 alert(MSG_NO_TAG_SPECIFIED);
1442 KOHA.Tags.add_tag_button(thisid, tag);
1447 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1449 [% IF ( item_level_itypes ) %]null,[% END %]
1451 [% IF ( itemdata_ccode ) %]null,[% END %]
1453 [% IF ( itemdata_enumchron ) %]null,[% END %]
1454 [% IF ( itemdata_uri ) %]null,[% END %]
1455 [% IF ( itemdata_copynumber ) %]null,[% END %]
1457 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1458 { "sType": "title-string" },
1459 [% IF ( OPACShowBarcode ) %]null,[% END %]
1460 [% IF holds_count.defined %]
1462 [% ELSIF show_priority %]
1465 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1469 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1470 q_array = query_desc.split(" ");
1472 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1473 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1474 [% IF ( GoogleJackets ) %]
1475 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1477 [% IF OpenLibraryCovers %]
1478 KOHA.OpenLibrary.GetCoverFromIsbn();
1480 [% IF OPACLocalCoverImages %]
1481 KOHA.LocalCover.GetCoverFromBibnumber(true);
1483 [% IF ( NovelistSelectProfile ) %]
1484 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1487 [% IF ( OpacBrowseResults && busc ) %]
1488 if (arrPagination.length > 0) {
1489 renderPagIndexList(pag_index_ini, $("#listResults"));
1491 $("#a_listResults").click(function(e) {
1492 if (arrPagination.length > 0) {
1494 var navigation = $(".results-pagination");
1495 if (navigation.css("display") == 'none') {
1497 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1498 $(this).attr('title',newtitle);
1499 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1502 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1503 $(this).attr('title',newtitle);
1507 $("#close_pagination").click(function(e) {
1509 var navigation = $(".results-pagination");
1514 [% IF ( OpacStarRatings != 'disable' ) %]
1515 // -----------------------------------------------------
1516 // star-ratings code
1517 // -----------------------------------------------------
1518 // hide 'rate' button if javascript enabled
1520 $('input[name="rate_button"]').remove();
1523 $(".auto-submit-star").rating({
1524 callback: function (value, link) {
1526 // if the new value equals the old value, dont execute callback...
1528 if ($("#rating_value").attr("value") != value) {
1532 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1533 rating_old_value: $("#rating_value").attr("value"),
1534 borrowernumber: "[% borrowernumber %]",
1535 biblionumber: "[% biblionumber %]",
1536 rating_value: value,
1538 }, function (data) {
1540 if (data.auth_status != 'ok') {
1541 window.alert(_('Your CGI session cookie is not current. Please refresh the page and try again.'));
1543 $("#rating_value").val(data.rating_value);
1545 if (data.rating_value) {
1546 $("#rating_value_text").text(_('your rating: ') + data.rating_value + ', ');
1548 $("#rating_value_text").text('');
1551 $("#rating_text").text(_('average rating: ') + data.rating_avg_int + ' (' + data.rating_total + ' ' + _("votes") + ')');
1560 // -----------------------------------------------------
1561 [% END # / IF ( OpacStarRatings != 'disable' )%]
1563 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1564 var isbn = $(".isbn:last").text().split(" ")[1];
1566 isbn = isbn.replace(/\W*$/, '');
1567 isbn = isbn.replace(/-/, '');
1569 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1570 // Use Microsoft XDR for IE version 8 or above
1571 var xdr = new XDomainRequest();
1572 xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1573 xdr.onload = function() {
1574 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1575 eval(json); // json is now a regular JSON object
1576 parseIDBJSON(json); // parse using same function as for jQuery's success event
1580 $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1585 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1588 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1589 function parseIDBJSON( json ) {
1590 if(json.total_results > 0 && json.book.rating > 0){
1591 var isbn = $(".isbn:last").text().split(" ")[1];
1592 isbn = isbn.replace(/-/, '');
1594 [% IF ( IDreamBooksReadometer ) %]
1595 $(".title").append('<a href="'+json.book.detail_link+'" id="idreambooksreadometer"><img src="http://idreambooks.com/remotereadometer/'+isbn+'.jpg" alt="'+json.book.title+' by '+json.book.author+'" title="Rating based on reviews of '+json.book.title+'"></a>');
1598 [% IF ( IDreamBooksReviews ) %]
1599 //build new tab for critic reviews
1600 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1602 //append happy-sad cloud review
1604 $("#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>");
1606 //insert data into Book reviews tab
1607 $.each(json.book.critic_reviews, function(){
1608 $("#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>");
1610 $("#seemoreidb").attr('href', json.book.detail_link);
1611 $("#tab_idb_critic_reviews").show();
1615 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1617 [% IF ( OpacBrowseResults && busc ) %]
1619 var totalPagItemList = 10;
1621 function rewindList()
1623 var ul = $("#listResults");
1624 var li_ini = ul.children(':first').next();
1625 var index_ini = pag_index_ini;
1627 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1629 var li_end = ul.children(':last').prev();
1630 var index_end = arrPagination.length - 1;
1632 index_end = parseInt(li_end.attr("class").substring(7), 10);
1634 if (index_ini > pag_index_ini) {
1635 renderPagIndexList(index_ini - 1, ul, false);
1636 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1640 function forwardList()
1642 var ul = $("#listResults");
1643 var li_ini = ul.children(':first').next();
1644 var index_ini = pag_index_ini;
1646 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1648 var li_end = ul.children(':last').prev();
1649 var index_end = arrPagination.length - 1;
1651 index_end = parseInt(li_end.attr("class").substring(7), 10);
1653 if (index_end < arrPagination.length - 1) {
1654 renderPagIndexList(index_ini + 1, ul, false);
1655 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1659 function renderPagIndexList(index, ul)
1661 var $kids = ul.children("li");
1662 if ($kids.length > 0) {
1663 $kids.each(function() {
1669 var ini = index - 1;
1670 var end = ini + totalPagItemList - 1;
1672 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1676 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1677 if (arrPagination[i] == undefined) continue;
1678 var li = $("<li />");
1679 if (arrPagination[i].url != "") {
1680 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1681 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1682 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1683 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1684 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1685 html += ">" + i + "</a>";
1688 li.attr("class", "li_pag_" + i);
1693 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1694 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>":"»";
1697 }//renderPagIndexList
1700 function renderPagination(index, total, ul, highlIndex)
1702 for (var i = pag_index_ini; i <= total; i++) {
1703 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1704 $("#li_pag_" + i).remove();
1707 for (var i = index; i <= total && j < totalPagItemList; i++) {
1708 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1709 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1710 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1711 if (arrPagination[i].author) html += "<br /> by " + arrPagination[i].author;
1713 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1717 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1718 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1719 $("#li_pag_" + i).remove();
1720 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1721 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1722 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1728 [% END # / IF ( OpacBrowseResults && busc ) %]
1732 [% IF OPACPopupAuthorsSearch %]
1733 <script type="text/javascript">
1735 function showAuthors(element){
1736 var authornumber = $(element).attr("data-count");
1737 // Hide subjects menu if displayed
1738 hideMenu(".subjectSearch");
1740 // Check checkbox related to the clicked link
1741 $("#authorsList input[type='checkbox']").attr('checked', false);
1742 $("#author_"+authornumber).attr('checked', true);
1744 makeAuthorRequest();
1747 var left = element.offsetLeft || 0;
1748 var top = element.offsetTop || 0;
1749 $('.authorSearch').css('display', 'block');
1750 $('.authorSearch').css('left', left);
1751 $('.authorSearch').css('top', top + 15);
1754 function hideMenu(elem) {
1755 $(elem).css('display', 'none');
1758 function checkAll(checkbox, elem) {
1759 var check = $(checkbox).attr('checked') ? true : false;
1760 $(elem).find("input[type='checkbox']").attr('checked', check);
1761 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1764 function makeAuthorRequest(){
1767 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1768 values.push($(this).val());
1771 if (values.length > 0) {
1772 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1773 $("#validAuthorSearch").attr("href", request);
1775 $("#validAuthorSearch").removeAttr("href");
1781 function showSubjects(element, subjectnumber, subfieldnumber){
1783 // Check checkbox related to the clicked link
1784 $("#subjectsList input[type='checkbox']").attr('checked', false);
1785 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1787 makeSubjectRequest();
1791 function makeSubjectRequest() {
1793 $("#subjectsList > ul").each(function() {
1794 var all_checked = true;
1795 var local_values = [];
1796 $(this).find('input[type="checkbox"]').each(function() {
1797 if($(this).attr('checked')) {
1798 local_values.push($(this).val());
1800 all_checked = false;
1803 var authid = $(this).attr('data-authid');
1804 if(all_checked && authid) {
1805 values.push('an:' + authid);
1807 values = values.concat(local_values);
1810 if(values.length > 0) {
1811 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1812 $("#validSubjectSearch").attr('href', request);
1814 $("#validSubjectSearch").removeAttr("href");
1817 $(document).ready(function() {
1818 $("a.showauthors").click(function(){
1826 [% END # / IF OPACPopupAuthorsSearch %]