Bug 8992: DB changes - add the IdRef syspref
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 23 Apr 2014 11:33:25 +0000 (13:33 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 28 Apr 2015 18:47:31 +0000 (15:47 -0300)
Signed-off-by: valerie bertrand <valerie.bertrand@univ-lyon3.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref

index be44611..f3b0847 100644 (file)
@@ -148,6 +148,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('IDreamBooksReadometer','0','','Display Readometer from IDreamBooks.com','YesNo'),
 ('IDreamBooksResults','0','','Display IDreamBooks.com rating in search results','YesNo'),
 ('IDreamBooksReviews','0','','Display book review snippets from IDreamBooks.com','YesNo'),
+('IdRef','0','','Disable/enable the IdRef webservice from the OPAC detail page.','YesNo'),
 ('ILS-DI','0','','Enables ILS-DI services at OPAC.','YesNo'),
 ('ILS-DI:AuthorizedIPs','','Restricts usage of ILS-DI to some IPs','.','Free'),
 ('ImageLimit','5','','Limit images stored in the database by the Patron Card image manager to this number.','Integer'),
index 49adab0..556f0d0 100755 (executable)
@@ -10257,6 +10257,16 @@ DELETE FROM language_descriptions
     SetVersion($DBversion);
 }
 
+$DBversion = "3.19.00.XXX";
+if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+    $dbh->do(q{
+        INSERT INTO systempreferences (variable,value,explanation,options,type)
+        VALUES('IdRef','0','Disable/enable the IdRef webservice from the OPAC detail page.',NULL,'YesNo')
+    });
+    print "Upgrade to $DBversion done (Bug 8992: Add system preference IdRef))\n";
+    SetVersion($DBversion);
+}
+
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.
index b74563c..59a0f48 100644 (file)
@@ -45,3 +45,10 @@ Web services:
             - pref: SvcMaxReportRows
               class: integer
             - rows of a report requested via the reports web service.
+    IdRef:
+        -
+            - pref: IdRef
+              choices:
+                yes: Enable
+                no: Disable
+            - the IdRef webservice from the opac detail page. IdRef allows to request authorities from the Sudoc database.