Bugzilla – Attachment 139535 Details for
Bug 31379
Change results per page text for default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31379: Change results per page text for default
Bug-31379-Change-results-per-page-text-for-default.patch (text/plain), 4.33 KB, created by
Katrin Fischer
on 2022-08-20 08:40:58 UTC
(
hide
)
Description:
Bug 31379: Change results per page text for default
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-08-20 08:40:58 UTC
Size:
4.33 KB
patch
obsolete
>From 91574b71eecd269ff9140e084a16ca9811c30818 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 16 Aug 2022 20:09:32 -1000 >Subject: [PATCH] Bug 31379: Change results per page text for default >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Since Bug 14715, one can change number of results per page. >The actual text in combobox for default value is : "Library default: >20" > >This text is hard to translate correctly. >For example french translation use "site par défaut" wrongly meaning >"default library". > >I propose to simply use "20 (defaut)". > >Test plan : >1) Go to system preferences and set both 'numSearchResultsDropdown' and > 'OPACnumSearchResultsDropdown' to 'Show' >2) Do a catalogue search in the intranet using a search term that will > bring lots of results >3) Look at restults per page combobox >4) Same for OPAC > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index e9e40c35b0..232099cfb5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -311,7 +311,7 @@ > <li><a href="/cgi-bin/koha/catalogue/search.pl?count=[% Koha.Preference('numSearchResults') | uri %][% PROCESS sort_search_query %]" id="resultsperpage-default"> > [% IF results_per_page == Koha.Preference('numSearchResults') %] > <i class="fa fa-check"></i> >- [% END %] Library default: [% Koha.Preference('numSearchResults') | html %] >+ [% END %] [% Koha.Preference('numSearchResults') | html %] (default) > </a></li> > [% END %] > <li><a href="/cgi-bin/koha/catalogue/search.pl?count=20[% PROCESS sort_search_query %]">[% IF results_per_page == '20' %]<i class="fa fa-check"></i>[% END %] 20</a></li> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 7bf913b5c1..b8e0d4844a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -181,9 +181,9 @@ > <select id="results_per_page" name="count"> > [% IF Koha.Preference('OPACnumSearchResults') %] > [% IF results_per_page == Koha.Preference('OPACnumSearchResults') %] >- <option value="[% Koha.Preference('OPACnumSearchResults') | html %]" selected="selected">Library default: [% Koha.Preference('OPACnumSearchResults') | html %]</option> >+ <option value="[% Koha.Preference('OPACnumSearchResults') | html %]" selected="selected">[% Koha.Preference('OPACnumSearchResults') | html %] (default)</option> > [% ELSE %] >- <option value="[% Koha.Preference('OPACnumSearchResults') | html %]">Library default: [% Koha.Preference('OPACnumSearchResults') | html %]</option> >+ <option value="[% Koha.Preference('OPACnumSearchResults') | html %]">[% Koha.Preference('OPACnumSearchResults') | html %] (default)</option> > [% END %] > [% END %] > [% IF results_per_page == '20' %]<option value="20" selected="selected">20</option>[% ELSE %]<option value="20">20</option>[% END %] >-- >2.30.2
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 31379
:
139221
|
139276
| 139535