@@ -, +, @@ modified/deleted in the Batch item tools --- .../prog/en/includes/html_helpers.inc | 14 ++++++++++---- koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js | 9 +++------ 2 files changed, 13 insertions(+), 10 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc @@ -213,7 +213,7 @@ [% IF display_columns_selection %][%# Needs js/pages/batchMod.js %] [% IF checkboxes_edit OR checkboxes_delete %]
- Select all | Clear all | Clear on loan + Select all | Clear all
[% END %] @@ -268,7 +268,9 @@ [% item.index + 1 | html %] [% IF checkboxes_edit %] [% UNLESS can_be_edited%] - Cannot edit + + + [% ELSE %] @@ -276,7 +278,9 @@ [% END %] [% ELSIF checkboxes_delete %] [% UNLESS can_be_edited %] - Cannot delete + + + [% ELSE %] [% IF item.safe_to_delete %] @@ -293,7 +297,9 @@ [% END %] [% END %] - + + + [% END %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js +++ a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js @@ -127,6 +127,9 @@ $(document).ready(function () { ], "bPaginate": false, })); + // Highlight in yellow item rows that cannot be deleted + $(".error").parents('tr').find('td').css('background-color', '#ffff99'); + $("#selectallbutton").click(function (e) { e.preventDefault(); $("#itemst input:checkbox").each(function () { @@ -139,12 +142,6 @@ $(document).ready(function () { $(this).prop("checked", false); }); }); - $("#clearonloanbutton").click(function () { - $("#itemst input[name='itemnumber'][data-is-onloan='1']").each(function () { - $(this).prop('checked', false); - }); - return false; - }); $("#selections input").change(function (e) { var num = $(this).attr("id"); if (num == 'showall') { --