Browse Source

Bug 28158: Remove additional backgroundjob related code

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Jonathan Druart 2 years ago
parent
commit
48e5171214
  1. 10
      koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt
  2. 8
      tools/batchMod.pl

10
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt

@ -118,8 +118,6 @@
<input type="hidden" name="op" value="[% op | html %]" />
<input type="hidden" name="searchid" value="[% searchid | html %]" />
<input type="hidden" name="uploadedfileid" id="uploadedfileid" value="" />
<input type="hidden" name="runinbackground" id="runinbackground" value="" />
<input type="hidden" name="completedJobID" id="completedJobID" value="" />
<input type="hidden" name="src" id="src" value="[% src | html %]" />
[% IF biblionumber %]
<input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
@ -340,10 +338,6 @@
</fieldset>
<fieldset class="action">
<div id="jobpanel">
<div id="jobstatus" class="progress_panel">Job progress: <div id="jobprogress"></div> <span id="jobprogresspercent">0</span>%</div>
<div id="jobfailed"></div>
</div>
<input type="submit" id="mainformsubmit" value="Save" />
<a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel">Cancel</a>
</fieldset>
@ -370,7 +364,6 @@
[% MACRO jsinclude BLOCK %]
[% 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 %]
@ -399,9 +392,6 @@
$(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']");

8
tools/batchMod.pl

@ -170,13 +170,6 @@ 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 {
@ -185,7 +178,6 @@ 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

Loading…
Cancel
Save