]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1724348 Honor default tab from catalog search
authorDan Wells <dbw2@calvin.edu>
Wed, 24 Oct 2018 18:38:01 +0000 (14:38 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 7 Nov 2018 16:03:48 +0000 (11:03 -0500)
commit4b11fba6c4ef7b4f15c6bf823dbfa7db570c8510
tree3ce0709eecef0c5286d78d4202fa05aa96ea72b5
parentc193f41f75f57d3d480d0f572c1ecbf8b6dd6231
LP#1724348 Honor default tab from catalog search

The default tab selection was not being honored from catalog searches,
as the search had already set $scope.record_tab, and we were honoring
that value in all cases.

Instead, let's honor that value in cases where the OPAC load doesn't
change our current record, which should only happen if we load the
record directly to a non-opac tab, then go to the OPAC view.

To test:
1) Set any tab other than "OPAC View" as your default view in record
details.
2) Do a catalog search.
3) Select a record, and notice your default view is not set.
4) Apply patch, do the same steps, and notice the default view is now
selected.

To test regression of bug #1708951:
1) In Firefox, load a record directly (e.g.
/eg/opac/staff/cat/catalog/record/123).
2) Note the default view loaded.
3) Click "OPAC View".
4) Note the view does not return to your default view, but stays on
the OPAC.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Jason Boyer <JBoyer@library.in.gov>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js