Changed catlogue to catalog per the standard
authorNicole Engard <nengard@gmail.com>
Wed, 19 Aug 2009 03:01:40 +0000 (23:01 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Sun, 23 Aug 2009 23:55:18 +0000 (19:55 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
installer/data/mysql/en/mandatory/userpermissions.sql
installer/data/mysql/updatedatabase.pl

index 29b3b05..f88937a 100644 (file)
@@ -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
index 1898201..4cdff40 100755 (executable)
@@ -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