From ff3bc31352f25ea51ad0d68055794ab774047017 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 18 Aug 2015 15:55:51 +1200 Subject: [PATCH] bug_16034 Adding a new syspref - OverDriveCirculation If set to true, Opac will integrate OverDrive patron services Signed-off-by: Jesse Weaver Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall --- installer/data/mysql/atomicupdate/overdrive.sql | 3 +++ installer/data/mysql/sysprefs.sql | 1 + .../en/modules/admin/preferences/enhanced_content.pref | 9 +++++++++ 3 files changed, 13 insertions(+) diff --git a/installer/data/mysql/atomicupdate/overdrive.sql b/installer/data/mysql/atomicupdate/overdrive.sql index 2e27d19fb5..98cea68c0e 100644 --- a/installer/data/mysql/atomicupdate/overdrive.sql +++ b/installer/data/mysql/atomicupdate/overdrive.sql @@ -1 +1,4 @@ ALTER TABLE borrowers ADD overdrive_auth_token text default NULL AFTER lastseen; + +INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) +VALUES ('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'); diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 5ab4dd54b3..c9c86a2754 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -386,6 +386,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('OpenLibraryCovers','0',NULL,'If ON Openlibrary book covers will be show','YesNo'), ('OpenLibrarySearch','0',NULL,'If Yes Open Library search results will show in OPAC','YesNo'), ('OrderPdfFormat','pdfformat::layout3pages','Controls what script is used for printing (basketgroups)','','free'), +('OverDriveCirculation','0','Enable client to see their OverDrive account','','YesNo'), ('OverDriveClientKey','','Client key for OverDrive integration','30','Free'), ('OverDriveClientSecret','','Client key for OverDrive integration','30','YesNo'), ('OverDriveLibraryID','','Library ID for OverDrive integration','','Integer'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref index 0f1ce3e942..f62882d966 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref @@ -363,6 +363,15 @@ Enhanced Content: - "Show items from the OverDrive catalog of library #" - pref: OverDriveLibraryID - . + - + - pref: OverDriveCirculation + choices: + yes: Enable + no: "Don't enable" + - users to access their OverDrive circulation history, and circulate items. + - If you enable access, you must register auth return url of + - http(s)://my.opac.hostname/cgi-bin/koha/external/overdrive/auth.pl + - with OverDrive. Coce Cover images cache: - - pref: Coce -- 2.39.5