Lines 5966-5971
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
Link Here
|
5966 |
SetVersion($DBversion); |
5966 |
SetVersion($DBversion); |
5967 |
} |
5967 |
} |
5968 |
|
5968 |
|
|
|
5969 |
$DBversion = "3.09.00.XXX"; |
5970 |
if (C4::Context->preference("Version") < TransformToNum($DBversion)) { |
5971 |
$dbh->do("UPDATE systempreferences set value=0 WHERE variable='OPACItemsResultsDisplay' AND value='statuses'"); |
5972 |
$dbh->do("UPDATE systempreferences set value=1 WHERE variable='OPACItemsResultsDisplay' AND value='itemdetails'"); |
5973 |
$dbh->do("UPDATE systempreferences SET explanation='If No, show only the status of items in result list. If Yes, show full location of items (branchlocation+callnumber) as in staff interface',options=NULL,type='YesNo' WHERE variable='OPACItemsResultsDisplay'"); |
5974 |
print "Upgrade to $DBversion done (Fixes Bug 5409, Set the syspref value to 1 if it is itemdetails and 0 if it is statuses, leaving it alone if it is already 1 or 0 and change the type of the syspref to YesNo.)\n"; |
5975 |
SetVersion ($DBversion); |
5976 |
} |
5977 |
|
5969 |
=head1 FUNCTIONS |
5978 |
=head1 FUNCTIONS |
5970 |
|
5979 |
|
5971 |
=head2 TableExists($table) |
5980 |
=head2 TableExists($table) |
5972 |
- |
|
|