Lines 57-63
Link Here
|
57 |
<span class="itemselection_actions"> |
57 |
<span class="itemselection_actions"> |
58 |
| Actions: |
58 |
| Actions: |
59 |
[% IF CAN_user_tools_items_batchdel %] |
59 |
[% IF CAN_user_tools_items_batchdel %] |
60 |
<form id="itemselection_action_delete_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> |
60 |
<form class="itemselection_action_delete_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> |
61 |
[% INCLUDE 'csrf-token.inc' %] |
61 |
[% INCLUDE 'csrf-token.inc' %] |
62 |
<input name='src' type='hidden' value='CATALOGUING' /> |
62 |
<input name='src' type='hidden' value='CATALOGUING' /> |
63 |
<input name='biblionumber' type='hidden' value="[% biblionumber | html %]" /> |
63 |
<input name='biblionumber' type='hidden' value="[% biblionumber | html %]" /> |
Lines 67-73
Link Here
|
67 |
</form> |
67 |
</form> |
68 |
[% END %] |
68 |
[% END %] |
69 |
[% IF CAN_user_tools_items_batchmod %] |
69 |
[% IF CAN_user_tools_items_batchmod %] |
70 |
<form id="itemselection_action_modify_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> |
70 |
<form class="itemselection_action_modify_form" method="post" action="/cgi-bin/koha/tools/batchMod.pl"> |
71 |
[% INCLUDE 'csrf-token.inc' %] |
71 |
[% INCLUDE 'csrf-token.inc' %] |
72 |
<input name='src' type='hidden' value='CATALOGUING' /> |
72 |
<input name='src' type='hidden' value='CATALOGUING' /> |
73 |
<input name='biblionumber' type='hidden' value="[% biblionumber | html %]" /> |
73 |
<input name='biblionumber' type='hidden' value="[% biblionumber | html %]" /> |
Lines 95-104
Link Here
|
95 |
|
95 |
|
96 |
let items_selection = {}; |
96 |
let items_selection = {}; |
97 |
|
97 |
|
98 |
function _itemSelectionBuildLink(tab_id, form) { |
98 |
function _itemSelectionBuildLink(tab_id, link_class) { |
99 |
|
|
|
100 |
var itemnumbers = items_selection[tab_id]; |
101 |
|
99 |
|
|
|
100 |
let itemnumbers = items_selection[tab_id]; |
101 |
let form = $("#" + tab_id).find(link_class); |
102 |
$(form).find("input[name='itemnumber']").remove(); |
102 |
$(form).find("input[name='itemnumber']").remove(); |
103 |
|
103 |
|
104 |
$(itemnumbers).each(function() { |
104 |
$(itemnumbers).each(function() { |
Lines 107-116
Link Here
|
107 |
return !!itemnumbers.length |
107 |
return !!itemnumbers.length |
108 |
} |
108 |
} |
109 |
function itemSelectionBuildDeleteLink(tab_id) { |
109 |
function itemSelectionBuildDeleteLink(tab_id) { |
110 |
return _itemSelectionBuildLink(tab_id, $('#itemselection_action_delete_form')); |
110 |
return _itemSelectionBuildLink(tab_id, '.itemselection_action_delete_form'); |
111 |
} |
111 |
} |
112 |
function itemSelectionBuildModifyLink(tab_id) { |
112 |
function itemSelectionBuildModifyLink(tab_id) { |
113 |
return _itemSelectionBuildLink(tab_id, $('#itemselection_action_modify_form')); |
113 |
return _itemSelectionBuildLink(tab_id, '.itemselection_action_modify_form'); |
114 |
} |
114 |
} |
115 |
|
115 |
|
116 |
function itemSelectionBuildActionLinks(tab_id) { |
116 |
function itemSelectionBuildActionLinks(tab_id) { |
117 |
- |
|
|