Bugzilla – Attachment 146264 Details for
Bug 32728
ERM - Search header should change to match the section you are in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32728: ERM - Update search header depending on navigation
Bug-32728-ERM---Update-search-header-depending-on-.patch (text/plain), 1.33 KB, created by
PTFS Europe Sandboxes
on 2023-02-06 12:52:19 UTC
(
hide
)
Description:
Bug 32728: ERM - Update search header depending on navigation
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2023-02-06 12:52:19 UTC
Size:
1.33 KB
patch
obsolete
>From b43e11283ac76263ff0973ffab8738ab6bb03dec Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 31 Jan 2023 17:20:14 +0100 >Subject: [PATCH] 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. > >Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts | 9 +++++++++ > 1 file changed, 9 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts b/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts >index c42ebe1745..3382d1a1be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts >+++ b/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(); >+}) >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32728
:
145897
|
146264
|
147334
|
147482