Bug 32728: ERM - Update search header depending on navigation
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 31 Jan 2023 16:20:14 +0000 (17:20 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 27 Feb 2023 13:38:12 +0000 (13:38 +0000)
commit8982bb13d0416da4156e6ae414da6e917234fb91
tree0429d39b70d77ea689f1a6065ebd1c0449e6ecb0
parente7056634a507e35065a16d63e89f77eca6c9d7e7
Bug 32728: ERM - Update search header depending on navigation

Search header should change to match the section you are in.

Default is "agreement". If you are in "local titles" or "local
packages", the header will be positionned on the relevant tab.

To replicate:

1. Enable the ERM module: ERMModule system preference.
2. Go to the ERM module: Home > E-resource management.
3. Select the options from the sidebar menu (Agreements, Packages and Titles),
   and note that the ERM search header options don't change.
4. Add a minimal agreement, package and title.
5. Change the search header to another option, for example 'Search titles',
   then perform a search. Note that:
   - the appropriate sidebar menu option is highlighted, for example: 'Titles'
   - the search header changes back to 'Agreement search'
6. Apply patch, run yarn build
7. Verify the search options are now switched when moving between pages

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c564c8a69614b7f43584d7cdd9f5ffbdfff9a935)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts