Bugzilla – Attachment 32553 Details for
Bug 13088
Allow the user to specify a max amount of facets to show.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13088: Add a syspref so the user can chose the amount of facets to show
Bug-13088-Add-a-syspref-so-the-user-can-chose-the-.patch (text/plain), 3.49 KB, created by
Tomás Cohen Arazi (tcohen)
on 2014-10-21 14:07:06 UTC
(
hide
)
Description:
Bug 13088: Add a syspref so the user can chose the amount of facets to show
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2014-10-21 14:07:06 UTC
Size:
3.49 KB
patch
obsolete
>From 1d3d6d49698359d2a39c759b5346b347b5a1637f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 20 Oct 2014 13:46:28 -0300 >Subject: [PATCH] Bug 13088: Add a syspref so the user can chose the amount of > facets to show > >This patch introduces a syspref (FacetMaxCount) that controls how many >facets to show for each category (e.g. Author). > >Sponsored-by: Universidad Nacional de Cordoba >--- > installer/data/mysql/sysprefs.sql | 1 + > installer/data/mysql/updatedatabase.pl | 11 ++++++++++- > .../prog/en/modules/admin/preferences/searching.pref | 6 ++++++ > 3 files changed, 17 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index b08a514..8403b59 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -119,6 +119,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('ExpireReservesOnHolidays', '1', NULL, 'If false, reserves at a library will not be canceled on days the library is not open.', 'YesNo'), > ('ExtendedPatronAttributes','0',NULL,'Use extended patron IDs and attributes','YesNo'), > ('FacetLabelTruncationLength','20',NULL,'Specify the facet max length in OPAC','Integer'), >+('FacetMaxCount','20',NULL,'Specify the max facet count for each category','Integer'), > ('FilterBeforeOverdueReport','0','','Do not run overdue report until filter selected','YesNo'), > ('FineNotifyAtCheckin','0',NULL,'If ON notify librarians of overdue fines on the items they are checking in.','YesNo'), > ('finesCalendar','noFinesWhenClosed','ignoreCalendar|noFinesWhenClosed','Specify whether to use the Calendar in calculating duedates and fines','Choice'), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 95832e5..7d6005c 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8807,7 +8807,6 @@ if ( CheckVersion($DBversion) ) { > }); > print "Upgrade to $DBversion done (Bug 12296 - search box replaceable with a system preference)\n"; > SetVersion($DBversion); >- SetVersion ($DBversion); > } > > $DBversion = "3.17.00.029"; >@@ -8820,6 +8819,16 @@ if ( CheckVersion($DBversion) ) { > SetVersion ($DBversion); > } > >+$DBversion = "3.17.00.XXX"; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(q{ >+ INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) >+ VALUES('FacetMaxCount', '20','Specify the max facet count for each category',NULL,'Integer') >+ }); >+ print "Upgrade to $DBversion done (Bug 13088 - Allow the user to specify a max amount of facets to show)\n"; >+ SetVersion($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >index eee5cc9..c6a19bf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref >@@ -180,6 +180,12 @@ Searching: > default: 20 > - records from the search results. > - >+ - Show up to >+ - pref: FacetMaxCount >+ class: integer >+ default: 20 >+ - facets for each category. >+ - > - By default, show > - pref: OPACnumSearchResults > class: integer >-- >1.9.1
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 13088
:
32553
|
32554
|
32667
|
32668
|
32738
|
32739
|
32844