5 description => "Move contents of OpacNavBottom system preference into additional contents",
8 my ($dbh, $out) = @$args{qw(dbh out)};
10 # Get any existing value from the OpacNavBottom system preference
11 my ($opacnavbottom) = $dbh->selectrow_array( q|
12 SELECT value FROM systempreferences WHERE variable='OpacNavBottom';
15 # If there is a value in the OpacNavBottom preference, insert it into additional_contents
16 $dbh->do( "INSERT INTO additional_contents ( category, code, location, branchcode, title, content, lang, published_on ) VALUES ('html_customizations', 'OpacNavBottom', 'OpacNavBottom', NULL, ?, ?, 'default', CAST(NOW() AS date) )", undef, "OpacNavBottom default", $opacnavbottom );
18 # Remove the OpacNavBottom system preference
19 $dbh->do("DELETE FROM systempreferences WHERE variable='OpacNavBottom'");
21 say $out "No OpacNavBottom preference found. Update has already been run.";