Bug 32030: ERM - Add ERMProvider syspref
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Jun 2022 09:51:31 +0000 (11:51 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Nov 2022 12:44:07 +0000 (09:44 -0300)
Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/atomicupdate/erm.pl
installer/data/mysql/mandatory/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/erm.pref

index 98eceb1..d34e57f 100755 (executable)
@@ -294,5 +294,18 @@ return {
                 ('ERM_PACKAGE_CONTENT_TYPE', 'streaming_media', 'Streaming media'),
                 ('ERM_PACKAGE_CONTENT_TYPE', 'unknown', 'Unknown')
         });
+
+        $dbh->do(q{
+            INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+            VALUES ('ERMProvider', 'manual', 'manual|ebsco', 'Set the provider for the ERM module', 'Choice');
+        });
+        $dbh->do(q{
+            INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
+            VALUES
+            ('ERMProviderEbscoCustomerID', '', '', 'Customer ID for EBSCO', 'free'),
+            ('ERMProviderEbscoApiKey', '', '', 'API key for EBSCO', 'free');
+        });
+
+
     }
 };
index bd52e85..d908408 100644 (file)
@@ -222,6 +222,9 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
 ('EnhancedMessagingPreferences','1','','If ON, allows patrons to select to receive additional messages about items due or nearly due.','YesNo'),
 ('EnhancedMessagingPreferencesOPAC', '1', NULL, 'If ON, show patrons messaging setting on the OPAC.', 'YesNo'),
 ('ERMModule', '0', NULL, 'Enable the E-Resource management module', 'YesNo'),
+('ERMProvider', 'manual', 'manual|ebsco', 'Set the provider for the ERM module', 'Choice'),
+('ERMProviderEbscoApiKey', '', '', 'API key for EBSCO', 'free'),
+('ERMProviderEbscoCustomerID', '', '', 'Customer ID for EBSCO', 'free'),
 ('expandedSearchOption','0',NULL,'If ON, set advanced search to be expanded by default','YesNo'),
 ('ExpireReservesAutoFill','0',NULL,'Automatically fill the next hold with a automatically canceled expired waiting hold.','YesNo'),
 ('ExpireReservesAutoFillEmail','', NULL,'Send email notification of hold filled from automatically expired/cancelled hold to this address. If not defined, Koha will fallback to the library reply-to address','Free'),
index 9618855..d577115 100644 (file)
@@ -6,3 +6,15 @@ E-Resource management:
                   1: Enable
                   0: Disable
             - the E-Resource management module
+        -
+            - Provider for the E-Resource management module
+            - pref: ERMProvider
+              choices:
+                  manual: Manual
+                  ebsco: EBSCO
+        -
+            - Customer ID for EBSCO HoldingsIQ
+            - pref: ERMProviderEbscoCustomerID
+        -
+            - API key for EBSCO HoldingsIQ
+            - pref: ERMProviderEbscoApiKey