From 99a1d7f18a43a089d49d36b167cc1537fa058f79 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 25 Nov 2015 18:00:33 +0100 Subject: [PATCH] Bug 14636: Follow-up - fix typo in system preference name The preference is named "marcflavour" not "marcflavor". Without this change, search will always use "copyrightyear" and break search by publication date for UNIMARC. Signed-off-by: Fridolin Somers Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- catalogue/itemsearch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl index af58db8557..af33ba4b91 100755 --- a/catalogue/itemsearch.pl +++ b/catalogue/itemsearch.pl @@ -128,7 +128,7 @@ if (scalar keys %params > 0) { my $op = shift @op; if (defined $q and $q ne '') { if ($i == 0) { - if (C4::Context->preference("marcflavor") ne "UNIMARC" && $field eq 'publicationyear') { + if (C4::Context->preference("marcflavour") ne "UNIMARC" && $field eq 'publicationyear') { $field = 'copyrightdate'; } $f = { @@ -185,7 +185,7 @@ if (scalar keys %params > 0) { } my $sortby = $cgi->param('sortby') || 'itemnumber'; - if (C4::Context->preference("marcflavor") ne "UNIMARC" && $sortby eq 'publicationyear') { + if (C4::Context->preference("marcflavour") ne "UNIMARC" && $sortby eq 'publicationyear') { $sortby = 'copyrightdate'; } warn $sortby;