@@ -, +, @@ and note that the ERM search header options don't change. then perform a search. Note that: - the appropriate sidebar menu option is highlighted, for example: 'Titles' - the search header changes back to 'Agreement search' --- koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts +++ a/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts @@ -60,3 +60,12 @@ const { removeMessages } = mainStore; router.beforeEach((to, from) => { removeMessages(); // This will actually flag the messages as displayed already }); +router.afterEach((to, from) => { + let tab_id = 1; // Agreements + if ( to.path.match(/\/erm\/eholdings\/local\/titles/)){ + tab_id = 2; + } else if ( to.path.match(/\/erm\/eholdings\/local\/packages/)){ + tab_id = 3; + } + document.getElementById('ui-id-' + tab_id).click(); +}) --