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(
73 selRecord(this.value,true);
79 $("#CheckNone").click(function(){
81 $("#bookbag_form").unCheckCheckboxes("*",true).each(
83 selRecord(this.value,false);
89 $(".holdsep").text("| ");
90 $(".hold").text(_("Place hold"));
91 $("#downloadcartc").empty();
93 $("#itemst").dataTable($.extend(true, {}, dataTablesDefaults, {
96 { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
97 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
98 { "sType": "callnumbers", "aTargets" : [ "callnumbers"] }
100 "aaSorting": [[ 1, "asc" ]],
104 $(".showdetails").on("click",function(e){
106 if( $(this).hasClass("showmore") ){
113 $("#batch_modify").on("click",function(e){
117 $("#batch_delete").on("click",function(e){
122 $("#remove_from_cart").on("click",function(e){
127 $("#add_to_list").on("click",function(e){
132 $("#place_hold").on("click",function(e){
137 $("#send_cart").on("click",function(e){
142 $("#print_cart").on("click",function(e){
147 $("#empty_cart").on("click",function(e){
151 $(".open_title").on("click",function(e){
153 openBiblio( this.href );
155 $(".select_record").on("change",function(){
156 selRecord( this.value, this.checked );