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">
51 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
53 [% IF ( using_https ) %]
54 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
56 <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
60 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
61 [% IF ( content_identifier_exists ) %]
62 [% IF ( using_https ) %]
63 <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" />
65 <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" />
69 <span class="no-image">No cover image available</span>
73 [% IF ( GoogleJackets ) %]
74 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
76 [% IF OpenLibraryCovers %]
77 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
79 [% IF ( BakerTaylorEnabled && normalized_isbn ) %]
80 [% IF ( OPACurlOpenInNewWindow ) %]
81 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
83 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
86 </div><!-- / #bookcover -->
88 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
89 [% IF ( ocoins ) # COinS / Openurl %]
90 <span class="Z3988" title="[% ocoins %]"></span>
94 <span class="view"><span id="Normalview">Normal view</span></span>
95 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
96 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
98 [% IF ( OPACXSLTDetailsDisplay ) %]
101 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
102 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
104 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
106 [% IF ( description ) %]
112 [% IF ( unititle ) %], [% unititle %][% END %]
115 [% IF ( MARCAUTHORS ) %]
116 <div class="results_summary">
117 <span class="label">Additional authors:</span>
118 [% IF OPACPopupAuthorsSearch %]
119 <!-- Author search term selection modal -->
120 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
121 <div class="modal-header">
122 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
123 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
125 <div class="modal-body">
126 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
127 <ul id="authorsList">
128 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
130 [% IF (MARCAUTHOR.authoritylink) %]
131 <input type="checkbox" name="checkbox"
132 id="author_[% loop.count %]"
133 onclick="makeAuthorRequest()"
134 value="an:[% MARCAUTHOR.authoritylink %]" />
136 <input type="checkbox" name="checkbox"
137 id="author_[% loop.count %]"
138 onclick="makeAuthorRequest()"
139 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
141 <label for="author_[% loop.count %]">
142 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
147 [% END # /FOREACH MARCAUTHORS %]
150 <div class="modal-footer">
151 <a href="#" class="btn btn-primary">Search</a>
152 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
155 [% END # /OPACPopupAuthorsSearch %]
157 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
158 [% authorsloop = loop %]
159 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
160 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
161 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
162 class="showauthors" data-count="[% authorsloop.count %]"
163 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>
165 [% IF (MARCAUTHOR.authoritylink) %]
166 <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>
168 [% UNLESS ( loop.last ) %]|[% END %]
169 [% END # /FOREACH MARCAUTHORS %]
171 [% END # IF MARCAUTHORS %]
173 [% IF ( MARCSERIES ) %]
174 <span class="results_summary series"><span class="label">Series:</span>
175 [% FOREACH MARCSERIE IN MARCSERIES %]
176 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
177 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
178 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
180 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
181 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
184 [% UNLESS ( loop.last ) %]|[% END %]
185 [% END # / FOREACH MARCSERIES %]
187 [% END # /MARCSERIES %]
189 [% IF ( editionstatement ) %]
190 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
192 [% IF ( publishercode ) %]
193 <span class="results_summary publisher"><span class="label">Published by :</span>
194 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
195 [% publishercode |html %]
196 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
201 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
204 [% IF ( MARCISBNS ) %]
205 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
207 [% IF ( normalized_isbn ) %]
208 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
213 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
216 [% IF ( collectiontitle ) %]
217 <span class="results_summary collection"><span class="label">Collection: </span>
218 [% collectiontitle %]
219 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
220 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
225 [% IF ( unititles ) %]
226 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
227 [% FOREACH unititle IN unititles %]
228 [% unititle.unititle %] ;
233 [% IF ( MARCSUBJCTS ) %]
234 <div class="results_summary subject">
235 <span class="label">Subject(s):</span>
237 [% IF OPACPopupAuthorsSearch %]
238 <!-- Search term selection modal -->
239 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
240 <div class="modal-header">
241 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
242 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
244 <div id="subjectsList" class="modal-body">
245 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
246 <label for="all_subjects">
249 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
250 [% subjectsloop = loop %]
251 [% IF MARCSUBJCT.authoritylink %]
252 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
254 <ul id="subjectsList[% loop.count %]">
256 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
258 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
259 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
267 <div class="modal-footer">
268 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
269 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
272 [% END # /OPACPopupAuthorsSearch%]
274 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
275 [% subjectsloop = loop %]
276 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
277 [% SUBFIELD.separator %]
278 <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>
280 [% IF (MARCSUBJCT.authoritylink) %]
281 <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>
283 [% UNLESS ( loop.last ) %] | [% END %]
284 [% END # / FOREACH MARCSUBJCTS %]
286 [% ELSE # /IF MARCSUBJCTS %]
287 [% 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 %]
290 [% IF ( copyrightdate ) %]
291 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
294 [% UNLESS ( item_level_itypes ) %]
296 <img src="[% imageurl %]" alt="" />
298 <span class="results_summary itemtype"><span class="label">Item type: </span>
299 [% IF ( description ) %]
307 [% IF ( MARCURLS ) %]
308 <div class="results_summary online_resources"><span class="label">Online resources:</span>
310 [% FOREACH MARCurl IN MARCURLS %]
311 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
313 [% IF ( OPACurlOpenInNewWindow ) %]
314 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
315 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
317 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
320 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
321 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
323 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
327 [% MARCurl.linktext %]</a>
328 [% IF ( MARCurl.notes ) %]
330 [% FOREACH note IN MARCurl.notes %]
331 <li>[% note.note %]</li>
336 [% END # /FOREACH MARCURLS %]
339 [% END # / IF MARCURLS %]
340 [% END # / IF OPACXSLTDetailsDisplay %]
342 [% IF ( AuthorisedValueImages && authorised_value_images ) %]
343 <div class="authorised_value_images">
344 [% FOREACH authorised_value_image IN authorised_value_images %]
345 <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
348 [% END # / AuthorisedValueImages && authorised_value_images %]
350 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
351 [% IF ( LibraryThingForLibrariesID ) %]
352 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
353 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
354 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
355 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
357 <span class="results_summary">
358 <span class="label">Reviews from LibraryThing.com:</span>
359 <span style="display: block;" class="ltfl_reviews"></span>
361 [% END # / LibraryThingForLibrariesID %]
363 <!--This grabs all of the lists a bib record appears in -->
364 [% IF ( GetShelves ) %]
365 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
366 [% FOREACH GetShelve IN GetShelves %]
367 <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
368 [% IF ( loop.last ) %][% ELSE %]|[% END %]
371 [% END # / GetShelves %]
373 [% IF ( TagsShowEnabled ) %]
374 <div class="results_summary tags">
376 <span class="label">Tags from this library:</span>
378 [% FOREACH TagLoo IN TagLoop %]
379 <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>
380 [% IF ( loop.last ) %][% ELSE %], [% END %]
385 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
387 [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
389 [% END # /IF TagsShowEnabled %]
391 [% IF ( TagsInputEnabled ) %]
392 <div class="results_summary tagsinput">
393 [% IF ( loggedinusername ) %]
394 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
395 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
396 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
397 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
398 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
400 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
404 <span id="login4tags">Log in to add tags.</span>
407 [% END # / IF TagsInputEnabled %]
409 [% IF ( SyndeticsEnabled ) %]
410 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
411 <span class="results_summary">
412 <span class="label">Series information:</span>
413 [% IF ( using_https ) %]
414 <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>
416 <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>
419 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
420 [% IF ( SyndeticsAVPROFILEExists ) %]
421 <span class="results_summary">
422 <span class="label">Audiovisual profile:</span>
423 [% IF ( using_https ) %]
424 <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>
426 <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>
429 [% END # / IF SyndeticsAVPROFILEExists %]
431 [% IF ( SyndeticsFICTIONExists ) %]
432 <span class="results_summary">
433 <span class="label">Fiction notes:</span>
434 [% IF ( using_https ) %]
435 <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>
437 <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>
440 [% END # / IF SyndeticsFICTIONExists %]
442 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
443 <span class="results_summary">
444 <span class="label">Awards:</span>
445 [% IF ( using_https ) %]
446 <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>
448 <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>
451 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
452 [% END # / IF SyndeticsEnabled%]
454 [% IF ( OpacStarRatings != 'disable' ) %]
455 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
456 <div class="results_summary ratings">
458 [% FOREACH i IN [ 1 2 3 4 5 ] %]
459 [% IF rating_avg == i && borrowernumber %]
460 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
461 [% ELSIF rating_avg == i %]
462 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
463 [% ELSIF borrowernumber %]
464 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
466 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
470 <!-- define some hidden vars for ratings -->
472 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
473 <input type="hidden" name='borrowernumber' value="[% borrowernumber %]" />
474 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
475 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
476 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
478 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
480 [% IF ( rating_value ) %]
481 <span id="rating_value_text">your rating: [% rating_value %], </span>
483 <span id="rating_value_text"></span>
486 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
489 [% END # / IF OpacStarRatings != 'disable' %]
491 [% IF ( BakerTaylorContentURL ) %]
492 <span class="results_summary">
493 <span class="label">Enhanced content: </span>
494 [% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
496 [% END # / IF BakerTaylorContentURL %]
498 [% IF ( NovelistSelectProfile ) %]
499 [% IF ( NovelistSelectView == 'above') %]
500 <span class="results_summary">
501 <span class="label">Novelist Select: </span>
502 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
505 [% END # / IF NovelistSelectProfile %]
507 [% IF ( Babeltheque ) %]
508 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
509 <div id="BW_notes"></div>
510 <div id="BW_critiques"></div>
511 <div id="BW_critiques_pro"></div>
512 <div id="BW_citations"></div>
513 [% END # / IF Babeltheque%]
515 </div> <!-- / #catalogue_detail_biblio -->
517 <div id="bibliodescriptions" class="toptabs">
520 [% IF ( defaulttab == 'holdings' ) %]
521 <li id="tab_holdings" class="ui-tabs-active">
523 <li id="tab_holdings">
525 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
527 [% IF (SeparateHoldings) %]
528 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
530 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
531 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
533 [% IF ( SYNDETICS_TOC ) %]
534 <li id="tab_toc"> <a href="#toc">TOC</a></li>
536 [% IF ( SyndeticsEnabled ) %]
537 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
538 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
540 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
541 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
542 <li id="tab_LTFLreviews">
543 [% IF ( using_https ) %]
544 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
545 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
547 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
548 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="http://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
552 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
553 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
555 [% END # / IF SyndeticsEnabled %]
557 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
558 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
559 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
562 [% IF ( subscriptionsnumber ) %]
563 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
564 <a href="#subscriptions">Subscriptions</a>
568 [% IF Koha.Preference( 'reviewson' ) == 1 %]
569 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
572 [% IF ( NovelistSelectProfile ) %]
573 [% IF ( NovelistSelectView == 'tab') %]
574 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
578 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
579 <li id="tab_editions"><a href="#editions">Editions</a></li>
582 [% IF ( serialcollection ) %]
583 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
584 <a href="#serialcollection">Serial collection</a>
588 [% IF ( OPACLocalCoverImages && localimages.size ) %]
589 <li id="tab_images"><a href="#images">Images</a></li>
592 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
593 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
596 [% IF ( IDreamBooksReviews ) %]
597 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
601 [% IF ( serialcollection ) %]
602 <div id="serialcollection">
603 <table id="serialcollectiont" class="table table-bordered table-striped">
606 <th id="serial_library">Library</th>
607 <th id="serial_collection">Serial collection</th>
608 <th id="serial_itemcallnumber">Item call number</th>
612 [% FOREACH serialcollection IN serialcollections %]
614 <td>[% serialcollection.branch %]</td>
615 <td>[% serialcollection.text %]</td>
616 <td>[% serialcollection.itemcallnumber %]</td>
622 [% END # / IF serialcollection %]
626 [% IF too_many_items %]
627 <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>
628 [% ELSIF ( itemloop.size ) %]
629 [% INCLUDE items_table items=itemloop tab="holdings" %]
631 [% IF holds_count.defined || priority %]
633 [% IF holds_count.defined %]
634 Total holds: [% holds_count %]
637 [% IF holds_count.defined %]
638 (priority [% priority %])
640 Overall queue priority: [% priority %]
646 [% IF ( ALTERNATEHOLDINGS ) %]
647 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
648 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
651 <div id="noitems">No physical items for this record</div>
653 [% END # IF itemloop.size %]
654 [% PROCESS 'shelfbrowser.inc' %]
655 [% INCLUDE shelfbrowser tab='holdings' %]
656 <br style="clear:both;" />
657 </div> <!-- / #holdings -->
659 [% IF (SeparateHoldings) %]
660 <div id="otherholdings">
661 [% IF (otheritemloop.size) %]
662 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
666 [% INCLUDE shelfbrowser tab='otherholdings' %]
668 [% END # / SeparateHoldings %]
670 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
671 <div id="descriptions">
672 <div class="content_set">
674 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
675 <h4>Enhanced descriptions from Syndetics:</h4>
676 <p>[% SYNDETICS_SUMMARY %]</p>
679 [% IF ( MARCNOTES ) %]
681 [% FOREACH MARCNOTE IN MARCNOTES %]
682 <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
692 </div> <!-- / #descriptions -->
693 [% END # / IF MARCNOTES || notes %]
695 [% IF ( SyndeticsEnabled ) %]
696 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
698 <div class="content_set">
699 <h3>Table of contents provided by Syndetics</h3>
701 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
702 [% IF ( SYNDETICS_TO.p ) %]
703 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
709 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
711 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
713 <div class="content_set">
714 <h3>Excerpt provided by Syndetics</h3>
715 [% SYNDETICS_EXCERPT %]
718 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
720 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
722 <div class="content_set">
723 <h3>Reviews provided by Syndetics</h3>
724 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
725 [% IF ( SYNDETICS_REVIEW.title ) %]
726 <h4>[% SYNDETICS_REVIEW.title %]</h4>
727 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
729 [% IF ( review.content ) %]
738 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
740 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
742 <div class="content_set">
743 <h3>Author notes provided by Syndetics</h3>
744 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
745 [% IF ( SYNDETICS_ANOTE.content ) %]
746 [% SYNDETICS_ANOTE.content %]
751 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
752 [% END # / IF SyndeticsEnabled %]
754 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab') %]
755 <div id="NovelistSelect">
756 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
758 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
760 [% IF ( subscriptionsnumber ) %]
761 <div id="subscriptions">
762 <h2>This is a serial</h2>
763 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
764 [% FOREACH subscription IN subscriptions %]
765 [% IF ( subscription.branchname ) %]
766 <h3>At library: [% subscription.branchname %]</h3>
768 [% IF ( subscription.branchcode ) %]
769 <h3>At library: [% subscription.branchcode %]</h3>
772 [% IF ( subscription.closed ) %]
773 <p>This subscription is closed.</p>
775 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
776 [% IF ( subscription.subscriptionnotes ) %]
777 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
779 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
780 [% IF ( subscription.missinglist ) %]
781 <p>Missing issues: [% subscription.missinglist %] </p>
783 [% IF ( subscription.opacnote ) %]
784 <p>[% subscription.opacnote FILTER html_line_break %]</p>
786 [% IF ( subscription.callnumber ) %]
787 <p>Call number: [% subscription.callnumber %]</p>
789 [% IF ( subscription.latestserials ) %]
790 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
791 <table class="table table-bordered table-striped">
798 [% FOREACH latestserial IN subscription.latestserials %]
800 <td>[% latestserial.serialseq %]</td>
801 <td>[% latestserial.planneddate %]</td>
803 [% IF ( latestserial.status1 ) %]
806 [% IF ( latestserial.status2 ) %]
809 [% IF ( latestserial.status3 ) %]
812 [% IF ( latestserial.status4 ) %]
815 [% IF ( latestserial.status5 ) %]
823 <td>[% latestserial.notes %]</td>
825 [% END # / FOREACH latestserials %]
827 [% END # / IF subscription.latestserials %]
828 [% END # / FOREACH subscriptions %]
829 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
830 </div> <!-- / #subscriptions -->
831 [% END # IF subscriptionsnumber %]
833 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
834 <!-- Library Thing for Libraries Content -->
835 <div id="LFTLSimilarItems">
836 <div class="content_set">
837 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
838 <!-- but breaks Xhtml validation -->
839 <!-- <span class="results_summary">-->
840 <div id="ltfl_related"></div>
841 <div id="ltfl_similars"></div>
845 <div id="LTFLTagBrowse">
846 <div class="content_set">
847 <!-- <span class="results_summary"> -->
848 <div id="ltfl_tagbrowse" class="ltfl"></div>
852 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
854 [% IF Koha.Preference( 'reviewson' ) == 1 %]
856 <div id="newcomment"></div>
858 [% FOREACH review IN reviews %]
859 [% IF ( review.your_comment ) %]
860 <div class="commentline yours" id="c[% review.reviewid %]">
861 [% IF ( review.avatarurl ) %]
862 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
864 <h5>Your comment</h5>
865 <small>[% review.datereviewed | $KohaDates %]</small>
867 [% FILTER html_break %]
868 [% review.review |html %]
870 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
874 <div class="commentline">
875 [% IF ( ShowReviewer != "none" ) %]
876 [% IF ( review.avatarurl ) %]
877 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
879 [% SWITCH ShowReviewer %]
881 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
883 <h5>Comment by [% review.firstname %]</h5>
885 <h5>Comment by [% review.surname %]</h5>
886 [% CASE 'firstandinitial' %]
887 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
888 [% CASE 'username' %]
889 <h5>Comment by [% review.userid %]</h5>
891 <small>[% review.datereviewed | $KohaDates %]</small>
892 [% ELSIF ( ShowReviewer == "none") %]
893 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
894 [% END # / IF ShowReviewer != "none"%]
896 [% FILTER html_break %]
897 [% review.review |html %]
900 </div> <!-- / .commentline -->
901 [% END # / IF review.your_comment %]
902 [% END # / FOREACH reviews %]
904 <p>There are no comments for this item.</p>
905 [% END # / IF reviews %]
907 [% IF ( loggedinusername ) %]
908 [% UNLESS ( loggedincommenter ) %]
909 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
910 Post or edit your comments on this item.
914 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
915 [% END # / IF loggedinusername %]
916 </div> <!-- / #comments -->
917 [% END # / IF reviewson %]
919 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
921 <h4>Other editions of this work</h4>
922 <table class="table table-bordered table-striped">
923 [% FOREACH XISBN IN XISBNS %]
926 [% IF ( OPACAmazonCoverImages ) %]
927 <img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
930 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
931 [% IF ( XISBN.content_identifier_exists ) %]
932 [% IF ( using_https ) %]
933 <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="" />
935 <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="" />
938 <span class="no-image">No cover image available</span>
939 [% END # / IF XISBN.content_identifier_exists %]
940 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
943 [% UNLESS ( item_level_itypes ) %]
944 <td>[% XISBN.description %]</td>
946 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
947 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
948 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
949 [% IF ( XISBN.publishercode ) %]
950 <p>[% XISBN.publishercode |html %]
951 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
952 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
953 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
958 [% END # / FOREACH XISBNS %]
960 </div> <!-- / #editions -->
961 [% END # / IF OPACFRBRizeEditions && XISBNS %]
963 [% IF ( HTML5MediaEnabled ) %]
964 <div id="html5media">
966 <[% HTML5MediaParent %] controls preload=none>
967 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
968 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
970 [[% HTML5MediaParent %] tag not supported by your browser.]
971 </[% HTML5MediaParent %]>
974 [% END # / IF HTML5MediaEnabled %]
976 [% IF ( OPACLocalCoverImages && localimages.size ) %]
978 <p>Click on an image to view it in the image viewer</p>
979 [% FOREACH image IN localimages %]
981 <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>
984 </div><!-- / #images -->
985 [% END # / IF OPACLocalCoverImages && localimages.size %]
987 [% IF ( IDreamBooksReviews ) %]
988 <div id="idb_critic_reviews">
989 <div id="idb_review_snippets"></div>
990 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
993 </div> <!-- / #bibliodescriptions -->
995 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' ) %]
996 <div id="NovelistSelect">
997 <h3>Novelist Select</h3>
998 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
1002 [% IF ( Babeltheque ) %]
1004 <div id="BW_etiquettes"></div>
1005 <div id="BW_suggestions"></div>
1007 <div class="clearfix"></div>
1009 <div id="BW_podcasts"></div>
1011 <div class="clearfix"></div>
1013 <div id="BW_videos"></div>
1015 [% END # / IF Babeltheque %]
1016 </div> <!-- /.span8 -->
1019 <div id="ulactioncontainer">
1021 [% IF ( OpacBrowseResults && busc ) %]
1022 <div class="nav_results">
1023 <div class="l_Results">
1024 [% IF ( listResults ) %]
1025 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1027 <span>Browse results</span>
1030 <ul class="pg_menu clearfix">
1031 <li class="left_results">
1032 [% IF ( previousBiblionumber ) %]
1033 <a href="opac-detail.pl?biblionumber=[% previousBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>
1035 <span>Previous</span>
1038 <li class="back_results"><a href="opac-search.pl?[% busc |url %]" title="Back to the results search list">Back to results</a></li>
1039 <li class="right_results">
1040 [% IF ( nextBiblionumber ) %]
1041 <a href="opac-detail.pl?biblionumber=[% nextBiblionumber %][% IF ( query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>
1047 [% IF ( listResults ) %]
1048 <div class="results-pagination">
1049 <div class="nav_pages">
1050 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1051 <ul id="listResults"></ul>
1053 <div class="pagination_list">
1054 <ul id="ul_pagination_list"></ul>
1059 [% END # / IF OpacBrowseResults && busc %]
1061 [% INCLUDE 'opac-detail-sidebar.inc' %]
1063 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right') %]
1064 <div id="NovelistSelect">
1065 <h4>Novelist Select</h4>
1066 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1070 [% IF ( Babeltheque ) %]
1071 <div class="babeltheque_adds">
1072 <div id="BW_critiques_aj"></div>
1073 <div id="BW_citations_aj"></div>
1077 [% IF ( SocialNetworks ) %]
1078 <div id="social_networks" class="clearfix">
1080 <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>
1081 <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>
1082 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1083 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1084 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1085 <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>
1088 </div> <!-- / .ulactioncontainer -->
1089 </div> <!-- / .span4 -->
1090 </div> <!-- / .row-fluid -->
1091 <div class="row-fluid">
1092 [% IF ( LibraryThingForLibrariesID ) %]
1093 [% IF ( using_https ) %]
1094 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1095 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1096 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1098 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1099 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1100 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1101 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1105 [% IF ( NovelistSelectProfile ) %]
1106 <script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1109 [% IF ( Babeltheque ) %]
1110 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1112 </div> <!-- / .row-fluid -->
1113 </div> <!-- / .container-fluid -->
1114 </div> <!-- / .main -->
1116 [% INCLUDE 'opac-bottom.inc' %]
1118 [%# End of template %]
1120 [% BLOCK items_table %]
1121 <table class="holdingst table table-bordered table-striped">
1124 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1125 <th id="item_location">Location</th>
1126 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1127 <th id="item_callnumber" class="call_no">Call number</th>
1128 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1129 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1130 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1131 <th id="item_status" class="status">Status</th>
1132 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1133 <th id="item_datedue" class="date_due">Date due</th>
1134 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1135 [% IF holds_count.defined %]
1137 [% ELSIF show_priority %]
1138 <th>Item hold queue priority</th>
1140 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1144 [% FOREACH ITEM_RESULT IN items %]
1145 [% IF ITEM_RESULT.this_branch %]
1146 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1148 <tr vocab="http://schema.org/" typeof="Offer">
1150 [% IF ( item_level_itypes ) %]
1152 [% UNLESS ( noItemTypeImages ) %]
1153 [% IF ( ITEM_RESULT.imageurl ) %]
1154 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1157 [% ITEM_RESULT.description %]
1160 <td class="location" property="seller">
1161 <link property="itemOffered" href="#record" />
1162 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1163 [% UNLESS ( singleBranchMode ) %]
1164 <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1165 [% IF ( ITEM_RESULT.branchurl ) %]
1166 <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1168 <span title="">[% ITEM_RESULT.branchname %]</span>
1170 <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1173 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1175 [% IF ( itemdata_ccode ) %]
1176 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1178 <td class="call_no" property="sku">
1179 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1180 [% ITEM_RESULT.itemcallnumber %]
1181 [% IF ( OPACShelfBrowser ) %]
1182 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1183 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1185 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1190 [% IF ( itemdata_enumchron ) %]
1191 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1193 [% IF ( itemdata_uri ) %]
1195 [% IF ITEM_RESULT.uri %]
1196 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1197 <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>
1199 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1204 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1205 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1206 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1207 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td>
1208 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1209 [% IF holds_count.defined || show_priority %]
1210 <td class="holds_count">
1211 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1212 [% IF ITEM_RESULT.priority %]
1213 [% IF holds_count.defined %]
1214 (priority [% ITEM_RESULT.priority %])
1216 [% ITEM_RESULT.priority %]
1221 [% IF ShowCourseReservesHeader %]
1223 [% IF ITEM_RESULT.course_reserves %]
1224 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1226 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1227 [% r.course.course_name %]
1228 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1229 [% IF r.course.section %] [% r.course.section %] [% END %]
1230 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1236 [% END # /IF ShowCourseReservesHeader %]
1241 [% END %][%# end of items_table block %]
1243 [% BLOCK jsinclude %]
1244 [% INCLUDE 'datatables.inc' %]
1245 [% IF ( SocialNetworks ) %]
1246 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1248 {lang: '[% lang %]'}
1251 <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>
1253 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1255 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1257 <script type="text/javascript">
1260 [% IF ( OpacBrowseResults && busc ) %]
1261 var arrPagination = new Array();
1262 var pag_index_ini = [% indexPag %];
1263 [% IF ( listResults ) %]
1264 [% FOREACH listResult IN listResults %]
1265 arrPagination[[% listResult.index %]] = {
1266 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1267 title:"[% listResult.title|remove('\n')|html %]",
1268 author:"[% listResult.author|html %]",
1269 biblionumber:[% listResult.biblionumber %]
1275 [% IF ( OpacHighlightedWords ) %]
1276 var q_array = new Array(); // holds search terms if available
1278 function highlightOff() {
1279 $("#catalogue_detail_biblio").removeHighlight();
1280 $(".highlight_toggle").toggle();
1282 function highlightOn() {
1284 for (x in q_array) {
1285 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1286 $(".title").highlight(q_array[x]);
1287 $(".author").highlight(q_array[x]);
1288 $(".results_summary").highlight(q_array[x]);
1290 $(".highlight_toggle").toggle();
1294 $(document).ready(function() {
1295 $('#bibliodescriptions').tabs();
1296 $(".branch-info-tooltip-trigger").tooltip({
1297 position: { my: "left+15 center", at: "right center" },
1300 content: function(){
1301 var element = $(this).next("div");
1302 return element.html();
1305 [% IF ( TagsInputEnabled && loggedinusername ) %]
1306 $(".tag_add").click(function(){
1307 var thisid = $(this).attr("id");
1308 thisid = thisid.replace("tag_add","");
1310 $("#tagform"+thisid).show();
1311 $("#newtag"+thisid).focus();
1312 $("#newtag"+thisid+"_status").empty().hide();
1315 $(".cancel_tag_add").click(function(){
1316 var thisid = $(this).attr("id");
1317 thisid = thisid.replace("cancel","");
1318 $("#tagform"+thisid).hide();
1319 $("#tag_add"+thisid).show();
1320 $("#newtag"+thisid).val("");
1321 $("#newtag"+thisid+"_status").empty().hide();
1324 $(".tagbutton").click(function(){
1325 var thisid = $(this).attr("title");
1326 var tag = $("#newtag"+thisid).val();
1327 if (!tag || (tag == "")) {
1328 alert(MSG_NO_TAG_SPECIFIED);
1331 KOHA.Tags.add_tag_button(thisid, tag);
1336 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1338 [% IF ( item_level_itypes ) %]null,[% END %]
1340 [% IF ( itemdata_ccode ) %]null,[% END %]
1342 [% IF ( itemdata_enumchron ) %]null,[% END %]
1343 [% IF ( itemdata_uri ) %]null,[% END %]
1344 [% IF ( itemdata_copynumber ) %]null,[% END %]
1346 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1347 { "sType": "title-string" },
1348 [% IF ( OPACShowBarcode ) %]null,[% END %]
1349 [% IF holds_count.defined %]
1351 [% ELSIF show_priority %]
1354 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1358 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1359 q_array = query_desc.split(" ");
1361 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1362 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1363 [% IF ( GoogleJackets ) %]
1364 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1366 [% IF OpenLibraryCovers %]
1367 KOHA.OpenLibrary.GetCoverFromIsbn();
1369 [% IF OPACLocalCoverImages %]
1370 KOHA.LocalCover.GetCoverFromBibnumber(true);
1372 [% IF ( NovelistSelectProfile ) %]
1373 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1376 [% IF ( OpacBrowseResults && busc ) %]
1377 if (arrPagination.length > 0) {
1378 renderPagIndexList(pag_index_ini, $("#listResults"));
1380 $("#a_listResults").click(function(e) {
1381 if (arrPagination.length > 0) {
1383 var navigation = $(".results-pagination");
1384 if (navigation.css("display") == 'none') {
1386 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1387 $(this).attr('title',newtitle);
1388 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1391 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1392 $(this).attr('title',newtitle);
1396 $("#close_pagination").click(function(e) {
1398 var navigation = $(".results-pagination");
1402 [% IF ( OPACShelfBrowser ) %]
1404 (function prepareShelfBrowser(){
1406 $(".main").on("click",".close_shelf",function(e){
1408 $("#shelfbrowser").toggle();
1410 $(".main").on("click", "#browser_previous a", function(e){
1413 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1416 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1418 success: function(data){
1419 $("#shelfbrowser").replaceWith(data);
1420 [% IF ( GoogleJackets ) %]
1421 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1423 [% IF OpenLibraryCovers %]
1424 KOHA.OpenLibrary.GetCoverFromIsbn();
1426 [% IF OPACLocalCoverImages %]
1427 KOHA.LocalCover.GetCoverFromBibnumber(true);
1433 $(".main").on("click", "#browser_next a", function(e){
1436 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1439 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1441 success: function(data){
1442 $("#shelfbrowser").replaceWith(data);
1443 [% IF ( GoogleJackets ) %]
1444 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1446 [% IF OpenLibraryCovers %]
1447 KOHA.OpenLibrary.GetCoverFromIsbn();
1449 [% IF OPACLocalCoverImages %]
1450 KOHA.LocalCover.GetCoverFromBibnumber(true);
1457 [% IF ( OpacStarRatings != 'disable' ) %]
1458 // -----------------------------------------------------
1459 // star-ratings code
1460 // -----------------------------------------------------
1461 // hide 'rate' button if javascript enabled
1463 $('input[name="rate_button"]').remove();
1466 $(".auto-submit-star").rating({
1467 callback: function (value, link) {
1469 // if the new value equals the old value, dont execute callback...
1471 if ($("#rating_value").attr("value") != value) {
1475 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1476 rating_old_value: $("#rating_value").attr("value"),
1477 borrowernumber: "[% borrowernumber %]",
1478 biblionumber: "[% biblionumber %]",
1479 rating_value: value,
1481 }, function (data) {
1483 if (data.auth_status != 'ok') {
1484 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1486 $("#rating_value").val(data.rating_value);
1488 if (data.rating_value) {
1489 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1491 $("#rating_value_text").text('');
1494 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1503 // -----------------------------------------------------
1504 [% END # / IF ( OpacStarRatings != 'disable' )%]
1506 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1507 var isbn = $(".isbn:last").text().split(" ")[1];
1509 isbn = isbn.replace(/\W*$/, '');
1510 isbn = isbn.replace(/-/, '');
1512 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1513 // Use Microsoft XDR for IE version 8 or above
1514 var xdr = new XDomainRequest();
1515 xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1516 xdr.onload = function() {
1517 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1518 eval(json); // json is now a regular JSON object
1519 parseIDBJSON(json); // parse using same function as for jQuery's success event
1523 $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1528 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1531 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1532 function parseIDBJSON( json ) {
1533 if(json.total_results > 0 && json.book.rating > 0){
1534 var isbn = $(".isbn:last").text().split(" ")[1];
1535 isbn = isbn.replace(/-/, '');
1537 [% IF ( IDreamBooksReadometer ) %]
1538 $(".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>');
1541 [% IF ( IDreamBooksReviews ) %]
1542 //build new tab for critic reviews
1543 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1545 //append happy-sad cloud review
1547 $("#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>");
1549 //insert data into Book reviews tab
1550 $.each(json.book.critic_reviews, function(){
1551 $("#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>");
1553 $("#seemoreidb").attr('href', json.book.detail_link);
1554 $("#tab_idb_critic_reviews").show();
1558 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1560 [% IF ( OpacBrowseResults && busc ) %]
1562 var totalPagItemList = 10;
1564 function rewindList()
1566 var ul = $("#listResults");
1567 var li_ini = ul.children(':first').next();
1568 var index_ini = pag_index_ini;
1570 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1572 var li_end = ul.children(':last').prev();
1573 var index_end = arrPagination.length - 1;
1575 index_end = parseInt(li_end.attr("class").substring(7), 10);
1577 if (index_ini > pag_index_ini) {
1578 renderPagIndexList(index_ini - 1, ul, false);
1579 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1583 function forwardList()
1585 var ul = $("#listResults");
1586 var li_ini = ul.children(':first').next();
1587 var index_ini = pag_index_ini;
1589 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1591 var li_end = ul.children(':last').prev();
1592 var index_end = arrPagination.length - 1;
1594 index_end = parseInt(li_end.attr("class").substring(7), 10);
1596 if (index_end < arrPagination.length - 1) {
1597 renderPagIndexList(index_ini + 1, ul, false);
1598 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1602 function renderPagIndexList(index, ul)
1604 var $kids = ul.children("li");
1605 if ($kids.length > 0) {
1606 $kids.each(function() {
1612 var ini = index - 1;
1613 var end = ini + totalPagItemList - 1;
1615 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1619 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1620 if (arrPagination[i] == undefined) continue;
1621 var li = $("<li />");
1622 if (arrPagination[i].url != "") {
1623 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1624 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1625 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1626 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1627 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1628 html += ">" + i + "</a>";
1631 li.attr("class", "li_pag_" + i);
1636 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1637 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>":"»";
1640 }//renderPagIndexList
1643 function renderPagination(index, total, ul, highlIndex)
1645 for (var i = pag_index_ini; i <= total; i++) {
1646 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1647 $("#li_pag_" + i).remove();
1650 for (var i = index; i <= total && j < totalPagItemList; i++) {
1651 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1652 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1653 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1654 if (arrPagination[i].author) html += "<br /> by " + arrPagination[i].author;
1656 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1660 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1661 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1662 $("#li_pag_" + i).remove();
1663 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1664 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1665 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1671 [% END # / IF ( OpacBrowseResults && busc ) %]
1675 [% IF OPACPopupAuthorsSearch %]
1676 <script type="text/javascript">
1678 function showAuthors(element){
1679 var authornumber = $(element).attr("data-count");
1680 // Hide subjects menu if displayed
1681 hideMenu(".subjectSearch");
1683 // Check checkbox related to the clicked link
1684 $("#authorsList input[type='checkbox']").attr('checked', false);
1685 $("#author_"+authornumber).attr('checked', true);
1687 makeAuthorRequest();
1690 var left = element.offsetLeft || 0;
1691 var top = element.offsetTop || 0;
1692 $('.authorSearch').css('display', 'block');
1693 $('.authorSearch').css('left', left);
1694 $('.authorSearch').css('top', top + 15);
1697 function hideMenu(elem) {
1698 $(elem).css('display', 'none');
1701 function checkAll(checkbox, elem) {
1702 var check = $(checkbox).attr('checked') ? true : false;
1703 $(elem).find("input[type='checkbox']").attr('checked', check);
1704 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1707 function makeAuthorRequest(){
1710 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1711 values.push($(this).val());
1714 if (values.length > 0) {
1715 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1716 $("#validAuthorSearch").attr("href", request);
1718 $("#validAuthorSearch").removeAttr("href");
1724 function showSubjects(element, subjectnumber, subfieldnumber){
1726 // Check checkbox related to the clicked link
1727 $("#subjectsList input[type='checkbox']").attr('checked', false);
1728 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1730 makeSubjectRequest();
1734 function makeSubjectRequest() {
1736 $("#subjectsList > ul").each(function() {
1737 var all_checked = true;
1738 var local_values = [];
1739 $(this).find('input[type="checkbox"]').each(function() {
1740 if($(this).attr('checked')) {
1741 local_values.push($(this).val());
1743 all_checked = false;
1746 var authid = $(this).attr('data-authid');
1747 if(all_checked && authid) {
1748 values.push('an:' + authid);
1750 values = values.concat(local_values);
1753 if(values.length > 0) {
1754 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1755 $("#validSubjectSearch").attr('href', request);
1757 $("#validSubjectSearch").removeAttr("href");
1760 $(document).ready(function() {
1761 $("a.showauthors").click(function(){
1769 [% END # / IF OPACPopupAuthorsSearch %]