Bugzilla – Attachment 45307 Details for
Bug 14636
Sorting and searching by publication year in item search doesn't work correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14636: Follow-up - fix typo in system preference name
Bug-14636-Follow-up---fix-typo-in-system-preferenc.patch (text/plain), 1.50 KB, created by
Fridolin Somers
on 2015-12-02 08:08:01 UTC
(
hide
)
Description:
Bug 14636: Follow-up - fix typo in system preference name
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2015-12-02 08:08:01 UTC
Size:
1.50 KB
patch
obsolete
>From 795f6e4a27caad6f8fe5106c051cd10f4881c530 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >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 <fridolin.somers@biblibre.com> >--- > catalogue/itemsearch.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl >index af58db8..af33ba4 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; >-- >2.1.4
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 14636
:
45070
|
45071
|
45120
|
45121
|
45153
|
45161
|
45168
|
45169
|
45304
|
45305
|
45306
|
45307
|
45315
|
45316
|
45317
|
45318
|
45319