4 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your cart</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% BLOCK cssinclude %]<style type="text/css">.item-status, .dt-buttons { display: inline; } @media print { body { height: 99%; } }</style>[% END %]
11 [% INCLUDE 'bodytag.inc' bodyid='basket' %]
13 <div class="container-fluid">
14 <div class="row-fluid">
18 <div id="toolbar" class="toolbar noprint">
20 <a href="opac-basket.pl" class="brief">Brief display</a>
22 <a href="opac-basket.pl" class="detail">More details</a>
24 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
25 <a class="send" href="opac-basket.pl">Send</a>
27 <a class="download" href="opac-basket.pl">Download</a>
28 <a class="empty" href="opac-basket.pl">Empty and close</a>
29 <a class="hide close" href="opac-basket.pl">Hide window</a>
31 <a class="print-large" href="#">Print</a>
35 <div id="selections-toolbar" class="toolbar noprint">
36 <a id="CheckAll" href="#">Select all</a>
37 <a id="CheckNone" href="#">Clear all</a>
38 <span class="sep">|</span>
39 <span class="links" id="tag_hides">
40 <span id="selections">Select titles to: </span>
41 <a href="#" class="deleteshelf disabled">Remove</a>
42 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
43 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
44 <a href="#" class="newshelf disabled">Add to a list</a>
46 [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
47 <a href="#" class="hold disabled">Place hold</a>
49 [% IF ( TagsInputEnabled && loggedinusername ) %]
50 <a href="#" id="tagsel_tag" class="disabled">Tag</a>
52 [% END # / IF opacuserlogin %]
54 [% IF ( TagsInputEnabled && loggedinusername ) %]
55 <span id="tagsel_form" style="display:none">
56 <label for="tagsel_new">New tag:</label>
57 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
58 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add">
59 <a href="#" id="tagsel_cancel">Cancel</a>
65 <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
66 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
68 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
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 <!-- COinS / Openurl -->
74 <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>
77 [% IF ( BIBLIO_RESULT.isbn ) %]
79 <th scope="row">ISBN</th>
80 <td>[% BIBLIO_RESULT.isbn %]</td>
84 [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
86 <th scope="row">Author(s)</th>
88 [% IF ( BIBLIO_RESULT.author ) %]
89 <p>[% BIBLIO_RESULT.author %]</p>
91 [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
92 [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
93 <p> [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
94 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
95 [% MARCAUTHOR_SUBFIELDS_LOO.value %]
104 [% IF ( BIBLIO_RESULT.publishercode ) %]
106 <th scope="row">Publisher</th>
107 <td>[% BIBLIO_RESULT.place %] [% BIBLIO_RESULT.publishercode %] [% BIBLIO_RESULT.publicationyear %]
112 [% IF ( BIBLIO_RESULT.pages ) %]
114 <th scope="row">Details</th>
115 <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.item('size') %]</td>
119 [% IF ( BIBLIO_RESULT.seriestitle ) %]
121 <th scope="row">Collection</th>
122 <td> [% BIBLIO_RESULT.seriestitle %]</td>
126 [% IF ( BIBLIO_RESULT.MARCSUBJCTS ) %]
128 <th scope="row">Subject(s)</th>
129 <td>[% FOREACH MARCSUBJCT IN BIBLIO_RESULT.MARCSUBJCTS %]
130 <p> [% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
131 [% MARCSUBJECT_SUBFIELDS_LOO.separator %][% MARCSUBJECT_SUBFIELDS_LOO.value %][% END %]
137 [% IF ( BIBLIO_RESULT.copyrightdate ) %]
138 <tr><th scope="row">Copyright</th>
139 <td> [% BIBLIO_RESULT.copyrightdate %]</td>
143 [% IF ( BIBLIO_RESULT.MARCNOTES ) %]
145 <th scope="row">Notes</th>
147 [% FOREACH MARCNOTE IN BIBLIO_RESULT.MARCNOTES %]
149 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
150 - <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
152 - [% MARCNOTE.marcnote %]
160 [% IF ( BIBLIO_RESULT.unititle ) %]
162 <th scope="row">Unified title</th>
163 <td> [% BIBLIO_RESULT.unititle %]</td>
167 [% IF ( BIBLIO_RESULT.serial ) %]
169 <th scope="row">Serial</th>
170 <td>[% BIBLIO_RESULT.serial %]</td>
174 [% IF ( BIBLIO_RESULT.dewey ) %]
176 <th scope="row">Dewey</th>
177 <td>[% BIBLIO_RESULT.dewey %]</td>
181 [% IF ( BIBLIO_RESULT.classification ) %]
183 <th scope="row">Classification</th>
184 <td> [% BIBLIO_RESULT.classification %]</td>
188 [% IF ( BIBLIO_RESULT.lccn ) %]
190 <th scope="row">LCCN</th>
191 <td> [% BIBLIO_RESULT.lccn %]</td>
195 [% IF BIBLIO_RESULT.MARCURLS.size %]
197 <th scope="row">URL(s)</th>
199 [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %]
200 [% IF MARCurl.part %]<p>[% MARCurl.part %]</p>[% END %]
202 [% IF OPACURLOpenInNewWindow %]
203 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">[% MARCurl.linktext %]</a>
205 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
208 [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]<p>[% note.note %]</p>[% END %][% END %]
215 <th scope="row">Location(s) (Status)</th>
217 [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
219 [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
221 <strong>[% ITEM_RESULT.branchname %]</strong>[% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
222 [% IF ( ITEM_RESULT.itemcallnumber ) %]
223 ([% ITEM_RESULT.itemcallnumber %])
225 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
230 This record has no items.
235 [% END # / FOREACH BIBLIO_RESULT %]
240 <form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
241 <table id="itemst" class="table table-bordered table-striped">
244 <th class="noprint"> </th>
248 <th>Location (Status)</th>
252 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
255 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
258 <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>
259 <!-- COinS / Openurl -->
260 <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>
261 [% IF ( TagsInputEnabled && loggedinusername ) %]
262 <span id="newtag[% BIBLIO_RESULT.biblionumber %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</span>
265 <td>[% BIBLIO_RESULT.author %]</td>
267 [% IF ( BIBLIO_RESULT.publicationyear ) %]
268 [% BIBLIO_RESULT.publicationyear %]
270 [% BIBLIO_RESULT.copyrightdate %]
273 <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
275 [% ITEM_RESULT.branchname %][% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
276 [% IF ( ITEM_RESULT.itemcallnumber ) %]
277 ([% ITEM_RESULT.itemcallnumber %])
279 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
281 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
284 [% END # / FOREACH BIBLIO_RESULT %]
288 [% END # / verbose %]
290 <form name="myform" action="opac-basket.pl" method="get">
291 <input type="hidden" name="records" id="records" />
294 </div> <!-- / #userbasket -->
295 </div> <!-- / .span10 -->
296 </div> <!-- / .row-fluid -->
297 </div> <!-- / .container-fluid -->
298 </div> <!-- / .main -->
300 [% INCLUDE 'opac-bottom.inc' %]
302 [% BLOCK jsinclude %]
303 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %]
304 [% INCLUDE 'datatables.inc' %]
308 [% IF ( TagsInputEnabled && loggedinusername ) %]
309 function tagSelected() {
310 var bibs = document.getElementById('records').value;
312 $("#tagsel_tag").hide();
313 $("#tag_hides").hide();
314 $("#tagsel_form").show();
316 alert(MSG_NO_RECORD_SELECTED);
320 function tagCanceled() {
321 $("#tagsel_form").hide();
322 $("#tagsel_tag").show();
323 $("#tag_hides").show();
324 $("#tagsel_new").val("");
325 $(".tagstatus").empty().hide();
328 function tagAdded() {
329 var checkedBoxes = $("input:checkbox:checked");
330 if (!$(checkedBoxes).size()) {
331 alert(MSG_NO_RECORD_SELECTED);
335 var tag = $("#tagsel_new").val();
336 if (!tag || (tag == "")) {
337 alert(MSG_NO_TAG_SPECIFIED);
342 for (var i = 0; i < $(checkedBoxes).size(); i++) {
343 var box = $(checkedBoxes).get(i);
344 bibs[i] = $(box).val();
347 KOHA.Tags.add_multitags_button(bibs, tag);
350 [% END # / TagsInputEnabled && loggedinusername %]
352 $(document).ready(function(){
353 $(".brief").click(function(e){
358 $(".detail").click(function(e){
363 $(".send").click(function(e){
368 $(".download").click(function(e){
373 $(".empty").click(function(e){
378 $(".deleteshelf").click(function(e){
383 $(".newshelf").click(function(e){
388 $(".hold").click(function(e){
393 $("#tagsel_tag").click(function(e){
398 $("#tagsel_button").click(function(e){
403 $("#tagsel_cancel").click(function(e){
408 $("#CheckAll").click(function(){
410 $(".checkboxed").checkCheckboxes("*", true).each(
412 selRecord(this.value,true);
415 enableCheckboxActions();
419 $("#CheckNone").click(function(){
421 $(".checkboxed").unCheckCheckboxes("*",true).each(
423 selRecord(this.value,false);
426 enableCheckboxActions();
430 var itemst = $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
431 "order": [[ 1, "asc" ]],
433 { "targets": [ 0,-1 ], "sortable": false, "searchable": false }
437 { "type": "anti-the" },
445 var buttons = new $.fn.dataTable.Buttons(itemst, {
449 }).container().appendTo($('#toolbar'));
451 $(".cb").change(function(){
452 selRecord( $(this).val(), $(this).prop("checked") );
453 enableCheckboxActions();
456 enableCheckboxActions();
459 function enableCheckboxActions(){
460 // Enable/disable controls if checkboxes are checked
461 var checkedBoxes = $(".checkboxed input:checkbox:checked");
462 if ($(checkedBoxes).size()) {
463 $("#selections").html(_("With selected titles: "));
464 $("#selections-toolbar .links a").removeClass("disabled");
466 $("#selections").html(_("Select titles to: "));
467 $("#selections-toolbar .links a").addClass("disabled");
472 [% END # / BLOCK jsinclude %]