]> git.koha-community.org Git - koha.git/commit
Bug 28388: Preserve "Browse results" when "view plain" is clicked
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 21 May 2021 07:37:54 +0000 (09:37 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 10 Jul 2021 02:40:20 +0000 (16:40 -1000)
commitf006f8db433eb79609244ab800604765fb187c3f
treef8edcba3cecad5825190eac999a8c75c1daef30b
parent5756e5a29098a0cc193e78027d2a737d2cb9dd2e
Bug 28388: Preserve "Browse results" when "view plain" is clicked

This patch modifies the way search sessions are preserved in the OPAC so
that viewing the "plain MARC" view will not cause the search context to
be lost.

To test, apply the patch and make sure OpacBrowseResults is enabled.

- Perform a search in the OPAC which will return multiple search
  results.
- View the details of one of the search results.
  - You should see a "Browse results" box in the right-hand sidebar.
- Click the "MARC view" link.
  - If you click back to the "Normal view" now, the results browser
    should still appear.
  - From the MARC view, click the "view plain" link.
  - Return to the "Normal view."
    - Before the patch: The results browser is gone.
    - After the patch: The results browser is still there.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 839f61cf9783594e1be26db97dde3d278030ee4a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Auth.pm