From 766034cfd1ce0fca7fc18b1223a149a1265cea0b Mon Sep 17 00:00:00 2001 From: Nicole Engard Date: Tue, 18 Aug 2009 23:01:40 -0400 Subject: [PATCH] Changed catlogue to catalog per the standard Signed-off-by: Galen Charlton --- installer/data/mysql/en/mandatory/userpermissions.sql | 4 ++-- installer/data/mysql/updatedatabase.pl | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/en/mandatory/userpermissions.sql b/installer/data/mysql/en/mandatory/userpermissions.sql index 29b3b0526c..f88937aff6 100644 --- a/installer/data/mysql/en/mandatory/userpermissions.sql +++ b/installer/data/mysql/en/mandatory/userpermissions.sql @@ -8,7 +8,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES (13, 'edit_notices', 'Define notices'), (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'), (13, 'view_system_logs', 'Browse the system logs'), - (13, 'inventory', 'Perform inventory (stocktaking) of your catalogue'), + (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'), (13, 'stage_marc_import', 'Stage MARC records into the reservoir'), (13, 'manage_staged_marc', 'Managed staged MARC records, including completing and reversing imports'), (13, 'export_catalog', 'Export bibliographic and holdings data'), @@ -16,4 +16,4 @@ INSERT INTO permissions (module_bit, code, description) VALUES (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'), (13, 'batch_upload_patron_images', 'Upload patron images in batch or one at a time'), (13, 'schedule_tasks', 'Schedule tasks to run') -; +; \ No newline at end of file diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1898201cb8..4cdff405bb 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -2586,6 +2586,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { print " Upgrade to $DBversion done (fixed language and typos in notices.)\n"; } +$DBversion = '3.01.00.XXX'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("UPDATE permissions SET description = 'Perform inventory (stocktaking) of your catalog' WHERE code = 'inventory';"); + SetVersion ($DBversion); + print " Upgrade to $DBversion done (changed catalogue to catalog per the standard)\n"; +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table -- 2.11.0