]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1949214: do not jump-on-single-hit when doing metarecord search in staff catalog
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 26 Mar 2024 14:38:25 +0000 (10:38 -0400)
committerJane Sandberg <js7389@princeton.edu>
Wed, 17 Apr 2024 17:25:52 +0000 (10:25 -0700)
commit17296d7fea50856a7313cf1976c9348fdd3b2a19
tree31194ced7972355633c133fa87d257e71fb0938d
parentf078afb24f89ae4a15066fc43419dfce503cbda1
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>
Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts