DBRev Bug 12803 - Add ability to skip closed libraries when generating

the holds queue
This commit is contained in:
Brendan A Gallagher 2016-03-03 20:27:04 +00:00
parent c0d7030b02
commit 209531eae9
3 changed files with 12 additions and 4 deletions

View file

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #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 = "3.23.00.035";
$VERSION = "3.23.00.036";
sub version {
return $VERSION;

View file

@ -1,2 +0,0 @@
INSERT INTO systempreferences (variable,value,explanation,type) VALUES
('HoldsQueueSkipClosed', '0', 'If enabled, any libraries that are closed when the holds queue is built will be ignored for the purpose of filling holds.', 'YesNo');

View file

@ -11959,7 +11959,17 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('HTML5MediaYouTube',0,'Embed|Don\'t embed','YouTube links as videos','YesNo');
});
print "Upgrade to $DBversion done (Bug 11023: Adds field 'new' in items and deleteditems tabl es)\n";
print "Upgrade to $DBversion done (Bug 14168 - enhance streaming cataloging to include youtube)\n";
SetVersion($DBversion);
}
$DBversion = "3.23.00.036";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do(q{
INSERT INTO systempreferences (variable,value,explanation,type) VALUES ('HoldsQueueSkipClosed', '0', 'If enabled, any libraries that are closed when the holds queue is built will be ignored for the purpose of filling holds.', 'YesNo');
});
print "Upgrade to $DBversion done (Bug 12803 - Add ability to skip closed libraries when generating the holds queue)\n";
SetVersion($DBversion);
}