# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
-$VERSION = "16.06.00.003";
+$VERSION = "16.06.00.004";
sub version {
return $VERSION;
+++ /dev/null
-
-INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
- SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
- FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
-
-INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
- SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
- FROM systempreferences WHERE variable='XSLTResultsDisplay';
-
--- $DBversion = '16.06.00.XXX';
--- if ( CheckVersion($DBversion) ) {
--- $dbh->do(q{
--- INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
--- SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
--- FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
--- });
-
--- $dbh->do(q{
--- INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
--- SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
--- FROM systempreferences WHERE variable='XSLTResultsDisplay';
--- });
-
--- print "Upgrade to $DBversion done (Bug 15485: Allow choosing different XSLTs for lists)\n";
--- SetVersion($DBversion);
--- }
SetVersion($DBversion);
}
+$DBversion = '16.06.00.004';
+if ( CheckVersion($DBversion) ) {
+ $dbh->do(q{
+ INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
+ SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
+ FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
+ });
+
+ $dbh->do(q{
+ INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
+ SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
+ FROM systempreferences WHERE variable='XSLTResultsDisplay';
+ });
+
+ print "Upgrade to $DBversion done (Bug 15485: Allow choosing different XSLTs for lists)\n";
+ SetVersion($DBversion);
+}
+
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068