Bug 23987: Use src=CATALOGUING for edition/deletion in batch from items table
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 20 Nov 2019 09:53:32 +0000 (10:53 +0100)
committerHayley Mapley <hayleymapley@catalyst.net.nz>
Mon, 10 Feb 2020 03:32:58 +0000 (16:32 +1300)
There are 2 ways to land in batchMod from the detail page of a bib
record: from the Edit menu, and the action buttons on top of the items
table.

We want the same behavior for both and so use src=CATALOGUING
It will make batchMod to behave identically for the "return" button

Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 54e114833260055cd2b0131bc0548f80a5d7ff29)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 5d78c86daa6ea264f7238792da679cf36bf6b328)

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index ee05144..93c35b3 100644 (file)
                 if (itemnumbers.length > 0) {
                     var url = '/cgi-bin/koha/tools/batchMod.pl?op=show&del=1';
                     url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
-                    url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
+                    url += '&src=CATALOGUING';
                     $('a.itemselection_action_delete').attr('href', url);
                 } else {
                     return false;
                 if (itemnumbers.length > 0) {
                     var url = '/cgi-bin/koha/tools/batchMod.pl?op=show';
                     url += '&itemnumber=' + itemnumbers.join('&itemnumber=');
-                    url += '&src=' + '[% "/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber" |uri %]';
+                    url += '&src=CATALOGUING';
                     $('a.itemselection_action_modify').attr('href', url);
                 } else {
                     return false;