-
Committer:
Jane Sandberg
-
Author(s):
Galen Charlton
-
Date:
2024-04-17 17:28:39 UTC
-
Revision ID:
git-v1:f314ffdcda88009f44bf21f8cca3c6faec82ff9c
LP#1949214: do not jump-on-single-hit when doing metarecord search in staff catalog
This patch fixes an issue where the staff catalog search would attempt to
jump to a bib record whose ID was the same as the metarecord when doing
a metarecord ("Group Formats/Editions") search that returns a single hit.
Unlike the OPAC, this patch does not attempt to jump to the bib when
the single metarecord has only one constituent record.
To test
-------
[1] Turn on the "Jump to details on 1 hit (staff client)" library
setting.
[2] Perform a metarecord search in the staff catalog that results in
a single hit. Observe that the staff catalog jumps to an incorrect
record (or no record at all).
[3] Apply the patch and repeat step to. This time, the catalog should
display the correct search results without attempting to jump
to a single record.
[4] Verify that the patch does not break jumping to the record when
doing a non-metarecord search that returns a single hit.
Release-note: Fixes problem where the staff catalog could attempt to jump to an
incorrect record when performing a metarecord search that returns a single result.
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>