3 [% USE AuthorisedValues %]
4 [% SET TagsShowEnabled = ( ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsShowOnDetail ) %]
5 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'TagsEnabled' ) == 1 ) && TagsInputOnDetail ) %]
7 [% ShowCourseReservesHeader = 0 %]
8 [% IF Koha.Preference( 'UseCourseReserves' ) == 1 %]
9 [% FOREACH ITEM_RESULT IN itemloop %]
10 [% IF ITEM_RESULT.course_reserves %]
11 [% FOREACH r IN ITEM_RESULT.course_reserves %]
12 [% IF r.course.enabled == 'yes' %]
13 [% ShowCourseReservesHeader = 1 %]
20 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]
21 [% INCLUDE 'doc-head-close.inc' %]
23 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />[% END %]
25 [% IF ( OpacStarRatings != 'disable' ) %]
26 [% BLOCK cssinclude %]<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/jquery.rating.css" />[% END %]
29 <body id="opac-detail" class="scrollto">
30 [% INCLUDE 'masthead.inc' %]
33 <ul class="breadcrumb">
34 <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li>
35 <li><a href="#">Details for: [% title |html %][% FOREACH subtitl IN subtitle %], [% subtitl.subfield |html %][% END %]</a></li>
38 <div class="container-fluid">
39 <div class="row-fluid">
41 <div id="catalogue_detail_biblio" class="maincontent">
44 [% IF ( OPACLocalCoverImages ) %]
45 <div title="[% biblionumber |url %]" class="[% biblionumber %]" id="local-thumbnail-preview"></div>
47 [% IF ( OPACAmazonCoverImages ) %]
48 [% IF ( OPACurlOpenInNewWindow ) %]
49 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link" target="_blank"><img src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
51 <a href="http://www.amazon[% AmazonTld %]/gp/reader/[% normalized_isbn %]/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img src="http://images.amazon.com/images/P/[% normalized_isbn %].01.MZZZZZZZ.jpg" alt="Cover image" /></a>
55 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
56 [% IF ( content_identifier_exists ) %]
57 [% IF ( using_https ) %]
58 <img src="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% normalized_upc %]&oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
60 <img src="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/[% SyndeticsCoverImageSize %].GIF&client=[% SyndeticsClientCode %]&type=xw10&upc=[% normalized_upc %]&oclc=[% normalized_oclc %]" alt="" class="thumbnail" />
64 <span class="no-image">No cover image available</span>
68 [% IF ( GoogleJackets ) %]
69 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="gbs-thumbnail-preview"></div>
71 [% IF OpenLibraryCovers %]
72 <div title="[% biblionumber |url %]" class="[% normalized_isbn %]" id="openlibrary-thumbnail-preview"></div>
74 [% IF ( BakerTaylorEnabled && normalized_isbn ) %]
75 [% IF ( OPACurlOpenInNewWindow ) %]
76 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]" target="_blank"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
78 <a href="https://[% BakerTaylorBookstoreURL |html %][% normalized_isbn %]"><img alt="See Baker & Taylor" src="[% BakerTaylorImageURL |html %][% normalized_isbn %]" /></a>
81 </div><!-- / #bookcover -->
83 <abbr class="unapi-id" title="koha:biblionumber:[% biblionumber %]"><!-- unAPI --></abbr>
84 [% IF ( ocoins ) # COinS / Openurl %]
85 <span class="Z3988" title="[% ocoins %]"></span>
89 <span class="view"><span id="Normalview">Normal view</span></span>
90 <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% biblionumber %]">MARC view</a></span>
91 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
93 [% IF ( OPACXSLTDetailsDisplay ) %]
96 <h1 class="title">[% title |html %][% IF ( subtitle ) %] <span class="subtitle">[% FOREACH subtitl IN subtitle %][% subtitl.subfield |html %] [% END %]</span>[% END %]</h1>
97 [% IF ( author ) %]<h5 class="author">by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% author |url %]">[% author |html %]</a></h5>[% END %]
99 <span class="results_summary">[% UNLESS ( item_level_itypes ) %]
101 [% IF ( description ) %]
107 [% IF ( unititle ) %], [% unititle %][% END %]
110 [% IF ( MARCAUTHORS ) %]
111 <div class="results_summary">
112 <span class="label">Additional authors:</span>
113 [% IF OPACPopupAuthorsSearch %]
114 <!-- Author search term selection modal -->
115 <div id="authorSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="authorSearchLabel" aria-hidden="true">
116 <div class="modal-header">
117 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
118 <h3 id="authorSearchLabel">Select the item(s) to search</h3>
120 <div class="modal-body">
121 <input type="checkbox" onchange="checkAll(this, '#authorsList')" /> <b>All</b>
122 <ul id="authorsList">
123 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
125 [% IF (MARCAUTHOR.authoritylink) %]
126 <input type="checkbox" name="checkbox"
127 id="author_[% loop.count %]"
128 onclick="makeAuthorRequest()"
129 value="an:[% MARCAUTHOR.authoritylink %]" />
131 <input type="checkbox" name="checkbox"
132 id="author_[% loop.count %]"
133 onclick="makeAuthorRequest()"
134 value="au,wrdl:[% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %][% SUBFIELD.value |url %][% UNLESS (loop.last) %]+[% END %][% END %]" />
136 <label for="author_[% loop.count %]">
137 [% FOREACH SUBFIELD IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
142 [% END # /FOREACH MARCAUTHORS %]
145 <div class="modal-footer">
146 <a href="#" class="btn btn-primary">Search</a>
147 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
150 [% END # /OPACPopupAuthorsSearch %]
152 [% FOREACH MARCAUTHOR IN MARCAUTHORS %]
153 [% authorsloop = loop %]
154 [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
155 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
156 <a role="button" data-toggle="modal" title="‡[% MARCAUTHOR_SUBFIELDS_LOO.code %] [% MARCAUTHOR_SUBFIELDS_LOO.value %]"
157 class="showauthors" data-count="[% authorsloop.count %]"
158 href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN MARCAUTHOR_SUBFIELDS_LOO.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#authorSearch">[% MARCAUTHOR_SUBFIELDS_LOO.value %]</a>
160 [% IF (MARCAUTHOR.authoritylink) %]
161 <a class='authlink' href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCAUTHOR.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png"></a>
163 [% UNLESS ( loop.last ) %]|[% END %]
164 [% END # /FOREACH MARCAUTHORS %]
166 [% END # IF MARCAUTHORS %]
168 [% IF ( MARCSERIES ) %]
169 <span class="results_summary series"><span class="label">Series:</span>
170 [% FOREACH MARCSERIE IN MARCSERIES %]
171 [% FOREACH MARCSERIES_SUBFIELDS_LOO IN MARCSERIE.MARCSERIES_SUBFIELDS_LOOP %]
172 [% IF ( MARCSERIES_SUBFIELDS_LOO.value ) %]
173 <a href="/cgi-bin/koha/opac-search.pl?q=se:[% MARCSERIES_SUBFIELDS_LOO.value |url %]">[% MARCSERIES_SUBFIELDS_LOO.value %]</a>
175 [% IF ( MARCSERIES_SUBFIELDS_LOO.volumenum ) %]
176 . [% MARCSERIES_SUBFIELDS_LOO.volumenum %]
179 [% UNLESS ( loop.last ) %]|[% END %]
180 [% END # / FOREACH MARCSERIES %]
182 [% END # /MARCSERIES %]
184 [% IF ( editionstatement ) %]
185 <span class="results_summary edition"><span class="label">Edition statement:</span>[% editionstatement %][% IF ( editionresponsibility ) %]/[% editionresponsibility %][% END %]</span>
187 [% IF ( publishercode ) %]
188 <span class="results_summary publisher"><span class="label">Published by :</span>
189 <a href="/cgi-bin/koha/opac-search.pl?q=pb:[% publishercode |url %] ">
190 [% publishercode |html %]
191 </a> [% IF ( place ) %]([% place %])[% END %] [% IF ( publicationyear ) %], [% publicationyear %][% END %]
196 <span class="results_summary physical"><span class="label">Physical details:</span> [% pages %] [% illus %] [% size %]</span>
199 [% IF ( MARCISBNS ) %]
200 <span class="results_summary isbn"><span class="label">ISBN:</span>[% FOREACH MARCISBN IN MARCISBNS %][% MARCISBN.marcisbn %][% IF ( loop.last ) %].[% ELSE %]; [% END %][% END %]</span>
202 [% IF ( normalized_isbn ) %]
203 <span class="results_summary isbn"><span class="label">ISBN: </span>[% normalized_isbn %]</span>
208 <span class="results_summary issn"><span class="label">ISSN:</span>[% issn %]</span>
211 [% IF ( collectiontitle ) %]
212 <span class="results_summary collection"><span class="label">Collection: </span>
213 [% collectiontitle %]
214 [% IF ( collectionissn ) %], ISSN [% collectionissn %] [% END %]
215 [% IF ( collectionvolume ) %]; [% collectionvolume %] [% END %]
220 [% IF ( unititles ) %]
221 <span class="results_summary unititle"><span class="label">Uniform titles:</span>
222 [% FOREACH unititle IN unititles %]
223 [% unititle.unititle %] ;
228 [% IF ( MARCSUBJCTS ) %]
229 <div class="results_summary subject">
230 <span class="label">Subject(s):</span>
232 [% IF OPACPopupAuthorsSearch %]
233 <!-- Search term selection modal -->
234 <div id="subjectSearch" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="subjectSearchLabel" aria-hidden="true">
235 <div class="modal-header">
236 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
237 <h3 id="subjectSearchLabel">Select the term(s) to search</h3>
239 <div id="subjectsList" class="modal-body">
240 <input type="checkbox" id="all_subjects" onchange="checkAll(this, '#subjectsList')" />
241 <label for="all_subjects">
244 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
245 [% subjectsloop = loop %]
246 [% IF MARCSUBJCT.authoritylink %]
247 <ul id="subjectsList[% loop.count %]" data-authid="[% MARCSUBJCT.authoritylink %]">
249 <ul id="subjectsList[% loop.count %]">
251 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
253 <input type="checkbox" onclick="makeSubjectRequest()" name="checkbox" id="subject_[% subjectsloop.count %]_[% loop.count %]" value="su,wrdl:[% SUBFIELD.value |url %]" />
254 <label for="subject_[% subjectsloop.count %]_[% loop.count %]">
262 <div class="modal-footer">
263 <a href="#" id="validSubjectSearch" class="btn btn-primary">Search</a>
264 <a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a>
267 [% END # /OPACPopupAuthorsSearch%]
269 [% FOREACH MARCSUBJCT IN MARCSUBJCTS %]
270 [% subjectsloop = loop %]
271 [% FOREACH SUBFIELD IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
272 [% SUBFIELD.separator %]
273 <a role="button" data-toggle="modal" title="$[% SUBFIELD.code %] [% SUBFIELD.value %]" href="/cgi-bin/koha/opac-search.pl?q=[% FOREACH link_loo IN SUBFIELD.link_loop %][% link_loo.operator |url %][% link_loo.limit |url %]:[% link_loo.link |url %][% END %]#subjectSearch" onclick="showSubjects(this, [% subjectsloop.count %], [% loop.count %]); return false;">[% SUBFIELD.value %]</a>
275 [% IF (MARCSUBJCT.authoritylink) %]
276 <a class="authlink" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% MARCSUBJCT.authoritylink %]"><img style="vertical-align:middle" height="15" width="15" src="[% interface %]/[% theme %]/images/filefind.png" /></a>
278 [% UNLESS ( loop.last ) %] | [% END %]
279 [% END # / FOREACH MARCSUBJCTS %]
281 [% ELSE # /IF MARCSUBJCTS %]
282 [% IF ( subjects ) %]<span class="results_summary"><span class="label">Subject(s):</span> [% FOREACH subject IN subjects %]<a href="/cgi-bin/koha/opac-search.pl?q=su:[% subject.subject |url %]">[% subject.subject %]</a> | [% END %]</span>[% END %]
285 [% IF ( copyrightdate ) %]
286 <span class="results_summary year"><span class="label">Year: </span>[% copyrightdate %]</span>
289 [% UNLESS ( item_level_itypes ) %]
291 <img src="[% imageurl %]" alt="" />
293 <span class="results_summary itemtype"><span class="label">Item type: </span>
294 [% IF ( description ) %]
302 [% IF ( MARCURLS ) %]
303 <div class="results_summary online_resources"><span class="label">Online resources:</span>
305 [% FOREACH MARCurl IN MARCURLS %]
306 <li>[% IF ( MARCurl.part ) %][% MARCurl.part %]<br />[% END %]
308 [% IF ( OPACurlOpenInNewWindow ) %]
309 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
310 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]" target="_blank">
312 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank">
315 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
316 <a href="/cgi-bin/koha/tracklinks.pl?uri=[% MARCurl.MARCURL |url%]&biblionumber=[% biblionumber | url %]" title="[% MARCurl.MARCURL %]">
318 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">
322 [% MARCurl.linktext %]</a>
323 [% IF ( MARCurl.notes ) %]
325 [% FOREACH note IN MARCurl.notes %]
326 <li>[% note.note %]</li>
331 [% END # /FOREACH MARCURLS %]
334 [% END # / IF MARCURLS %]
335 [% END # / IF OPACXSLTDetailsDisplay %]
337 [% IF ( AuthorisedValueImages && authorised_value_images ) %]
338 <div class="authorised_value_images">
339 [% FOREACH authorised_value_image IN authorised_value_images %]
340 <img src="[% authorised_value_image.imageurl %]" alt="[% authorised_value_image.label %]" title="[% authorised_value_image.label %]" />
343 [% END # / AuthorisedValueImages && authorised_value_images %]
345 <!-- This puts the LTFL reviews in, and if TabbedView is not set, puts the remaining content above the Tabs instead of in them -->
346 [% IF ( LibraryThingForLibrariesID ) %]
347 [% UNLESS ( LibraryThingForLibrariesTabbedView ) %]
348 <div class="results_summary"><div id="ltfl_related" class="ltfl"></div></div>
349 <div class="results_summary"><div id="ltfl_similars" class="ltfl"></div></div>
350 <div class="results_summary"><div id="ltfl_tagbrowse" class="ltfl"></div></div>
352 <span class="results_summary">
353 <span class="label">Reviews from LibraryThing.com:</span>
354 <span style="display: block;" class="ltfl_reviews"></span>
356 [% END # / LibraryThingForLibrariesID %]
358 <!--This grabs all of the lists a bib record appears in -->
359 [% IF ( GetShelves ) %]
360 <span class="results_summary lists"><span class="label">List(s) this item appears in: </span>
361 [% FOREACH GetShelve IN GetShelves %]
362 <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% GetShelve.shelfnumber %]">[% GetShelve.shelfname %]</a>
363 [% IF ( loop.last ) %][% ELSE %]|[% END %]
366 [% END # / GetShelves %]
368 [% IF ( TagsShowEnabled ) %]
369 <div class="results_summary tags">
371 <span class="label">Tags from this library:</span>
373 [% FOREACH TagLoo IN TagLoop %]
374 <li><a href="/cgi-bin/koha/opac-search.pl?tag=[% TagLoo.term |url %]&q=[% TagLoo.term |url %]">[% TagLoo.term |html %]</a> <span class="weight">([% TagLoo.weight_total %])</span>
375 [% IF ( loop.last ) %][% ELSE %], [% END %]
380 <span class="label">Tags from this library:</span> <span class="notags">No tags from this library for this title.</span>
382 [% IF ( TagsInputEnabled ) %] <a class="tag_add" id="tag_add[% biblionumber %]" href="#">Add tag(s)</a> [% END %]
384 [% END # /IF TagsShowEnabled %]
386 [% IF ( TagsInputEnabled ) %]
387 <div class="results_summary tagsinput">
388 [% IF ( loggedinusername ) %]
389 <form id="tagform[% biblionumber %]" method="post" action="/cgi-bin/koha/opac-tags.pl" style="display:none;">
390 <label for="newtag[% biblionumber %]">New tag(s), separated by a comma:</label>
391 <input name="newtag[% biblionumber %]" id="newtag[% biblionumber %]" maxlength="100" type="text"/>
392 <input name="tagbutton" class="btn btn-small tagbutton" title="[% biblionumber %]" type="submit" value="Add" />
393 <a class="cancel_tag_add" id="cancel[% biblionumber %]" href="#">(done)</a>
395 <span id="newtag[% biblionumber %]_status" class="tagstatus" style="display:none;">
399 <span id="login4tags">Log in to add tags.</span>
402 [% END # / IF TagsInputEnabled %]
404 [% IF ( SyndeticsEnabled ) %]
405 [% IF ( SyndeticsSeries && SyndeticsSERIES1Exists ) %]
406 <span class="results_summary">
407 <span class="label">Series information:</span>
408 [% IF ( using_https ) %]
409 <a target="_blank" href="https://secure.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&type=series&num=1&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
411 <a target="_blank" href="http://www.syndetics.com/ffseries.aspx?isbn=[% normalized_isbn %]&type=series&num=1&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
414 [% END # / IF SyndeticsSeries && SyndeticsSERIES1Exists%]
415 [% IF ( SyndeticsAVPROFILEExists ) %]
416 <span class="results_summary">
417 <span class="label">Audiovisual profile:</span>
418 [% IF ( using_https ) %]
419 <a target="_blank" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
421 <a target="_blank" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/avprofile.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
424 [% END # / IF SyndeticsAVPROFILEExists %]
426 [% IF ( SyndeticsFICTIONExists ) %]
427 <span class="results_summary">
428 <span class="label">Fiction notes:</span>
429 [% IF ( using_https ) %]
430 <a target="_blank" href="https://secure.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
432 <a target="_blank" href="http://www.syndetics.com/index.aspx?isbn=[% normalized_isbn %]/fiction.html&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]&type=xw10">Click to open in new window</a>
435 [% END # / IF SyndeticsFICTIONExists %]
437 [% IF ( SyndeticsAwards && SyndeticsAWARDS1Exists ) %]
438 <span class="results_summary">
439 <span class="label">Awards:</span>
440 [% IF ( using_https ) %]
441 <a target="_blank" href="https://secure.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&type=awards&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
443 <a target="_blank" href="http://www.syndetics.com/ffawards.aspx?isbn=[% normalized_isbn %]&type=awards&client=[% SyndeticsClientCode %][% IF ( normalized_upc ) %]&upc=[% normalized_upc %][% END %][% IF ( normalized_oclc ) %]&oclc=[% normalized_oclc %][% END %]">Click to open in new window</a>
446 [% END # / IF SyndeticsAwards && SyndeticsAWARDS1Exists %]
447 [% END # / IF SyndeticsEnabled%]
449 [% IF ( OpacStarRatings != 'disable' ) %]
450 <form method="post" action="/cgi-bin/koha/opac-ratings.pl">
451 <div class="results_summary ratings">
453 [% FOREACH i IN [ 1 2 3 4 5 ] %]
454 [% IF rating_avg == i && borrowernumber %]
455 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" />
456 [% ELSIF rating_avg == i %]
457 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" checked="checked" disabled="disabled" />
458 [% ELSIF borrowernumber %]
459 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" />
461 <input class="auto-submit-star" type="radio" name="rating" value="[% i %]" disabled="disabled" />
465 <!-- define some hidden vars for ratings -->
467 <input type="hidden" name='biblionumber' value="[% biblionumber %]" />
468 <input type="hidden" name='borrowernumber' value="[% borrowernumber %]" />
469 <input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
470 <input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
471 <input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
473 [% UNLESS ( rating_readonly ) %] <input name="rate_button" type="submit" value="Rate me" />[% END %]
475 [% IF ( rating_value ) %]
476 <span id="rating_value_text">your rating: [% rating_value %], </span>
478 <span id="rating_value_text"></span>
481 <span id="rating_text">average rating: [% rating_avg_int %] ([% rating_total %] votes)</span>
484 [% END # / IF OpacStarRatings != 'disable' %]
486 [% IF ( BakerTaylorContentURL ) %]
487 <span class="results_summary">
488 <span class="label">Enhanced content: </span>
489 [% IF ( OPACurlOpenInNewWindow ) %]<a href="[% BakerTaylorContentURL |html %]" target="_blank">Content Cafe</a>[% ELSE %]<a href="[% BakerTaylorContentURL |html %]">Content Cafe</a>[% END %]
491 [% END # / IF BakerTaylorContentURL %]
493 [% IF ( NovelistSelectProfile ) %]
494 [% IF ( NovelistSelectView == 'above') %]
495 <span class="results_summary">
496 <span class="label">Novelist Select: </span>
497 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
500 [% END # / IF NovelistSelectProfile %]
502 [% IF ( Babeltheque ) %]
503 <input type="hidden" name="BW_id_isbn" id="BW_id_isbn" value="[% normalized_isbn %]"/>
504 <div id="BW_notes"></div>
505 <div id="BW_critiques"></div>
506 <div id="BW_critiques_pro"></div>
507 <div id="BW_citations"></div>
508 [% END # / IF Babeltheque%]
510 </div> <!-- / #catalogue_detail_biblio -->
512 <div id="bibliodescriptions" class="toptabs">
515 [% IF ( defaulttab == 'holdings' ) %]
516 <li id="tab_holdings" class="ui-tabs-selected">
518 <li id="tab_holdings">
520 <a href="#holdings">[% IF SeparateHoldings %][% LoginBranchname %] holdings[% ELSE %]Holdings[% END %] ( [% itemloop.size || 0 %] )</a>
522 [% IF (SeparateHoldings) %]
523 <li><a href="#otherholdings">Other holdings ( [% otheritemloop.size || 0 %] )</a></li>
525 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
526 <li id="tab_descriptions"> <a href="#descriptions">Title notes</a></li>
528 [% IF ( SYNDETICS_TOC ) %]
529 <li id="tab_toc"> <a href="#toc">TOC</a></li>
531 [% IF ( SyndeticsEnabled ) %]
532 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
533 <li id="tab_excerpt"> <a href="#excerpt">Excerpt</a></li>
535 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
536 <li id="tab_reviews"> <a href="#reviews">Reviews</a></li>
537 <li id="tab_LTFLreviews">
538 [% IF ( using_https ) %]
539 <script src="https://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
540 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="https://www.librarything.com/forlibraries/noscript.php?id=99-274208589&accessibility=1">here</a>.</noscript>
542 <script src="http://www.librarything.com/forlibraries/widget.js?id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
543 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking <a href="http://www.librarything.com/forlibraries/noscript.php?id=99-274208589&accessibility=1">here</a>.</noscript>
547 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
548 <li id="tab_anotes"> <a href="#anotes">About the author</a></li>
550 [% END # / IF SyndeticsEnabled %]
552 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
553 <li id="tab_LFTLSimilarItems"> <a href="#LFTLSimilarItems">Similar items</a></li>
554 <li id="tab_LTFLTagBrowse"> <a href="#LTFLTagBrowse">Tag browser</a></li>
557 [% IF ( subscriptionsnumber ) %]
558 [% IF ( defaulttab == 'subscriptions' ) %]<li id="tab_subscriptions" class="ui-tabs-selected">[% ELSE %]<li id="tab_subscriptions">[% END %]
559 <a href="#subscriptions">Subscriptions</a>
563 [% IF Koha.Preference( 'reviewson' ) == 1 %]
564 <li id="tab_comments"><a href="#comments">Comments ( [% reviews.size || 0 %] )</a></li>
567 [% IF ( NovelistSelectProfile ) %]
568 [% IF ( NovelistSelectView == 'tab') %]
569 <li id="tab_NovelistSelect"> <a href="#NovelistSelect">Novelist Select</a></li>
573 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
574 <li id="tab_editions"><a href="#editions">Editions</a></li>
577 [% IF ( serialcollection ) %]
578 [% IF ( defaulttab == 'serialcollection' ) %]<li id="tab_serialcollection" class="ui-tabs-selected">[% ELSE %]<li id="tab_serialcollection">[% END %]
579 <a href="#serialcollection">Serial collection</a>
583 [% IF ( OPACLocalCoverImages && localimages.size ) %]
584 <li id="tab_images"><a href="#images">Images</a></li>
587 [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %]
588 <li id="tab_html5media"><a href="#html5media">Play media</a></li>
591 [% IF ( IDreamBooksReviews ) %]
592 <li id='tab_idb_critic_reviews' style="display:none;"><a href='#idb_critic_reviews'>Book reviews by critics ( XXX )</a></li>
596 [% IF ( serialcollection ) %]
597 <div id="serialcollection">
598 <table id="serialcollectiont" class="table table-bordered table-striped">
601 <th id="serial_library">Library</th>
602 <th id="serial_collection">Serial collection</th>
603 <th id="serial_itemcallnumber">Item callnumber</th>
607 [% FOREACH serialcollection IN serialcollections %]
609 <td>[% serialcollection.branch %]</td>
610 <td>[% serialcollection.text %]</td>
611 <td>[% serialcollection.itemcallnumber %]</td>
617 [% END # / IF serialcollection %]
621 [% IF ( itemloop.size ) %]
622 [% IF ( lotsofitems ) %]
623 <p>This record has many physical items. <a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]&viewallitems=1#holdings">Click here to view them all.</a></p>
625 [% INCLUDE items_table items=itemloop tab="holdings" %]
627 [% IF holds_count.defined || priority %]
629 [% IF holds_count.defined %]
630 Total holds: [% holds_count %]
633 [% IF holds_count.defined %]
634 (priority [% priority %])
636 Overall queue priority: [% priority %]
642 [% IF ( ALTERNATEHOLDINGS ) %]
643 [% FOREACH ALTERNATEHOLDING IN ALTERNATEHOLDINGS %]
644 <div id="alternateholdings"><span class="holdings_label">Holdings:</span> [% ALTERNATEHOLDING.holding %]</div>
647 <div id="noitems">No physical items for this record</div>
649 [% END # IF itemloop.size %]
650 [% PROCESS 'shelfbrowser.inc' %]
651 [% INCLUDE shelfbrowser tab='holdings' %]
652 <br style="clear:both;" />
653 </div> <!-- / #holdings -->
655 [% IF (SeparateHoldings) %]
656 <div id="otherholdings">
657 [% IF (otheritemloop.size) %]
658 [% INCLUDE items_table items=otheritemloop tab="otherholdings" %]
662 [% INCLUDE shelfbrowser tab='otherholdings' %]
664 [% END # / SeparateHoldings %]
666 [% IF ( MARCNOTES || notes || ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY )) %]
667 <div id="descriptions">
668 <div class="content_set">
670 [% IF ( SyndeticsEnabled && SyndeticsSummary && SYNDETICS_SUMMARY ) %]
671 <h4>Enhanced descriptions from Syndetics:</h4>
672 <p>[% SYNDETICS_SUMMARY %]</p>
675 [% IF ( MARCNOTES ) %]
677 [% FOREACH MARCNOTE IN MARCNOTES %]
678 <p>[% MARCNOTE.marcnote FILTER html_line_break %]</p>
688 </div> <!-- / #descriptions -->
689 [% END # / IF MARCNOTES || notes %]
691 [% IF ( SyndeticsEnabled ) %]
692 [% IF ( SyndeticsTOC && SYNDETICS_TOC ) %]
694 <div class="content_set">
695 <h3>Table of contents provided by Syndetics</h3>
697 [% FOREACH SYNDETICS_TO IN SYNDETICS_TOC %]
698 [% IF ( SYNDETICS_TO.p ) %]
699 <li><b>[% SYNDETICS_TO.l %] [% SYNDETICS_TO.t %]</b>[% IF ( SYNDETICS_TO.p ) %] ([% SYNDETICS_TO.p %])[% END %]</li>
705 [% END # / IF SyndeticsTOC && SYNDETICS_TOC %]
707 [% IF ( SyndeticsExcerpt && SYNDETICS_EXCERPT ) %]
709 <div class="content_set">
710 <h3>Excerpt provided by Syndetics</h3>
711 [% SYNDETICS_EXCERPT %]
714 [% END # / IF SyndeticsExcerpt && SYNDETICS_EXCERPT %]
716 [% IF ( SyndeticsReviews && SYNDETICS_REVIEWS ) %]
718 <div class="content_set">
719 <h3>Reviews provided by Syndetics</h3>
720 [% FOREACH SYNDETICS_REVIEW IN SYNDETICS_REVIEWS %]
721 [% IF ( SYNDETICS_REVIEW.title ) %]
722 <h4>[% SYNDETICS_REVIEW.title %]</h4>
723 [% FOREACH review IN SYNDETICS_REVIEW.reviews %]
725 [% IF ( review.content ) %]
734 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
736 [% IF ( SyndeticsAuthorNotes && SYNDETICS_ANOTES ) %]
738 <div class="content_set">
739 <h3>Author notes provided by Syndetics</h3>
740 [% FOREACH SYNDETICS_ANOTE IN SYNDETICS_ANOTES %]
741 [% IF ( SYNDETICS_ANOTE.content ) %]
742 [% SYNDETICS_ANOTE.content %]
747 [% END # / IF SyndeticsReviews && SYNDETICS_REVIEWS %]
748 [% END # / IF SyndeticsEnabled %]
750 [% IF ( NovelistSelectProfile && NovelistSelectView == 'tab') %]
751 <div id="NovelistSelect">
752 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
754 [% END # / IF NovelistSelectProfile && NovelistSelectView == 'tab' %]
756 [% IF ( subscriptionsnumber ) %]
757 <div id="subscriptions">
758 <h2>This is a serial</h2>
759 <p>There are [% subscriptionsnumber %] subscription(s) associated with this title.</p>
760 [% FOREACH subscription IN subscriptions %]
761 [% IF ( subscription.branchname ) %]
762 <h3>At library: [% subscription.branchname %]</h3>
764 [% IF ( subscription.branchcode ) %]
765 <h3>At library: [% subscription.branchcode %]</h3>
768 [% IF ( subscription.closed ) %]
769 <p>This subscription is closed.</p>
771 <span style="display:none;"> [% IF ( subscription.callnumber ) %]<p>Callnumber: [% subscription.callnumber %]</p>[% END %]</span>
772 [% IF ( subscription.subscriptionnotes ) %]
773 <p>[% subscription.subscriptionnotes FILTER html_line_break %] </p>
775 <p>Subscription from: [% subscription.histstartdate | $KohaDates %] to:[% IF ( subscription.histenddate ) %] [% subscription.histenddate | $KohaDates %] [% ELSE %] now (current)[% END %]</p>
776 [% IF ( subscription.missinglist ) %]
777 <p>Missing issues: [% subscription.missinglist %] </p>
779 [% IF ( subscription.opacnote ) %]
780 <p>[% subscription.opacnote FILTER html_line_break %]</p>
782 [% IF ( subscription.latestserials ) %]
783 <p> The [% subscription.opacdisplaycount %] latest issues for this subscription:</p>
784 <table class="table table-bordered table-striped">
791 [% FOREACH latestserial IN subscription.latestserials %]
793 <td>[% latestserial.serialseq %]</td>
794 <td>[% latestserial.planneddate %]</td>
796 [% IF ( latestserial.status1 ) %]
799 [% IF ( latestserial.status2 ) %]
802 [% IF ( latestserial.status3 ) %]
805 [% IF ( latestserial.status4 ) %]
808 [% IF ( latestserial.status5 ) %]
816 <td>[% latestserial.notes %]</td>
818 [% END # / FOREACH latestserials %]
820 [% END # / IF subscription.latestserials %]
821 [% END # / FOREACH subscriptions %]
822 <p><a href="opac-serial-issues.pl?biblionumber=[% biblionumber %]">More details</a></p>
823 </div> <!-- / #subscriptions -->
824 [% END # IF subscriptionsnumber %]
826 [% IF ( LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView ) %]
827 <!-- Library Thing for Libraries Content -->
828 <div id="LFTLSimilarItems">
829 <div class="content_set">
830 <!-- Uncommenting this span makes the font smaller in the tab for LTFL -->
831 <!-- but breaks Xhtml validation -->
832 <!-- <span class="results_summary">-->
833 <div id="ltfl_related"></div>
834 <div id="ltfl_similars"></div>
838 <div id="LTFLTagBrowse">
839 <div class="content_set">
840 <!-- <span class="results_summary"> -->
841 <div id="ltfl_tagbrowse" class="ltfl"></div>
845 [% END # / IF LibraryThingForLibrariesID && LibraryThingForLibrariesTabbedView %]
847 [% IF Koha.Preference( 'reviewson' ) == 1 %]
849 <div id="newcomment"></div>
851 [% FOREACH review IN reviews %]
852 [% IF ( review.your_comment ) %]
853 <div class="commentline yours" id="c[% review.reviewid %]">
854 [% IF ( review.avatarurl ) %]
855 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
857 <h5>Your comment</h5>
858 <small>[% review.datereviewed | $KohaDates %]</small>
860 [% FILTER html_break %]
861 [% review.review |html %]
863 <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]');">Edit</a>
867 <div class="commentline">
868 [% IF ( ShowReviewer != "none" ) %]
869 [% IF ( review.avatarurl ) %]
870 <img class="avatar" src="[% review.avatarurl %]" height="80" width="80" alt="" />
872 [% SWITCH ShowReviewer %]
874 <h5>Comment by [% review.title %] [% review.firstname %] [% review.surname %]</h5>
876 <h5>Comment by [% review.firstname %]</h5>
878 <h5>Comment by [% review.surname %]</h5>
879 [% CASE 'firstandinitial' %]
880 <h5>Comment by [% review.firstname %] [% review.surname|truncate(2,'.') %]</h5>
881 [% CASE 'username' %]
882 <h5>Comment by [% review.userid %]</h5>
884 <small>[% review.datereviewed | $KohaDates %]</small>
885 [% ELSIF ( ShowReviewer == "none") %]
886 <h5>Patron comment on [% review.datereviewed | $KohaDates %]</h5>
887 [% END # / IF ShowReviewer != "none"%]
889 [% FILTER html_break %]
890 [% review.review |html %]
893 </div> <!-- / .commentline -->
894 [% END # / IF review.your_comment %]
895 [% END # / FOREACH reviews %]
897 <p>There are no comments for this item.</p>
898 [% END # / IF reviews %]
900 [% IF ( loggedinusername ) %]
901 [% UNLESS ( loggedincommenter ) %]
902 <div id="addcomment"> <a href="#" onclick="Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=[% biblionumber %]'); return false;">
903 Post or edit your comments on this item.
907 <div id="addcomment"><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to post a comment.</div>
908 [% END # / IF loggedinusername %]
909 </div> <!-- / #comments -->
910 [% END # / IF reviewson %]
912 [% IF ( OPACFRBRizeEditions && XISBNS ) %]
914 <h4>Other editions of this work</h4>
915 <table class="table table-bordered table-striped">
916 [% FOREACH XISBN IN XISBNS %]
919 [% IF ( OPACAmazonCoverImages ) %]
920 <img src="http://images.amazon.com/images/P/[% XISBN.normalized_isbn %].01._AA75_PU_PU-5_.jpg" alt="" />
923 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
924 [% IF ( XISBN.content_identifier_exists ) %]
925 [% IF ( using_https ) %]
926 <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="" />
928 <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="" />
931 <span class="no-image">No cover image available</span>
932 [% END # / IF XISBN.content_identifier_exists %]
933 [% END # / IF SyndeticsEnabled && SyndeticsCoverImages %]
936 [% UNLESS ( item_level_itypes ) %]
937 <td>[% XISBN.description %]</td>
939 <td><a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% XISBN.biblionumber %]">[% XISBN.title |html %]</a>
940 [% IF ( XISBN.author ) %] by [% XISBN.author |html %][% END %]
941 [% IF ( XISBN.copyrightdate ) %] ©[% XISBN.copyrightdate %][% END %]
942 [% IF ( XISBN.publishercode ) %]
943 <p>[% XISBN.publishercode |html %]
944 [% IF ( XISBN.place ) %]([% XISBN.place %])[% END %]
945 [% IF ( XISBN.publicationyear ) %], [% XISBN.publicationyear %][% END %]
946 [% IF ( XISBN.pages ) %][% XISBN.pages %] [% XISBN.illus %] [% XISBN.size %][% END %]
951 [% END # / FOREACH XISBNS %]
953 </div> <!-- / #editions -->
954 [% END # / IF OPACFRBRizeEditions && XISBNS %]
956 [% IF ( HTML5MediaEnabled ) %]
957 <div id="html5media">
959 <[% HTML5MediaParent %] controls preload=none>
960 [% FOREACH HTML5MediaSet IN HTML5MediaSets %]
961 <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] />
963 [[% HTML5MediaParent %] tag not supported by your browser.]
964 </[% HTML5MediaParent %]>
967 [% END # / IF HTML5MediaEnabled %]
969 [% IF ( OPACLocalCoverImages && localimages.size ) %]
971 <p>Click on an image to view it in the image viewer</p>
972 [% FOREACH image IN localimages %]
974 <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>
977 </div><!-- / #images -->
978 [% END # / IF OPACLocalCoverImages && localimages.size %]
980 [% IF ( IDreamBooksReviews ) %]
981 <div id="idb_critic_reviews">
982 <div id="idb_review_snippets"></div>
983 <span><a id="seemoreidb">More book reviews at iDreamBooks.com</a></span>
986 </div> <!-- / #bibliodescriptions -->
988 [% IF ( NovelistSelectProfile && NovelistSelectView == 'below' ) %]
989 <div id="NovelistSelect">
990 <h3>Novelist Select</h3>
991 <div data-novelist-novelistselect="[% normalized_isbn %]"></div>
995 [% IF ( Babeltheque ) %]
997 <div id="BW_etiquettes"></div>
998 <div id="BW_suggestions"></div>
1000 <div class="clearfix"></div>
1002 <div id="BW_podcasts"></div>
1004 <div class="clearfix"></div>
1006 <div id="BW_videos"></div>
1008 [% END # / IF Babeltheque %]
1009 </div> <!-- /.span8 -->
1012 <div id="ulactioncontainer">
1014 [% IF ( OpacBrowseResults && busc ) %]
1015 <div class="nav_results">
1016 <div class="l_Results">
1017 [% IF ( listResults ) %]
1018 <a href="#" id="a_listResults" title="Show pagination list ([% indexPag %]-[% indexPagEnd %] / [% totalPag %])">Browse results</a>
1020 <span>Browse results</span>
1023 <ul class="pg_menu clearfix">
1024 <li class="left_results">
1025 [% IF ( previous ) %]<a href="[% previous |url %]" title="See: [% IF ( previousTitle ) %][% previousTitle |html %][% ELSE %]previous biblio[% END %]">« Previous</a>
1027 <span>Previous</span>
1030 <li class="back_results"><a href="opac-search.pl?[% busc |url %]" title="Back to the results search list">Back to results</a></li>
1031 <li class="right_results">
1032 [% IF ( next ) %]<a href="[% next %]" title="See: [% IF ( nextTitle ) %][% nextTitle |html %][% ELSE %]next biblio[% END %]">Next »</a>
1038 [% IF ( listResults ) %]
1039 <div class="results-pagination">
1040 <div class="nav_pages">
1041 <span class="close_pagination"><a href="#" id="close_pagination">Close</a></span>
1042 <ul id="listResults"></ul>
1044 <div class="pagination_list">
1045 <ul id="ul_pagination_list"></ul>
1050 [% END # / IF OpacBrowseResults && busc %]
1052 [% INCLUDE 'opac-detail-sidebar.inc' %]
1054 [% IF ( NovelistSelectProfile && NovelistSelectView == 'right') %]
1055 <div id="NovelistSelect">
1056 <h4>Novelist Select</h4>
1057 <div data-novelist-novelistselect=[% normalized_isbn %]></div>
1061 [% IF ( Babeltheque ) %]
1062 <div class="babeltheque_adds">
1063 <div id="BW_critiques_aj"></div>
1064 <div id="BW_citations_aj"></div>
1068 [% IF ( SocialNetworks ) %]
1069 <div id="social_networks" class="clearfix">
1071 <div><a id="facebook" href="http://www.facebook.com/sharer.php?u=[% current_url |url %]&t=[% title |url %]" title="Share on Facebook">Facebook</a></div>
1072 <div><a id="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn">LinkedIn</a></div>
1073 <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div>
1074 <div><a id="email" href="mailto:?subject=[% title |url %]&body=[% title |url %]%20([% current_url |url %])" title="Share by email">Email</a></div>
1075 <div><div class="g-plusone" data-size="small" data-count="false"></div></div>
1076 <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>
1079 </div> <!-- / .ulactioncontainer -->
1080 </div> <!-- / .span4 -->
1081 </div> <!-- / .row-fluid -->
1082 <div class="row-fluid">
1083 [% IF ( LibraryThingForLibrariesID ) %]
1084 [% IF ( using_https ) %]
1085 <script src="https://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1086 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1087 <a href="https://www.librarything.com/forlibraries/noscript.php?id=[% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1089 <script src="http://ltfl.librarything.com/forlibraries/widget.js?systype=koha&id=[% LibraryThingForLibrariesID %]" type="text/javascript"></script>
1090 <noscript>This page contains enriched content visible when JavaScript is enabled or by clicking
1091 <a href="http://www.librarything.com/forlibraries/noscript.php?id=
1092 [% LibraryThingForLibrariesID %]&accessibility=1">here</a>.</noscript>
1096 [% IF ( NovelistSelectProfile ) %]
1097 <script type="text/javascript" src="http://imageserver.ebscohost.com/novelistselect/ns2init.js"></script>
1100 [% IF ( Babeltheque ) %]
1101 <script type="text/javascript" src="[% Babeltheque_url_js %]"></script>
1103 </div> <!-- / .row-fluid -->
1104 </div> <!-- / .container-fluid -->
1105 </div> <!-- / .main -->
1107 [% INCLUDE 'opac-bottom.inc' %]
1109 [%# End of template %]
1111 [% BLOCK items_table %]
1112 <table class="holdingst table table-bordered table-striped">
1115 [% IF ( item_level_itypes ) %]<th id="item_itemtype" class="itype">Item type</th>[% END %]
1116 <th id="item_location">Location</th>
1117 [% IF ( itemdata_ccode ) %]<th id="item_ccode" class="collection">Collection</th>[% END %]
1118 <th id="item_callnumber" class="call_no">Call number</th>
1119 [% IF ( itemdata_enumchron ) %]<th id="item_enumchron" class="vol_info">Vol info</th>[% END %]
1120 [% IF ( itemdata_uri ) %]<th id="item_url" class="url">url</th>[% END %]
1121 [% IF ( itemdata_copynumber ) %]<th id="item_copy" class="copynumber">Copy number</th>[% END %]
1122 <th id="item_status" class="status">Status</th>
1123 [% IF ( itemdata_itemnotes ) %]<th id="item_notes" class="notes">Notes</th>[% END %]
1124 <th id="item_datedue" class="date_due">Date due</th>
1125 [% IF ( OPACShowBarcode ) %]<th id="item_barcode" class="barcode">Barcode</th>[% END %]
1126 [% IF holds_count.defined %]
1128 [% ELSIF show_priority %]
1129 <th>Item hold queue priority</th>
1131 [% IF ( ShowCourseReservesHeader ) %]<th id="item_coursereserves">Course reserves</th>[% END %]
1135 [% FOREACH ITEM_RESULT IN items %]
1136 [% IF ITEM_RESULT.this_branch %]
1137 <tr class="highlight-row-detail" vocab="http://schema.org/" typeof="Offer">
1139 <tr vocab="http://schema.org/" typeof="Offer">
1141 [% IF ( item_level_itypes ) %]
1143 [% UNLESS ( noItemTypeImages ) %]
1144 [% IF ( ITEM_RESULT.imageurl ) %]
1145 <img src="[% ITEM_RESULT.imageurl %]" title="[% ITEM_RESULT.description %]" alt="[% ITEM_RESULT.description %]" />
1148 [% ITEM_RESULT.description %]
1151 <td class="location" property="seller">
1152 <link property="itemOffered" href="#record" />
1153 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
1154 [% UNLESS ( singleBranchMode ) %]
1155 <div class="[% ITEM_RESULT.branch_opac_info ? 'branch-info-tooltip-trigger' : '' %]">
1156 [% IF ( ITEM_RESULT.branchurl ) %]
1157 <a href="[% ITEM_RESULT.branchurl %]" title="">[% ITEM_RESULT.branchname %]</a>
1159 <span title="">[% ITEM_RESULT.branchname %]</span>
1161 <div class="branch-info-tooltip">[% ITEM_RESULT.branch_opac_info %]</div>
1164 <span class="shelvingloc">[% ITEM_RESULT.location_description %]</span>
1166 [% IF ( itemdata_ccode ) %]
1167 <td class="collection">[% ITEM_RESULT.ccode %]</td>
1169 <td class="call_no" property="sku">
1170 [% IF ( ITEM_RESULT.itemcallnumber ) %]
1171 [% ITEM_RESULT.itemcallnumber %]
1172 [% IF ( OPACShelfBrowser ) %]
1173 [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %]
1174 (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1176 (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber %]#[% tab %]">Browse shelf</a>)
1181 [% IF ( itemdata_enumchron ) %]
1182 <td class="vol_info">[% ITEM_RESULT.enumchron %]</td>
1184 [% IF ( itemdata_uri ) %]
1186 [% IF ITEM_RESULT.uri %]
1187 [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1188 <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>
1190 <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1195 [% IF ( itemdata_copynumber ) %]<td class="copynumber">[% ITEM_RESULT.copynumber %]</td>[% END %]
1196 <td class="status">[% INCLUDE 'item-status-schema-org.inc' item = ITEM_RESULT %][% INCLUDE 'item-status.inc' item = ITEM_RESULT %]</td>
1197 [% IF ( itemdata_itemnotes ) %]<td class="notes" property="description">[% ITEM_RESULT.itemnotes %]</td>[% END %]
1198 <td class="date_due"><span title="[% ITEM_RESULT.datedue %]">[% ITEM_RESULT.datedue | $KohaDates %]</span></td>
1199 [% IF ( OPACShowBarcode ) %]<td class="barcode" property="serialNumber">[% ITEM_RESULT.barcode %]</td>[% END %]
1200 [% IF holds_count.defined || show_priority %]
1201 <td class="holds_count">
1202 [% IF holds_count.defined %] [% ITEM_RESULT.holds_count %] [% END %]
1203 [% IF ITEM_RESULT.priority %]
1204 [% IF holds_count.defined %]
1205 (priority [% ITEM_RESULT.priority %])
1207 [% ITEM_RESULT.priority %]
1212 [% IF ShowCourseReservesHeader %]
1214 [% IF ITEM_RESULT.course_reserves %]
1215 [% FOREACH r IN ITEM_RESULT.course_reserves %]
1217 <a href="opac-course-details.pl?course_id=[% r.course.course_id %]">
1218 [% r.course.course_name %]
1219 <!--[% IF r.course.course_number %] [% r.course.course_number %] [% END %]-->
1220 [% IF r.course.section %] [% r.course.section %] [% END %]
1221 [% IF r.course.term %] [% AuthorisedValues.GetByCode( 'TERM', r.course.term ) %] [% END %]
1227 [% END # /IF ShowCourseReservesHeader %]
1232 [% END %][%# end of items_table block %]
1234 [% BLOCK jsinclude %]
1235 [% INCLUDE 'datatables.inc' %]
1236 [% IF ( SocialNetworks ) %]
1237 <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
1239 {lang: '[% lang %]'}
1242 <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>
1244 [% IF ( OpacStarRatings != 'disable' ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.rating.js"></script>[% END %]
1246 [% IF ( OpacHighlightedWords ) %]<script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.highlight-3.js"></script>[% END %]
1248 <script type="text/javascript">
1251 [% IF ( OpacBrowseResults && busc ) %]
1252 var arrPagination = new Array();
1253 var pag_index_ini = [% indexPag %];
1254 [% IF ( listResults ) %]
1255 [% FOREACH listResult IN listResults %]
1256 arrPagination[[% listResult.index %]] = {url:"[% listResult.url %]", title:"[% listResult.title|remove('\n')|html %]", author:"[% listResult.author|html %]", biblionumber:[% listResult.biblionumber %]};
1261 [% IF ( OpacHighlightedWords ) %]
1262 var q_array = new Array(); // holds search terms if available
1264 function highlightOff() {
1265 $("#catalogue_detail_biblio").removeHighlight();
1266 $(".highlight_toggle").toggle();
1268 function highlightOn() {
1270 for (x in q_array) {
1271 q_array[x] = q_array[x].replace(/\w*:([\w])/, "$1");
1272 $(".title").highlight(q_array[x]);
1273 $(".author").highlight(q_array[x]);
1274 $(".results_summary").highlight(q_array[x]);
1276 $(".highlight_toggle").toggle();
1280 $(document).ready(function() {
1281 $('#bibliodescriptions').tabs();
1282 $(".branch-info-tooltip-trigger").tooltip({
1283 position: { my: "left+15 center", at: "right center" },
1286 content: function(){
1287 var element = $(this).next("div");
1288 return element.html();
1291 [% IF ( TagsInputEnabled && loggedinusername ) %]
1292 $(".tag_add").click(function(){
1293 var thisid = $(this).attr("id");
1294 thisid = thisid.replace("tag_add","");
1296 $("#tagform"+thisid).show();
1297 $("#newtag"+thisid).focus();
1298 $("#newtag"+thisid+"_status").empty().hide();
1301 $(".cancel_tag_add").click(function(){
1302 var thisid = $(this).attr("id");
1303 thisid = thisid.replace("cancel","");
1304 $("#tagform"+thisid).hide();
1305 $("#tag_add"+thisid).show();
1306 $("#newtag"+thisid).val("");
1307 $("#newtag"+thisid+"_status").empty().hide();
1310 $(".tagbutton").click(function(){
1311 var thisid = $(this).attr("title");
1312 var tag = $("#newtag"+thisid).val();
1313 if (!tag || (tag == "")) {
1314 alert(MSG_NO_TAG_SPECIFIED);
1317 KOHA.Tags.add_tag_button(thisid, tag);
1322 $(".holdingst").dataTable($.extend(true, {}, dataTablesDefaults, {
1324 [% IF ( item_level_itypes ) %]null,[% END %]
1326 [% IF ( itemdata_ccode ) %]null,[% END %]
1328 [% IF ( itemdata_enumchron ) %]null,[% END %]
1329 [% IF ( itemdata_uri ) %]null,[% END %]
1330 [% IF ( itemdata_copynumber ) %]null,[% END %]
1332 [% IF ( itemdata_itemnotes ) %]null,[% END %]
1333 { "sType": "title-string" },
1334 [% IF ( OPACShowBarcode ) %]null,[% END %]
1335 [% IF holds_count.defined %]
1337 [% ELSIF show_priority %]
1340 [% IF ( ShowCourseReservesHeader ) %]null,[% END %]
1344 [% IF ( query_desc ) %][% IF ( OpacHighlightedWords ) %]var query_desc = "[% query_desc |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') |html %]";
1345 q_array = query_desc.split(" ");
1347 $("#highlight_toggle_on" ).hide().click(function() {highlightOn() ; return false;});
1348 $("#highlight_toggle_off").show().click(function() {highlightOff(); return false;});[% END %][% END %]
1349 [% IF ( GoogleJackets ) %]
1350 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1352 [% IF OpenLibraryCovers %]
1353 KOHA.OpenLibrary.GetCoverFromIsbn();
1355 [% IF OPACLocalCoverImages %]
1356 KOHA.LocalCover.GetCoverFromBibnumber(true);
1358 [% IF ( NovelistSelectProfile ) %]
1359 novSelect.loadContentForISBN('[% normalized_isbn %]','[% NovelistSelectProfile %]', '[% NovelistSelectPassword %]', function(d){});
1362 [% IF ( OpacBrowseResults && busc ) %]
1363 if (arrPagination.length > 0) {
1364 renderPagIndexList(pag_index_ini, $("#listResults"));
1366 $("#a_listResults").click(function(e) {
1367 if (arrPagination.length > 0) {
1369 var navigation = $(".results-pagination");
1370 if (navigation.css("display") == 'none') {
1372 var newtitle = $(this).attr('title').replace('Show', 'Hide')
1373 $(this).attr('title',newtitle);
1374 renderPagination(pag_index_ini, arrPagination.length - 1, $("#ul_pagination_list"), false);
1377 var newtitle = $(this).attr('title').replace('Hide', 'Show')
1378 $(this).attr('title',newtitle);
1382 $("#close_pagination").click(function(e) {
1384 var navigation = $(".results-pagination");
1388 [% IF ( OPACShelfBrowser ) %]
1390 (function prepareShelfBrowser(){
1392 $(".main").on("click",".close_shelf",function(e){
1394 $("#shelfbrowser").toggle();
1396 $(".main").on("click", "#browser_previous a", function(e){
1399 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1402 "shelfbrowse_itemnumber": $("#browser_previous a").data( "prev-itemnumber" )
1404 success: function(data){
1405 $("#shelfbrowser").replaceWith(data);
1406 [% IF ( GoogleJackets ) %]
1407 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1409 [% IF OpenLibraryCovers %]
1410 KOHA.OpenLibrary.GetCoverFromIsbn();
1412 [% IF OPACLocalCoverImages %]
1413 KOHA.LocalCover.GetCoverFromBibnumber(true);
1419 $(".main").on("click", "#browser_next a", function(e){
1422 url: "/cgi-bin/koha/svc/shelfbrowser.pl",
1425 "shelfbrowse_itemnumber": $("#browser_next a").data( "next-itemnumber" )
1427 success: function(data){
1428 $("#shelfbrowser").replaceWith(data);
1429 [% IF ( GoogleJackets ) %]
1430 KOHA.Google.GetCoverFromIsbn([% covernewwindow %]);
1432 [% IF OpenLibraryCovers %]
1433 KOHA.OpenLibrary.GetCoverFromIsbn();
1435 [% IF OPACLocalCoverImages %]
1436 KOHA.LocalCover.GetCoverFromBibnumber(true);
1443 [% IF ( OpacStarRatings != 'disable' ) %]
1444 // -----------------------------------------------------
1445 // star-ratings code
1446 // -----------------------------------------------------
1447 // hide 'rate' button if javascript enabled
1449 $('input[name="rate_button"]').remove();
1452 $(".auto-submit-star").rating({
1453 callback: function (value, link) {
1455 // if the new value equals the old value, dont execute callback...
1457 if ($("#rating_value").attr("value") != value) {
1461 $.post("/cgi-bin/koha/opac-ratings-ajax.pl", {
1462 rating_old_value: $("#rating_value").attr("value"),
1463 borrowernumber: "[% borrowernumber %]",
1464 biblionumber: "[% biblionumber %]",
1465 rating_value: value,
1467 }, function (data) {
1469 if (data.auth_status != 'ok') {
1470 window.alert(_("Your CGI session cookie is not current. Please refresh the page and try again."));
1472 $("#rating_value").val(data.rating_value);
1474 if (data.rating_value) {
1475 $("#rating_value_text").text(_("your rating: ") + data.rating_value + ", ");
1477 $("#rating_value_text").text('');
1480 $("#rating_text").text(_("average rating: ") + data.rating_avg_int + " (" + data.rating_total + ' ' + _("votes") + ")");
1489 // -----------------------------------------------------
1490 [% END # / IF ( OpacStarRatings != 'disable' )%]
1492 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1493 var isbn = $(".isbn:last").text().split(" ")[1];
1495 isbn = isbn.replace(/\W*$/, '');
1496 isbn = isbn.replace(/-/, '');
1498 if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1499 // Use Microsoft XDR for IE version 8 or above
1500 var xdr = new XDomainRequest();
1501 xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1502 xdr.onload = function() {
1503 json = 'json = '+xdr.responseText; // the string now looks like.. json = { ... };
1504 eval(json); // json is now a regular JSON object
1505 parseIDBJSON(json); // parse using same function as for jQuery's success event
1509 $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1514 [% END # / IDreamBooksReviews || IDreamBooksReadometer%]
1517 [% IF ( IDreamBooksReviews || IDreamBooksReadometer ) %]
1518 function parseIDBJSON( json ) {
1519 if(json.total_results > 0 && json.book.rating > 0){
1520 var isbn = $(".isbn:last").text().split(" ")[1];
1521 isbn = isbn.replace(/-/, '');
1523 [% IF ( IDreamBooksReadometer ) %]
1524 $(".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>');
1527 [% IF ( IDreamBooksReviews ) %]
1528 //build new tab for critic reviews
1529 $("#tab_idb_critic_reviews a").text($("#tab_idb_critic_reviews a").text().replace('XXX', json.book.review_count));
1531 //append happy-sad cloud review
1533 $("#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>");
1535 //insert data into Book reviews tab
1536 $.each(json.book.critic_reviews, function(){
1537 $("#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>");
1539 $("#seemoreidb").attr('href', json.book.detail_link);
1540 $("#tab_idb_critic_reviews").show();
1544 [% END # / IF IDreamBooksReviews || IDreamBooksReadometer %]
1546 [% IF ( OpacBrowseResults && busc ) %]
1548 var totalPagItemList = 10;
1550 function rewindList()
1552 var ul = $("#listResults");
1553 var li_ini = ul.children(':first').next();
1554 var index_ini = pag_index_ini;
1556 index_ini = parseInt(li_ini.attr("class").substring(7), 10);
1558 var li_end = ul.children(':last').prev();
1559 var index_end = arrPagination.length - 1;
1561 index_end = parseInt(li_end.attr("class").substring(7), 10);
1563 if (index_ini > pag_index_ini) {
1564 renderPagIndexList(index_ini - 1, ul, false);
1565 renderPagination(index_ini - 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1569 function forwardList()
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_end < arrPagination.length - 1) {
1583 renderPagIndexList(index_ini + 1, ul, false);
1584 renderPagination(index_ini + 1, arrPagination.length - 1, $("#ul_pagination_list"), true);
1588 function renderPagIndexList(index, ul)
1590 var $kids = ul.children("li");
1591 if ($kids.length > 0) {
1592 $kids.each(function() {
1598 var ini = index - 1;
1599 var end = ini + totalPagItemList - 1;
1601 html = (index > pag_index_ini)?"<a href='#' id='rew_list_index' onclick='rewindList()' title='" + _("Click to rewind the list to") + " " + ini + " - " + end + "'>«</a>":"«";
1605 for (var i=index; i < arrPagination.length && i < index + totalPagItemList; i++) {
1606 if (arrPagination[i] == undefined) continue;
1607 var li = $("<li />");
1608 if (arrPagination[i].url != "") {
1609 title = _("See biblio") + " "" + arrPagination[i].title + "" ";
1610 if (arrPagination[i].author != "") title += " " + _("by") + """ + arrPagination[i].author + """;
1611 title += " " + _("with biblionumber") + " " + arrPagination[i].biblionumber;
1612 html = "<a href='" + arrPagination[i].url + "' title='" + title + "' class='a_pag' id='a_pag_" + i + "'";
1613 html += " onmouseover='renderPagination(" + i + ", " + (arrPagination.length - 1) + ", $(\"#ul_pagination_list\"), true)'";
1614 html += ">" + i + "</a>";
1617 li.attr("class", "li_pag_" + i);
1622 end = (arrPagination.length > index + totalPagItemList)?index + totalPagItemList:arrPagination.length - 1;
1623 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>":"»";
1626 }//renderPagIndexList
1629 function renderPagination(index, total, ul, highlIndex)
1631 for (var i = pag_index_ini; i <= total; i++) {
1632 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1633 $("#li_pag_" + i).remove();
1636 for (var i = index; i <= total && j < totalPagItemList; i++) {
1637 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1638 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1639 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1640 if (arrPagination[i].author) html += "<br /> by " + arrPagination[i].author;
1642 if (highlIndex && i == index) li.css("backgroundColor", "#DDDDDD");
1646 for (i = pag_index_ini; i < index && j < totalPagItemList; i++) {
1647 if (arrPagination[i] == undefined || arrPagination[i].url == "") continue;
1648 $("#li_pag_" + i).remove();
1649 var li = $("<li id='li_pag_" + i + "' " + ((j % 2 == 0)?"class='highlight'":"") + " title='" + _("Go to detail") + "' />");
1650 var html = "<span class='li_pag_index'>" + i + "</span><a href='" + arrPagination[i].url + "'>" + arrPagination[i].title + "</a>";
1651 if (arrPagination[i].author) html += "<br /> " + _("by") + " " + arrPagination[i].author;
1657 [% END # / IF ( OpacBrowseResults && busc ) %]
1661 [% IF OPACPopupAuthorsSearch %]
1662 <script type="text/javascript">
1664 function showAuthors(element){
1665 var authornumber = $(element).attr("data-count");
1666 // Hide subjects menu if displayed
1667 hideMenu(".subjectSearch");
1669 // Check checkbox related to the clicked link
1670 $("#authorsList input[type='checkbox']").attr('checked', false);
1671 $("#author_"+authornumber).attr('checked', true);
1673 makeAuthorRequest();
1676 var left = element.offsetLeft || 0;
1677 var top = element.offsetTop || 0;
1678 $('.authorSearch').css('display', 'block');
1679 $('.authorSearch').css('left', left);
1680 $('.authorSearch').css('top', top + 15);
1683 function hideMenu(elem) {
1684 $(elem).css('display', 'none');
1687 function checkAll(checkbox, elem) {
1688 var check = $(checkbox).attr('checked') ? true : false;
1689 $(elem).find("input[type='checkbox']").attr('checked', check);
1690 elem == "#authorsList" ? makeAuthorRequest() : makeSubjectRequest();
1693 function makeAuthorRequest(){
1696 $("#authorsList").find("input[type='checkbox']:checked").each(function () {
1697 values.push($(this).val());
1700 if (values.length > 0) {
1701 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1702 $("#validAuthorSearch").attr("href", request);
1704 $("#validAuthorSearch").removeAttr("href");
1710 function showSubjects(element, subjectnumber, subfieldnumber){
1712 // Check checkbox related to the clicked link
1713 $("#subjectsList input[type='checkbox']").attr('checked', false);
1714 $("#subject_"+subjectnumber+"_"+subfieldnumber).attr('checked', true);
1716 makeSubjectRequest();
1720 function makeSubjectRequest() {
1722 $("#subjectsList > ul").each(function() {
1723 var all_checked = true;
1724 var local_values = [];
1725 $(this).find('input[type="checkbox"]').each(function() {
1726 if($(this).attr('checked')) {
1727 local_values.push($(this).val());
1729 all_checked = false;
1732 var authid = $(this).attr('data-authid');
1733 if(all_checked && authid) {
1734 values.push('an:' + authid);
1736 values = values.concat(local_values);
1739 if(values.length > 0) {
1740 var request = "/cgi-bin/koha/opac-search.pl?q=" + values.join(' and ');
1741 $("#validSubjectSearch").attr('href', request);
1743 $("#validSubjectSearch").removeAttr("href");
1746 $(document).ready(function() {
1747 $("a.showauthors").click(function(){
1755 [% END # / IF OPACPopupAuthorsSearch %]