4 [% USE AuthorisedValues %]
5 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
6 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
8 [% ShowCourseReservesHeader = 0 %]
9 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
10 [% FOREACH ITEM_RESULT IN itemloop %]
11 [% IF ITEM_RESULT.course_reserves %]
12 [% FOREACH r IN ITEM_RESULT.course_reserves %]
13 [% IF r.course.enabled == 'yes' %]
14 [% ShowCourseReservesHeader = 1 %]
21 [% IF ( using_https ) %]
22 [% SET protocol = "https://" %]
24 [% SET protocol = "http://" %]
26 [% 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 %]
27 [% INCLUDE 'doc-head-close.inc' %]
29 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
31 [% IF ( OpacStarRatings != 'disable' ) %]
32 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
35 <body id="opac-detail" class="scrollto">
36 [% INCLUDE 'masthead.inc' %]
39 <ul class="breadcrumb">
40 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
41 <li><a href="#">Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]</a></li>
44 <div class="container-fluid">
45 <div class="row-fluid">
47 <div id="catalogue_detail_biblio" class="maincontent">
50 [% IF ( OPACLocalCoverImages ) %]
51 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
53 [% IF ( OPACAmazonCoverImages ) %]
54 [% IF ( OPACurlOpenInNewWindow ) %]
55 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank">
57 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
59 [% IF ( using_https ) %]
60 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
62 <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
66 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
67 [% IF ( content_identifier_exists ) %]
68 [% IF ( using_https ) %]
69 <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" />
71 <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" />
75 <span class="no-image">No cover image available</span>
79 [% IF ( GoogleJackets ) %]
80 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
82 [% IF OpenLibraryCovers %]
83 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
85 [% IF ( BakerTaylorEnabled && normalized_isbn ) %]
86 [% IF ( OPACurlOpenInNewWindow ) %]
87 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
89 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
92 </div><!-- / #bookcover -->
94 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
95 [% IF ( ocoins ) # COinS / Openurl %]
96 <span class="Z3988" title="[% ocoins %]"></span>
100 <span class="view"><span id="Normalview">Normal view</span></span>
101 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
102 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
104 [% IF ( OPACXSLTDetailsDisplay ) %]
107 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
108 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
110 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
112 [% IF ( description ) %]
118 [% IF ( unititle ) %], [% unititle %][% END %]
121 [% IF ( MARCAUTHORS ) %]
122 <div class="results_summary">
123 <span class="label">Additional authors:</span>
124 [% IF OPACPopupAuthorsSearch %]
125 <!-- Author search term selection modal -->
126 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
127 <div class="modal-header">
128 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
129 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
131 <div class="modal-body">
132 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
133 <ul id="authorsList">
134 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
136 [% IF (MARCAUTHOR.authoritylink) %]
137 <input type="checkbox" name="checkbox"
138 id="author_[% loop.count %]"
139 onclick="makeAuthorRequest()"
140 value="an:[% MARCAUTHOR.authoritylink %]" />
142 <input type="checkbox" name="checkbox"
143 id="author_[% loop.count %]"
144 onclick="makeAuthorRequest()"
145 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
147 <label for="author_[% loop.count %]">
148 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
153 [% END # /FOREACH MARCAUTHORS %]
156 <div class="modal-footer">
157 <a href="#" class="btn btn-primary">Search</a>
158 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
161 [% END # /OPACPopupAuthorsSearch %]
163 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
164 [% authorsloop = loop %]
165 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
166 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
167 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
168 class="showauthors" data-count="[% authorsloop.count %]"
169 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>
171 [% IF (MARCAUTHOR.authoritylink) %]
172 <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>
174 [% UNLESS ( loop.last ) %]|[% END %]
175 [% END # /FOREACH MARCAUTHORS %]
177 [% END # IF MARCAUTHORS %]
179 [% IF ( MARCSERIES ) %]
180 <span class="results_summary series"><span class="label">Series:</span>
181 [% FOREACH MARCSERIE IN MARCSERIES %]
182 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
183 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
184 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
186 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
187 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
190 [% UNLESS ( loop.last ) %]|[% END %]
191 [% END # / FOREACH MARCSERIES %]
193 [% END # /MARCSERIES %]
195 [% IF ( editionstatement ) %]
196 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
198 [% IF ( publishercode ) %]
199 <span class="results_summary publisher"><span class="label">Published by :</span>
200 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
201 [% publishercode |html %]
202 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
207 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
210 [% IF ( MARCISBNS ) %]
211 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
213 [% IF ( normalized_isbn ) %]
214 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
219 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
222 [% IF ( collectiontitle ) %]
223 <span class="results_summary collection"><span class="label">Collection: </span>
224 [% collectiontitle %]
225 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
226 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
231 [% IF ( unititles ) %]
232 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
233 [% FOREACH unititle IN unititles %]
234 [% unititle.unititle %] ;
239 [% IF ( MARCSUBJCTS ) %]
240 <div class="results_summary subject">
241 <span class="label">Subject(s):</span>
243 [% IF OPACPopupAuthorsSearch %]
244 <!-- Search term selection modal -->
245 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
246 <div class="modal-header">
247 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
248 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
250 <div id="subjectsList" class="modal-body">
251 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
252 <label for="all_subjects">
255 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
256 [% subjectsloop = loop %]
257 [% IF MARCSUBJCT.authoritylink %]
258 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
260 <ul id="subjectsList[% loop.count %]">
262 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
264 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
265 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
273 <div class="modal-footer">
274 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
275 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
278 [% END # /OPACPopupAuthorsSearch%]
280 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
281 [% subjectsloop = loop %]
282 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
283 [% SUBFIELD.separator %]
284 <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>
286 [% IF (MARCSUBJCT.authoritylink) %]
287 <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>
289 [% UNLESS ( loop.last ) %] | [% END %]
290 [% END # / FOREACH MARCSUBJCTS %]
292 [% ELSE # /IF MARCSUBJCTS %]
293 [% 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 %]
296 [% IF ( copyrightdate ) %]
297 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
300 [% UNLESS ( item_level_itypes ) %]
302 <img src="[% imageurl %]" alt="" />
304 <span class="results_summary itemtype"><span class="label">Item type: </span>
305 [% IF ( description ) %]
313 [% IF ( MARCURLS ) %]
314 <div class="results_summary online_resources"><span class="label">Online resources:</span>
316 [% FOREACH MARCurl IN MARCURLS %]
317 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
319 [% IF ( OPACurlOpenInNewWindow ) %]
320 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
321 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
323 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
326 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
327 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
329 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
333 [% MARCurl.linktext %]</a>
334 [% IF ( MARCurl.notes ) %]
336 [% FOREACH note IN MARCurl.notes %]
337 <li>[% note.note %]</li>
342 [% END # /FOREACH MARCURLS %]
345 [% END # / IF MARCURLS %]
346 [% END # / IF OPACXSLTDetailsDisplay %]
348 [% IF ( AuthorisedValueImages && authorised_value_images ) %]
349 <div class="authorised_value_images">
350 [% FOREACH authorised_value_image IN authorised_value_images %]
351 <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
354 [% END # / AuthorisedValueImages && authorised_value_images %]
356 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
357 [% IF ( LibraryThingForLibrariesID ) %]
358 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
359 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
360 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
361 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
363 <span class="results_summary">
364 <span class="label">Reviews from LibraryThing.com:</span>
365 <span style="display: block;" class="ltfl_reviews"></span>
367 [% END # / LibraryThingForLibrariesID %]
369 <!--This grabs all of the lists a bib record appears in -->
370 [% IF ( GetShelves ) %]
371 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
372 [% FOREACH GetShelve IN GetShelves %]
373 <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
374 [% IF ( loop.last ) %][% ELSE %]|[% END %]
377 [% END # / GetShelves %]
379 [% IF ( TagsShowEnabled ) %]
380 <div class="results_summary tags">
382 <span class="label">Tags from this library:</span>
384 [% FOREACH TagLoo IN TagLoop %]
385 <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>
386 [% IF ( loop.last ) %][% ELSE %], [% END %]
391 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
393 [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
395 [% END # /IF TagsShowEnabled %]
397 [% IF ( TagsInputEnabled ) %]
398 <div class="results_summary tagsinput">
399 [% IF ( loggedinusername ) %]
400 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
401 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
402 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
403 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
404 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
406 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
410 <span id="login4tags">Log in to add tags.</span>
413 [% END # / IF TagsInputEnabled %]
415 [% IF ( SyndeticsEnabled ) %]
416 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
417 <span class="results_summary">
418 <span class="label">Series information:</span>
419 [% IF ( using_https ) %]
420 <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>
422 <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>
425 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
426 [% IF ( SyndeticsAVPROFILEExists ) %]
427 <span class="results_summary">
428 <span class="label">Audiovisual profile:</span>
429 [% IF ( using_https ) %]
430 <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>
432 <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>
435 [% END # / IF SyndeticsAVPROFILEExists %]
437 [% IF ( SyndeticsFICTIONExists ) %]
438 <span class="results_summary">
439 <span class="label">Fiction notes:</span>
440 [% IF ( using_https ) %]
441 <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>
443 <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>
446 [% END # / IF SyndeticsFICTIONExists %]
448 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
449 <span class="results_summary">
450 <span class="label">Awards:</span>
451 [% IF ( using_https ) %]
452 <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>
454 <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>
457 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
458 [% END # / IF SyndeticsEnabled%]
460 [% IF ( OpacStarRatings != 'disable' ) %]
461 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
462 <div class="results_summary ratings">
464 [% FOREACH i IN [ 1 2 3 4 5 ] %]
465 [% IF rating_avg == i && borrowernumber %]
466 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
467 [% ELSIF rating_avg == i %]
468 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
469 [% ELSIF borrowernumber %]
470 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
472 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
476 <!-- define some hidden vars for ratings -->
478 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
479 <input type="hidden" name='borrowernumber' value="[% borrowernumber %]" />
480 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
481 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
482 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
484 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
486 [% IF ( rating_value ) %]
487 <span id="rating_value_text">your rating: [% rating_value %], </span>
489 <span id="rating_value_text"></span>
492 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
495 [% END # / IF OpacStarRatings != 'disable' %]
497 [% IF ( BakerTaylorContentURL ) %]
498 <span class="results_summary">
499 <span class="label">Enhanced content: </span>
500 [% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
502 [% END # / IF BakerTaylorContentURL %]
504 [% IF ( NovelistSelectProfile ) %]
505 [% IF ( NovelistSelectView == 'above') %]
506 <span class="results_summary">
507 <span class="label">Novelist Select: </span>
508 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
511 [% END # / IF NovelistSelectProfile %]
513 [% IF ( Babeltheque ) %]
514 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
515 <div id="BW_notes"></div>
516 <div id="BW_critiques"></div>
517 <div id="BW_critiques_pro"></div>
518 <div id="BW_citations"></div>
519 [% END # / IF Babeltheque%]
521 </div> <!-- / #catalogue_detail_biblio -->
523 <div id="bibliodescriptions" class="toptabs">
526 [% IF ( defaulttab == 'holdings' ) %]
527 <li id="tab_holdings" class="ui-tabs-active">
529 <li id="tab_holdings">
531 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
533 [% IF (SeparateHoldings) %]
534 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
536 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
537 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
539 [% IF ( SYNDETICS_TOC ) %]
540 <li id="tab_toc"> <a href="#toc">TOC</a></li>
542 [% IF ( SyndeticsEnabled ) %]
543 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
544 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
546 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
547 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
548 <li id="tab_LTFLreviews">
549 [% IF ( using_https ) %]
550 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
551 <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>
553 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
554 <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>
558 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
559 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
561 [% END # / IF SyndeticsEnabled %]
563 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
564 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
565 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
568 [% IF ( subscriptionsnumber ) %]
569 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
570 <a href="#subscriptions">Subscriptions</a>
574 [% IF Koha.Preference( 'reviewson' ) == 1 %]
575 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
578 [% IF ( NovelistSelectProfile ) %]
579 [% IF ( NovelistSelectView == 'tab') %]
580 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
584 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
585 <li id="tab_editions"><a href="#editions">Editions</a></li>
588 [% IF ( serialcollection ) %]
589 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
590 <a href="#serialcollection">Serial collection</a>
594 [% IF ( OPACLocalCoverImages && localimages.size ) %]
595 <li id="tab_images"><a href="#images">Images</a></li>
598 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
599 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
602 [% IF ( IDreamBooksReviews ) %]
603 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
607 [% IF ( serialcollection ) %]
608 <div id="serialcollection">
609 <table id="serialcollectiont" class="table table-bordered table-striped">
612 <th id="serial_library">Library</th>
613 <th id="serial_collection">Serial collection</th>
614 <th id="serial_itemcallnumber">Item call number</th>
618 [% FOREACH serialcollection IN serialcollections %]
620 <td>[% serialcollection.branch %]</td>
621 <td>[% serialcollection.text %]</td>
622 <td>[% serialcollection.itemcallnumber %]</td>
628 [% END # / IF serialcollection %]
632 [% IF too_many_items %]
633 <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>
634 [% ELSIF ( itemloop.size ) %]
635 [% INCLUDE items_table items=itemloop tab="holdings" %]
637 [% IF holds_count.defined || priority %]
639 [% IF holds_count.defined %]
640 Total holds: [% holds_count %]
643 [% IF holds_count.defined %]
644 (priority [% priority %])
646 Overall queue priority: [% priority %]
652 [% IF ( ALTERNATEHOLDINGS ) %]
653 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
654 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
657 <div id="noitems">No physical items for this record</div>
659 [% END # IF itemloop.size %]
660 [% PROCESS 'shelfbrowser.inc' %]
661 [% INCLUDE shelfbrowser tab='holdings' %]
662 <br style="clear:both;" />
663 </div> <!-- / #holdings -->
665 [% IF (SeparateHoldings) %]
666 <div id="otherholdings">
667 [% IF (otheritemloop.size) %]
668 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
672 [% INCLUDE shelfbrowser tab='otherholdings' %]
674 [% END # / SeparateHoldings %]
676 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
677 <div id="descriptions">
678 <div class="content_set">
680 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
681 <h4>Enhanced descriptions from Syndetics:</h4>
682 <p>[% SYNDETICS_SUMMARY %]</p>
685 [% IF ( MARCNOTES ) %]
687 [% FOREACH MARCNOTE IN MARCNOTES %]
688 <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
698 </div> <!-- / #descriptions -->
699 [% END # / IF MARCNOTES || notes %]
701 [% IF ( SyndeticsEnabled ) %]
702 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
704 <div class="content_set">
705 <h3>Table of contents provided by Syndetics</h3>
707 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
708 [% IF ( SYNDETICS_TO.p ) %]
709 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
715 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
717 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
719 <div class="content_set">
720 <h3>Excerpt provided by Syndetics</h3>
721 [% SYNDETICS_EXCERPT %]
724 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
726 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
728 <div class="content_set">
729 <h3>Reviews provided by Syndetics</h3>
730 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
731 [% IF ( SYNDETICS_REVIEW.title ) %]
732 <h4>[% SYNDETICS_REVIEW.title %]</h4>
733 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
735 [% IF ( review.content ) %]
744 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
746 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
748 <div class="content_set">
749 <h3>Author notes provided by Syndetics</h3>
750 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
751 [% IF ( SYNDETICS_ANOTE.content ) %]
752 [% SYNDETICS_ANOTE.content %]
757 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
758 [% END # / IF SyndeticsEnabled %]
760 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab') %]
761 <div id="NovelistSelect">
762 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
764 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
766 [% IF ( subscriptionsnumber ) %]
767 <div id="subscriptions">
768 <h2>This is a serial</h2>
769 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
770 [% FOREACH subscription IN subscriptions %]
771 [% IF ( subscription.branchname ) %]
772 <h3>At library: [% subscription.branchname %]</h3>
774 [% IF ( subscription.branchcode ) %]
775 <h3>At library: [% subscription.branchcode %]</h3>
778 [% IF ( subscription.closed ) %]
779 <p>This subscription is closed.</p>
781 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
782 [% IF ( subscription.subscriptionnotes ) %]
783 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
785 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
786 [% IF ( subscription.missinglist ) %]
787 <p>Missing issues: [% subscription.missinglist %] </p>
789 [% IF ( subscription.opacnote ) %]
790 <p>[% subscription.opacnote FILTER html_line_break %]</p>
792 [% IF ( subscription.callnumber ) %]
793 <p>Call number: [% subscription.callnumber %]</p>
795 [% IF ( subscription.latestserials ) %]
796 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
797 <table class="table table-bordered table-striped">
804 [% FOREACH latestserial IN subscription.latestserials %]
806 <td>[% latestserial.serialseq %]</td>
807 <td>[% latestserial.planneddate %]</td>
809 [% IF ( latestserial.status1 ) %]
812 [% IF ( latestserial.status2 ) %]
815 [% IF ( latestserial.status3 ) %]
818 [% IF ( latestserial.status4 ) %]
821 [% IF ( latestserial.status5 ) %]
829 <td>[% latestserial.notes %]</td>
831 [% END # / FOREACH latestserials %]
833 [% END # / IF subscription.latestserials %]
834 [% END # / FOREACH subscriptions %]
835 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
836 </div> <!-- / #subscriptions -->
837 [% END # IF subscriptionsnumber %]
839 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
840 <!-- Library Thing for Libraries Content -->
841 <div id="LFTLSimilarItems">
842 <div class="content_set">
843 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
844 <!-- but breaks Xhtml validation -->
845 <!-- <span class="results_summary">-->
846 <div id="ltfl_related"></div>
847 <div id="ltfl_similars"></div>
851 <div id="LTFLTagBrowse">
852 <div class="content_set">
853 <!-- <span class="results_summary"> -->
854 <div id="ltfl_tagbrowse" class="ltfl"></div>
858 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
860 [% IF Koha.Preference( 'reviewson' ) == 1 %]
862 <div id="newcomment"></div>
864 [% FOREACH review IN reviews %]
865 [% IF ( review.your_comment ) %]
866 <div class="commentline yours" id="c[% review.reviewid %]">
867 [% IF ( review.avatarurl ) %]
868 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
870 <h5>Your comment</h5>
871 <small>[% review.datereviewed | $KohaDates %]</small>
873 [% FILTER html_break %]
874 [% review.review |html %]
876 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
880 <div class="commentline">
881 [% IF ( ShowReviewer != "none" ) %]
882 [% IF ( review.avatarurl ) %]
883 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
885 [% SWITCH ShowReviewer %]
887 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
889 <h5>Comment by [% review.firstname %]</h5>
891 <h5>Comment by [% review.surname %]</h5>
892 [% CASE 'firstandinitial' %]
893 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
894 [% CASE 'username' %]
895 <h5>Comment by [% review.userid %]</h5>
897 <small>[% review.datereviewed | $KohaDates %]</small>
898 [% ELSIF ( ShowReviewer == "none") %]
899 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
900 [% END # / IF ShowReviewer != "none"%]
902 [% FILTER html_break %]
903 [% review.review |html %]
906 </div> <!-- / .commentline -->
907 [% END # / IF review.your_comment %]
908 [% END # / FOREACH reviews %]
910 <p>There are no comments for this item.</p>
911 [% END # / IF reviews %]
913 [% IF ( loggedinusername ) %]
914 [% UNLESS ( loggedincommenter ) %]
915 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
916 Post or edit your comments on this item.
920 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
921 [% END # / IF loggedinusername %]
922 </div> <!-- / #comments -->
923 [% END # / IF reviewson %]
925 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
927 <h4>Other editions of this work</h4>
928 <table class="table table-bordered table-striped">
929 [% FOREACH XISBN IN XISBNS %]
932 [% IF ( OPACAmazonCoverImages ) %]
933 <img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
936 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
937 [% IF ( XISBN.content_identifier_exists ) %]
938 [% IF ( using_https ) %]
939 <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="" />
941 <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="" />
944 <span class="no-image">No cover image available</span>
945 [% END # / IF XISBN.content_identifier_exists %]
946 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
949 [% UNLESS ( item_level_itypes ) %]
950 <td>[% XISBN.description %]</td>
952 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
953 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
954 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
955 [% IF ( XISBN.publishercode ) %]
956 <p>[% XISBN.publishercode |html %]
957 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
958 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
959 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
964 [% END # / FOREACH XISBNS %]
966 </div> <!-- / #editions -->
967 [% END # / IF OPACFRBRizeEditions && XISBNS %]
969 [% IF ( HTML5MediaEnabled ) %]
970 <div id="html5media">
972 <[% HTML5MediaParent %] controls preload=none>
973 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
974 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
976 [[% HTML5MediaParent %] tag not supported by your browser.]
977 </[% HTML5MediaParent %]>
980 [% END # / IF HTML5MediaEnabled %]
982 [% IF ( OPACLocalCoverImages && localimages.size ) %]
984 <p>Click on an image to view it in the image viewer</p>
985 [% FOREACH image IN localimages %]
987 <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>
990 </div><!-- / #images -->
991 [% END # / IF OPACLocalCoverImages && localimages.size %]
993 [% IF ( IDreamBooksReviews ) %]
994 <div id="idb_critic_reviews">
995 <div id="idb_review_snippets"></div>
996 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
999 </div> <!-- / #bibliodescriptions -->
1001 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' ) %]
1002 <div id="NovelistSelect">
1003 <h3>Novelist Select</h3>
1004 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
1008 [% IF ( Babeltheque ) %]
1010 <div id="BW_etiquettes"></div>
1011 <div id="BW_suggestions"></div>
1013 <div class="clearfix"></div>
1015 <div id="BW_podcasts"></div>
1017 <div class="clearfix"></div>
1019 <div id="BW_videos"></div>
1021 [% END # / IF Babeltheque %]
1022 </div> <!-- /.span8 -->
1025 <div id="ulactioncontainer">
1027 [% IF ( OpacBrowseResults && busc ) %]
1028 <div class="nav_results">
1029 <div class="l_Results">
1030 [% IF ( listResults ) %]
1031 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1033 <span>Browse results</span>
1036 <ul class="pg_menu clearfix">
1037 <li class="left_results">
1038 [% IF ( previousBiblionumber ) %]
1039 <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>
1041 <span>Previous</span>
1044 <li class="back_results"><a href="opac-search.pl?[% busc |url %]" title="Back to the results search list">Back to results</a></li>
1045 <li class="right_results">
1046 [% IF ( nextBiblionumber ) %]
1047 <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>
1053 [% IF ( listResults ) %]
1054 <div class="results-pagination">
1055 <div class="nav_pages">
1056 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1057 <ul id="listResults"></ul>
1059 <div class="pagination_list">
1060 <ul id="ul_pagination_list"></ul>
1065 [% END # / IF OpacBrowseResults && busc %]
1067 [% INCLUDE 'opac-detail-sidebar.inc' %]
1069 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right') %]
1070 <div id="NovelistSelect">
1071 <h4>Novelist Select</h4>
1072 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1076 [% IF ( Babeltheque ) %]
1077 <div class="babeltheque_adds">
1078 <div id="BW_critiques_aj"></div>
1079 <div id="BW_citations_aj"></div>
1083 [% IF ( SocialNetworks ) %]
1084 <div id="social_networks" class="clearfix">
1086 <div><a id="facebook" href="http://www.facebook.com/sharer.php?u=[% protocol %][% current_url |url %]&t=[% title |url %]" title="Share on Facebook">Facebook</a></div>
1087 <div><a id="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=[% protocol %][% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn">LinkedIn</a></div>
1088 <div><a id="delicious" href="http://www.delicious.com/save?url=[% protocol %][% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1089 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% protocol %][% current_url |url %])" title="Share by email">Email</a></div>
1090 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1091 <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>
1094 </div> <!-- / .ulactioncontainer -->
1095 </div> <!-- / .span4 -->
1096 </div> <!-- / .row-fluid -->
1097 <div class="row-fluid">
1098 [% IF ( LibraryThingForLibrariesID ) %]
1099 [% IF ( using_https ) %]
1100 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1101 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1102 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1104 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1105 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1106 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1107 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1111 [% IF ( NovelistSelectProfile ) %]
1112 <script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1115 [% IF ( Babeltheque ) %]
1116 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1118 </div> <!-- / .row-fluid -->
1119 </div> <!-- / .container-fluid -->
1120 </div> <!-- / .main -->
1122 [% INCLUDE 'opac-bottom.inc' %]
1124 [%# End of template %]
1126 [% BLOCK items_table %]
1127 <table class="holdingst table table-bordered table-striped">
1130 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1131 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' || singleBranchMode ) %]
1132 <th>Current location</th>
1134 [% UNLESS ( singleBranchMode ) %]
1135 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1136 <th>Home library</th>
1139 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1140 <th id="item_callnumber" class="call_no">Call number</th>
1141 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1142 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1143 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1144 <th id="item_status" class="status">Status</th>
1145 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1146 <th id="item_datedue" class="date_due">Date due</th>
1147 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1148 [% IF holds_count.defined %]
1150 [% ELSIF show_priority %]
1151 <th>Item hold queue priority</th>
1153 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1157 [% FOREACH ITEM_RESULT IN items %]
1158 [% IF ITEM_RESULT.this_branch %]
1159 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1161 <tr vocab="http://schema.org/" typeof="Offer">
1163 [% IF ( item_level_itypes ) %]
1165 [% UNLESS ( noItemTypeImages ) %]
1166 [% IF ( ITEM_RESULT.imageurl ) %]
1167 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1170 [% ITEM_RESULT.description %]
1173 [% UNLESS singleBranchMode %]
1174 [% IF ( OpacLocationBranchToDisplay == 'holding' || OpacLocationBranchToDisplay == 'both' ) %]
1175 <td class="location" property="seller">
1176 <link property="itemOffered" href="#record" />
1177 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1178 <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1179 [% IF ( ITEM_RESULT.branchurl ) %]
1180 <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1182 <span title="">[% ITEM_RESULT.branchname %]</span>
1186 [% IF ( OpacLocationBranchToDisplayShelving == 'holding' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1187 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1190 <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1194 [% IF ( OpacLocationBranchToDisplay == 'home' || OpacLocationBranchToDisplay == 'both' ) %]
1195 <td class="location" property="seller">
1196 <link property="itemOffered" href="#record" />
1197 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1198 <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1199 [% IF ( ITEM_RESULT.branchurl ) %]
1200 [% home_branch_url = Branches.GetURL( ITEM_RESULT.homebranch ) %]
1201 [% IF ( home_branch_url ) %]
1202 <a href="[% home_branch_url %]">[% Branches.GetName( ITEM_RESULT.homebranch ) %]</a>
1204 [% Branches.GetName( ITEM_RESULT.homebranch ) %]
1207 <span title="">[% ITEM_RESULT.branchname %]</span>
1211 [% IF ( OpacLocationBranchToDisplayShelving == 'home' || OpacLocationBranchToDisplayShelving == 'both' ) %]
1212 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1215 <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1220 <td class="location"><span class="shelvingloc">[% ITEM_RESULT.location_description %]</span></td>
1223 [% IF ( itemdata_ccode ) %]
1224 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1226 <td class="call_no" property="sku">
1227 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1228 [% ITEM_RESULT.itemcallnumber %]
1229 [% IF ( OPACShelfBrowser ) %]
1230 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1231 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1233 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1238 [% IF ( itemdata_enumchron ) %]
1239 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1241 [% IF ( itemdata_uri ) %]
1243 [% IF ITEM_RESULT.uri %]
1244 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1245 <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>
1247 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1252 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1253 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1254 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1255 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1256 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1257 [% IF holds_count.defined || show_priority %]
1258 <td class="holds_count">
1259 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1260 [% IF ITEM_RESULT.priority %]
1261 [% IF holds_count.defined %]
1262 (priority [% ITEM_RESULT.priority %])
1264 [% ITEM_RESULT.priority %]
1269 [% IF ShowCourseReservesHeader %]
1271 [% IF ITEM_RESULT.course_reserves %]
1272 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1274 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1275 [% r.course.course_name %]
1276 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1277 [% IF r.course.section %] [% r.course.section %] [% END %]
1278 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1284 [% END # /IF ShowCourseReservesHeader %]
1289 [% END %][%# end of items_table block %]
1291 [% BLOCK jsinclude %]
1292 [% INCLUDE 'datatables.inc' %]
1293 [% IF ( SocialNetworks ) %]
1294 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1296 {lang: '[% lang %]'}
1299 <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>
1301 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1303 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1305 <script type="text/javascript">
1308 [% IF ( OpacBrowseResults && busc ) %]
1309 var arrPagination = new Array();
1310 var pag_index_ini = [% indexPag %];
1311 [% IF ( listResults ) %]
1312 [% FOREACH listResult IN listResults %]
1313 arrPagination[[% listResult.index %]] = {
1314 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1315 title:"[% listResult.title|remove('\n')|html %]",
1316 author:"[% listResult.author|html %]",
1317 biblionumber:[% listResult.biblionumber %]
1323 [% IF ( OpacHighlightedWords ) %]
1324 var q_array = new Array(); // holds search terms if available
1326 function highlightOff() {
1327 $("#catalogue_detail_biblio").removeHighlight();
1328 $(".highlight_toggle").toggle();
1330 function highlightOn() {
1332 for (x in q_array) {
1333 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1334 $(".title").highlight(q_array[x]);
1335 $(".author").highlight(q_array[x]);
1336 $(".results_summary").highlight(q_array[x]);
1338 $(".highlight_toggle").toggle();
1342 $(document).ready(function() {
1343 $('#bibliodescriptions').tabs();
1344 $(".branch-info-tooltip-trigger").tooltip({
1345 position: { my: "left+15 center", at: "right center" },
1348 content: function(){
1349 var element = $(this).next("div");
1350 return element.html();
1353 [% IF ( TagsInputEnabled && loggedinusername ) %]
1354 $(".tag_add").click(function(){
1355 var thisid = $(this).attr("id");
1356 thisid = thisid.replace("tag_add","");
1358 $("#tagform"+thisid).show();
1359 $("#newtag"+thisid).focus();
1360 $("#newtag"+thisid+"_status").empty().hide();
1363 $(".cancel_tag_add").click(function(){
1364 var thisid = $(this).attr("id");
1365 thisid = thisid.replace("cancel","");
1366 $("#tagform"+thisid).hide();
1367 $("#tag_add"+thisid).show();
1368 $("#newtag"+thisid).val("");
1369 $("#newtag"+thisid+"_status").empty().hide();
1372 $(".tagbutton").click(function(){
1373 var thisid = $(this).attr("title");
1374 var tag = $("#newtag"+thisid).val();
1375 if (!tag || (tag == "")) {
1376 alert(MSG_NO_TAG_SPECIFIED);
1379 KOHA.Tags.add_tag_button(thisid, tag);
1384 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1386 [% IF ( item_level_itypes ) %]null,[% END %]
1388 [% IF ( itemdata_ccode ) %]null,[% END %]
1390 [% IF ( itemdata_enumchron ) %]null,[% END %]
1391 [% IF ( itemdata_uri ) %]null,[% END %]
1392 [% IF ( itemdata_copynumber ) %]null,[% END %]
1394 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1395 { "sType": "title-string" },
1396 [% IF ( OPACShowBarcode ) %]null,[% END %]
1397 [% IF holds_count.defined %]
1399 [% ELSIF show_priority %]
1402 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1406 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1407 q_array = query_desc.split(" ");
1409 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1410 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1411 [% IF ( GoogleJackets ) %]
1412 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1414 [% IF OpenLibraryCovers %]
1415 KOHA.OpenLibrary.GetCoverFromIsbn();
1417 [% IF OPACLocalCoverImages %]
1418 KOHA.LocalCover.GetCoverFromBibnumber(true);
1420 [% IF ( NovelistSelectProfile ) %]
1421 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1424 [% IF ( OpacBrowseResults && busc ) %]
1425 if (arrPagination.length > 0) {
1426 renderPagIndexList(pag_index_ini, $("#listResults"));
1428 $("#a_listResults").click(function(e) {
1429 if (arrPagination.length > 0) {
1431 var navigation = $(".results-pagination");
1432 if (navigation.css("display") == 'none') {
1434 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1435 $(this).attr('title',newtitle);
1436 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1439 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1440 $(this).attr('title',newtitle);
1444 $("#close_pagination").click(function(e) {
1446 var navigation = $(".results-pagination");
1450 [% IF ( OPACShelfBrowser ) %]
1452 (function prepareShelfBrowser(){
1454 $(".main").on("click",".close_shelf",function(e){
1456 $("#shelfbrowser").toggle();
1458 $(".main").on("click", "#browser_previous a", function(e){
1461 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1464 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1466 success: function(data){
1467 $("#shelfbrowser").replaceWith(data);
1468 [% IF ( GoogleJackets ) %]
1469 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1471 [% IF OpenLibraryCovers %]
1472 KOHA.OpenLibrary.GetCoverFromIsbn();
1474 [% IF OPACLocalCoverImages %]
1475 KOHA.LocalCover.GetCoverFromBibnumber(true);
1481 $(".main").on("click", "#browser_next a", function(e){
1484 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1487 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1489 success: function(data){
1490 $("#shelfbrowser").replaceWith(data);
1491 [% IF ( GoogleJackets ) %]
1492 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1494 [% IF OpenLibraryCovers %]
1495 KOHA.OpenLibrary.GetCoverFromIsbn();
1497 [% IF OPACLocalCoverImages %]
1498 KOHA.LocalCover.GetCoverFromBibnumber(true);
1505 [% IF ( OpacStarRatings != 'disable' ) %]
1506 // -----------------------------------------------------
1507 // star-ratings code
1508 // -----------------------------------------------------
1509 // hide 'rate' button if javascript enabled
1511 $('input[name="rate_button"]').remove();
1514 $(".auto-submit-star").rating({
1515 callback: function (value, link) {
1517 // if the new value equals the old value, dont execute callback...
1519 if ($("#rating_value").attr("value") != value) {
1523 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1524 rating_old_value: $("#rating_value").attr("value"),
1525 borrowernumber: "[% borrowernumber %]",
1526 biblionumber: "[% biblionumber %]",
1527 rating_value: value,
1529 }, function (data) {
1531 if (data.auth_status != 'ok') {
1532 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1534 $("#rating_value").val(data.rating_value);
1536 if (data.rating_value) {
1537 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1539 $("#rating_value_text").text('');
1542 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1551 // -----------------------------------------------------
1552 [% END # / IF ( OpacStarRatings != 'disable' )%]
1554 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1555 var isbn = $(".isbn:last").text().split(" ")[1];
1557 isbn = isbn.replace(/\W*$/, '');
1558 isbn = isbn.replace(/-/, '');
1560 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1561 // Use Microsoft XDR for IE version 8 or above
1562 var xdr = new XDomainRequest();
1563 xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1564 xdr.onload = function() {
1565 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1566 eval(json); // json is now a regular JSON object
1567 parseIDBJSON(json); // parse using same function as for jQuery's success event
1571 $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1576 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1579 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1580 function parseIDBJSON( json ) {
1581 if(json.total_results > 0 && json.book.rating > 0){
1582 var isbn = $(".isbn:last").text().split(" ")[1];
1583 isbn = isbn.replace(/-/, '');
1585 [% IF ( IDreamBooksReadometer ) %]
1586 $(".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>');
1589 [% IF ( IDreamBooksReviews ) %]
1590 //build new tab for critic reviews
1591 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1593 //append happy-sad cloud review
1595 $("#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>");
1597 //insert data into Book reviews tab
1598 $.each(json.book.critic_reviews, function(){
1599 $("#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>");
1601 $("#seemoreidb").attr('href', json.book.detail_link);
1602 $("#tab_idb_critic_reviews").show();
1606 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1608 [% IF ( OpacBrowseResults && busc ) %]
1610 var totalPagItemList = 10;
1612 function rewindList()
1614 var ul = $("#listResults");
1615 var li_ini = ul.children(':first').next();
1616 var index_ini = pag_index_ini;
1618 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1620 var li_end = ul.children(':last').prev();
1621 var index_end = arrPagination.length - 1;
1623 index_end = parseInt(li_end.attr("class").substring(7), 10);
1625 if (index_ini > pag_index_ini) {
1626 renderPagIndexList(index_ini - 1, ul, false);
1627 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1631 function forwardList()
1633 var ul = $("#listResults");
1634 var li_ini = ul.children(':first').next();
1635 var index_ini = pag_index_ini;
1637 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1639 var li_end = ul.children(':last').prev();
1640 var index_end = arrPagination.length - 1;
1642 index_end = parseInt(li_end.attr("class").substring(7), 10);
1644 if (index_end < arrPagination.length - 1) {
1645 renderPagIndexList(index_ini + 1, ul, false);
1646 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1650 function renderPagIndexList(index, ul)
1652 var $kids = ul.children("li");
1653 if ($kids.length > 0) {
1654 $kids.each(function() {
1660 var ini = index - 1;
1661 var end = ini + totalPagItemList - 1;
1663 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1667 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1668 if (arrPagination[i] == undefined) continue;
1669 var li = $("<li />");
1670 if (arrPagination[i].url != "") {
1671 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1672 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1673 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1674 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1675 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1676 html += ">" + i + "</a>";
1679 li.attr("class", "li_pag_" + i);
1684 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1685 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>":"»";
1688 }//renderPagIndexList
1691 function renderPagination(index, total, ul, highlIndex)
1693 for (var i = pag_index_ini; i <= total; i++) {
1694 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1695 $("#li_pag_" + i).remove();
1698 for (var i = index; i <= total && j < totalPagItemList; i++) {
1699 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1700 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1701 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1702 if (arrPagination[i].author) html += "<br /> by " + arrPagination[i].author;
1704 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1708 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1709 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1710 $("#li_pag_" + i).remove();
1711 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1712 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1713 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1719 [% END # / IF ( OpacBrowseResults && busc ) %]
1723 [% IF OPACPopupAuthorsSearch %]
1724 <script type="text/javascript">
1726 function showAuthors(element){
1727 var authornumber = $(element).attr("data-count");
1728 // Hide subjects menu if displayed
1729 hideMenu(".subjectSearch");
1731 // Check checkbox related to the clicked link
1732 $("#authorsList input[type='checkbox']").attr('checked', false);
1733 $("#author_"+authornumber).attr('checked', true);
1735 makeAuthorRequest();
1738 var left = element.offsetLeft || 0;
1739 var top = element.offsetTop || 0;
1740 $('.authorSearch').css('display', 'block');
1741 $('.authorSearch').css('left', left);
1742 $('.authorSearch').css('top', top + 15);
1745 function hideMenu(elem) {
1746 $(elem).css('display', 'none');
1749 function checkAll(checkbox, elem) {
1750 var check = $(checkbox).attr('checked') ? true : false;
1751 $(elem).find("input[type='checkbox']").attr('checked', check);
1752 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1755 function makeAuthorRequest(){
1758 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1759 values.push($(this).val());
1762 if (values.length > 0) {
1763 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1764 $("#validAuthorSearch").attr("href", request);
1766 $("#validAuthorSearch").removeAttr("href");
1772 function showSubjects(element, subjectnumber, subfieldnumber){
1774 // Check checkbox related to the clicked link
1775 $("#subjectsList input[type='checkbox']").attr('checked', false);
1776 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1778 makeSubjectRequest();
1782 function makeSubjectRequest() {
1784 $("#subjectsList > ul").each(function() {
1785 var all_checked = true;
1786 var local_values = [];
1787 $(this).find('input[type="checkbox"]').each(function() {
1788 if($(this).attr('checked')) {
1789 local_values.push($(this).val());
1791 all_checked = false;
1794 var authid = $(this).attr('data-authid');
1795 if(all_checked && authid) {
1796 values.push('an:' + authid);
1798 values = values.concat(local_values);
1801 if(values.length > 0) {
1802 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1803 $("#validSubjectSearch").attr('href', request);
1805 $("#validSubjectSearch").removeAttr("href");
1808 $(document).ready(function() {
1809 $("a.showauthors").click(function(){
1817 [% END # / IF OPACPopupAuthorsSearch %]