Bugzilla – Attachment 121489 Details for
Bug 28388
Search result set is lost when viewing the MARC plain view (opac-showmarc.pl)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28388: Preserve "Browse results" when "view plain" is clicked
Bug-28388-Preserve-Browse-results-when-view-plain-.patch (text/plain), 1.72 KB, created by
Kyle M Hall (khall)
on 2021-05-28 14:46:27 UTC
(
hide
)
Description:
Bug 28388: Preserve "Browse results" when "view plain" is clicked
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-05-28 14:46:27 UTC
Size:
1.72 KB
patch
obsolete
>From 32aaa5b569a318032dd387793c64d8a782b5ff39 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 21 May 2021 09:37:54 +0200 >Subject: [PATCH] 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> >--- > C4/Auth.pm | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index f281def2ce..ff8f43c691 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -546,6 +546,7 @@ sub get_template_and_user { > && $in->{'template_name'} =~ /opac-(.+)\.(?:tt|tmpl)$/ ) { > my $pagename = $1; > unless ( $pagename =~ /^(?:MARC|ISBD)?detail$/ >+ or $pagename =~ /^showmarc$/ > or $pagename =~ /^addbybiblionumber$/ > or $pagename =~ /^review$/ ) { > my $sessionSearch = get_session( $sessionID || $in->{'query'}->cookie("CGISESSID") ); >-- >2.30.1 (Apple Git-130)
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 28388
:
121269
|
121339
| 121489