LP#1912852: add jump-on-one-hit support to Angular staff catalog
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 13 Jul 2021 14:11:29 +0000 (10:11 -0400)
committerJason Etheridge <jason@EquinoxOLI.org>
Fri, 13 Aug 2021 20:43:38 +0000 (16:43 -0400)
commite064140d752bc4da207e465400b42eeb6914fece
tree52137ee685c3d182df19b6aefb99963994d031af
parent6d7e0798c8aff05f1a120c8062f81815e9805e9a
LP#1912852: add jump-on-one-hit support to Angular staff catalog

This patch add support for the opac.staff.jump_to_details_on_single_hit
library setting to the Angular staff catalog.

To test
-------
[1] Apply the patch.
[2] Ensure that the opac.staff.jump_to_details_on_single_hit setting
    is off for your workstation.
[3] Perform searches using the Angular staff catalog. Verifying that
    searches that return any number of results display them on the
    results page.
[4] Set the library setting to true and reload the staff catalog.
[5] Perform keyword, numeric, and MARC searches using terms that
    result in a single-record result set. Verify that the interface
    redirects to the single-record page for that hit.
[6] Perform searches that would return zero results. Verify that
    the results page indicates zero hits fuond.
[7] Perform searches that would return more than one result. Verify
    that the results are displayed on the results page.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org>
Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/catalog/catalog.service.ts
Open-ILS/src/eg2/src/app/staff/catalog/resolver.service.ts
Open-ILS/src/eg2/src/app/staff/catalog/result/results.component.ts