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 [% IF ( using_https ) %]
21 [% SET protocol = "https://" %]
23 [% SET protocol = "http://" %]
25 [% 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 %]
26 [% INCLUDE 'doc-head-close.inc' %]
28 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
30 [% IF ( OpacStarRatings != 'disable' ) %]
31 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
34 <body id="opac-detail" class="scrollto">
35 [% INCLUDE 'masthead.inc' %]
38 <ul class="breadcrumb">
39 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
40 <li><a href="#">Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]</a></li>
43 <div class="container-fluid">
44 <div class="row-fluid">
46 <div id="catalogue_detail_biblio" class="maincontent">
49 [% IF ( OPACLocalCoverImages ) %]
50 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
52 [% IF ( OPACAmazonCoverImages ) %]
53 [% IF ( OPACurlOpenInNewWindow ) %]
54 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank">
56 <a href="http://www.amazon[% AmazonTld %]/dp/[% normalized_isbn %]">
58 [% IF ( using_https ) %]
59 <img border="0" src="https://images-na.ssl-images-amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
61 <img border="0" src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
65 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
66 [% IF ( content_identifier_exists ) %]
67 [% IF ( using_https ) %]
68 <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" />
70 <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" />
74 <span class="no-image">No cover image available</span>
78 [% IF ( GoogleJackets ) %]
79 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
81 [% IF OpenLibraryCovers %]
82 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
84 [% IF ( BakerTaylorEnabled && normalized_isbn ) %]
85 [% IF ( OPACurlOpenInNewWindow ) %]
86 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
88 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
91 </div><!-- / #bookcover -->
93 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
94 [% IF ( ocoins ) # COinS / Openurl %]
95 <span class="Z3988" title="[% ocoins %]"></span>
99 <span class="view"><span id="Normalview">Normal view</span></span>
100 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
101 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
103 [% IF ( OPACXSLTDetailsDisplay ) %]
106 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
107 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
109 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
111 [% IF ( description ) %]
117 [% IF ( unititle ) %], [% unititle %][% END %]
120 [% IF ( MARCAUTHORS ) %]
121 <div class="results_summary">
122 <span class="label">Additional authors:</span>
123 [% IF OPACPopupAuthorsSearch %]
124 <!-- Author search term selection modal -->
125 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
126 <div class="modal-header">
127 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
128 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
130 <div class="modal-body">
131 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
132 <ul id="authorsList">
133 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
135 [% IF (MARCAUTHOR.authoritylink) %]
136 <input type="checkbox" name="checkbox"
137 id="author_[% loop.count %]"
138 onclick="makeAuthorRequest()"
139 value="an:[% MARCAUTHOR.authoritylink %]" />
141 <input type="checkbox" name="checkbox"
142 id="author_[% loop.count %]"
143 onclick="makeAuthorRequest()"
144 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
146 <label for="author_[% loop.count %]">
147 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
152 [% END # /FOREACH MARCAUTHORS %]
155 <div class="modal-footer">
156 <a href="#" class="btn btn-primary">Search</a>
157 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
160 [% END # /OPACPopupAuthorsSearch %]
162 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
163 [% authorsloop = loop %]
164 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
165 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
166 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
167 class="showauthors" data-count="[% authorsloop.count %]"
168 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>
170 [% IF (MARCAUTHOR.authoritylink) %]
171 <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>
173 [% UNLESS ( loop.last ) %]|[% END %]
174 [% END # /FOREACH MARCAUTHORS %]
176 [% END # IF MARCAUTHORS %]
178 [% IF ( MARCSERIES ) %]
179 <span class="results_summary series"><span class="label">Series:</span>
180 [% FOREACH MARCSERIE IN MARCSERIES %]
181 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
182 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
183 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
185 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
186 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
189 [% UNLESS ( loop.last ) %]|[% END %]
190 [% END # / FOREACH MARCSERIES %]
192 [% END # /MARCSERIES %]
194 [% IF ( editionstatement ) %]
195 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
197 [% IF ( publishercode ) %]
198 <span class="results_summary publisher"><span class="label">Published by :</span>
199 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
200 [% publishercode |html %]
201 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
206 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
209 [% IF ( MARCISBNS ) %]
210 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
212 [% IF ( normalized_isbn ) %]
213 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
218 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
221 [% IF ( collectiontitle ) %]
222 <span class="results_summary collection"><span class="label">Collection: </span>
223 [% collectiontitle %]
224 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
225 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
230 [% IF ( unititles ) %]
231 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
232 [% FOREACH unititle IN unititles %]
233 [% unititle.unititle %] ;
238 [% IF ( MARCSUBJCTS ) %]
239 <div class="results_summary subject">
240 <span class="label">Subject(s):</span>
242 [% IF OPACPopupAuthorsSearch %]
243 <!-- Search term selection modal -->
244 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
245 <div class="modal-header">
246 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
247 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
249 <div id="subjectsList" class="modal-body">
250 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
251 <label for="all_subjects">
254 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
255 [% subjectsloop = loop %]
256 [% IF MARCSUBJCT.authoritylink %]
257 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
259 <ul id="subjectsList[% loop.count %]">
261 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
263 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
264 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
272 <div class="modal-footer">
273 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
274 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
277 [% END # /OPACPopupAuthorsSearch%]
279 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
280 [% subjectsloop = loop %]
281 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
282 [% SUBFIELD.separator %]
283 <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>
285 [% IF (MARCSUBJCT.authoritylink) %]
286 <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>
288 [% UNLESS ( loop.last ) %] | [% END %]
289 [% END # / FOREACH MARCSUBJCTS %]
291 [% ELSE # /IF MARCSUBJCTS %]
292 [% 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 %]
295 [% IF ( copyrightdate ) %]
296 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
299 [% UNLESS ( item_level_itypes ) %]
301 <img src="[% imageurl %]" alt="" />
303 <span class="results_summary itemtype"><span class="label">Item type: </span>
304 [% IF ( description ) %]
312 [% IF ( MARCURLS ) %]
313 <div class="results_summary online_resources"><span class="label">Online resources:</span>
315 [% FOREACH MARCurl IN MARCURLS %]
316 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
318 [% IF ( OPACurlOpenInNewWindow ) %]
319 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
320 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
322 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
325 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
326 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
328 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
332 [% MARCurl.linktext %]</a>
333 [% IF ( MARCurl.notes ) %]
335 [% FOREACH note IN MARCurl.notes %]
336 <li>[% note.note %]</li>
341 [% END # /FOREACH MARCURLS %]
344 [% END # / IF MARCURLS %]
345 [% END # / IF OPACXSLTDetailsDisplay %]
347 [% IF ( AuthorisedValueImages && authorised_value_images ) %]
348 <div class="authorised_value_images">
349 [% FOREACH authorised_value_image IN authorised_value_images %]
350 <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
353 [% END # / AuthorisedValueImages && authorised_value_images %]
355 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
356 [% IF ( LibraryThingForLibrariesID ) %]
357 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
358 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
359 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
360 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
362 <span class="results_summary">
363 <span class="label">Reviews from LibraryThing.com:</span>
364 <span style="display: block;" class="ltfl_reviews"></span>
366 [% END # / LibraryThingForLibrariesID %]
368 <!--This grabs all of the lists a bib record appears in -->
369 [% IF ( GetShelves ) %]
370 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
371 [% FOREACH GetShelve IN GetShelves %]
372 <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
373 [% IF ( loop.last ) %][% ELSE %]|[% END %]
376 [% END # / GetShelves %]
378 [% IF ( TagsShowEnabled ) %]
379 <div class="results_summary tags">
381 <span class="label">Tags from this library:</span>
383 [% FOREACH TagLoo IN TagLoop %]
384 <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>
385 [% IF ( loop.last ) %][% ELSE %], [% END %]
390 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
392 [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
394 [% END # /IF TagsShowEnabled %]
396 [% IF ( TagsInputEnabled ) %]
397 <div class="results_summary tagsinput">
398 [% IF ( loggedinusername ) %]
399 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
400 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
401 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
402 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
403 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
405 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
409 <span id="login4tags">Log in to add tags.</span>
412 [% END # / IF TagsInputEnabled %]
414 [% IF ( SyndeticsEnabled ) %]
415 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
416 <span class="results_summary">
417 <span class="label">Series information:</span>
418 [% IF ( using_https ) %]
419 <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>
421 <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>
424 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
425 [% IF ( SyndeticsAVPROFILEExists ) %]
426 <span class="results_summary">
427 <span class="label">Audiovisual profile:</span>
428 [% IF ( using_https ) %]
429 <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>
431 <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>
434 [% END # / IF SyndeticsAVPROFILEExists %]
436 [% IF ( SyndeticsFICTIONExists ) %]
437 <span class="results_summary">
438 <span class="label">Fiction notes:</span>
439 [% IF ( using_https ) %]
440 <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>
442 <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>
445 [% END # / IF SyndeticsFICTIONExists %]
447 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
448 <span class="results_summary">
449 <span class="label">Awards:</span>
450 [% IF ( using_https ) %]
451 <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>
453 <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>
456 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
457 [% END # / IF SyndeticsEnabled%]
459 [% IF ( OpacStarRatings != 'disable' ) %]
460 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
461 <div class="results_summary ratings">
463 [% FOREACH i IN [ 1 2 3 4 5 ] %]
464 [% IF rating_avg == i && borrowernumber %]
465 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
466 [% ELSIF rating_avg == i %]
467 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
468 [% ELSIF borrowernumber %]
469 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
471 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
475 <!-- define some hidden vars for ratings -->
477 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
478 <input type="hidden" name='borrowernumber' value="[% borrowernumber %]" />
479 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
480 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
481 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
483 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
485 [% IF ( rating_value ) %]
486 <span id="rating_value_text">your rating: [% rating_value %], </span>
488 <span id="rating_value_text"></span>
491 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
494 [% END # / IF OpacStarRatings != 'disable' %]
496 [% IF ( BakerTaylorContentURL ) %]
497 <span class="results_summary">
498 <span class="label">Enhanced content: </span>
499 [% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
501 [% END # / IF BakerTaylorContentURL %]
503 [% IF ( NovelistSelectProfile ) %]
504 [% IF ( NovelistSelectView == 'above') %]
505 <span class="results_summary">
506 <span class="label">Novelist Select: </span>
507 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
510 [% END # / IF NovelistSelectProfile %]
512 [% IF ( Babeltheque ) %]
513 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
514 <div id="BW_notes"></div>
515 <div id="BW_critiques"></div>
516 <div id="BW_critiques_pro"></div>
517 <div id="BW_citations"></div>
518 [% END # / IF Babeltheque%]
520 </div> <!-- / #catalogue_detail_biblio -->
522 <div id="bibliodescriptions" class="toptabs">
525 [% IF ( defaulttab == 'holdings' ) %]
526 <li id="tab_holdings" class="ui-tabs-active">
528 <li id="tab_holdings">
530 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] [% UNLESS too_many_items %] ( [% itemloop.size || 0 %] )[% END %]</a>
532 [% IF (SeparateHoldings) %]
533 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
535 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
536 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
538 [% IF ( SYNDETICS_TOC ) %]
539 <li id="tab_toc"> <a href="#toc">TOC</a></li>
541 [% IF ( SyndeticsEnabled ) %]
542 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
543 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
545 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
546 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
547 <li id="tab_LTFLreviews">
548 [% IF ( using_https ) %]
549 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
550 <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>
552 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
553 <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>
557 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
558 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
560 [% END # / IF SyndeticsEnabled %]
562 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
563 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
564 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
567 [% IF ( subscriptionsnumber ) %]
568 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-active">[% ELSE %]<li id="tab_subscriptions">[% END %]
569 <a href="#subscriptions">Subscriptions</a>
573 [% IF Koha.Preference( 'reviewson' ) == 1 %]
574 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
577 [% IF ( NovelistSelectProfile ) %]
578 [% IF ( NovelistSelectView == 'tab') %]
579 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
583 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
584 <li id="tab_editions"><a href="#editions">Editions</a></li>
587 [% IF ( serialcollection ) %]
588 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-active">[% ELSE %]<li id="tab_serialcollection">[% END %]
589 <a href="#serialcollection">Serial collection</a>
593 [% IF ( OPACLocalCoverImages && localimages.size ) %]
594 <li id="tab_images"><a href="#images">Images</a></li>
597 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
598 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
601 [% IF ( IDreamBooksReviews ) %]
602 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
606 [% IF ( serialcollection ) %]
607 <div id="serialcollection">
608 <table id="serialcollectiont" class="table table-bordered table-striped">
611 <th id="serial_library">Library</th>
612 <th id="serial_collection">Serial collection</th>
613 <th id="serial_itemcallnumber">Item call number</th>
617 [% FOREACH serialcollection IN serialcollections %]
619 <td>[% serialcollection.branch %]</td>
620 <td>[% serialcollection.text %]</td>
621 <td>[% serialcollection.itemcallnumber %]</td>
627 [% END # / IF serialcollection %]
631 [% IF too_many_items %]
632 <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>
633 [% ELSIF ( itemloop.size ) %]
634 [% INCLUDE items_table items=itemloop tab="holdings" %]
636 [% IF holds_count.defined || priority %]
638 [% IF holds_count.defined %]
639 Total holds: [% holds_count %]
642 [% IF holds_count.defined %]
643 (priority [% priority %])
645 Overall queue priority: [% priority %]
651 [% IF ( ALTERNATEHOLDINGS ) %]
652 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
653 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
656 <div id="noitems">No physical items for this record</div>
658 [% END # IF itemloop.size %]
659 [% PROCESS 'shelfbrowser.inc' %]
660 [% INCLUDE shelfbrowser tab='holdings' %]
661 <br style="clear:both;" />
662 </div> <!-- / #holdings -->
664 [% IF (SeparateHoldings) %]
665 <div id="otherholdings">
666 [% IF (otheritemloop.size) %]
667 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
671 [% INCLUDE shelfbrowser tab='otherholdings' %]
673 [% END # / SeparateHoldings %]
675 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
676 <div id="descriptions">
677 <div class="content_set">
679 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
680 <h4>Enhanced descriptions from Syndetics:</h4>
681 <p>[% SYNDETICS_SUMMARY %]</p>
684 [% IF ( MARCNOTES ) %]
686 [% FOREACH MARCNOTE IN MARCNOTES %]
687 <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
697 </div> <!-- / #descriptions -->
698 [% END # / IF MARCNOTES || notes %]
700 [% IF ( SyndeticsEnabled ) %]
701 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
703 <div class="content_set">
704 <h3>Table of contents provided by Syndetics</h3>
706 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
707 [% IF ( SYNDETICS_TO.p ) %]
708 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
714 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
716 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
718 <div class="content_set">
719 <h3>Excerpt provided by Syndetics</h3>
720 [% SYNDETICS_EXCERPT %]
723 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
725 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
727 <div class="content_set">
728 <h3>Reviews provided by Syndetics</h3>
729 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
730 [% IF ( SYNDETICS_REVIEW.title ) %]
731 <h4>[% SYNDETICS_REVIEW.title %]</h4>
732 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
734 [% IF ( review.content ) %]
743 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
745 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
747 <div class="content_set">
748 <h3>Author notes provided by Syndetics</h3>
749 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
750 [% IF ( SYNDETICS_ANOTE.content ) %]
751 [% SYNDETICS_ANOTE.content %]
756 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
757 [% END # / IF SyndeticsEnabled %]
759 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab') %]
760 <div id="NovelistSelect">
761 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
763 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
765 [% IF ( subscriptionsnumber ) %]
766 <div id="subscriptions">
767 <h2>This is a serial</h2>
768 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
769 [% FOREACH subscription IN subscriptions %]
770 [% IF ( subscription.branchname ) %]
771 <h3>At library: [% subscription.branchname %]</h3>
773 [% IF ( subscription.branchcode ) %]
774 <h3>At library: [% subscription.branchcode %]</h3>
777 [% IF ( subscription.closed ) %]
778 <p>This subscription is closed.</p>
780 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Call number: [% subscription.callnumber %]</p>[% END %]</span>
781 [% IF ( subscription.subscriptionnotes ) %]
782 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
784 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
785 [% IF ( subscription.missinglist ) %]
786 <p>Missing issues: [% subscription.missinglist %] </p>
788 [% IF ( subscription.opacnote ) %]
789 <p>[% subscription.opacnote FILTER html_line_break %]</p>
791 [% IF ( subscription.callnumber ) %]
792 <p>Call number: [% subscription.callnumber %]</p>
794 [% IF ( subscription.latestserials ) %]
795 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
796 <table class="table table-bordered table-striped">
803 [% FOREACH latestserial IN subscription.latestserials %]
805 <td>[% latestserial.serialseq %]</td>
806 <td>[% latestserial.planneddate %]</td>
808 [% IF ( latestserial.status1 ) %]
811 [% IF ( latestserial.status2 ) %]
814 [% IF ( latestserial.status3 ) %]
817 [% IF ( latestserial.status4 ) %]
820 [% IF ( latestserial.status5 ) %]
828 <td>[% latestserial.notes %]</td>
830 [% END # / FOREACH latestserials %]
832 [% END # / IF subscription.latestserials %]
833 [% END # / FOREACH subscriptions %]
834 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
835 </div> <!-- / #subscriptions -->
836 [% END # IF subscriptionsnumber %]
838 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
839 <!-- Library Thing for Libraries Content -->
840 <div id="LFTLSimilarItems">
841 <div class="content_set">
842 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
843 <!-- but breaks Xhtml validation -->
844 <!-- <span class="results_summary">-->
845 <div id="ltfl_related"></div>
846 <div id="ltfl_similars"></div>
850 <div id="LTFLTagBrowse">
851 <div class="content_set">
852 <!-- <span class="results_summary"> -->
853 <div id="ltfl_tagbrowse" class="ltfl"></div>
857 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
859 [% IF Koha.Preference( 'reviewson' ) == 1 %]
861 <div id="newcomment"></div>
863 [% FOREACH review IN reviews %]
864 [% IF ( review.your_comment ) %]
865 <div class="commentline yours" id="c[% review.reviewid %]">
866 [% IF ( review.avatarurl ) %]
867 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
869 <h5>Your comment</h5>
870 <small>[% review.datereviewed | $KohaDates %]</small>
872 [% FILTER html_break %]
873 [% review.review |html %]
875 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
879 <div class="commentline">
880 [% IF ( ShowReviewer != "none" ) %]
881 [% IF ( review.avatarurl ) %]
882 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
884 [% SWITCH ShowReviewer %]
886 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
888 <h5>Comment by [% review.firstname %]</h5>
890 <h5>Comment by [% review.surname %]</h5>
891 [% CASE 'firstandinitial' %]
892 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
893 [% CASE 'username' %]
894 <h5>Comment by [% review.userid %]</h5>
896 <small>[% review.datereviewed | $KohaDates %]</small>
897 [% ELSIF ( ShowReviewer == "none") %]
898 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
899 [% END # / IF ShowReviewer != "none"%]
901 [% FILTER html_break %]
902 [% review.review |html %]
905 </div> <!-- / .commentline -->
906 [% END # / IF review.your_comment %]
907 [% END # / FOREACH reviews %]
909 <p>There are no comments for this item.</p>
910 [% END # / IF reviews %]
912 [% IF ( loggedinusername ) %]
913 [% UNLESS ( loggedincommenter ) %]
914 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
915 Post or edit your comments on this item.
919 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
920 [% END # / IF loggedinusername %]
921 </div> <!-- / #comments -->
922 [% END # / IF reviewson %]
924 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
926 <h4>Other editions of this work</h4>
927 <table class="table table-bordered table-striped">
928 [% FOREACH XISBN IN XISBNS %]
931 [% IF ( OPACAmazonCoverImages ) %]
932 <img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
935 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
936 [% IF ( XISBN.content_identifier_exists ) %]
937 [% IF ( using_https ) %]
938 <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="" />
940 <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="" />
943 <span class="no-image">No cover image available</span>
944 [% END # / IF XISBN.content_identifier_exists %]
945 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
948 [% UNLESS ( item_level_itypes ) %]
949 <td>[% XISBN.description %]</td>
951 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
952 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
953 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
954 [% IF ( XISBN.publishercode ) %]
955 <p>[% XISBN.publishercode |html %]
956 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
957 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
958 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
963 [% END # / FOREACH XISBNS %]
965 </div> <!-- / #editions -->
966 [% END # / IF OPACFRBRizeEditions && XISBNS %]
968 [% IF ( HTML5MediaEnabled ) %]
969 <div id="html5media">
971 <[% HTML5MediaParent %] controls preload=none>
972 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
973 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
975 [[% HTML5MediaParent %] tag not supported by your browser.]
976 </[% HTML5MediaParent %]>
979 [% END # / IF HTML5MediaEnabled %]
981 [% IF ( OPACLocalCoverImages && localimages.size ) %]
983 <p>Click on an image to view it in the image viewer</p>
984 [% FOREACH image IN localimages %]
986 <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>
989 </div><!-- / #images -->
990 [% END # / IF OPACLocalCoverImages && localimages.size %]
992 [% IF ( IDreamBooksReviews ) %]
993 <div id="idb_critic_reviews">
994 <div id="idb_review_snippets"></div>
995 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
998 </div> <!-- / #bibliodescriptions -->
1000 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' ) %]
1001 <div id="NovelistSelect">
1002 <h3>Novelist Select</h3>
1003 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
1007 [% IF ( Babeltheque ) %]
1009 <div id="BW_etiquettes"></div>
1010 <div id="BW_suggestions"></div>
1012 <div class="clearfix"></div>
1014 <div id="BW_podcasts"></div>
1016 <div class="clearfix"></div>
1018 <div id="BW_videos"></div>
1020 [% END # / IF Babeltheque %]
1021 </div> <!-- /.span8 -->
1024 <div id="ulactioncontainer">
1026 [% IF ( OpacBrowseResults && busc ) %]
1027 <div class="nav_results">
1028 <div class="l_Results">
1029 [% IF ( listResults ) %]
1030 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1032 <span>Browse results</span>
1035 <ul class="pg_menu clearfix">
1036 <li class="left_results">
1037 [% IF ( previousBiblionumber ) %]
1038 <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>
1040 <span>Previous</span>
1043 <li class="back_results"><a href="opac-search.pl?[% busc |url %]" title="Back to the results search list">Back to results</a></li>
1044 <li class="right_results">
1045 [% IF ( nextBiblionumber ) %]
1046 <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>
1052 [% IF ( listResults ) %]
1053 <div class="results-pagination">
1054 <div class="nav_pages">
1055 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1056 <ul id="listResults"></ul>
1058 <div class="pagination_list">
1059 <ul id="ul_pagination_list"></ul>
1064 [% END # / IF OpacBrowseResults && busc %]
1066 [% INCLUDE 'opac-detail-sidebar.inc' %]
1068 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right') %]
1069 <div id="NovelistSelect">
1070 <h4>Novelist Select</h4>
1071 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1075 [% IF ( Babeltheque ) %]
1076 <div class="babeltheque_adds">
1077 <div id="BW_critiques_aj"></div>
1078 <div id="BW_citations_aj"></div>
1082 [% IF ( SocialNetworks ) %]
1083 <div id="social_networks" class="clearfix">
1085 <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>
1086 <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>
1087 <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>
1088 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% protocol %][% current_url |url %])" title="Share by email">Email</a></div>
1089 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1090 <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>
1093 </div> <!-- / .ulactioncontainer -->
1094 </div> <!-- / .span4 -->
1095 </div> <!-- / .row-fluid -->
1096 <div class="row-fluid">
1097 [% IF ( LibraryThingForLibrariesID ) %]
1098 [% IF ( using_https ) %]
1099 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1100 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1101 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1103 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1104 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1105 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1106 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1110 [% IF ( NovelistSelectProfile ) %]
1111 <script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1114 [% IF ( Babeltheque ) %]
1115 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1117 </div> <!-- / .row-fluid -->
1118 </div> <!-- / .container-fluid -->
1119 </div> <!-- / .main -->
1121 [% INCLUDE 'opac-bottom.inc' %]
1123 [%# End of template %]
1125 [% BLOCK items_table %]
1126 <table class="holdingst table table-bordered table-striped">
1129 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1130 <th id="item_location">Location</th>
1131 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1132 <th id="item_callnumber" class="call_no">Call number</th>
1133 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1134 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1135 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1136 <th id="item_status" class="status">Status</th>
1137 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1138 <th id="item_datedue" class="date_due">Date due</th>
1139 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1140 [% IF holds_count.defined %]
1142 [% ELSIF show_priority %]
1143 <th>Item hold queue priority</th>
1145 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1149 [% FOREACH ITEM_RESULT IN items %]
1150 [% IF ITEM_RESULT.this_branch %]
1151 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1153 <tr vocab="http://schema.org/" typeof="Offer">
1155 [% IF ( item_level_itypes ) %]
1157 [% UNLESS ( noItemTypeImages ) %]
1158 [% IF ( ITEM_RESULT.imageurl ) %]
1159 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1162 [% ITEM_RESULT.description %]
1165 <td class="location" property="seller">
1166 <link property="itemOffered" href="#record" />
1167 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1168 [% UNLESS ( singleBranchMode ) %]
1169 <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1170 [% IF ( ITEM_RESULT.branchurl ) %]
1171 <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1173 <span title="">[% ITEM_RESULT.branchname %]</span>
1175 <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1178 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1180 [% IF ( itemdata_ccode ) %]
1181 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1183 <td class="call_no" property="sku">
1184 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1185 [% ITEM_RESULT.itemcallnumber %]
1186 [% IF ( OPACShelfBrowser ) %]
1187 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1188 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1190 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1195 [% IF ( itemdata_enumchron ) %]
1196 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1198 [% IF ( itemdata_uri ) %]
1200 [% IF ITEM_RESULT.uri %]
1201 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1202 <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>
1204 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1209 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1210 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1211 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1212 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates as_due_date => 1 %]</span></td>
1213 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1214 [% IF holds_count.defined || show_priority %]
1215 <td class="holds_count">
1216 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1217 [% IF ITEM_RESULT.priority %]
1218 [% IF holds_count.defined %]
1219 (priority [% ITEM_RESULT.priority %])
1221 [% ITEM_RESULT.priority %]
1226 [% IF ShowCourseReservesHeader %]
1228 [% IF ITEM_RESULT.course_reserves %]
1229 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1231 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1232 [% r.course.course_name %]
1233 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1234 [% IF r.course.section %] [% r.course.section %] [% END %]
1235 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1241 [% END # /IF ShowCourseReservesHeader %]
1246 [% END %][%# end of items_table block %]
1248 [% BLOCK jsinclude %]
1249 [% INCLUDE 'datatables.inc' %]
1250 [% IF ( SocialNetworks ) %]
1251 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1253 {lang: '[% lang %]'}
1256 <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>
1258 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1260 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1262 <script type="text/javascript">
1265 [% IF ( OpacBrowseResults && busc ) %]
1266 var arrPagination = new Array();
1267 var pag_index_ini = [% indexPag %];
1268 [% IF ( listResults ) %]
1269 [% FOREACH listResult IN listResults %]
1270 arrPagination[[% listResult.index %]] = {
1271 url:"[% listResult.url %][% IF ( listResult.url && query_desc && OpacHighlightedWords ) %]&query_desc=[% query_desc |uri %][% END %]",
1272 title:"[% listResult.title|remove('\n')|html %]",
1273 author:"[% listResult.author|html %]",
1274 biblionumber:[% listResult.biblionumber %]
1280 [% IF ( OpacHighlightedWords ) %]
1281 var q_array = new Array(); // holds search terms if available
1283 function highlightOff() {
1284 $("#catalogue_detail_biblio").removeHighlight();
1285 $(".highlight_toggle").toggle();
1287 function highlightOn() {
1289 for (x in q_array) {
1290 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1291 $(".title").highlight(q_array[x]);
1292 $(".author").highlight(q_array[x]);
1293 $(".results_summary").highlight(q_array[x]);
1295 $(".highlight_toggle").toggle();
1299 $(document).ready(function() {
1300 $('#bibliodescriptions').tabs();
1301 $(".branch-info-tooltip-trigger").tooltip({
1302 position: { my: "left+15 center", at: "right center" },
1305 content: function(){
1306 var element = $(this).next("div");
1307 return element.html();
1310 [% IF ( TagsInputEnabled && loggedinusername ) %]
1311 $(".tag_add").click(function(){
1312 var thisid = $(this).attr("id");
1313 thisid = thisid.replace("tag_add","");
1315 $("#tagform"+thisid).show();
1316 $("#newtag"+thisid).focus();
1317 $("#newtag"+thisid+"_status").empty().hide();
1320 $(".cancel_tag_add").click(function(){
1321 var thisid = $(this).attr("id");
1322 thisid = thisid.replace("cancel","");
1323 $("#tagform"+thisid).hide();
1324 $("#tag_add"+thisid).show();
1325 $("#newtag"+thisid).val("");
1326 $("#newtag"+thisid+"_status").empty().hide();
1329 $(".tagbutton").click(function(){
1330 var thisid = $(this).attr("title");
1331 var tag = $("#newtag"+thisid).val();
1332 if (!tag || (tag == "")) {
1333 alert(MSG_NO_TAG_SPECIFIED);
1336 KOHA.Tags.add_tag_button(thisid, tag);
1341 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1343 [% IF ( item_level_itypes ) %]null,[% END %]
1345 [% IF ( itemdata_ccode ) %]null,[% END %]
1347 [% IF ( itemdata_enumchron ) %]null,[% END %]
1348 [% IF ( itemdata_uri ) %]null,[% END %]
1349 [% IF ( itemdata_copynumber ) %]null,[% END %]
1351 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1352 { "sType": "title-string" },
1353 [% IF ( OPACShowBarcode ) %]null,[% END %]
1354 [% IF holds_count.defined %]
1356 [% ELSIF show_priority %]
1359 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1363 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1364 q_array = query_desc.split(" ");
1366 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1367 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1368 [% IF ( GoogleJackets ) %]
1369 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1371 [% IF OpenLibraryCovers %]
1372 KOHA.OpenLibrary.GetCoverFromIsbn();
1374 [% IF OPACLocalCoverImages %]
1375 KOHA.LocalCover.GetCoverFromBibnumber(true);
1377 [% IF ( NovelistSelectProfile ) %]
1378 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1381 [% IF ( OpacBrowseResults && busc ) %]
1382 if (arrPagination.length > 0) {
1383 renderPagIndexList(pag_index_ini, $("#listResults"));
1385 $("#a_listResults").click(function(e) {
1386 if (arrPagination.length > 0) {
1388 var navigation = $(".results-pagination");
1389 if (navigation.css("display") == 'none') {
1391 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1392 $(this).attr('title',newtitle);
1393 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1396 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1397 $(this).attr('title',newtitle);
1401 $("#close_pagination").click(function(e) {
1403 var navigation = $(".results-pagination");
1407 [% IF ( OPACShelfBrowser ) %]
1409 (function prepareShelfBrowser(){
1411 $(".main").on("click",".close_shelf",function(e){
1413 $("#shelfbrowser").toggle();
1415 $(".main").on("click", "#browser_previous a", function(e){
1418 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1421 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1423 success: function(data){
1424 $("#shelfbrowser").replaceWith(data);
1425 [% IF ( GoogleJackets ) %]
1426 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1428 [% IF OpenLibraryCovers %]
1429 KOHA.OpenLibrary.GetCoverFromIsbn();
1431 [% IF OPACLocalCoverImages %]
1432 KOHA.LocalCover.GetCoverFromBibnumber(true);
1438 $(".main").on("click", "#browser_next a", function(e){
1441 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1444 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1446 success: function(data){
1447 $("#shelfbrowser").replaceWith(data);
1448 [% IF ( GoogleJackets ) %]
1449 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1451 [% IF OpenLibraryCovers %]
1452 KOHA.OpenLibrary.GetCoverFromIsbn();
1454 [% IF OPACLocalCoverImages %]
1455 KOHA.LocalCover.GetCoverFromBibnumber(true);
1462 [% IF ( OpacStarRatings != 'disable' ) %]
1463 // -----------------------------------------------------
1464 // star-ratings code
1465 // -----------------------------------------------------
1466 // hide 'rate' button if javascript enabled
1468 $('input[name="rate_button"]').remove();
1471 $(".auto-submit-star").rating({
1472 callback: function (value, link) {
1474 // if the new value equals the old value, dont execute callback...
1476 if ($("#rating_value").attr("value") != value) {
1480 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1481 rating_old_value: $("#rating_value").attr("value"),
1482 borrowernumber: "[% borrowernumber %]",
1483 biblionumber: "[% biblionumber %]",
1484 rating_value: value,
1486 }, function (data) {
1488 if (data.auth_status != 'ok') {
1489 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1491 $("#rating_value").val(data.rating_value);
1493 if (data.rating_value) {
1494 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1496 $("#rating_value_text").text('');
1499 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1508 // -----------------------------------------------------
1509 [% END # / IF ( OpacStarRatings != 'disable' )%]
1511 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1512 var isbn = $(".isbn:last").text().split(" ")[1];
1514 isbn = isbn.replace(/\W*$/, '');
1515 isbn = isbn.replace(/-/, '');
1517 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1518 // Use Microsoft XDR for IE version 8 or above
1519 var xdr = new XDomainRequest();
1520 xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1521 xdr.onload = function() {
1522 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1523 eval(json); // json is now a regular JSON object
1524 parseIDBJSON(json); // parse using same function as for jQuery's success event
1528 $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1533 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1536 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1537 function parseIDBJSON( json ) {
1538 if(json.total_results > 0 && json.book.rating > 0){
1539 var isbn = $(".isbn:last").text().split(" ")[1];
1540 isbn = isbn.replace(/-/, '');
1542 [% IF ( IDreamBooksReadometer ) %]
1543 $(".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>');
1546 [% IF ( IDreamBooksReviews ) %]
1547 //build new tab for critic reviews
1548 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1550 //append happy-sad cloud review
1552 $("#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>");
1554 //insert data into Book reviews tab
1555 $.each(json.book.critic_reviews, function(){
1556 $("#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>");
1558 $("#seemoreidb").attr('href', json.book.detail_link);
1559 $("#tab_idb_critic_reviews").show();
1563 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1565 [% IF ( OpacBrowseResults && busc ) %]
1567 var totalPagItemList = 10;
1569 function rewindList()
1571 var ul = $("#listResults");
1572 var li_ini = ul.children(':first').next();
1573 var index_ini = pag_index_ini;
1575 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1577 var li_end = ul.children(':last').prev();
1578 var index_end = arrPagination.length - 1;
1580 index_end = parseInt(li_end.attr("class").substring(7), 10);
1582 if (index_ini > pag_index_ini) {
1583 renderPagIndexList(index_ini - 1, ul, false);
1584 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1588 function forwardList()
1590 var ul = $("#listResults");
1591 var li_ini = ul.children(':first').next();
1592 var index_ini = pag_index_ini;
1594 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1596 var li_end = ul.children(':last').prev();
1597 var index_end = arrPagination.length - 1;
1599 index_end = parseInt(li_end.attr("class").substring(7), 10);
1601 if (index_end < arrPagination.length - 1) {
1602 renderPagIndexList(index_ini + 1, ul, false);
1603 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1607 function renderPagIndexList(index, ul)
1609 var $kids = ul.children("li");
1610 if ($kids.length > 0) {
1611 $kids.each(function() {
1617 var ini = index - 1;
1618 var end = ini + totalPagItemList - 1;
1620 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1624 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1625 if (arrPagination[i] == undefined) continue;
1626 var li = $("<li />");
1627 if (arrPagination[i].url != "") {
1628 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1629 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1630 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1631 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1632 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1633 html += ">" + i + "</a>";
1636 li.attr("class", "li_pag_" + i);
1641 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1642 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>":"»";
1645 }//renderPagIndexList
1648 function renderPagination(index, total, ul, highlIndex)
1650 for (var i = pag_index_ini; i <= total; i++) {
1651 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1652 $("#li_pag_" + i).remove();
1655 for (var i = index; i <= total && j < totalPagItemList; i++) {
1656 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1657 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1658 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1659 if (arrPagination[i].author) html += "<br /> by " + arrPagination[i].author;
1661 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1665 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1666 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1667 $("#li_pag_" + i).remove();
1668 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1669 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1670 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1676 [% END # / IF ( OpacBrowseResults && busc ) %]
1680 [% IF OPACPopupAuthorsSearch %]
1681 <script type="text/javascript">
1683 function showAuthors(element){
1684 var authornumber = $(element).attr("data-count");
1685 // Hide subjects menu if displayed
1686 hideMenu(".subjectSearch");
1688 // Check checkbox related to the clicked link
1689 $("#authorsList input[type='checkbox']").attr('checked', false);
1690 $("#author_"+authornumber).attr('checked', true);
1692 makeAuthorRequest();
1695 var left = element.offsetLeft || 0;
1696 var top = element.offsetTop || 0;
1697 $('.authorSearch').css('display', 'block');
1698 $('.authorSearch').css('left', left);
1699 $('.authorSearch').css('top', top + 15);
1702 function hideMenu(elem) {
1703 $(elem).css('display', 'none');
1706 function checkAll(checkbox, elem) {
1707 var check = $(checkbox).attr('checked') ? true : false;
1708 $(elem).find("input[type='checkbox']").attr('checked', check);
1709 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1712 function makeAuthorRequest(){
1715 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1716 values.push($(this).val());
1719 if (values.length > 0) {
1720 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1721 $("#validAuthorSearch").attr("href", request);
1723 $("#validAuthorSearch").removeAttr("href");
1729 function showSubjects(element, subjectnumber, subfieldnumber){
1731 // Check checkbox related to the clicked link
1732 $("#subjectsList input[type='checkbox']").attr('checked', false);
1733 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1735 makeSubjectRequest();
1739 function makeSubjectRequest() {
1741 $("#subjectsList > ul").each(function() {
1742 var all_checked = true;
1743 var local_values = [];
1744 $(this).find('input[type="checkbox"]').each(function() {
1745 if($(this).attr('checked')) {
1746 local_values.push($(this).val());
1748 all_checked = false;
1751 var authid = $(this).attr('data-authid');
1752 if(all_checked && authid) {
1753 values.push('an:' + authid);
1755 values = values.concat(local_values);
1758 if(values.length > 0) {
1759 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1760 $("#validSubjectSearch").attr('href', request);
1762 $("#validSubjectSearch").removeAttr("href");
1765 $(document).ready(function() {
1766 $("a.showauthors").click(function(){
1774 [% END # / IF OPACPopupAuthorsSearch %]