From b29c5238adfd9c955e3f800e90ae88e9dd6d61d1 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 9 Jun 2021 09:24:53 +0200 Subject: [PATCH] Revert "Bug 28158: Remove additional backgroundjob related code" This reverts commit 7f35a238f219faa7e21d3bed0742f4ac53f116f1. --- .../prog/en/modules/tools/batchMod-edit.tt | 10 ++++++++++ tools/batchMod.pl | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 60cd73d299..a9188ed437 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -5,6 +5,7 @@ Koha › Tools › Batch item modification [% INCLUDE 'doc-head-close.inc' %] [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] +[% Asset.js("js/background-job-progressbar.js") | $raw %] [% Asset.js("js/cataloging.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% Asset.js("js/pages/batchMod.js") | $raw %] @@ -34,6 +35,9 @@ $(document).ready(function(){ $(regex_link).show(); } }); + $("#mainformsubmit").on("click",function(){ + //return submitBackgroundJob(this.form); + }); $('a[name="field_regex"]').click(function() { var id = $(this).attr('id'); var editor = $(this).parent().find("[name='field_value']"); @@ -146,6 +150,8 @@ $(document).ready(function(){ + + [% IF biblionumber %] @@ -344,6 +350,10 @@ $(document).ready(function(){
+
+
Job progress:
0%
+
+
Cancel
diff --git a/tools/batchMod.pl b/tools/batchMod.pl index dacdf8e8ad..b5dba8aa8f 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -170,6 +170,13 @@ if ($op eq "action") { } } + my $yesno = Koha::AuthorisedValues->search({category => 'YES_NO'}); + my $ynhash = {}; + + while(my $yn = $yesno->next) { + $ynhash->{'av'.$yn->authorised_value} = $yn->lib; + } + my $upd_biblionumbers; my $del_biblionumbers; try { @@ -178,6 +185,7 @@ if ($op eq "action") { sub { # For each item my $i = 1; + my $extra_headers = {}; foreach my $itemnumber (@itemnumbers) { my $item = Koha::Items->find($itemnumber); next -- 2.39.5