]> git.koha-community.org Git - koha.git/commit
Bug 25027: Use localStorage instead of sessionStorage for results browser
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 31 Mar 2020 14:39:12 +0000 (16:39 +0200)
committerJoy Nelson <joy@bywatersolutions.com>
Tue, 5 May 2020 20:44:38 +0000 (20:44 +0000)
commit0ac67146b97123c2d408c0c72547d92e13368313
tree13a212268efc14dce9839273e06e443239ec6ade
parent5576bf647dda24a4f7da56bf86656fe58f05b80d
Bug 25027: Use localStorage instead of sessionStorage for results browser

Staff side, when a search a done and a result clicked, a browser appears
on the left, to navigate between the different results.

We use sessionStorage to know the list of biblionumber from the result.

As sessionStorage is only for the current tab, we do some ugly things,
to catch the click events, then open the new tab, attach it to the
current window, and put the focus back on the result list.

We really should not do that, and let the user decide what they want to
do with their clicks!

To do so, let use the correct storage, localStorage, and have the
results shared between the windows.

We may need to clear that at some point, isn't it?

Test plan:
Launch a search, click result (left or middle), confirm you see the
browser and that the window/tab opened like any other websites
(depending on your web browser settings).

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
koha-tmpl/intranet-tmpl/js/browser.js