Lines 5007-5013
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
Link Here
|
5007 |
$dbh->do("ALTER TABLE default_branch_item_rules ADD |
5007 |
$dbh->do("ALTER TABLE default_branch_item_rules ADD |
5008 |
COLUMN `returnbranch` varchar(15) default NULL AFTER `holdallowed`"); |
5008 |
COLUMN `returnbranch` varchar(15) default NULL AFTER `holdallowed`"); |
5009 |
# set the default rule to the current value of HomeOrHoldingBranchReturn (default to 'homebranch' if need be) |
5009 |
# set the default rule to the current value of HomeOrHoldingBranchReturn (default to 'homebranch' if need be) |
5010 |
my $homeorholdingbranchreturn = C4::Context->prefernce('HomeOrHoldingBranchReturn') || 'homebranch'; |
5010 |
my $homeorholdingbranchreturn = C4::Context->preference('HomeOrHoldingBranchReturn') || 'homebranch'; |
5011 |
$dbh->do("UPDATE default_circ_rules SET returnbranch = '$homeorholdingbranchreturn'"); |
5011 |
$dbh->do("UPDATE default_circ_rules SET returnbranch = '$homeorholdingbranchreturn'"); |
5012 |
print "Upgrade to $DBversion done (Atomic update for OAI-PMH sets management)\n"; |
5012 |
print "Upgrade to $DBversion done (Atomic update for OAI-PMH sets management)\n"; |
5013 |
SetVersion($DBversion); |
5013 |
SetVersion($DBversion); |
5014 |
- |
|
|