LP#1912852: add jump-on-one-hit support to Angular staff catalog user/gmcharlt/lp1912852_jump_on_one_hit
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 13 Jul 2021 14:11:29 +0000 (10:11 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 13 Jul 2021 14:11:29 +0000 (10:11 -0400)
commit36cb3385b121707bd749875a5c5a828e8fa80fa6
treedc496a3abe96f15c118897802d4b1a856bc6ec86
parent448e2a4b0d6f7e3abfc291258e9c192bfd035c2c
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>
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