]> git.koha-community.org Git - koha.git/commit
Bug 26039: Focus and Scroll to ShelfBrowser on load
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 13 Aug 2020 12:17:59 +0000 (13:17 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 19 Aug 2020 07:29:49 +0000 (09:29 +0200)
commit9708bbe276082ddc2fa4402c2e84e195e4a3a68d
tree908a4809d34f5be40320d7b539bbda985fbf3aab
parent392a7e1a1ffb327986a5c0cb6863bbb87e43deaf
Bug 26039: Focus and Scroll to ShelfBrowser on load

When the shelf browser link is clicked we perform a full page reload
which results in a reset in the context. We should immediately focus the
shelf browser and scroll to that region to highlight the change of
content.

Test plan
1/ Enable shelf browser
2/ Search for an item in the open and navigate to the detail page
3/ Click the 'Browse shelf' link
4/ Note that upon page reload the screen scrolls to the 'Browsing...'
location of the screen.
5/ Note that the 'Browsing...' title is  'focused'
6/ Signoff.

Signed-off-by: Stina Hallin <stina.hallin@ub.lu.se>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
JD amended patch: correctly align JS code

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/includes/shelfbrowser.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt