SetVersion($DBversion);
}
+$DBversion = "3.11.00.016";
+if ( CheckVersion($DBversion) ) {
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="<b>Required for staff login.</b> Staff access, allows viewing of catalogue in staff client." where flag="catalogue";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Edit Authorities" where flag="editauthorities";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Allow access to the reports module" where flag="reports";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Set library management parameters (deprecated)" where flag="management";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Manage serial subscriptions" where flag="serials";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Manage patrons fines and fees" where flag="updatecharges";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Check out and check in items" where flag="circulate";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Manage Koha system settings (Administration panel)" where flag="parameters";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Add or modify patrons" where flag="borrowers";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Use all tools (expand for granular tools permissions)" where flag="tools";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Allow staff members to modify permissions for other staff members" where flag="staffaccess";
+ });
+ $dbh->do(q{
+ UPDATE userflags SET flagdesc="Perform batch modification of patrons" where flag="edit_patrons";
+ });
+
+ print "Upgrade to $DBversion done (Bug 9382 - refresh permission descriptions to make more sense)\n";
+ SetVersion ($DBversion);
+}
+
+$DBversion ="3.11.00.XXX";
+if ( CheckVersion($DBversion) ) {
+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('IDreamBooksReviews','0','Display book review snippets from IDreamBooks.com','','YesNo');");
+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('IDreamBooksReadometer','0','Display Readometer from IDreamBooks.com','','YesNo');");
+ $dbh->do("INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('IDreamBooksResults','0','Display IDreamBooks.com rating in search results','','YesNo');");
+ print "Upgrade to $DBversion done (Add IDreamBooks enhanced content)\n";
+ SetVersion($DBversion);
+}
+
+
=head1 FUNCTIONS
=head2 TableExists($table)