This patch removes the system preference from new installations.
No db revision is supplied to remove the system pref from existing 
installations.
It is recommended for administrators to use the scripts provided in the misc/ 
directory
to ensure that their system preferences are in sync with those used in code.
Admins should remove this preference from existing installations manually.
---
 installer/data/mysql/en/mandatory/sysprefs.sql     |    1 -
 .../1-Obligatoire/unimarc_standard_systemprefs.sql |    1 -
 installer/data/mysql/updatedatabase.pl             |    1 -
 3 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql 
b/installer/data/mysql/en/mandatory/sysprefs.sql
index 8c6b3fd..20f3d0d 100644
--- a/installer/data/mysql/en/mandatory/sysprefs.sql
+++ b/installer/data/mysql/en/mandatory/sysprefs.sql
@@ -153,7 +153,6 @@ INSERT INTO `systempreferences` 
(variable,value,explanation,options,type) VALUES
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACViewOthersSuggestions',0,'If ON, allows all suggestions to be 
displayed in the OPAC',NULL,'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACURLOpenInNewWindow',0,'If ON, URLs in the OPAC open in a new 
window',NULL,'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACUserCSS','','Add CSS to be included in the OPAC in an embedded 
<style> tag.',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 : show only the status of 
items in result list. itemdisplay : show full location of items 
(branch+location+callnumber) as in staff 
interface',"statuses|itemdetails",'Choice');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('uppercasesurnames',0,'If ON, surnames are converted to upper case in 
patron entry form',NULL,'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('CircControl',"ItemHomeLibrary",'Specify the agency that controls the 
circulation and fines 
policy',"PickupLibrary|PatronLibrary|ItemHomeLibrary",'Choice');
diff --git 
a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql 
b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
index bfa8a93..150e8fe 100644
--- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
+++ b/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql
@@ -162,7 +162,6 @@ INSERT INTO `systempreferences` 
(variable,value,explanation,options,type) VALUES
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACURLOpenInNewWindow',0,'If ON, URLs in the OPAC open in a new 
window',NULL,'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('hideBiblioNumber',0,'If ON, hides the biblionumber in the detail page 
on the OPAC',NULL,'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OPACUserCSS','','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');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('OpacRenewalAllowed',0,'Si activé, les utilisateurs peuvent renouveller 
leurs prêts directement depuis leur compte à l''OPAC',NULL,'YesNo');
diff --git a/installer/data/mysql/updatedatabase.pl 
b/installer/data/mysql/updatedatabase.pl
index dc98c33..43b59de 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -742,7 +742,6 @@ $dbh->do("INSERT INTO `systempreferences` 
(variable,value,explanation,options,ty
 $dbh->do("INSERT INTO `systempreferences` 
(variable,value,explanation,options,type) 
VALUES('OPACViewOthersSuggestions',0,'If ON, allows all suggestions to be 
displayed in the OPAC',NULL,'YesNo')");
 $dbh->do("INSERT INTO `systempreferences` 
(variable,value,explanation,options,type) VALUES('OPACURLOpenInNewWindow',0,'If 
ON, URLs in the OPAC open in a new window',NULL,'YesNo')");
 $dbh->do("INSERT INTO `systempreferences` 
(variable,value,explanation,options,type) VALUES('OPACUserCSS',0,'Add CSS to be 
included in the OPAC',NULL,'free')");
-$dbh->do("INSERT INTO `systempreferences` 
(variable,value,explanation,options,type) 
VALUES('emailPurchaseSuggestions',0,'If ON, patron suggestions are emailed 
rather than managed in Acquisitions',NULL,'YesNo')");
 
     print "Upgrade to $DBversion done (adding additional system preference)\n";
     SetVersion ($DBversion);
-- 
1.5.6.2

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to