From 289fd08f5d1f1e5b862c54f2841e4f030552b774 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 20 Jun 2022 11:51:31 +0200 Subject: [PATCH] Bug 32030: ERM - Add ERMProvider syspref Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/atomicupdate/erm.pl | 13 +++++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 3 +++ .../prog/en/modules/admin/preferences/erm.pref | 12 ++++++++++++ 3 files changed, 28 insertions(+) diff --git a/installer/data/mysql/atomicupdate/erm.pl b/installer/data/mysql/atomicupdate/erm.pl index 98eceb1568..d34e57f502 100755 --- a/installer/data/mysql/atomicupdate/erm.pl +++ b/installer/data/mysql/atomicupdate/erm.pl @@ -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'); + }); + + } }; diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql index bd52e85943..d908408e62 100644 --- a/installer/data/mysql/mandatory/sysprefs.sql +++ b/installer/data/mysql/mandatory/sysprefs.sql @@ -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'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/erm.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/erm.pref index 96188553a5..d5771157c4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/erm.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/erm.pref @@ -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 -- 2.39.2