Bugzilla – Attachment 140234 Details for
Bug 27421
Porting tools/stage-marc-import.pl to BackgroundJob
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27421: (QA follow-up) Add redirection to job details
Bug-27421-QA-follow-up-Add-redirection-to-job-deta.patch (text/plain), 3.56 KB, created by
Marcel de Rooy
on 2022-09-06 12:49:12 UTC
(
hide
)
Description:
Bug 27421: (QA follow-up) Add redirection to job details
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-09-06 12:49:12 UTC
Size:
3.56 KB
patch
obsolete
>From 755209b5be2715d234d2977f9d5a96d12c50741f Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 6 Sep 2022 12:44:39 +0000 >Subject: [PATCH] Bug 27421: (QA follow-up) Add redirection to job details >Content-Type: text/plain; charset=utf-8 > >Low budget implementation. After 5 seconds we jump to jobs. >Small jobs should already be finished. > >Test plan: >Try staging a file. Wait and see if you got redirected. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../prog/en/modules/tools/manage-marc-import.tt | 8 +++++++- > .../prog/en/modules/tools/stage-marc-import.tt | 8 +++++++- > 2 files changed, 14 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >index 2efba77b09..85e34fb091 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt >@@ -77,7 +77,7 @@ > [% IF job_enqueued %] > <div class="dialog message"> > <p>The job has been enqueued! It will be processed as soon as possible.</p> >- <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a> >+ <p><a class="job_details" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a> > </div> > > [% ELSIF ( label_batch_msg ) %] >@@ -608,6 +608,12 @@ > return confirm(_("Clear all reservoir records staged in this batch? This cannot be undone.")); > } > }); >+ [% IF job_enqueued %] >+ setTimeout( >+ function() { window.location.href=$('a.job_details').attr('href'); }, >+ 5000, // 5 secs to read >+ ); >+ [% END %] > }); > > </script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt >index 5049140329..8a23682952 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt >@@ -74,7 +74,7 @@ > <h1>MARC staging</h1> > <div class="dialog message"> > <p>The job has been enqueued! It will be processed as soon as possible.</p> >- <p><a href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a> >+ <p><a class="job_details" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id=[% job_id | uri %]" title="View detail of the enqueued job">View detail of the enqueued job</a> > </div> > [% ELSE %] > <h1>Stage MARC records for import</h1> >@@ -421,6 +421,12 @@ > alert(_("An error occurred")+"\n\n"+((error.responseJSON && error.responseJSON.error) || error.responseText || error.statusText)); > }) > }); >+ [% IF job_enqueued %] >+ setTimeout( >+ function() { window.location.href=$('a.job_details').attr('href'); }, >+ 5000, // 5 secs to read >+ ); >+ [% END %] > }); > > function StartUpload() { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27421
:
136127
|
136128
|
136129
|
136216
|
136217
|
136338
|
136339
|
138642
|
138643
|
138656
|
138657
|
138660
|
138881
|
139384
|
139385
|
139386
|
139387
|
139388
|
139448
|
139449
|
139450
|
139797
|
140205
|
140206
|
140207
|
140208
|
140223
|
140224
|
140225
|
140226
|
140227
|
140228
|
140229
|
140230
|
140231
|
140232
|
140233
| 140234 |
140759