5 [% SET TagsInputEnabled = ( ( Koha.Preference( 'opacuserlogin' ) == 1 ) && TagsEnabled && TagsInputOnList ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Your cart</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %]<style>.item-status, .dt-buttons { display: inline; } @media print { body { height: 99%; } }</style>[% END %]
12 [% INCLUDE 'bodytag.inc' bodyid='basket' %]
14 <div class="container-fluid">
15 <div class="row-fluid">
19 <div id="toolbar" class="toolbar noprint">
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="empty" href="opac-basket.pl">Empty and close</a>
30 <a class="hide close" href="opac-basket.pl">Hide window</a>
32 <a class="print-large" href="#">Print</a>
36 <div id="selections-toolbar" class="toolbar noprint">
37 <a id="CheckAll" href="#">Select all</a>
38 <a id="CheckNone" href="#">Clear all</a>
39 <span class="sep">|</span>
40 <span class="links" id="tag_hides">
41 <span id="selections">Select titles to: </span>
42 <a href="#" class="deleteshelf disabled">Remove</a>
43 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
44 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
45 <a href="#" class="newshelf disabled">Add to a list</a>
47 [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
48 <a href="#" class="hold disabled">Place hold</a>
50 [% IF ( TagsInputEnabled && loggedinusername ) %]
51 <a href="#" id="tagsel_tag" class="disabled">Tag</a>
53 [% END # / IF opacuserlogin %]
55 [% IF ( TagsInputEnabled && loggedinusername ) %]
56 <span id="tagsel_form" style="display:none">
57 <label for="tagsel_new">New tag:</label>
58 <input type="text" name="tagsel_new" id="tagsel_new" maxlength="100" />
59 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add">
60 <a href="#" id="tagsel_cancel">Cancel</a>
66 <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
67 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
69 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
70 [% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT %]
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 | 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>
77 [% IF ( BIBLIO_RESULT.isbn ) %]
79 <th scope="row">ISBN</th>
80 <td>[% BIBLIO_RESULT.isbn | html %]</td>
84 [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
86 <th scope="row">Author(s)</th>
88 [% IF ( BIBLIO_RESULT.author ) %]
89 <p>[% BIBLIO_RESULT.author | html %]</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 | html %]
95 [% MARCAUTHOR_SUBFIELDS_LOO.value | html %]
104 [% IF ( BIBLIO_RESULT.publishercode ) %]
106 <th scope="row">Publisher</th>
107 <td>[% BIBLIO_RESULT.place | html %] [% BIBLIO_RESULT.publishercode | html %] [% BIBLIO_RESULT.publicationyear | html %]
112 [% IF ( BIBLIO_RESULT.pages ) %]
114 <th scope="row">Details</th>
115 <td>[% BIBLIO_RESULT.pages | html %] [% BIBLIO_RESULT.illus | html %] [% BIBLIO_RESULT.item('size') | html %]</td>
119 [% IF ( BIBLIO_RESULT.seriestitle ) %]
121 <th scope="row">Collection</th>
122 <td> [% BIBLIO_RESULT.seriestitle | html %]</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 | html %][% MARCSUBJECT_SUBFIELDS_LOO.value | html %][% END %]
137 [% IF ( BIBLIO_RESULT.copyrightdate ) %]
138 <tr><th scope="row">Copyright</th>
139 <td> [% BIBLIO_RESULT.copyrightdate | html %]</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 | url %]">[% MARCNOTE.marcnote | html %]</a>
152 - [% MARCNOTE.marcnote | html %]
160 [% IF ( BIBLIO_RESULT.unititle ) %]
162 <th scope="row">Unified title</th>
163 <td> [% BIBLIO_RESULT.unititle | html %]</td>
167 [% IF ( BIBLIO_RESULT.serial ) %]
169 <th scope="row">Serial</th>
170 <td>[% BIBLIO_RESULT.serial | html %]</td>
174 [% IF ( BIBLIO_RESULT.dewey ) %]
176 <th scope="row">Dewey</th>
177 <td>[% BIBLIO_RESULT.dewey | html %]</td>
181 [% IF ( BIBLIO_RESULT.classification ) %]
183 <th scope="row">Classification</th>
184 <td> [% BIBLIO_RESULT.classification | html %]</td>
188 [% IF ( BIBLIO_RESULT.lccn ) %]
190 <th scope="row">LCCN</th>
191 <td> [% BIBLIO_RESULT.lccn | html %]</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 | html %]</p>[% END %]
202 [% IF OPACURLOpenInNewWindow %]
203 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">[% MARCurl.linktext | html %]</a>
205 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">[% MARCurl.linktext | html %]</a>
208 [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]<p>[% note.note | html %]</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 | html %]</strong>
222 [% IF ( ITEM_RESULT.location_opac ) %]<span class="shelvingloc">[% ITEM_RESULT.location_opac | html %]</span>[% END %]
223 [% IF ( ITEM_RESULT.itemcallnumber ) %]
224 ([% ITEM_RESULT.itemcallnumber | html %])
226 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
231 This record has no items.
236 [% END # / FOREACH BIBLIO_RESULT %]
241 <form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
242 <table id="itemst" class="table table-bordered table-striped">
245 <th class="noprint"> </th>
249 <th>Location (Status)</th>
253 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
256 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber | html %]" name="bib[% BIBLIO_RESULT.biblionumber | html %]" id="bib[% BIBLIO_RESULT.biblionumber | html %]">
259 <a href="#" onclick="openBiblio('[% BIBLIO_RESULT.dest | html %]',[% BIBLIO_RESULT.biblionumber | html %])">[% INCLUDE 'biblio-title.inc' biblio=BIBLIO_RESULT %]</a>
260 <!-- COinS / Openurl -->
261 <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>
262 [% IF ( TagsInputEnabled && loggedinusername ) %]
263 <span id="newtag[% BIBLIO_RESULT.biblionumber | html %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</span>
266 <td>[% BIBLIO_RESULT.author | html %]</td>
268 [% IF ( BIBLIO_RESULT.publicationyear ) %]
269 [% BIBLIO_RESULT.publicationyear | html %]
271 [% BIBLIO_RESULT.copyrightdate | html %]
274 <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
276 [% ITEM_RESULT.branchname | html %]
277 [% IF ( ITEM_RESULT.location_opac ) %]<span class="shelvingloc">[% ITEM_RESULT.location_opac | html %]</span>[% END %]
278 [% IF ( ITEM_RESULT.itemcallnumber ) %]
279 ([% ITEM_RESULT.itemcallnumber | html %])
281 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
283 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
286 [% END # / FOREACH BIBLIO_RESULT %]
290 [% END # / verbose %]
292 <form name="myform" action="opac-basket.pl" method="get">
293 <input type="hidden" name="records" id="records" />
296 </div> <!-- / #userbasket -->
297 </div> <!-- / .span10 -->
298 </div> <!-- / .row-fluid -->
299 </div> <!-- / .container-fluid -->
300 </div> <!-- / .main -->
302 [% INCLUDE 'opac-bottom.inc' %]
304 [% BLOCK jsinclude %]
305 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
306 [% INCLUDE 'datatables.inc' %]
310 [% IF ( TagsInputEnabled && loggedinusername ) %]
311 function tagSelected() {
312 var bibs = document.getElementById('records').value;
314 $("#tagsel_tag").hide();
315 $("#tag_hides").hide();
316 $("#tagsel_form").show();
318 alert(MSG_NO_RECORD_SELECTED);
322 function tagCanceled() {
323 $("#tagsel_form").hide();
324 $("#tagsel_tag").show();
325 $("#tag_hides").show();
326 $("#tagsel_new").val("");
327 $(".tagstatus").empty().hide();
330 function tagAdded() {
331 var checkedBoxes = $("input:checkbox:checked");
332 if (!$(checkedBoxes).size()) {
333 alert(MSG_NO_RECORD_SELECTED);
337 var tag = $("#tagsel_new").val();
338 if (!tag || (tag == "")) {
339 alert(MSG_NO_TAG_SPECIFIED);
344 for (var i = 0; i < $(checkedBoxes).size(); i++) {
345 var box = $(checkedBoxes).get(i);
346 bibs[i] = $(box).val();
349 KOHA.Tags.add_multitags_button(bibs, tag);
352 [% END # / TagsInputEnabled && loggedinusername %]
354 $(document).ready(function(){
355 $(".brief").click(function(e){
360 $(".detail").click(function(e){
365 $(".send").click(function(e){
370 $(".download").click(function(e){
375 $(".empty").click(function(e){
380 $(".deleteshelf").click(function(e){
385 $(".newshelf").click(function(e){
390 $(".hold").click(function(e){
395 $("#tagsel_tag").click(function(e){
400 $("#tagsel_button").click(function(e){
405 $("#tagsel_cancel").click(function(e){
410 $("#CheckAll").click(function(){
412 $(".checkboxed").checkCheckboxes("*", true).each(
414 selRecord(this.value,true);
417 enableCheckboxActions();
421 $("#CheckNone").click(function(){
423 $(".checkboxed").unCheckCheckboxes("*",true).each(
425 selRecord(this.value,false);
428 enableCheckboxActions();
432 var itemst = $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
433 "order": [[ 1, "asc" ]],
435 { "targets": [ 0,-1 ], "sortable": false, "searchable": false }
439 { "type": "anti-the" },
447 var buttons = new $.fn.dataTable.Buttons(itemst, {
451 }).container().appendTo($('#toolbar'));
453 $(".cb").change(function(){
454 selRecord( $(this).val(), $(this).prop("checked") );
455 enableCheckboxActions();
458 enableCheckboxActions();
461 function enableCheckboxActions(){
462 // Enable/disable controls if checkboxes are checked
463 var checkedBoxes = $(".checkboxed input:checkbox:checked");
464 if ($(checkedBoxes).size()) {
465 $("#selections").html(_("With selected titles: "));
466 $("#selections-toolbar .links a").removeClass("disabled");
468 $("#selections").html(_("Select titles to: "));
469 $("#selections-toolbar .links a").addClass("disabled");
474 [% END # / BLOCK jsinclude %]