1 $DBversion = 'XXX'; # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
5 INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
6 SELECT 'OpacNoItemTypeImages', value, NULL, 'If ON, disables itemtype images in the OPAC','YesNo'
7 FROM (SELECT value FROM systempreferences WHERE variable="NoItemTypeImages") tmp
9 $dbh->do( "UPDATE systempreferences SET explanation = 'If ON, disables itemtype images in the staff interface'
10 WHERE variable = 'noItemTypeImages' ");
12 # Always end with this (adjust the bug info)
13 NewVersion( $DBversion, 4944, "Add new system preference OpacNoItemTypeImages");