6 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your cart</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %]<style>.item-status, .dt-buttons { display: inline; } @media print { body { height: 99%; } }</style>[% END %]
13 [% INCLUDE 'bodytag.inc' bodyid='basket' %]
15 <div class="container-fluid">
16 <div class="row-fluid">
20 <div id="toolbar" class="toolbar noprint">
22 <a href="opac-basket.pl" class="btn btn-link brief"><i class="fa fa-fw fa-search-minus"></i> Brief display</a>
24 <a href="opac-basket.pl" class="btn btn-link detail"><i class="fa fa-fw fa-search-plus"></i> More details</a>
26 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
27 <a class="btn btn-link send" href="opac-basket.pl"><i class="fa fa-fw fa-envelope"></i> Send</a>
29 <a class="btn btn-link download" href="opac-basket.pl"><i class="fa fa-fw fa-download"></i> Download</a>
30 <a class="btn btn-link remove empty" href="opac-basket.pl"><i class="fa fa-fw fa-trash"></i> Empty and close</a>
31 <a class="btn btn-link close" href="opac-basket.pl"><i class="fa fa-fw fa-times-circle"></i> Hide window</a>
33 <a class="btn btn-link print-large" href="#"><i class="fa fa-fw fa-print"></i> Print</a>
37 <div id="selections-toolbar" class="toolbar noprint">
38 <a id="CheckAll" href="#">Select all</a>
39 <a id="CheckNone" href="#">Clear all</a>
40 <span class="sep">|</span>
41 <span class="links" id="tag_hides">
42 <span id="selections">Select titles to: </span>
43 <a href="#" class="btn btn-link remove deleteshelf disabled"><i class="fa fa-remove"></i> Remove</a>
44 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
45 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
46 <a href="#" class="btn btn-link newshelf disabled"><i class="fa fa-fw fa-list"></i> Add to a list</a>
48 [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
49 <a href="#" class="btn btn-link hold disabled"><i class="fa fa-fw fa-bookmark"></i> Place hold</a>
51 [% IF ( TagsInputEnabled && loggedinusername ) %]
52 <a href="#" id="tagsel_tag" class="btn btn-link disabled"><i class="fa fa-fw fa-tag"></i> Tag</a>
54 [% END # / IF opacuserlogin %]
56 [% IF ( TagsInputEnabled && loggedinusername ) %]
57 <span id="tagsel_form" style="display:none">
58 <label for="tagsel_new">New tag:</label>
59 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
60 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add">
61 <a href="#" id="tagsel_cancel">Cancel</a>
67 <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
68 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
70 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
71 [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT %]
72 [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author | html %][% END %]
74 <!-- COinS / Openurl -->
75 <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author | html %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear | html %]&rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place | html %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition | html %]&rft.series=[% BIBLIO_RESULT.series | html %]&rft.genre="></span>
78 [% IF ( BIBLIO_RESULT.isbn ) %]
80 <th scope="row">ISBN</th>
81 <td>[% BIBLIO_RESULT.isbn | html %]</td>
85 [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
87 <th scope="row">Author(s)</th>
89 [% IF ( BIBLIO_RESULT.author ) %]
90 <p>[% BIBLIO_RESULT.author | html %]</p>
92 [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
93 [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
94 <p> [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
95 [% MARCAUTHOR_SUBFIELDS_LOO.separator | html %]
96 [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]
105 [% IF ( BIBLIO_RESULT.publishercode ) %]
107 <th scope="row">Publisher</th>
108 <td>[% BIBLIO_RESULT.place | html %] [% BIBLIO_RESULT.publishercode | html %] [% BIBLIO_RESULT.publicationyear | html %]
113 [% IF ( BIBLIO_RESULT.pages ) %]
115 <th scope="row">Details</th>
116 <td>[% BIBLIO_RESULT.pages | html %] [% BIBLIO_RESULT.illus | html %] [% BIBLIO_RESULT.item('size') | html %]</td>
120 [% IF ( BIBLIO_RESULT.seriestitle ) %]
122 <th scope="row">Collection</th>
123 <td> [% BIBLIO_RESULT.seriestitle | html %]</td>
127 [% IF ( BIBLIO_RESULT.MARCSUBJCTS ) %]
129 <th scope="row">Subject(s)</th>
130 <td>[% FOREACH MARCSUBJCT IN BIBLIO_RESULT.MARCSUBJCTS %]
131 <p> [% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
132 [% MARCSUBJECT_SUBFIELDS_LOO.separator | html %][% MARCSUBJECT_SUBFIELDS_LOO.value | html %][% END %]
138 [% IF ( BIBLIO_RESULT.copyrightdate ) %]
139 <tr><th scope="row">Copyright</th>
140 <td> [% BIBLIO_RESULT.copyrightdate | html %]</td>
144 [% IF ( BIBLIO_RESULT.MARCNOTES ) %]
146 <th scope="row">Notes</th>
148 [% FOREACH MARCNOTE IN BIBLIO_RESULT.MARCNOTES %]
150 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
151 - <a href="[% MARCNOTE.marcnote | url %]">[% MARCNOTE.marcnote | html %]</a>
153 - [% MARCNOTE.marcnote | html %]
161 [% IF ( BIBLIO_RESULT.unititle ) %]
163 <th scope="row">Unified title</th>
164 <td> [% BIBLIO_RESULT.unititle | html %]</td>
168 [% IF ( BIBLIO_RESULT.serial ) %]
170 <th scope="row">Serial</th>
171 <td>[% BIBLIO_RESULT.serial | html %]</td>
175 [% IF ( BIBLIO_RESULT.dewey ) %]
177 <th scope="row">Dewey</th>
178 <td>[% BIBLIO_RESULT.dewey | html %]</td>
182 [% IF ( BIBLIO_RESULT.classification ) %]
184 <th scope="row">Classification</th>
185 <td> [% BIBLIO_RESULT.classification | html %]</td>
189 [% IF ( BIBLIO_RESULT.lccn ) %]
191 <th scope="row">LCCN</th>
192 <td> [% BIBLIO_RESULT.lccn | html %]</td>
196 [% IF BIBLIO_RESULT.MARCURLS.size %]
198 <th scope="row">URL(s)</th>
200 [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %]
201 [% IF MARCurl.part %]<p>[% MARCurl.part | html %]</p>[% END %]
203 [% IF OPACURLOpenInNewWindow %]
204 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">[% MARCurl.linktext | html %]</a>
206 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">[% MARCurl.linktext | html %]</a>
209 [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]<p>[% note.note | html %]</p>[% END %][% END %]
216 <th scope="row">Location(s) (Status)</th>
218 [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
220 [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
222 <strong>[% ITEM_RESULT.branchname | html %]</strong>
223 [% IF ( ITEM_RESULT.location_opac ) %]<span class="shelvingloc">[% ITEM_RESULT.location_opac | html %]</span>[% END %]
224 [% IF ( ITEM_RESULT.itemcallnumber ) %]
225 ([% ITEM_RESULT.itemcallnumber | html %])
227 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
232 This record has no items.
237 [% END # / FOREACH BIBLIO_RESULT %]
242 <form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
243 <table id="itemst" class="table table-bordered table-striped">
246 <th class="noprint"> </th>
250 <th>Location (Status)</th>
254 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
257 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
260 <a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest | html %]',[% BIBLIO_RESULT.biblionumber | html %])">[% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT %]</a>
261 <!-- COinS / Openurl -->
262 <span class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.au=[% BIBLIO_RESULT.author | html %]&rft.btitle=[% BIBLIO_RESULT.title |url %]&rft.date=[% BIBLIO_RESULT.publicationyear | html %]&rft.tpages=[% BIBLIO_RESULT.item('size') | html %]&rft.isbn=[% BIBLIO_RESULT.isbn |url %]&rft.aucorp=&rft.place=[% BIBLIO_RESULT.place | html %]&rft.pub=[% BIBLIO_RESULT.publisher |url %]&rft.edition=[% BIBLIO_RESULT.edition | html %]&rft.series=[% BIBLIO_RESULT.series | html %]&rft.genre="></span>
263 [% IF ( TagsInputEnabled && loggedinusername ) %]
264 <span id="newtag[% BIBLIO_RESULT.biblionumber | html %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</span>
267 <td>[% BIBLIO_RESULT.author | html %]</td>
269 [% IF ( BIBLIO_RESULT.publicationyear ) %]
270 [% BIBLIO_RESULT.publicationyear | html %]
272 [% BIBLIO_RESULT.copyrightdate | html %]
275 <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
277 [% ITEM_RESULT.branchname | html %]
278 [% IF ( ITEM_RESULT.location_opac ) %]<span class="shelvingloc">[% ITEM_RESULT.location_opac | html %]</span>[% END %]
279 [% IF ( ITEM_RESULT.itemcallnumber ) %]
280 ([% ITEM_RESULT.itemcallnumber | html %])
282 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
284 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
287 [% END # / FOREACH BIBLIO_RESULT %]
291 [% END # / verbose %]
293 <form name="myform" action="opac-basket.pl" method="get">
294 <input type="hidden" name="records" id="records" />
297 </div> <!-- / #userbasket -->
298 </div> <!-- / .span10 -->
299 </div> <!-- / .row-fluid -->
300 </div> <!-- / .container-fluid -->
301 </div> <!-- / .main -->
303 [% INCLUDE 'opac-bottom.inc' %]
305 [% BLOCK jsinclude %]
306 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
307 [% INCLUDE 'datatables.inc' %]
309 [% IF ( TagsInputEnabled && loggedinusername ) %]
310 function tagSelected() {
311 var bibs = document.getElementById('records').value;
313 $("#tagsel_tag").hide();
314 $("#tag_hides").hide();
315 $("#tagsel_form").show();
317 alert(MSG_NO_RECORD_SELECTED);
321 function tagCanceled() {
322 $("#tagsel_form").hide();
323 $("#tagsel_tag").show();
324 $("#tag_hides").show();
325 $("#tagsel_new").val("");
326 $(".tagstatus").empty().hide();
329 function tagAdded() {
330 var checkedBoxes = $("input:checkbox:checked");
331 if (!$(checkedBoxes).size()) {
332 alert(MSG_NO_RECORD_SELECTED);
336 var tag = $("#tagsel_new").val();
337 if (!tag || (tag == "")) {
338 alert(MSG_NO_TAG_SPECIFIED);
343 for (var i = 0; i < $(checkedBoxes).size(); i++) {
344 var box = $(checkedBoxes).get(i);
345 bibs[i] = $(box).val();
348 KOHA.Tags.add_multitags_button(bibs, tag);
351 [% END # / TagsInputEnabled && loggedinusername %]
353 $(document).ready(function(){
354 $(".brief").click(function(e){
359 $(".detail").click(function(e){
364 $(".send").click(function(e){
369 $(".download").click(function(e){
374 $(".empty").click(function(e){
379 $(".deleteshelf").click(function(e){
384 $(".newshelf").click(function(e){
389 $(".hold").click(function(e){
394 $("#tagsel_tag").click(function(e){
399 $("#tagsel_button").click(function(e){
404 $("#tagsel_cancel").click(function(e){
409 $("#CheckAll").click(function(){
411 $(".checkboxed").checkCheckboxes("*", true).each(
413 selRecord(this.value,true);
416 enableCheckboxActions();
420 $("#CheckNone").click(function(){
422 $(".checkboxed").unCheckCheckboxes("*",true).each(
424 selRecord(this.value,false);
427 enableCheckboxActions();
431 var itemst = $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
432 "order": [[ 1, "asc" ]],
434 { "targets": [ 0,-1 ], "sortable": false, "searchable": false }
438 { "type": "anti-the" },
446 var buttons = new $.fn.dataTable.Buttons(itemst, {
450 }).container().appendTo($('#toolbar'));
452 $(".cb").change(function(){
453 selRecord( $(this).val(), $(this).prop("checked") );
454 enableCheckboxActions();
457 enableCheckboxActions();
460 function enableCheckboxActions(){
461 // Enable/disable controls if checkboxes are checked
462 var checkedBoxes = $(".checkboxed input:checkbox:checked");
463 if ($(checkedBoxes).size()) {
464 $("#selections").html(_("With selected titles: "));
465 $("#selections-toolbar .links a").removeClass("disabled");
467 $("#selections").html(_("Select titles to: "));
468 $("#selections-toolbar .links a").addClass("disabled");
472 [% END # / BLOCK jsinclude %]