[Koha-patches] [PATCH] Changed catlogue to catalog per the standard
Nicole Engard
nengard at gmail.com
Wed Aug 19 17:49:45 CEST 2009
>From 1d83de1a11f604a2f01e11660169331d1eb07064 Mon Sep 17 00:00:00 2001
From: Nicole Engard <nengard at gmail.com>
Date: Tue, 18 Aug 2009 23:01:40 -0400
Subject: [PATCH] Changed catlogue to catalog per the standard
Content-Type: text/plain; charset="utf-8"
---
.../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 29b3b05..f88937a 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 7d410ee..293d9fa 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2529,6 +2529,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
--
1.5.6.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20090819/9f17dd44/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Changed-catlogue-to-catalog-per-the-standard.patch
Type: application/octet-stream
Size: 2616 bytes
Desc: not available
URL: </pipermail/koha-patches/attachments/20090819/9f17dd44/attachment-0001.obj>
More information about the Koha-patches
mailing list