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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Feb 2023 19:40:37 +0000 (16:40 -0300)
commitc564c8a69614b7f43584d7cdd9f5ffbdfff9a935
tree8ec5fbd5d19bd4de568b771df4783bcf980360a3
parent4a28d4295956e077c833b1bc91a12fb4a1c26ad7
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>
koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts