From 3d4147042ab80909fac7ac83110f28173db10180 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Tue, 8 Jan 2008 22:04:55 -0500 Subject: [PATCH] adding a few missing sysprefs Signed-off-by: Joshua Ferraro --- admin/systempreferences.pl | 7 +++++-- installer/data/mysql/en/mandatory/sysprefs.sql | 11 ++++++----- .../fr/1-Obligatoire/unimarc_standard_systemprefs.sql | 1 + installer/data/mysql/updatedatabase.pl | 8 +++++++- .../intranet-tmpl/prog/en/includes/sysprefs-menu.inc | 2 +- .../prog/en/modules/admin/systempreferences.tmpl | 2 +- 6 files changed, 21 insertions(+), 10 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 740cc33af0..773fbfe064 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -81,6 +81,7 @@ my %tabsysprefs; $tabsysprefs{DebugLevel}="Admin"; $tabsysprefs{SessionStorage}="Admin"; $tabsysprefs{noItemTypeImages}="Admin"; + $tabsysprefs{OPACBaseURL}="Admin"; # Authorities $tabsysprefs{authoritysep}="Authorities"; @@ -179,6 +180,7 @@ my %tabsysprefs; $tabsysprefs{dateformat}="I18N/L10N"; $tabsysprefs{opaclanguages}="I18N/L10N"; $tabsysprefs{opacthemes}="I18N/L10N"; + $tabsysprefs{language}="I18N/L10N"; # Searching $tabsysprefs{defaultSortField}="Searching"; @@ -194,7 +196,8 @@ my %tabsysprefs; $tabsysprefs{QueryWeightFields}="Searching"; $tabsysprefs{expandedSearchOption}="Searching"; $tabsysprefs{sortbynonfiling}="Searching"; - + $tabsysprefs{QueryAutoTruncate}="Searching"; + $tabsysprefs{QueryRemoveStopwords}="Searching"; # OPAC $tabsysprefs{AmazonAssocTag}="OPAC"; @@ -568,7 +571,7 @@ if ($op eq 'add_form') { $row_data{delete} = "$script_name?op=delete_confirm&searchfield=".$results->[$i]{'variable'}; push(@loop_data, \%row_data); } - $tab=($tab?$tab:"Others"); + $tab=($tab?$tab:"Local Use"); $template->param(loop => \@loop_data, $tab => 1); if ($offset>0) { my $prevpage = $offset-$pagesize; diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql index 755e19289a..76e5e4df5d 100644 --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ b/installer/data/mysql/en/mandatory/sysprefs.sql @@ -105,7 +105,6 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ReservesNeedReturns',1,'If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('DebugLevel',2,'Define the level of debugging information sent to the browser when errors are encountered (set to 0 in production). 0=none, 1=some, 2=most','0|1|2','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('NoZebra',1,'If ON, Zebra indexing is turned off, simpler setup, but slower searches','','YesNo'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('NoZebraIndexes',0,'Enter a specific hash for NoZebra indexes. Enter : \'indexname\' => \'100a,245a,500*\',\'index2\' => \'...\'','','Free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('SessionStorage','mysql','Use database or a temporary file for storing session data','mysql|Pg|tmp','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('CircAutocompl',1,'If ON, autocompletion is enabled for the Circulation input',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('RoutingSerials',1,'If ON, serials routing is enabled',NULL,'YesNo'); @@ -127,7 +126,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES -- I18N/L10N INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('dateformat','us','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy/mm/dd)','metric|us|iso','Choice'); -INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaclanguages','en','Set the preferred order for translations. The specified language will be tried first.',NULL,'Languages'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaclanguages','en','Set the default language in the OPAC.',NULL,'Languages'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opaclanguagesdisplay',0,'If ON, enables display of Change Language feature on OPAC','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('BorrowersTitles','Mr|Mrs|Miss|Ms','Define appropriate Titles for patrons',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('gist',0,'Default Goods and Services tax rate NOT in %, but in numeric form (0.12 for 12%), set to 0 to disable GST','','free'); @@ -166,6 +165,8 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('finesCalendar',"noFinesWhenClosed",'Specify whether to use the Calendar in calculating duedates and fines',"ignoreCalendar|noFinesWhenClosed",'Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('previousIssuesDefaultSortOrder',"asc",'Specify the sort order of Previous Issues on the circulation page',"asc|desc",'Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('todaysIssuesDefaultSortOrder',"desc",'Specify the sort order of Todays Issues on the circulation page',"asc|desc",'Choice'); - - - +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACBaseURL',NULL,'Specify the Base URL of the OPAC, e.g., opac.mylibrary.com, the http:// will be added automatically by Koha.',NULL,'Free'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('language','en','Set the default language in the staff client.',NULL,'Languages'); +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'); diff --git a/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql b/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql index 12a60f9805..578aed7232 100644 --- a/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql +++ b/installer/data/mysql/fr/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -165,3 +165,4 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACUserCSS',0,'Add CSS to be included in the OPAC',NULL,'free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('emailPurchaseSuggestions',0,'If ON, patron suggestions are emailed rather than managed in Acquisitions',NULL,'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACItemsResultsDisplay',"statuses",'statuses : N''affiche que le statut des exemplaires dans la liste de résultat. . itemdetails : affiche la localisation complète des exemplaires (site+localisation+cote) comme dans l''interface professionnelle ',"statuses|itemdetails",'Choice'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OPACBaseURL',NULL,'Specify the Base URL of the OPAC, e.g., opac.mylibrary.com, the http:// will be added automatically by Koha.',NULL,'Free'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6a4d3acde3..1424d83f31 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -863,7 +863,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { ADD `altcontactaddress3` varchar(255) default NULL, ADD `altcontactzipcode` varchar(50) default NULL, ADD `altcontactphone` varchar(50) default NULL -"); + "); + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES +('OPACBaseURL',NULL,'Specify the Base URL of the OPAC, e.g., opac.mylibrary.com, the http:// will be added automatically by Koha.',NULL,'Free'), +('language','en','Set the default language in the staff client.',NULL,'Languages'), +('QueryAutoTruncate',1,'If ON, query truncation is enabled by default',NULL,'YesNo'), +('QueryRemoveStopwords',0,'If ON, stopwords listed in the Administration area will be removed from queries',NULL,'YesNo') + "); print "Upgrade to $DBversion done (syncing deletedborrowers table with borrowers table)\n"; SetVersion ($DBversion); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/sysprefs-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/sysprefs-menu.inc index 3a4a903ed9..1f71084d8f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/sysprefs-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/sysprefs-menu.inc @@ -14,6 +14,6 @@
  • class="active" >Patrons
  • class="active" >Searching
  • class="active" >Staff Client
  • -
  • class="active" >Other
  • +
  • class="active" >Local Use
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl index eaa797d433..6b0921350b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/systempreferences.tmpl @@ -193,7 +193,7 @@

    System preferences admin

    -

    Editing preferences for module

    +

    '' preferences

    -- 2.39.5