Skip to content

Commit

Permalink
updated ptfs_update.pl for new sys pref
Browse files Browse the repository at this point in the history
  • Loading branch information
J. David Bavousett committed Jun 21, 2010
1 parent f380058 commit cf6d1a8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions install_misc/ptfs_update.pl
Expand Up @@ -541,3 +541,16 @@

}

$current_version= (C4::Context->preference("KohaPTFSVersion"));

if ($current_version == "harley"){

print "Upgrade to 'ptfs-master 1.1' beginning.\n==========\n";
print "Adding new system preferences\n";
$dbh->do("INSERT INTO systempreferences (variable,value,explanation,type) VALUES ('DisplayStafficonsXSLT','0',
'If ON, displays the format, audience, type icons in the staff XSLT MARC21 result and display pages.','YesNo')");
print ".";
print "done!\n";

$dbh -> do("UPDATE systempreferences SET value='harley' WHERE variable='KohaPTFSVersion'");
}

0 comments on commit cf6d1a8

Please sign in to comment.