3 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your cart</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %]<style type="text/css">.item-status { display: inline; }</style>[% END %]
10 [% INCLUDE 'bodytag.inc' bodyid='basket' %]
12 <div class="container-fluid">
13 <div class="row-fluid">
18 [% UNLESS ( print_basket ) %]
19 <div id="toolbar" class="toolbar">
21 <a href="opac-basket.pl" class="brief">Brief display</a>
23 <a href="opac-basket.pl" class="detail">More details</a>
25 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
26 <a class="send" href="opac-basket.pl">Send</a>
28 <a class="download" href="opac-basket.pl">Download</a>
29 <a class="print-large" href="opac-basket.pl">Print</a>
30 <a class="empty" href="opac-basket.pl">Empty and close</a>
31 <a class="hide close" href="opac-basket.pl">Hide window</a>
34 <div id="selections-toolbar" class="toolbar">
35 <a id="CheckAll" href="#">Select all</a>
36 <a id="CheckNone" href="#">Clear all</a>
37 <span class="sep">|</span>
38 <span class="links" id="tag_hides">
39 <span id="selections">Select titles to: </span>
40 <a href="#" class="deleteshelf disabled">Remove</a>
41 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
42 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
43 <a href="#" class="newshelf disabled">Add to a list</a>
45 [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
46 <a href="#" class="hold disabled">Place hold</a>
48 [% IF ( TagsInputEnabled && loggedinusername ) %]
49 <a href="#" id="tagsel_tag" class="disabled">Tag</a>
51 [% END # / IF opacuserlogin %]
53 [% IF ( TagsInputEnabled && loggedinusername ) %]
54 <span id="tagsel_form" style="display:none">
55 <label for="tagsel_new">New tag:</label>
56 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
57 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add">
58 <a href="#" id="tagsel_cancel">Cancel</a>
62 [% END # / UNLESS print_basket %]
65 <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
66 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
68 [% IF ( print_basket ) %]
69 [% BIBLIO_RESULT.title |html %]
70 [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
71 [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
73 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
74 [% BIBLIO_RESULT.title |html %]
75 [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
76 [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
77 [% END # / IF print_basket %]
79 <!-- COinS / Openurl -->
80 <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.item('size') %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span>
83 [% IF ( BIBLIO_RESULT.isbn ) %]
85 <th scope="row">ISBN</th>
86 <td>[% BIBLIO_RESULT.isbn %]</td>
90 [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
92 <th scope="row">Author(s)</th>
94 [% IF ( BIBLIO_RESULT.author ) %]
95 <p>[% BIBLIO_RESULT.author %]</p>
97 [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
98 [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
99 <p> [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
100 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
101 [% MARCAUTHOR_SUBFIELDS_LOO.value %]
110 [% IF ( BIBLIO_RESULT.publishercode ) %]
112 <th scope="row">Publisher</th>
113 <td>[% BIBLIO_RESULT.place %] [% BIBLIO_RESULT.publishercode %] [% BIBLIO_RESULT.publicationyear %]
118 [% IF ( BIBLIO_RESULT.pages ) %]
120 <th scope="row">Details</th>
121 <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.item('size') %]</td>
125 [% IF ( BIBLIO_RESULT.seriestitle ) %]
127 <th scope="row">Collection</th>
128 <td> [% BIBLIO_RESULT.seriestitle %]</td>
132 [% IF ( BIBLIO_RESULT.MARCSUBJCTS ) %]
134 <th scope="row">Subject(s)</th>
135 <td>[% FOREACH MARCSUBJCT IN BIBLIO_RESULT.MARCSUBJCTS %]
136 <p> [% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
137 [% MARCSUBJECT_SUBFIELDS_LOO.separator %][% MARCSUBJECT_SUBFIELDS_LOO.value %][% END %]
143 [% IF ( BIBLIO_RESULT.copyrightdate ) %]
144 <tr><th scope="row">Copyright</th>
145 <td> [% BIBLIO_RESULT.copyrightdate %]</td>
149 [% IF ( BIBLIO_RESULT.MARCNOTES ) %]
151 <th scope="row">Notes</th>
153 [% FOREACH MARCNOTE IN BIBLIO_RESULT.MARCNOTES %]
155 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
156 - <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
158 - [% MARCNOTE.marcnote %]
166 [% IF ( BIBLIO_RESULT.unititle ) %]
168 <th scope="row">Unified title</th>
169 <td> [% BIBLIO_RESULT.unititle %]</td>
173 [% IF ( BIBLIO_RESULT.serial ) %]
175 <th scope="row">Serial</th>
176 <td>[% BIBLIO_RESULT.serial %]</td>
180 [% IF ( BIBLIO_RESULT.dewey ) %]
182 <th scope="row">Dewey</th>
183 <td>[% BIBLIO_RESULT.dewey %]</td>
187 [% IF ( BIBLIO_RESULT.classification ) %]
189 <th scope="row">Classification</th>
190 <td> [% BIBLIO_RESULT.classification %]</td>
194 [% IF ( BIBLIO_RESULT.lccn ) %]
196 <th scope="row">LCCN</th>
197 <td> [% BIBLIO_RESULT.lccn %]</td>
201 [% IF BIBLIO_RESULT.MARCURLS.size %]
203 <th scope="row">URL(s)</th>
205 [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %]
206 [% IF MARCurl.part %]<p>[% MARCurl.part %]</p>[% END %]
208 [% IF OPACURLOpenInNewWindow %]
209 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">[% MARCurl.linktext %]</a>
211 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
214 [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]<p>[% note.note %]</p>[% END %][% END %]
221 <th scope="row">Location(s) (Status)</th>
223 [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
225 [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
227 <strong>[% ITEM_RESULT.branchname %]</strong>[% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
228 [% IF ( ITEM_RESULT.itemcallnumber ) %]
229 ([% ITEM_RESULT.itemcallnumber %])
231 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
236 This record has no items.
241 [% END # / FOREACH BIBLIO_RESULT %]
246 <form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
247 <table id="itemst" class="table table-bordered table-striped">
250 [% UNLESS ( print_basket ) %]<th> </th>[% END %]
254 <th>Location (Status)</th>
258 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
260 [% UNLESS ( print_basket ) %]
262 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
266 <a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest %]',[% BIBLIO_RESULT.biblionumber %])">[% BIBLIO_RESULT.title |html %][% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %][% subtitl.subfield |html %][% END %][% END %]</a>
267 <!-- COinS / Openurl -->
268 <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear %]&rft.tpages=[% BIBLIO_RESULT.item('size') %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition %]&rft.series=[% BIBLIO_RESULT.series %]&rft.genre="></span>
269 [% IF ( TagsInputEnabled && loggedinusername ) %]
270 <span id="newtag[% BIBLIO_RESULT.biblionumber %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</span>
273 <td>[% BIBLIO_RESULT.author %]</td>
275 [% IF ( BIBLIO_RESULT.publicationyear ) %]
276 [% BIBLIO_RESULT.publicationyear %]
278 [% BIBLIO_RESULT.copyrightdate %]
281 <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
283 [% ITEM_RESULT.branchname %][% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
284 [% IF ( ITEM_RESULT.itemcallnumber ) %]
285 ([% ITEM_RESULT.itemcallnumber %])
287 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
289 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
292 [% END # / FOREACH BIBLIO_RESULT %]
296 [% END # / verbose %]
298 [% UNLESS ( print_basket ) %]
299 <form name="myform" action="opac-basket.pl" method="get">
300 <input type="hidden" name="records" id="records" />
304 </div> <!-- / #userbasket -->
305 </div> <!-- / .span10 -->
306 </div> <!-- / .row-fluid -->
307 </div> <!-- / .container-fluid -->
308 </div> <!-- / .main -->
310 [% INCLUDE 'opac-bottom.inc' %]
312 [% BLOCK jsinclude %]
313 [% IF ( print_basket ) %]
314 <script type="text/javascript">
316 $(document).ready(function(){
318 location.href="/cgi-bin/koha/opac-basket.pl?bib_list=[% bib_list %][% IF ( verbose ) %]&verbose=1[% END %]";
323 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
324 [% INCLUDE 'datatables.inc' %]
325 <script type="text/javascript">
328 [% IF ( TagsInputEnabled && loggedinusername ) %]
329 function tagSelected() {
330 var bibs = document.getElementById('records').value;
332 $("#tagsel_tag").hide();
333 $("#tag_hides").hide();
334 $("#tagsel_form").show();
336 alert(MSG_NO_RECORD_SELECTED);
340 function tagCanceled() {
341 $("#tagsel_form").hide();
342 $("#tagsel_tag").show();
343 $("#tag_hides").show();
344 $("#tagsel_new").val("");
345 $(".tagstatus").empty().hide();
348 function tagAdded() {
349 var checkedBoxes = $("input:checkbox:checked");
350 if (!$(checkedBoxes).size()) {
351 alert(MSG_NO_RECORD_SELECTED);
355 var tag = $("#tagsel_new").val();
356 if (!tag || (tag == "")) {
357 alert(MSG_NO_TAG_SPECIFIED);
362 for (var i = 0; i < $(checkedBoxes).size(); i++) {
363 var box = $(checkedBoxes).get(i);
364 bibs[i] = $(box).val();
367 KOHA.Tags.add_multitags_button(bibs, tag);
370 [% END # / TagsInputEnabled && loggedinusername %]
372 $(document).ready(function(){
373 $(".brief").click(function(){
378 $(".detail").click(function(){
383 $(".send").click(function(){
388 $(".download").click(function(){
393 $(".print-large").click(function(){
399 $(".empty").click(function(){
404 $(".deleteshelf").click(function(){
409 $(".newshelf").click(function(){
414 $(".hold").click(function(){
419 $("#tagsel_tag").click(function(){
424 $("#tagsel_button").click(function(){
429 $("#tagsel_cancel").click(function(){
434 $("#CheckAll").click(function(){
436 $(".checkboxed").checkCheckboxes("*", true).each(
438 selRecord(this.value,true);
441 enableCheckboxActions();
445 $("#CheckNone").click(function(){
447 $(".checkboxed").unCheckCheckboxes("*",true).each(
449 selRecord(this.value,false);
452 enableCheckboxActions();
456 $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
457 "aaSorting": [[ 1, "asc" ]],
459 { "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false }
463 { "sType": "anti-the" },
470 $(".cb").change(function(){
471 if ($(this).prop("checked")){
472 selRecord($(this).val(), true);
474 enableCheckboxActions();
479 function enableCheckboxActions(){
480 // Enable/disable controls if checkboxes are checked
481 var checkedBoxes = $(".checkboxed input:checkbox:checked");
482 if ($(checkedBoxes).size()) {
483 $("#selections").html(_("With selected titles: "));
484 $("#selections-toolbar .links a").removeClass("disabled");
486 $("#selections").html(_("Select titles to: "));
487 $("#selections-toolbar .links a").addClass("disabled");
492 [% END # / IF print_basket %]
493 [% END # / BLOCK jsinclude %]