2 function placeHold () {
3 var checkedItems = $("input:checkbox:checked");
4 if ($(checkedItems).size() === 0) {
5 alert(MSG_NO_RECORD_SELECTED);
11 if ($(checkedItems).size() > 1) {
13 $(checkedItems).each(function() {
14 var bib = $(this).val();
18 newloc = "/cgi-bin/koha/reserve/request.pl?biblionumbers=" + bibs + "&multi_hold=1";
20 var bib = checkedItems[0].value;
21 newloc = "/cgi-bin/koha/reserve/request.pl?biblionumber=" + bib;
24 window.opener.location = newloc;
28 function batchDelete(){
29 var checkedItems = $("input:checkbox:checked");
30 if ($(checkedItems).size() === 0) {
31 alert(MSG_NO_RECORD_SELECTED);
37 checkedItems.each(function() {
38 var bib = $(this).val();
42 newloc = "/cgi-bin/koha/tools/batch_delete_records.pl?op=list&type=biblio&bib_list=" + bibs;
44 window.opener.location = newloc;
48 function batchModify(){
49 var checkedItems = $("input:checkbox:checked");
50 if ($(checkedItems).size() === 0) {
51 alert(MSG_NO_RECORD_SELECTED);
57 $(checkedItems).each(function() {
58 var bib = $(this).val();
61 newloc = "/cgi-bin/koha/tools/batch_record_modification.pl?op=list&bib_list=" + bibs + "&type=biblio";
63 window.opener.location = newloc;
67 $(document).ready(function(){
68 $("#items-popover").popover();
69 $("#CheckAll").click(function(){
71 $("#bookbag_form").checkCheckboxes("*", true).each(
78 $("#CheckNone").click(function(){
80 $("#bookbag_form").unCheckCheckboxes("*",true).each(
87 $(".holdsep").text("| ");
88 $(".hold").text(_("Place hold"));
89 $("#downloadcartc").empty();
91 $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
94 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
95 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
96 { "sType": "callnumbers", "aTargets" : [ "callnumbers"] }
98 "aaSorting": [[ 1, "asc" ]],
102 $(".showdetails").on("click",function(e){
104 if( $(this).hasClass("showmore") ){
111 $("#batch_modify").on("click",function(e){
115 $("#batch_delete").on("click",function(e){
120 $("#remove_from_cart").on("click",function(e){
125 $("#add_to_list").on("click",function(e){
130 $("#place_hold").on("click",function(e){
135 $("#send_cart").on("click",function(e){
140 $("#print_cart").on("click",function(e){
145 $("#empty_cart").on("click",function(e){
149 $(".open_title").on("click",function(e){
151 openBiblio( this.href );
153 $(".select_record").on("change",function(){
154 selRecord( this.value, this.checked );