From 56dffe16406c4655bfb93b0fff18da477489fced Mon Sep 17 00:00:00 2001 From: Jan Kissig Date: Thu, 18 Jun 2026 09:27:35 +0000 Subject: [PATCH] Bug 42874: Fix missing index param on z3950_auth_search This patch will enable the forwarding of index param in all z3950_auth_search forms to keep the reference which auth field to fill in addbiblio. Testplan: a) edit f.e. 262: /cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=262 b) go to tab 7 and create a new 700 field (icon next to ADDED ENTRY--PERSONAL NAME) c) click on the icon next to Personal name input field to open Authority search * d) click create new authority (Adding authority Personal Name) * e) click Z39.50/SRU search * f) search an author f.e. Name (any): Dalei g) on the result list every 'Import' button still has index (via hovering the import button) - but do not click import yet. h) click on 'Go' to page 1 - see result list again. The 'Import' buttons do not have index param anymore i) close that search window and go back to page 'Adding authority Personal Name' j) click Z39.50/SRU search again * k) search again for an author f.e. Name (any): Dalei l) click 'Try another search' m) check that new URL does not have index param anymore n) search again - the results will not have an index param Any imported authority will not be set/linked in the biblio that was initially edited. p) apply patch and redo steps a) - n) q) Import an author either via a 'Try another search' or via a result on a different page ('Go' button) r) save authority s) check that authority is added in your biblio in field 700. * check that the URL in the popup window has a param like &index=tag_700_subfield_a_13631_9534947903 as this is the reference to the authority you want to add in the biblio. Signed-off-by: Phil Ringnalda Signed-off-by: Martin Renvoize Signed-off-by: Lucas Gass --- .../prog/en/modules/cataloguing/z3950_auth_search.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt index f94a349556..281cff3d1c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt @@ -186,7 +186,7 @@ - + [% FOREACH server IN servers %] [% END %] @@ -216,6 +216,7 @@ + @@ -249,6 +250,7 @@ +