]> git.koha-community.org Git - koha.git/commit
Bug 35408: Fix import job link
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 28 Nov 2023 08:11:43 +0000 (09:11 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 11 Dec 2023 18:41:23 +0000 (19:41 +0100)
commit09d5355ffb6381b531b5d42cc97b17c1e9790da4
tree1eb50d8f3af21ea801e9f2b012c119d63385bb5d
parent5249dc42b4c9d0908bff3a3db859dda141db5db4
Bug 35408: Fix import job link

After importing titles from a list there is a link to the background job
that is displayed.
This link points to /cgi-bin/koha/admin/background_jobs/:id
There is a route to this path in routes/erm.js, to redirect to the
correct URI /cgi-bin/koha/admin/background_jobs.pl?op=view&id=:id
However this link will not work if we are accessing it from outside the
ERM app/module, or if we are opening it in a new tab/window.

The idea was interesting, but does not work...

Test plan:
Create a new ERM local package, a new list (virtual shelf), add some
items to the list.
Go to E-resource management > eHoldings > Local > Titles > Import from a list
Click "import"
Notice the "see job" link and click it

=> Confirm that with this patch applied you can open it in a new tab
without getting a 404

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesFormImport.vue
koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js