From 70a284bd1e49c1ab2483b45984086657053dce0e Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Tue, 15 Jan 2008 11:39:11 -0600 Subject: [PATCH] adding syspref PatronsPerPage PatronsPerPage stores the number of patrons to display per page. Default is 20 Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- installer/data/mysql/en/mandatory/sysprefs.sql | 2 +- members/member.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index 4d956335ea..8c65ef85dd 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -170,5 +170,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('QueryAutoTruncate',1,'If ON, query truncation is enabled by default',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('QueryRemoveStopwords',0,'If ON, stopwords listed in the Administration area will be removed from queries',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('NoZebraIndexes','\'title\' => \'130a,210a,222a,240a,243a,245a,245b,246a,246b,247a,247b,250a,250b,440a,830a\',\r\n\'author\' => \'100a,100b,100c,100d,110a,111a,111b,111c,111d,245c,700a,710a,711a,800a,810a,811a\',\r\n\'isbn\' => \'020a\',\r\n\'issn\' => \'022a\',\r\n\'lccn\' => \'010a\',\r\n\'biblionumber => \'999c\',\r\n\'itemtype\' => \'942c\',\r\n\'publisher\' => \'260b\',\r\n\'date\' => \'260c\',\r\n\'note\' => \'500a, 501a,504a,505a,508a,511a,518a,520a,521a,522a,524a,526a,530a,533a,538a,541a,546a,555a,556a,562a,563a,583a,585a,582a\',\r\n\'subject\' => \'600*,610*,611*,630*,650*,651*,653*,654*,655*,662*,690*\',\r\n\'dewey\' => \'082\',\r\n\'bc\' => \'952p\',\r\n\'callnum\' => \'952o\',\r\n\'an\' => \'6009,6109,6119\',\r\n\'host-item\' => \'952a,952c\'','','Enter a specific hash for NoZebra indexes. Enter : \'indexname\' => \'100a,245a,500*\',\'index2\' => \'...\'','Free'); - INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacRenewalAllowed',0,'If ON, users can renew their issues directly from their OPAC account',NULL,'YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('PatronsPerPage','20','Number of Patrons Per Page displayed by default','20','Integer'); diff --git a/members/member.pl b/members/member.pl index f24e160f1b..349c0d744d 100755 --- a/members/member.pl +++ b/members/member.pl @@ -32,7 +32,7 @@ use C4::Members; my $input = new CGI; my $quicksearch = $input->param('quicksearch'); my $startfrom = $input->param('startfrom')||1; -my $resultsperpage = $input->param('resultsperpage')||10; +my $resultsperpage = $input->param('resultsperpage')||C4::Context->preference("PatronsPerPage")||20; my ($template, $loggedinuser, $cookie); if($quicksearch){ -- 2.39.5