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; } @media print { body { height: 99%; } }</style>[% END %]
10 [% INCLUDE 'bodytag.inc' bodyid='basket' %]
12 <div class="container-fluid">
13 <div class="row-fluid">
17 <div id="toolbar" class="toolbar">
19 <a href="opac-basket.pl" class="brief">Brief display</a>
21 <a href="opac-basket.pl" class="detail">More details</a>
23 [% IF Koha.Preference( 'opacuserlogin' ) == 1 %]
24 <a class="send" href="opac-basket.pl">Send</a>
26 <a class="download" href="opac-basket.pl">Download</a>
27 <a class="print-large" href="#">Print</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>
32 <div id="selections-toolbar" class="toolbar">
33 <a id="CheckAll" href="#">Select all</a>
34 <a id="CheckNone" href="#">Clear all</a>
35 <span class="sep">|</span>
36 <span class="links" id="tag_hides">
37 <span id="selections">Select titles to: </span>
38 <a href="#" class="deleteshelf disabled">Remove</a>
39 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) %]
40 [% IF ( ( Koha.Preference( 'virtualshelves' ) == 1 ) && loggedinusername ) %]
41 <a href="#" class="newshelf disabled">Add to a list</a>
43 [% IF ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
44 <a href="#" class="hold disabled">Place hold</a>
46 [% IF ( TagsInputEnabled && loggedinusername ) %]
47 <a href="#" id="tagsel_tag" class="disabled">Tag</a>
49 [% END # / IF opacuserlogin %]
51 [% IF ( TagsInputEnabled && loggedinusername ) %]
52 <span id="tagsel_form" style="display:none">
53 <label for="tagsel_new">New tag:</label>
54 <input name="tagsel_new" id="tagsel_new" maxlength="100" />
55 <input id="tagsel_button" name="tagsel_button" class="input tagsel_button" title="Add" type="submit" value="Add">
56 <a href="#" id="tagsel_cancel">Cancel</a>
62 <form action="opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
63 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
65 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
66 [% BIBLIO_RESULT.title |html %]
67 [% IF ( BIBLIO_RESULT.subtitle ) %] [% FOREACH subtitl IN BIBLIO_RESULT.subtitle %] [% subtitl.subfield |html %] [% END %][% END %]
68 [% IF ( BIBLIO_RESULT.author ) %] [% BIBLIO_RESULT.author |html %][% END %]
70 <!-- COinS / Openurl -->
71 <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>
74 [% IF ( BIBLIO_RESULT.isbn ) %]
76 <th scope="row">ISBN</th>
77 <td>[% BIBLIO_RESULT.isbn %]</td>
81 [% IF ( BIBLIO_RESULT.HASAUTHORS ) %]
83 <th scope="row">Author(s)</th>
85 [% IF ( BIBLIO_RESULT.author ) %]
86 <p>[% BIBLIO_RESULT.author %]</p>
88 [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
89 [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
90 <p> [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
91 [% MARCAUTHOR_SUBFIELDS_LOO.separator %]
92 [% MARCAUTHOR_SUBFIELDS_LOO.value %]
101 [% IF ( BIBLIO_RESULT.publishercode ) %]
103 <th scope="row">Publisher</th>
104 <td>[% BIBLIO_RESULT.place %] [% BIBLIO_RESULT.publishercode %] [% BIBLIO_RESULT.publicationyear %]
109 [% IF ( BIBLIO_RESULT.pages ) %]
111 <th scope="row">Details</th>
112 <td>[% BIBLIO_RESULT.pages %] [% BIBLIO_RESULT.illus %] [% BIBLIO_RESULT.item('size') %]</td>
116 [% IF ( BIBLIO_RESULT.seriestitle ) %]
118 <th scope="row">Collection</th>
119 <td> [% BIBLIO_RESULT.seriestitle %]</td>
123 [% IF ( BIBLIO_RESULT.MARCSUBJCTS ) %]
125 <th scope="row">Subject(s)</th>
126 <td>[% FOREACH MARCSUBJCT IN BIBLIO_RESULT.MARCSUBJCTS %]
127 <p> [% FOREACH MARCSUBJECT_SUBFIELDS_LOO IN MARCSUBJCT.MARCSUBJECT_SUBFIELDS_LOOP %]
128 [% MARCSUBJECT_SUBFIELDS_LOO.separator %][% MARCSUBJECT_SUBFIELDS_LOO.value %][% END %]
134 [% IF ( BIBLIO_RESULT.copyrightdate ) %]
135 <tr><th scope="row">Copyright</th>
136 <td> [% BIBLIO_RESULT.copyrightdate %]</td>
140 [% IF ( BIBLIO_RESULT.MARCNOTES ) %]
142 <th scope="row">Notes</th>
144 [% FOREACH MARCNOTE IN BIBLIO_RESULT.MARCNOTES %]
146 [% IF MARCNOTE.marcnote.match('^https?://\S+$') %]
147 - <a href="[% MARCNOTE.marcnote %]">[% MARCNOTE.marcnote %]</a>
149 - [% MARCNOTE.marcnote %]
157 [% IF ( BIBLIO_RESULT.unititle ) %]
159 <th scope="row">Unified title</th>
160 <td> [% BIBLIO_RESULT.unititle %]</td>
164 [% IF ( BIBLIO_RESULT.serial ) %]
166 <th scope="row">Serial</th>
167 <td>[% BIBLIO_RESULT.serial %]</td>
171 [% IF ( BIBLIO_RESULT.dewey ) %]
173 <th scope="row">Dewey</th>
174 <td>[% BIBLIO_RESULT.dewey %]</td>
178 [% IF ( BIBLIO_RESULT.classification ) %]
180 <th scope="row">Classification</th>
181 <td> [% BIBLIO_RESULT.classification %]</td>
185 [% IF ( BIBLIO_RESULT.lccn ) %]
187 <th scope="row">LCCN</th>
188 <td> [% BIBLIO_RESULT.lccn %]</td>
192 [% IF BIBLIO_RESULT.MARCURLS.size %]
194 <th scope="row">URL(s)</th>
196 [% FOREACH MARCurl IN BIBLIO_RESULT.MARCURLS %]
197 [% IF MARCurl.part %]<p>[% MARCurl.part %]</p>[% END %]
199 [% IF OPACURLOpenInNewWindow %]
200 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]" target="_blank" rel="noreferrer">[% MARCurl.linktext %]</a>
202 <a href="[% MARCurl.MARCURL %]" title="[% MARCurl.MARCURL %]">[% MARCurl.linktext %]</a>
205 [% IF MARCurl.notes %][% FOREACH note IN MARCurl.notes %]<p>[% note.note %]</p>[% END %][% END %]
212 <th scope="row">Location(s) (Status)</th>
214 [% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]
216 [% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
218 <strong>[% ITEM_RESULT.branchname %]</strong>[% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
219 [% IF ( ITEM_RESULT.itemcallnumber ) %]
220 ([% ITEM_RESULT.itemcallnumber %])
222 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
227 This record has no items.
232 [% END # / FOREACH BIBLIO_RESULT %]
237 <form action="/cgi-bin/koha/opac-basket.pl" method="get" name="bookbag_form" id="bookbag_form" class="checkboxed">
238 <table id="itemst" class="table table-bordered table-striped">
241 <th class="noprint"> </th>
245 <th>Location (Status)</th>
249 [% FOREACH BIBLIO_RESULT IN BIBLIO_RESULTS %]
252 <input type="checkbox" class="cb" value="[% BIBLIO_RESULT.biblionumber %]" name="bib[% BIBLIO_RESULT.biblionumber %]" id="bib[% BIBLIO_RESULT.biblionumber %]">
255 <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>
256 <!-- COinS / Openurl -->
257 <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>
258 [% IF ( TagsInputEnabled && loggedinusername ) %]
259 <span id="newtag[% BIBLIO_RESULT.biblionumber %]_status" class="tagstatus results_summary" style="display:none">Tag status here.</span>
262 <td>[% BIBLIO_RESULT.author %]</td>
264 [% IF ( BIBLIO_RESULT.publicationyear ) %]
265 [% BIBLIO_RESULT.publicationyear %]
267 [% BIBLIO_RESULT.copyrightdate %]
270 <td>[% IF ( BIBLIO_RESULT.ITEM_RESULTS ) %]<ul>[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]
272 [% ITEM_RESULT.branchname %][% IF ( ITEM_RESULT.location_opac ) %], [% ITEM_RESULT.location_opac %][% END %]
273 [% IF ( ITEM_RESULT.itemcallnumber ) %]
274 ([% ITEM_RESULT.itemcallnumber %])
276 ([% INCLUDE 'item-status.inc' item = ITEM_RESULT %])
278 [% END %]</ul>[% ELSE %]This record has no items.[% END %]
281 [% END # / FOREACH BIBLIO_RESULT %]
285 [% END # / verbose %]
287 <form name="myform" action="opac-basket.pl" method="get">
288 <input type="hidden" name="records" id="records" />
291 </div> <!-- / #userbasket -->
292 </div> <!-- / .span10 -->
293 </div> <!-- / .row-fluid -->
294 </div> <!-- / .container-fluid -->
295 </div> <!-- / .main -->
297 [% INCLUDE 'opac-bottom.inc' %]
299 [% BLOCK jsinclude %]
300 <script type="text/javascript" src="[% interface %]/[% theme %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
301 [% INCLUDE 'datatables.inc' %]
302 <script type="text/javascript">
305 [% IF ( TagsInputEnabled && loggedinusername ) %]
306 function tagSelected() {
307 var bibs = document.getElementById('records').value;
309 $("#tagsel_tag").hide();
310 $("#tag_hides").hide();
311 $("#tagsel_form").show();
313 alert(MSG_NO_RECORD_SELECTED);
317 function tagCanceled() {
318 $("#tagsel_form").hide();
319 $("#tagsel_tag").show();
320 $("#tag_hides").show();
321 $("#tagsel_new").val("");
322 $(".tagstatus").empty().hide();
325 function tagAdded() {
326 var checkedBoxes = $("input:checkbox:checked");
327 if (!$(checkedBoxes).size()) {
328 alert(MSG_NO_RECORD_SELECTED);
332 var tag = $("#tagsel_new").val();
333 if (!tag || (tag == "")) {
334 alert(MSG_NO_TAG_SPECIFIED);
339 for (var i = 0; i < $(checkedBoxes).size(); i++) {
340 var box = $(checkedBoxes).get(i);
341 bibs[i] = $(box).val();
344 KOHA.Tags.add_multitags_button(bibs, tag);
347 [% END # / TagsInputEnabled && loggedinusername %]
349 $(document).ready(function(){
350 $(".brief").click(function(e){
355 $(".detail").click(function(e){
360 $(".send").click(function(e){
365 $(".download").click(function(e){
370 $(".empty").click(function(e){
375 $(".deleteshelf").click(function(e){
380 $(".newshelf").click(function(e){
385 $(".hold").click(function(e){
390 $("#tagsel_tag").click(function(e){
395 $("#tagsel_button").click(function(e){
400 $("#tagsel_cancel").click(function(e){
405 $("#CheckAll").click(function(){
407 $(".checkboxed").checkCheckboxes("*", true).each(
409 selRecord(this.value,true);
412 enableCheckboxActions();
416 $("#CheckNone").click(function(){
418 $(".checkboxed").unCheckCheckboxes("*",true).each(
420 selRecord(this.value,false);
423 enableCheckboxActions();
427 $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
428 "aaSorting": [[ 1, "asc" ]],
430 { "aTargets": [ 0,-1 ], "bSortable": false, "bSearchable": false }
434 { "sType": "anti-the" },
441 $(".cb").change(function(){
442 selRecord( $(this).val(), $(this).prop("checked") );
443 enableCheckboxActions();
446 enableCheckboxActions();
449 function enableCheckboxActions(){
450 // Enable/disable controls if checkboxes are checked
451 var checkedBoxes = $(".checkboxed input:checkbox:checked");
452 if ($(checkedBoxes).size()) {
453 $("#selections").html(_("With selected titles: "));
454 $("#selections-toolbar .links a").removeClass("disabled");
456 $("#selections").html(_("Select titles to: "));
457 $("#selections-toolbar .links a").addClass("disabled");
462 [% END # / BLOCK jsinclude %]