Lines 4-9
if( CheckVersion( $DBversion ) ) {
Link Here
|
4 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
4 |
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES |
5 |
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo'); |
5 |
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo'); |
6 |
}); |
6 |
}); |
|
|
7 |
foreach my $pref ('XSLTDetailsDisplay','XSLTListsDisplay','XSLTResultsDisplay','OPACXSLTDetailsDisplay','OPACXSLTListsDisplay','OPACXSLTResultsDisplay'){ |
8 |
if( C4::Context->preference($pref) ne 'default' ){ |
9 |
print "NOTE: You have defined a custom stylesheet. If your custom stylesheets are utilizing item fields you must enable the system preference 'PassItemMarcToXSLT'\n"; |
10 |
last; |
11 |
} |
12 |
} |
7 |
|
13 |
|
8 |
NewVersion( $DBversion, 28373, "Add PassItemMarcToXSLT system preference"); |
14 |
NewVersion( $DBversion, 28373, "Add PassItemMarcToXSLT system preference"); |
9 |
} |
15 |
} |
10 |
- |
|
|