5 description => "Move OpacMySummaryNote to additional contents",
8 my ($dbh, $out) = @$args{qw(dbh out)};
9 # Get any existing value from the OpacMySummaryNote system preference
10 my ( $opacmysummarynote ) = $dbh->selectrow_array(q{
11 SELECT value FROM systempreferences WHERE variable='OPACMySummaryNote';
13 if( $opacmysummarynote ){
15 INSERT INTO additional_contents ( category, code, location, branchcode, title, content, lang, published_on )
16 VALUES ('html_customizations', 'OpacMySummaryNote', 'OpacMySummaryNote', NULL, ?, ?, ?, CAST(NOW() AS date) )
17 }, undef, "OpacMySummaryNote default", $opacmysummarynote, 'default');
18 # Remove old system preference
20 DELETE FROM systempreferences WHERE variable='OPACMySummaryNote'
23 say $out "No OpacMySummaryNote preference found. Value was empty or update has already been run.";