[open-ils-commits] [GIT] Evergreen ILS branch master updated. 192dbb95ba88f5c0e8f37992b54cc5ee2ad54e8c
Evergreen Git
git at git.evergreen-ils.org
Fri Jul 1 11:23:03 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 192dbb95ba88f5c0e8f37992b54cc5ee2ad54e8c (commit)
via f1c1d397b5b8c2fc026ffc31520204d42dc207e9 (commit)
from 415945711f0888eff19750df18dc0953dc012a01 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 192dbb95ba88f5c0e8f37992b54cc5ee2ad54e8c
Author: Mike Rylander <mrylander at gmail.com>
Date: Fri Jul 1 11:20:44 2011 -0400
Stampping upgrade for authorsort fix from Lebbeous
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 6302a8e..320534e 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -86,7 +86,7 @@ CREATE TRIGGER no_overlapping_deps
BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0yyy', :eg_version); -- senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0570', :eg_version); -- senator
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql b/Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql
similarity index 86%
rename from Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql
rename to Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql
index e62ccef..33a2982 100644
--- a/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql
@@ -1,6 +1,6 @@
BEGIN;
-SELECT evergreen.upgrade_deps_block_check('0yyy', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('0570', :eg_version);
-- Not everything in 1XX tags should become part of the authorsort field
-- ($0 for example). The list of subfields chosen here is a superset of all
commit f1c1d397b5b8c2fc026ffc31520204d42dc207e9
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date: Thu Jun 30 15:14:36 2011 -0400
Fix the SVF authorsort field (metabib.record_attr->'authorsort')
It's important not to include things like $0 that we wouldn't want in
there.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 4c4b95a..6302a8e 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -86,7 +86,7 @@ CREATE TRIGGER no_overlapping_deps
BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0569', :eg_version); -- miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0yyy', :eg_version); -- senator
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
index 279f2a4..78ed74c 100644
--- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql
+++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql
@@ -4198,7 +4198,7 @@ INSERT INTO config.record_attr_definition (name,label,fixed_field) values ('type
INSERT INTO config.record_attr_definition (name,label,fixed_field) values ('item_type','Type','Type');
INSERT INTO config.record_attr_definition (name,label,phys_char_sf) values ('vr_format','Videorecording format',72);
INSERT INTO config.record_attr_definition (name,label,sorter,filter,tag) values ('titlesort','Title',TRUE,FALSE,'tnf');
-INSERT INTO config.record_attr_definition (name,label,sorter,filter,tag) values ('authorsort','Author',TRUE,FALSE,'1%');
+INSERT INTO config.record_attr_definition (name,label,sorter,filter,tag,sf_list) values ('authorsort','Author',TRUE,FALSE,'1%','abcdefgklmnopqrstvxyz');
-- TO-DO: Auto-generate these values from CLDR
-- XXX These are the values used in MARC records ... does that match CLDR, including deprecated languages?
diff --git a/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql b/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql
new file mode 100644
index 0000000..e62ccef
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/0yyy.schema.fix-authsort.sql
@@ -0,0 +1,14 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0yyy', :eg_version);
+
+-- Not everything in 1XX tags should become part of the authorsort field
+-- ($0 for example). The list of subfields chosen here is a superset of all
+-- the fields found in the LoC authority mappin definitions for 1XX fields.
+-- Anyway, if more fields should be here, add them.
+
+UPDATE config.record_attr_definition
+ SET sf_list = 'abcdefgklmnopqrstvxyz'
+ WHERE name='authorsort' AND sf_list IS NULL;
+
+COMMIT;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +-
Open-ILS/src/sql/Pg/950.data.seed-values.sql | 2 +-
.../sql/Pg/upgrade/0570.schema.fix-authsort.sql | 14 ++++++++++++++
3 files changed, 16 insertions(+), 2 deletions(-)
create mode 100644 Open-ILS/src/sql/Pg/upgrade/0570.schema.fix-authsort.sql
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list