Bug 33422: (bug 32728 follow-up) ERM - Update search header depending on navigation
authorMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 5 Apr 2023 15:30:58 +0000 (15:30 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 6 Apr 2023 12:29:29 +0000 (09:29 -0300)
commit7cc6ae331dee2fde47c59cc9b718ab8a10384358
treea304b6d4fc4714019e43745e9be4be72ecabf0eb
parent90dc36f57e1407a4580f04fb5ac088b348b22aa6
Bug 33422: (bug 32728 follow-up) ERM - Update search header depending on navigation

This patch removes reference to a non-existent id ("ui-id-X") and replaces it with new ids specific to agreements, titles and packages.

Test plan:
1) Apply patch
2) Navigate between Agreements, Packages, Titles using the sidebar. The search bar should change each time to match the section
3) Add some agreemens, packages, titles
4) Perform a search using the different search bar options. Each time it should take you to the correct page with the search activated in the KohaTable. The navbar should also be highlighted to match the correct section and the top search bar should also show the correct section

Signed-off-by: David Nind <david@davidnind.com>
JD Amended commit message: link with 32728
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/erm-search.inc
koha-tmpl/intranet-tmpl/prog/js/vue/modules/erm.ts