Bugzilla – Attachment 73061 Details for
Bug 19892
Replace numbersphr variable with Koha.Preference('OPACNumbersPreferPhrase') in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19892: Replace numbersphr variable with Koha.Preference('OPACNumbersPreferPhrase') in OPAC
Bug-19892-Replace-numbersphr-variable-with-KohaPre.patch (text/plain), 3.36 KB, created by
Roch D'Amour
on 2018-03-16 19:33:37 UTC
(
hide
)
Description:
Bug 19892: Replace numbersphr variable with Koha.Preference('OPACNumbersPreferPhrase') in OPAC
Filename:
MIME Type:
Creator:
Roch D'Amour
Created:
2018-03-16 19:33:37 UTC
Size:
3.36 KB
patch
obsolete
>From 03a9fded5ab2102419f01184e611543a90f9a30a Mon Sep 17 00:00:00 2001 >From: Charlotte Cordwell <charlotte.cordwell123@gmail.com> >Date: Thu, 18 Jan 2018 01:29:05 +0000 >Subject: [PATCH] Bug 19892: Replace numbersphr variable with > Koha.Preference('OPACNumbersPreferPhrase') in OPAC > >Test Case >1) Check that the following files have been changed properly. >opac/opac-search.pl > opac/opac-main.pl > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt > >2)Apply bug >3) Check that there are no differences in behaviour as a result of the patch. > >Signed-off-by: Roch D'Amour <roch.damour@inlibro.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 4 ++-- > opac/opac-main.pl | 4 ---- > opac/opac-search.pl | 3 --- > 3 files changed, 2 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index 1705184..f5308ea 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -54,7 +54,7 @@ > [% IF ( expanded_options ) %] > <option value="ti,phr"> Title phrase</option> > <option value="se,wrdl">Series title</option> >- [% IF ( numbersphr) %] >+ [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %] > <option value="callnum,phr">Call number</option> > [% ELSE %] > <option value="callnum">Call number</option> >@@ -79,7 +79,7 @@ > <option value="pb,wrdl">Publisher</option> > <option value="pl,wrdl">Publisher location</option> > [% IF ( expanded_options ) %] >- [% IF ( numbersphr) %] >+ [% IF ( Koha.Preference('OPACNumbersPreferPhrase') ) %] > <option value="sn,phr">Standard number</option> > [% ELSE %] > <option value="sn">Standard number</option> >diff --git a/opac/opac-main.pl b/opac/opac-main.pl >index 723dced..2398b6a 100755 >--- a/opac/opac-main.pl >+++ b/opac/opac-main.pl >@@ -102,8 +102,4 @@ if (C4::Context->preference('GoogleIndicTransliteration')) { > $template->param('GoogleIndicTransliteration' => 1); > } > >-if (C4::Context->preference('OPACNumbersPreferPhrase')) { >- $template->param('numbersphr' => 1); >-} >- > output_html_with_http_headers $input, $cookie, $template->output; >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index f06e40a..82a0319 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -380,9 +380,6 @@ if ( $template_type && $template_type eq 'advsearch' ) { > } > } > >- if (C4::Context->preference('OPACNumbersPreferPhrase')) { >- $template->param('numbersphr' => 1); >- } > > output_html_with_http_headers $cgi, $cookie, $template->output; > exit; >-- >2.7.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 19892
:
70660
|
73061
|
73076
|
73338
|
73506
|
73507