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 %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
522 [% IF (SeparateHoldings) %]
523 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
525 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
526 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
528 [% IF ( SYNDETICS_TOC ) %]
529 <li id="tab_toc"> <a href="#toc">TOC</a></li>
531 [% IF ( SyndeticsEnabled ) %]
532 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
533 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
535 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
536 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
537 <li id="tab_LTFLreviews">
538 [% IF ( using_https ) %]
539 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
540 <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>
542 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
543 <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>
547 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
548 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
550 [% END # / IF SyndeticsEnabled %]
552 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
553 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
554 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
557 [% IF ( subscriptionsnumber ) %]
558 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-selected">[% ELSE %]<li id="tab_subscriptions">[% END %]
559 <a href="#subscriptions">Subscriptions</a>
563 [% IF Koha.Preference( 'reviewson' ) == 1 %]
564 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
567 [% IF ( NovelistSelectProfile ) %]
568 [% IF ( NovelistSelectView == 'tab') %]
569 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
573 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
574 <li id="tab_editions"><a href="#editions">Editions</a></li>
577 [% IF ( serialcollection ) %]
578 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-selected">[% ELSE %]<li id="tab_serialcollection">[% END %]
579 <a href="#serialcollection">Serial collection</a>
583 [% IF ( OPACLocalCoverImages && localimages.size ) %]
584 <li id="tab_images"><a href="#images">Images</a></li>
587 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
588 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
591 [% IF ( IDreamBooksReviews ) %]
592 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
596 [% IF ( serialcollection ) %]
597 <div id="serialcollection">
598 <table id="serialcollectiont" class="table table-bordered table-striped">
601 <th id="serial_library">Library</th>
602 <th id="serial_collection">Serial collection</th>
603 <th id="serial_itemcallnumber">Item callnumber</th>
607 [% FOREACH serialcollection IN serialcollections %]
609 <td>[% serialcollection.branch %]</td>
610 <td>[% serialcollection.text %]</td>
611 <td>[% serialcollection.itemcallnumber %]</td>
617 [% END # / IF serialcollection %]
621 [% IF too_many_items %]
622 <p>This record has many physical items ([% items_count %]). <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&viewallitems=1">Click here to view them all.</a></p>
623 [% ELSIF ( itemloop.size ) %]
624 [% INCLUDE items_table items=itemloop tab="holdings" %]
626 [% IF holds_count.defined || priority %]
628 [% IF holds_count.defined %]
629 Total holds: [% holds_count %]
632 [% IF holds_count.defined %]
633 (priority [% priority %])
635 Overall queue priority: [% priority %]
641 [% IF ( ALTERNATEHOLDINGS ) %]
642 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
643 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
646 <div id="noitems">No physical items for this record</div>
648 [% END # IF itemloop.size %]
649 [% PROCESS 'shelfbrowser.inc' %]
650 [% INCLUDE shelfbrowser tab='holdings' %]
651 <br style="clear:both;" />
652 </div> <!-- / #holdings -->
654 [% IF (SeparateHoldings) %]
655 <div id="otherholdings">
656 [% IF (otheritemloop.size) %]
657 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
661 [% INCLUDE shelfbrowser tab='otherholdings' %]
663 [% END # / SeparateHoldings %]
665 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
666 <div id="descriptions">
667 <div class="content_set">
669 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
670 <h4>Enhanced descriptions from Syndetics:</h4>
671 <p>[% SYNDETICS_SUMMARY %]</p>
674 [% IF ( MARCNOTES ) %]
676 [% FOREACH MARCNOTE IN MARCNOTES %]
677 <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
687 </div> <!-- / #descriptions -->
688 [% END # / IF MARCNOTES || notes %]
690 [% IF ( SyndeticsEnabled ) %]
691 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
693 <div class="content_set">
694 <h3>Table of contents provided by Syndetics</h3>
696 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
697 [% IF ( SYNDETICS_TO.p ) %]
698 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
704 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
706 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
708 <div class="content_set">
709 <h3>Excerpt provided by Syndetics</h3>
710 [% SYNDETICS_EXCERPT %]
713 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
715 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
717 <div class="content_set">
718 <h3>Reviews provided by Syndetics</h3>
719 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
720 [% IF ( SYNDETICS_REVIEW.title ) %]
721 <h4>[% SYNDETICS_REVIEW.title %]</h4>
722 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
724 [% IF ( review.content ) %]
733 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
735 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
737 <div class="content_set">
738 <h3>Author notes provided by Syndetics</h3>
739 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
740 [% IF ( SYNDETICS_ANOTE.content ) %]
741 [% SYNDETICS_ANOTE.content %]
746 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
747 [% END # / IF SyndeticsEnabled %]
749 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab') %]
750 <div id="NovelistSelect">
751 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
753 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
755 [% IF ( subscriptionsnumber ) %]
756 <div id="subscriptions">
757 <h2>This is a serial</h2>
758 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
759 [% FOREACH subscription IN subscriptions %]
760 [% IF ( subscription.branchname ) %]
761 <h3>At library: [% subscription.branchname %]</h3>
763 [% IF ( subscription.branchcode ) %]
764 <h3>At library: [% subscription.branchcode %]</h3>
767 [% IF ( subscription.closed ) %]
768 <p>This subscription is closed.</p>
770 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber %]</p>[% END %]</span>
771 [% IF ( subscription.subscriptionnotes ) %]
772 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
774 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
775 [% IF ( subscription.missinglist ) %]
776 <p>Missing issues: [% subscription.missinglist %] </p>
778 [% IF ( subscription.opacnote ) %]
779 <p>[% subscription.opacnote FILTER html_line_break %]</p>
781 [% IF ( subscription.latestserials ) %]
782 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
783 <table class="table table-bordered table-striped">
790 [% FOREACH latestserial IN subscription.latestserials %]
792 <td>[% latestserial.serialseq %]</td>
793 <td>[% latestserial.planneddate %]</td>
795 [% IF ( latestserial.status1 ) %]
798 [% IF ( latestserial.status2 ) %]
801 [% IF ( latestserial.status3 ) %]
804 [% IF ( latestserial.status4 ) %]
807 [% IF ( latestserial.status5 ) %]
815 <td>[% latestserial.notes %]</td>
817 [% END # / FOREACH latestserials %]
819 [% END # / IF subscription.latestserials %]
820 [% END # / FOREACH subscriptions %]
821 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
822 </div> <!-- / #subscriptions -->
823 [% END # IF subscriptionsnumber %]
825 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
826 <!-- Library Thing for Libraries Content -->
827 <div id="LFTLSimilarItems">
828 <div class="content_set">
829 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
830 <!-- but breaks Xhtml validation -->
831 <!-- <span class="results_summary">-->
832 <div id="ltfl_related"></div>
833 <div id="ltfl_similars"></div>
837 <div id="LTFLTagBrowse">
838 <div class="content_set">
839 <!-- <span class="results_summary"> -->
840 <div id="ltfl_tagbrowse" class="ltfl"></div>
844 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
846 [% IF Koha.Preference( 'reviewson' ) == 1 %]
848 <div id="newcomment"></div>
850 [% FOREACH review IN reviews %]
851 [% IF ( review.your_comment ) %]
852 <div class="commentline yours" id="c[% review.reviewid %]">
853 [% IF ( review.avatarurl ) %]
854 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
856 <h5>Your comment</h5>
857 <small>[% review.datereviewed | $KohaDates %]</small>
859 [% FILTER html_break %]
860 [% review.review |html %]
862 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
866 <div class="commentline">
867 [% IF ( ShowReviewer != "none" ) %]
868 [% IF ( review.avatarurl ) %]
869 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
871 [% SWITCH ShowReviewer %]
873 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
875 <h5>Comment by [% review.firstname %]</h5>
877 <h5>Comment by [% review.surname %]</h5>
878 [% CASE 'firstandinitial' %]
879 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
880 [% CASE 'username' %]
881 <h5>Comment by [% review.userid %]</h5>
883 <small>[% review.datereviewed | $KohaDates %]</small>
884 [% ELSIF ( ShowReviewer == "none") %]
885 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
886 [% END # / IF ShowReviewer != "none"%]
888 [% FILTER html_break %]
889 [% review.review |html %]
892 </div> <!-- / .commentline -->
893 [% END # / IF review.your_comment %]
894 [% END # / FOREACH reviews %]
896 <p>There are no comments for this item.</p>
897 [% END # / IF reviews %]
899 [% IF ( loggedinusername ) %]
900 [% UNLESS ( loggedincommenter ) %]
901 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
902 Post or edit your comments on this item.
906 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
907 [% END # / IF loggedinusername %]
908 </div> <!-- / #comments -->
909 [% END # / IF reviewson %]
911 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
913 <h4>Other editions of this work</h4>
914 <table class="table table-bordered table-striped">
915 [% FOREACH XISBN IN XISBNS %]
918 [% IF ( OPACAmazonCoverImages ) %]
919 <img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
922 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
923 [% IF ( XISBN.content_identifier_exists ) %]
924 [% IF ( using_https ) %]
925 <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="" />
927 <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="" />
930 <span class="no-image">No cover image available</span>
931 [% END # / IF XISBN.content_identifier_exists %]
932 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
935 [% UNLESS ( item_level_itypes ) %]
936 <td>[% XISBN.description %]</td>
938 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
939 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
940 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
941 [% IF ( XISBN.publishercode ) %]
942 <p>[% XISBN.publishercode |html %]
943 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
944 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
945 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
950 [% END # / FOREACH XISBNS %]
952 </div> <!-- / #editions -->
953 [% END # / IF OPACFRBRizeEditions && XISBNS %]
955 [% IF ( HTML5MediaEnabled ) %]
956 <div id="html5media">
958 <[% HTML5MediaParent %] controls preload=none>
959 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
960 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
962 [[% HTML5MediaParent %] tag not supported by your browser.]
963 </[% HTML5MediaParent %]>
966 [% END # / IF HTML5MediaEnabled %]
968 [% IF ( OPACLocalCoverImages && localimages.size ) %]
970 <p>Click on an image to view it in the image viewer</p>
971 [% FOREACH image IN localimages %]
973 <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>
976 </div><!-- / #images -->
977 [% END # / IF OPACLocalCoverImages && localimages.size %]
979 [% IF ( IDreamBooksReviews ) %]
980 <div id="idb_critic_reviews">
981 <div id="idb_review_snippets"></div>
982 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
985 </div> <!-- / #bibliodescriptions -->
987 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' ) %]
988 <div id="NovelistSelect">
989 <h3>Novelist Select</h3>
990 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
994 [% IF ( Babeltheque ) %]
996 <div id="BW_etiquettes"></div>
997 <div id="BW_suggestions"></div>
999 <div class="clearfix"></div>
1001 <div id="BW_podcasts"></div>
1003 <div class="clearfix"></div>
1005 <div id="BW_videos"></div>
1007 [% END # / IF Babeltheque %]
1008 </div> <!-- /.span8 -->
1011 <div id="ulactioncontainer">
1013 [% IF ( OpacBrowseResults && busc ) %]
1014 <div class="nav_results">
1015 <div class="l_Results">
1016 [% IF ( listResults ) %]
1017 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1019 <span>Browse results</span>
1022 <ul class="pg_menu clearfix">
1023 <li class="left_results">
1024 [% IF ( previous ) %]<a href="[% previous |url %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>
1026 <span>Previous</span>
1029 <li class="back_results"><a href="opac-search.pl?[% busc |url %]" title="Back to the results search list">Back to results</a></li>
1030 <li class="right_results">
1031 [% IF ( next ) %]<a href="[% next %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>
1037 [% IF ( listResults ) %]
1038 <div class="results-pagination">
1039 <div class="nav_pages">
1040 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1041 <ul id="listResults"></ul>
1043 <div class="pagination_list">
1044 <ul id="ul_pagination_list"></ul>
1049 [% END # / IF OpacBrowseResults && busc %]
1051 [% INCLUDE 'opac-detail-sidebar.inc' %]
1053 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right') %]
1054 <div id="NovelistSelect">
1055 <h4>Novelist Select</h4>
1056 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1060 [% IF ( Babeltheque ) %]
1061 <div class="babeltheque_adds">
1062 <div id="BW_critiques_aj"></div>
1063 <div id="BW_citations_aj"></div>
1067 [% IF ( SocialNetworks ) %]
1068 <div id="social_networks" class="clearfix">
1070 <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>
1071 <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>
1072 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1073 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1074 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1075 <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>
1078 </div> <!-- / .ulactioncontainer -->
1079 </div> <!-- / .span4 -->
1080 </div> <!-- / .row-fluid -->
1081 <div class="row-fluid">
1082 [% IF ( LibraryThingForLibrariesID ) %]
1083 [% IF ( using_https ) %]
1084 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1085 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1086 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1088 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1089 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1090 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1091 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1095 [% IF ( NovelistSelectProfile ) %]
1096 <script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1099 [% IF ( Babeltheque ) %]
1100 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1102 </div> <!-- / .row-fluid -->
1103 </div> <!-- / .container-fluid -->
1104 </div> <!-- / .main -->
1106 [% INCLUDE 'opac-bottom.inc' %]
1108 [%# End of template %]
1110 [% BLOCK items_table %]
1111 <table class="holdingst table table-bordered table-striped">
1114 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1115 <th id="item_location">Location</th>
1116 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1117 <th id="item_callnumber" class="call_no">Call number</th>
1118 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1119 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1120 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1121 <th id="item_status" class="status">Status</th>
1122 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1123 <th id="item_datedue" class="date_due">Date due</th>
1124 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1125 [% IF holds_count.defined %]
1127 [% ELSIF show_priority %]
1128 <th>Item hold queue priority</th>
1130 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1134 [% FOREACH ITEM_RESULT IN items %]
1135 [% IF ITEM_RESULT.this_branch %]
1136 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1138 <tr vocab="http://schema.org/" typeof="Offer">
1140 [% IF ( item_level_itypes ) %]
1142 [% UNLESS ( noItemTypeImages ) %]
1143 [% IF ( ITEM_RESULT.imageurl ) %]
1144 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1147 [% ITEM_RESULT.description %]
1150 <td class="location" property="seller">
1151 <link property="itemOffered" href="#record" />
1152 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1153 [% UNLESS ( singleBranchMode ) %]
1154 <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1155 [% IF ( ITEM_RESULT.branchurl ) %]
1156 <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1158 <span title="">[% ITEM_RESULT.branchname %]</span>
1160 <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1163 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1165 [% IF ( itemdata_ccode ) %]
1166 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1168 <td class="call_no" property="sku">
1169 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1170 [% ITEM_RESULT.itemcallnumber %]
1171 [% IF ( OPACShelfBrowser ) %]
1172 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1173 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1175 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1180 [% IF ( itemdata_enumchron ) %]
1181 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1183 [% IF ( itemdata_uri ) %]
1185 [% IF ITEM_RESULT.uri %]
1186 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1187 <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>
1189 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1194 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1195 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1196 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1197 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td>
1198 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1199 [% IF holds_count.defined || show_priority %]
1200 <td class="holds_count">
1201 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1202 [% IF ITEM_RESULT.priority %]
1203 [% IF holds_count.defined %]
1204 (priority [% ITEM_RESULT.priority %])
1206 [% ITEM_RESULT.priority %]
1211 [% IF ShowCourseReservesHeader %]
1213 [% IF ITEM_RESULT.course_reserves %]
1214 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1216 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1217 [% r.course.course_name %]
1218 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1219 [% IF r.course.section %] [% r.course.section %] [% END %]
1220 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1226 [% END # /IF ShowCourseReservesHeader %]
1231 [% END %][%# end of items_table block %]
1233 [% BLOCK jsinclude %]
1234 [% INCLUDE 'datatables.inc' %]
1235 [% IF ( SocialNetworks ) %]
1236 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1238 {lang: '[% lang %]'}
1241 <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>
1243 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1245 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1247 <script type="text/javascript">
1250 [% IF ( OpacBrowseResults && busc ) %]
1251 var arrPagination = new Array();
1252 var pag_index_ini = [% indexPag %];
1253 [% IF ( listResults ) %]
1254 [% FOREACH listResult IN listResults %]
1255 arrPagination[[% listResult.index %]] = {url:"[% listResult.url %]", title:"[% listResult.title|remove('\n')|html %]", author:"[% listResult.author|html %]", biblionumber:[% listResult.biblionumber %]};
1260 [% IF ( OpacHighlightedWords ) %]
1261 var q_array = new Array(); // holds search terms if available
1263 function highlightOff() {
1264 $("#catalogue_detail_biblio").removeHighlight();
1265 $(".highlight_toggle").toggle();
1267 function highlightOn() {
1269 for (x in q_array) {
1270 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1271 $(".title").highlight(q_array[x]);
1272 $(".author").highlight(q_array[x]);
1273 $(".results_summary").highlight(q_array[x]);
1275 $(".highlight_toggle").toggle();
1279 $(document).ready(function() {
1280 $('#bibliodescriptions').tabs();
1281 $(".branch-info-tooltip-trigger").tooltip({
1282 position: { my: "left+15 center", at: "right center" },
1285 content: function(){
1286 var element = $(this).next("div");
1287 return element.html();
1290 [% IF ( TagsInputEnabled && loggedinusername ) %]
1291 $(".tag_add").click(function(){
1292 var thisid = $(this).attr("id");
1293 thisid = thisid.replace("tag_add","");
1295 $("#tagform"+thisid).show();
1296 $("#newtag"+thisid).focus();
1297 $("#newtag"+thisid+"_status").empty().hide();
1300 $(".cancel_tag_add").click(function(){
1301 var thisid = $(this).attr("id");
1302 thisid = thisid.replace("cancel","");
1303 $("#tagform"+thisid).hide();
1304 $("#tag_add"+thisid).show();
1305 $("#newtag"+thisid).val("");
1306 $("#newtag"+thisid+"_status").empty().hide();
1309 $(".tagbutton").click(function(){
1310 var thisid = $(this).attr("title");
1311 var tag = $("#newtag"+thisid).val();
1312 if (!tag || (tag == "")) {
1313 alert(MSG_NO_TAG_SPECIFIED);
1316 KOHA.Tags.add_tag_button(thisid, tag);
1321 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1323 [% IF ( item_level_itypes ) %]null,[% END %]
1325 [% IF ( itemdata_ccode ) %]null,[% END %]
1327 [% IF ( itemdata_enumchron ) %]null,[% END %]
1328 [% IF ( itemdata_uri ) %]null,[% END %]
1329 [% IF ( itemdata_copynumber ) %]null,[% END %]
1331 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1332 { "sType": "title-string" },
1333 [% IF ( OPACShowBarcode ) %]null,[% END %]
1334 [% IF holds_count.defined %]
1336 [% ELSIF show_priority %]
1339 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1343 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1344 q_array = query_desc.split(" ");
1346 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1347 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1348 [% IF ( GoogleJackets ) %]
1349 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1351 [% IF OpenLibraryCovers %]
1352 KOHA.OpenLibrary.GetCoverFromIsbn();
1354 [% IF OPACLocalCoverImages %]
1355 KOHA.LocalCover.GetCoverFromBibnumber(true);
1357 [% IF ( NovelistSelectProfile ) %]
1358 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1361 [% IF ( OpacBrowseResults && busc ) %]
1362 if (arrPagination.length > 0) {
1363 renderPagIndexList(pag_index_ini, $("#listResults"));
1365 $("#a_listResults").click(function(e) {
1366 if (arrPagination.length > 0) {
1368 var navigation = $(".results-pagination");
1369 if (navigation.css("display") == 'none') {
1371 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1372 $(this).attr('title',newtitle);
1373 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1376 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1377 $(this).attr('title',newtitle);
1381 $("#close_pagination").click(function(e) {
1383 var navigation = $(".results-pagination");
1387 [% IF ( OPACShelfBrowser ) %]
1389 (function prepareShelfBrowser(){
1391 $(".main").on("click",".close_shelf",function(e){
1393 $("#shelfbrowser").toggle();
1395 $(".main").on("click", "#browser_previous a", function(e){
1398 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1401 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1403 success: function(data){
1404 $("#shelfbrowser").replaceWith(data);
1405 [% IF ( GoogleJackets ) %]
1406 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1408 [% IF OpenLibraryCovers %]
1409 KOHA.OpenLibrary.GetCoverFromIsbn();
1411 [% IF OPACLocalCoverImages %]
1412 KOHA.LocalCover.GetCoverFromBibnumber(true);
1418 $(".main").on("click", "#browser_next a", function(e){
1421 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1424 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1426 success: function(data){
1427 $("#shelfbrowser").replaceWith(data);
1428 [% IF ( GoogleJackets ) %]
1429 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1431 [% IF OpenLibraryCovers %]
1432 KOHA.OpenLibrary.GetCoverFromIsbn();
1434 [% IF OPACLocalCoverImages %]
1435 KOHA.LocalCover.GetCoverFromBibnumber(true);
1442 [% IF ( OpacStarRatings != 'disable' ) %]
1443 // -----------------------------------------------------
1444 // star-ratings code
1445 // -----------------------------------------------------
1446 // hide 'rate' button if javascript enabled
1448 $('input[name="rate_button"]').remove();
1451 $(".auto-submit-star").rating({
1452 callback: function (value, link) {
1454 // if the new value equals the old value, dont execute callback...
1456 if ($("#rating_value").attr("value") != value) {
1460 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1461 rating_old_value: $("#rating_value").attr("value"),
1462 borrowernumber: "[% borrowernumber %]",
1463 biblionumber: "[% biblionumber %]",
1464 rating_value: value,
1466 }, function (data) {
1468 if (data.auth_status != 'ok') {
1469 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1471 $("#rating_value").val(data.rating_value);
1473 if (data.rating_value) {
1474 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1476 $("#rating_value_text").text('');
1479 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1488 // -----------------------------------------------------
1489 [% END # / IF ( OpacStarRatings != 'disable' )%]
1491 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1492 var isbn = $(".isbn:last").text().split(" ")[1];
1494 isbn = isbn.replace(/\W*$/, '');
1495 isbn = isbn.replace(/-/, '');
1497 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1498 // Use Microsoft XDR for IE version 8 or above
1499 var xdr = new XDomainRequest();
1500 xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1501 xdr.onload = function() {
1502 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1503 eval(json); // json is now a regular JSON object
1504 parseIDBJSON(json); // parse using same function as for jQuery's success event
1508 $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1513 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1516 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1517 function parseIDBJSON( json ) {
1518 if(json.total_results > 0 && json.book.rating > 0){
1519 var isbn = $(".isbn:last").text().split(" ")[1];
1520 isbn = isbn.replace(/-/, '');
1522 [% IF ( IDreamBooksReadometer ) %]
1523 $(".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>');
1526 [% IF ( IDreamBooksReviews ) %]
1527 //build new tab for critic reviews
1528 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1530 //append happy-sad cloud review
1532 $("#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>");
1534 //insert data into Book reviews tab
1535 $.each(json.book.critic_reviews, function(){
1536 $("#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>");
1538 $("#seemoreidb").attr('href', json.book.detail_link);
1539 $("#tab_idb_critic_reviews").show();
1543 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1545 [% IF ( OpacBrowseResults && busc ) %]
1547 var totalPagItemList = 10;
1549 function rewindList()
1551 var ul = $("#listResults");
1552 var li_ini = ul.children(':first').next();
1553 var index_ini = pag_index_ini;
1555 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1557 var li_end = ul.children(':last').prev();
1558 var index_end = arrPagination.length - 1;
1560 index_end = parseInt(li_end.attr("class").substring(7), 10);
1562 if (index_ini > pag_index_ini) {
1563 renderPagIndexList(index_ini - 1, ul, false);
1564 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1568 function forwardList()
1570 var ul = $("#listResults");
1571 var li_ini = ul.children(':first').next();
1572 var index_ini = pag_index_ini;
1574 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1576 var li_end = ul.children(':last').prev();
1577 var index_end = arrPagination.length - 1;
1579 index_end = parseInt(li_end.attr("class").substring(7), 10);
1581 if (index_end < arrPagination.length - 1) {
1582 renderPagIndexList(index_ini + 1, ul, false);
1583 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1587 function renderPagIndexList(index, ul)
1589 var $kids = ul.children("li");
1590 if ($kids.length > 0) {
1591 $kids.each(function() {
1597 var ini = index - 1;
1598 var end = ini + totalPagItemList - 1;
1600 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1604 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1605 if (arrPagination[i] == undefined) continue;
1606 var li = $("<li />");
1607 if (arrPagination[i].url != "") {
1608 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1609 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1610 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1611 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1612 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1613 html += ">" + i + "</a>";
1616 li.attr("class", "li_pag_" + i);
1621 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1622 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>":"»";
1625 }//renderPagIndexList
1628 function renderPagination(index, total, ul, highlIndex)
1630 for (var i = pag_index_ini; i <= total; i++) {
1631 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1632 $("#li_pag_" + i).remove();
1635 for (var i = index; i <= total && j < totalPagItemList; i++) {
1636 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1637 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1638 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1639 if (arrPagination[i].author) html += "<br /> by " + arrPagination[i].author;
1641 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1645 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1646 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1647 $("#li_pag_" + i).remove();
1648 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1649 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1650 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1656 [% END # / IF ( OpacBrowseResults && busc ) %]
1660 [% IF OPACPopupAuthorsSearch %]
1661 <script type="text/javascript">
1663 function showAuthors(element){
1664 var authornumber = $(element).attr("data-count");
1665 // Hide subjects menu if displayed
1666 hideMenu(".subjectSearch");
1668 // Check checkbox related to the clicked link
1669 $("#authorsList input[type='checkbox']").attr('checked', false);
1670 $("#author_"+authornumber).attr('checked', true);
1672 makeAuthorRequest();
1675 var left = element.offsetLeft || 0;
1676 var top = element.offsetTop || 0;
1677 $('.authorSearch').css('display', 'block');
1678 $('.authorSearch').css('left', left);
1679 $('.authorSearch').css('top', top + 15);
1682 function hideMenu(elem) {
1683 $(elem).css('display', 'none');
1686 function checkAll(checkbox, elem) {
1687 var check = $(checkbox).attr('checked') ? true : false;
1688 $(elem).find("input[type='checkbox']").attr('checked', check);
1689 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1692 function makeAuthorRequest(){
1695 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1696 values.push($(this).val());
1699 if (values.length > 0) {
1700 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1701 $("#validAuthorSearch").attr("href", request);
1703 $("#validAuthorSearch").removeAttr("href");
1709 function showSubjects(element, subjectnumber, subfieldnumber){
1711 // Check checkbox related to the clicked link
1712 $("#subjectsList input[type='checkbox']").attr('checked', false);
1713 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1715 makeSubjectRequest();
1719 function makeSubjectRequest() {
1721 $("#subjectsList > ul").each(function() {
1722 var all_checked = true;
1723 var local_values = [];
1724 $(this).find('input[type="checkbox"]').each(function() {
1725 if($(this).attr('checked')) {
1726 local_values.push($(this).val());
1728 all_checked = false;
1731 var authid = $(this).attr('data-authid');
1732 if(all_checked && authid) {
1733 values.push('an:' + authid);
1735 values = values.concat(local_values);
1738 if(values.length > 0) {
1739 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1740 $("#validSubjectSearch").attr('href', request);
1742 $("#validSubjectSearch").removeAttr("href");
1745 $(document).ready(function() {
1746 $("a.showauthors").click(function(){
1754 [% END # / IF OPACPopupAuthorsSearch %]