[Koha-patches] [PATCH 2/2] Bug 4289 Followup: Add syspref default value and in opac.pref
Frédéric Demians
f.demians at tamil.fr
Tue Dec 7 17:33:13 CET 2010
Signed-off-by: Frédéric Demians <f.demians at tamil.fr>
---
installer/data/mysql/en/mandatory/sysprefs.sql | 1 +
.../prog/en/modules/admin/preferences/opac.pref | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql b/installer/data/mysql/en/mandatory/sysprefs.sql
index d4fb9a2..d1f3256 100644
--- a/installer/data/mysql/en/mandatory/sysprefs.sql
+++ b/installer/data/mysql/en/mandatory/sysprefs.sql
@@ -81,6 +81,7 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacstylesheet','','Enter a complete URL to use an alternate layout stylesheet in OPAC','','free');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacthemes','prog','Define the current theme for the OPAC interface.','','Themes');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacTopissue',0,'If ON, enables the \'most popular items\' link on OPAC. Warning, this is an EXPERIMENTAL feature, turning ON may overload your server',NULL,'YesNo');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('OpacPublic',1,'Turn on/off public OPAC',NULL,'YesNo');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacuserjs','','Define custom javascript for inclusion in OPAC','70|10','Textarea');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('opacuserlogin',1,'Enable or disable display of user login features',NULL,'YesNo');
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('patronimages',0,'Enable patron images for the Staff Client',NULL,'YesNo');
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
index 55560d3..0bbcdf1 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
@@ -16,6 +16,12 @@ OPAC:
class: long
- as the name of the library on the OPAC.
-
+ - pref: OpacPublic
+ choices:
+ yes: Enable
+ no: Disable
+ - "Koha OPAC as public. Private OPAC requires authentification before accessing the OPAC."
+ -
- pref: OpacMaintenance
choices:
yes: Show
--
1.7.3.2
More information about the Koha-patches
mailing list