@@ -, +, @@ in OPAC and Staff Client - Apply the patch - In the dropbox search menu of OPAC main page header, the callnum should have only callnum - In OPAC advanced search the callnumber and standard number options shouldn't have "phr" - In staff client advanced search the callnumber and standard number options shouldn't have "phr" - Change OPACNumbersPreferPhrase and IntranetNumbersPreferPhrase to "use" - The options listed before should use now the operator "phr" - This will resolve the problems with the searches of callnumbers and standard numbers in OPAC and staff client (spaces problems, no results, inconsistent results, etc...) --- catalogue/search.pl | 3 +++ installer/data/mysql/sysprefs.sql | 2 ++ installer/data/mysql/updatedatabase.pl | 8 ++++++++ .../prog/en/includes/search_indexes.inc | 8 ++++++++ .../en/modules/admin/preferences/searching.pref | 16 ++++++++++++++++ koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 14 +++++++++++--- .../opac-tmpl/prog/en/modules/opac-advsearch.tt | 13 +++++++++++++ opac/opac-main.pl | 4 ++++ opac/opac-search.pl | 5 +++++ 9 files changed, 70 insertions(+), 3 deletions(-) --- a/catalogue/search.pl +++ a/catalogue/search.pl @@ -182,6 +182,9 @@ else { if (C4::Context->preference("marcflavour") eq "UNIMARC" ) { $template->param('UNIMARC' => 1); } +if (C4::Context->preference("IntranetNumbersPreferPhrase")) { + $template->param('numbersphr' => 1); +} if($cgi->cookie("holdfor")){ my $holdfor_patron = GetMember('borrowernumber' => $cgi->cookie("holdfor")); --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -406,3 +406,5 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('NotesBlacklist','','List of notes fields that should not appear in the title notes/description separator of details',NULL,'free'); INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded