From 49769420d396320e9aaca2e9452c27ecf913e2cc Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Fri, 6 Feb 2009 12:27:16 -0600 Subject: [PATCH] Database Revisions for Syndetics Solutions Enhanced Content Signed-off-by: Galen Charlton --- admin/systempreferences.pl | 8 ++++++++ installer/data/mysql/updatedatabase.pl | 17 +++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 806afc3fea..edcad2f94b 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -231,6 +231,14 @@ $tabsysprefs{BakerTaylorEnabled} = 'EnhancedContent'; $tabsysprefs{BakerTaylorPassword} = 'EnhancedContent'; $tabsysprefs{BakerTaylorUsername} = 'EnhancedContent'; +# Syndetics +$tabsysprefs{SyndeticsClientCode} = 'EnhancedContent'; +$tabsysprefs{SyndeticsEnabled} = 'EnhancedContent'; +$tabsysprefs{SyndeticsCoverImages} = 'EnhancedContent'; +$tabsysprefs{SyndeticsTOC} = 'EnhancedContent'; +$tabsysprefs{SyndeticsSummary} = 'EnhancedContent'; +$tabsysprefs{SyndeticsSimilarItems} = 'EnhancedContent'; + # FRBR $tabsysprefs{FRBRizeEditions} = "EnhancedContent"; $tabsysprefs{XISBN} = "EnhancedContent"; diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8be1225c78..358609602f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2218,6 +2218,23 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { $dbh->do(q{INSERT INTO message_transports (message_attribute_id, message_transport_type, is_digest, letter_module, letter_code) VALUES (6, 'sms', 0, 'circulation', 'CHECKOUT');}); print "Upgrade to $DBversion done (data for Email Checkout Slips project)\n"; + SetVersion ($DBversion); + } + $DBversion = '3.01.00.013'; + if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SyndeticsClientCode', '0', 'Client Code for using Syndetics Solutions content','','free')"); + + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SyndeticsEnabled', '0', 'Turn on Syndetics Enhanced Content','','YesNo')"); + + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SyndeticsCoverImages', '0', 'Display Cover Images from Syndetics','','YesNo')"); + + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SyndeticsTOC', '0', 'Display Table of Content information from Syndetics','','YesNo')"); + + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SyndeticsSummary', '0', 'Display Summary Information from Syndetics','','YesNo')"); + + $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('SyndeticsSimilarItems', '0', 'Display Similar Items from Syndetics','','YesNo')"); + + print "Upgrade to $DBversion done (added Syndetics Enhanced Content system preferences)\n"; SetVersion ($DBversion); } -- 2.39.5