---
 installer/data/mysql/en/mandatory/sysprefs.sql     |    2 ++
 .../1-Obligatoire/unimarc_standard_systemprefs.sql |    1 +
 installer/data/mysql/updatedatabase.pl             |   11 +++++++++++
 .../en/modules/admin/preferences/web-services.pref |   11 +++++++++++
 4 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/installer/data/mysql/en/mandatory/sysprefs.sql 
b/installer/data/mysql/en/mandatory/sysprefs.sql
index 3647715..c8100a0 100644
--- a/installer/data/mysql/en/mandatory/sysprefs.sql
+++ b/installer/data/mysql/en/mandatory/sysprefs.sql
@@ -282,3 +282,5 @@ INSERT INTO `systempreferences` 
(variable,value,options,explanation,type) VALUES
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('AutoSelfCheckAllowed', '0', 
'For corporate and special libraries which want web-based self-check available 
from any PC without the need for a manual staff login. Most libraries will want 
to leave this turned off. If on, requires self-check ID and password to be 
entered in AutoSelfCheckID and AutoSelfCheckPass sysprefs.', '', 'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AutoSelfCheckID','','Staff ID with circulation rights to be used for 
automatic web-based self-check. Only applies if AutoSelfCheckAllowed syspref is 
turned on.','','free');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AutoSelfCheckPass','','Password to be used for automatic web-based 
self-check. Only applies if AutoSelfCheckAllowed syspref is turned 
on.','','free');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('ILS-DI','0','Enables ILS-DI services at OPAC.','','YesNo');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('ILS-DI:Authorized_IPs','','.','Restricts usage of ILS-DI to some 
IPs','Free');
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 1738d8d..570f07a 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
@@ -285,3 +285,4 @@ INSERT INTO `systempreferences` 
(variable,value,options,explanation,type) VALUES
 INSERT INTO systempreferences 
(variable,value,explanation,options,type)VALUES('AutoSelfCheckAllowed', '0', 
'Pour les bibliothèques d''entreprise qui veulent du prêt auto-contrôlé de 
n''importe quel PC sans le besoin de recourir à un login de bibliothécaire.', 
'', 'YesNo');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AutoSelfCheckID','','Identifiant Bibliothécaire avec droits de 
circulation qui sera utilisé pour les prêt auto-contré. Ne s''applique que 
dans les cas de l''activation de la préférence AutoSelfCheckout.','','free');
 INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('AutoSelfCheckPass','','Mot de passe utilisé pour le prêt 
autocontrôlé. Ne s''applique que dans le cas de l''activation de la 
préférence AutoSelfCheckout.','','free');
+INSERT INTO `systempreferences` (variable,value,explanation,options,type) 
VALUES('ILS-DI','0','Active les services ILS-DI à l''OPAC.','','YesNo');
diff --git a/installer/data/mysql/updatedatabase.pl 
b/installer/data/mysql/updatedatabase.pl
index 6c17757..83ce6e1 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -3471,6 +3471,17 @@ if (C4::Context->preference("Version") < 
TransformToNum($DBversion)) {
     }
 }
 
+
+$DBversion = "3.01.00.120";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+       $dbh->do("INSERT INTO systempreferences 
(variable,value,explanation,options,type) VALUES ('ILS-DI','0','Enable ILS-DI 
services. See http://your.opac.name/cgi-bin/koha/ilsdi.pl for online 
documentation.','','YesNo')");
+       $dbh->do("INSERT INTO systempreferences 
(variable,value,explanation,options,type) VALUES 
('ILS-DI:AuthorizedIPs','127.0.0.1','A comma separated list of IP addresses 
authorized to access the web services.','','free')");
+       
+    print "Upgrade to $DBversion done (Adding ILS-DI updates and 
ILS-DI:Authorized_IPs)\n";
+    SetVersion ($DBversion);
+}
+
+
 =item DropAllForeignKeys($table)
 
   Drop all foreign keys of the table $table
diff --git 
a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web-services.pref 
b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web-services.pref
index 7c5685b..eee1b58 100644
--- 
a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web-services.pref
+++ 
b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web-services.pref
@@ -17,3 +17,14 @@ Web Services:
             - pref: "OAI-PMH:MaxCount"
               class: integer
             - records at a time in response to a <code>ListRecords</code> or 
<code>ListIdentifiers</code> query.
+    ILS-DI
+        -
+            - pref: ILS-DI
+              choices:
+                yes: Enable
+                no: Disable
+            - Enable ILS-DI services for OPAC users
+        -
+            - pref: ILS-DI:Authorized_IPs
+              class: Text
+            - allowed Ips to use the ILS-DI services
-- 
1.6.3.3

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

Reply via email to