[open-ils-commits] r18361 - branches/rel_1_6_0/Open-ILS/src/sql/Pg (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Oct 16 02:56:53 EDT 2010
Author: gmc
Date: 2010-10-16 02:56:48 -0400 (Sat, 16 Oct 2010)
New Revision: 18361
Modified:
branches/rel_1_6_0/Open-ILS/src/sql/Pg/reporter-schema.sql
Log:
restoring dbs' better ISSN extraction for r.old_super_simple_record
Had gottten lost in the shuffle in rel_1_6
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Modified: branches/rel_1_6_0/Open-ILS/src/sql/Pg/reporter-schema.sql
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/sql/Pg/reporter-schema.sql 2010-10-16 06:55:02 UTC (rev 18360)
+++ branches/rel_1_6_0/Open-ILS/src/sql/Pg/reporter-schema.sql 2010-10-16 06:56:48 UTC (rev 18361)
@@ -159,7 +159,7 @@
ARRAY_TO_STRING(ARRAY_ACCUM( DISTINCT publisher.value), ', ') AS publisher,
ARRAY_TO_STRING(ARRAY_ACCUM( DISTINCT SUBSTRING(pubdate.value FROM $$\d+$$) ), ', ') AS pubdate,
ARRAY_ACCUM( DISTINCT SUBSTRING(isbn.value FROM $$^\S+$$) ) AS isbn,
- ARRAY_ACCUM( DISTINCT SUBSTRING(issn.value FROM $$^\S+$$) ) AS issn
+ ARRAY_ACCUM( DISTINCT SUBSTRING(REGEXP_REPLACE(issn.value, E'^\\s*(\\d{4})[-\\s](\\d{3,4}x?)\\s*', E'\\1 \\2') FROM 1 FOR 9) ) AS issn
FROM biblio.record_entry r
LEFT JOIN metabib.full_rec title ON (r.id = title.record AND title.tag = '245' AND title.subfield = 'a')
LEFT JOIN metabib.full_rec author ON (r.id = author.record AND author.tag IN ('100','110','111') AND author.subfield = 'a')
More information about the open-ils-commits
mailing list