Bug 33445: Pass through form info if present and use record values otherwise
authorNick Clemens <nick@bywatersolutions.com>
Fri, 28 Apr 2023 12:39:58 +0000 (12:39 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 May 2023 14:22:37 +0000 (11:22 -0300)
commit44e868f464af037410766f97f4036b26e92177a9
tree0f9f11f7ad8b60d1655a0c93bdd3bee8863daef8
parent5d6f0723ce74996a881dfbdf58066b9a15c09bb3
Bug 33445: Pass through form info if present and use record values otherwise

This patch updates the form to pass through values formthe form when searching, and
to use record values if nothing is passed in.

TO test:
 1 - Without the patch, edit a personal name authority record
 2 - Replace 100 subfield a (200 subfield a for UNIMARC) with your own name
 3 - Click "Replace record via Z39.50/SRU search"
 4 - Note that prefilled search field contains the original value, not your name.
 5 - Replace the Author (personal) field with your name in the search form
 6 - choose a search target, and click Search.
 7 - Note that the results of the search are for the original value, not your name
 8 - From the details page of a record, click 'Edit -> Replace record via Z3950'
 9 - Note form is prefilled
10 - Change value as in 5 and search
11 - Note original term was searched
12 - Apply patch, restart all
13 - Repeat searches as before
14 - Confirm that form is prefilled with record or the updated value
15 - Confirm your entered search terms are always searched

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
cataloguing/z3950_auth_search.pl