Lines 1-9
Link Here
|
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
2 |
if( CheckVersion( $DBversion ) ) { |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
|
3 |
|
4 |
my $noItemTypeImages = C4::Context->preference('noItemTypeImages'); |
4 |
$dbh->do( q| |
5 |
$dbh->do( "INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) |
5 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) |
6 |
VALUES('OpacNoItemTypeImages',$noItemTypeImages,NULL,'If ON, disables itemtype images in the OPAC','YesNo')" ); |
6 |
SELECT 'OpacNoItemTypeImages', value, NULL, 'If ON, disables itemtype images in the OPAC','YesNo' |
|
|
7 |
FROM (SELECT value FROM systempreferences WHERE variable="NoItemTypeImages") tmp |
8 |
| ); |
7 |
$dbh->do( "UPDATE systempreferences SET explanation = 'If ON, disables itemtype images in the staff interface' |
9 |
$dbh->do( "UPDATE systempreferences SET explanation = 'If ON, disables itemtype images in the staff interface' |
8 |
WHERE variable = 'noItemTypeImages' "); |
10 |
WHERE variable = 'noItemTypeImages' "); |
9 |
|
11 |
|
10 |
- |
|
|