Bug 18204 - Authority searches are not saved in Search history

When you search an authority in Authority search, this search is not saved in Search history.

EnableOpacSearchHistory is enabled

Steps to test:
 1- Login your account (opac)
 2- Search an authority in Authority search
 3- Go to Search history -> Authority
 4- It says "Your authority search history is empty"

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d4e3e6af9f)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
LeireDiez 2017-05-11 17:09:22 +02:00 committed by Katrin Fischer
parent bb9df1e552
commit ae368a3eaa
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ if ( $op eq "do_search" ) {
# Opac search history
if (C4::Context->preference('EnableOpacSearchHistory')) {
unless ( $startfrom ) {
if ( $startfrom == 1) {
my $path_info = $query->url(-path_info=>1);
my $query_cgi_history = $query->url(-query=>1);
$query_cgi_history =~ s/^$path_info\?//;