[open-ils-commits] r14164 - branches/rel_1_4_0/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 24 15:36:01 EDT 2009
Author: miker
Date: 2009-09-24 15:35:56 -0400 (Thu, 24 Sep 2009)
New Revision: 14164
Modified:
branches/rel_1_4_0/Open-ILS/src/sql/Pg/reporter-schema.sql
Log:
backporting 1.4 version of r14159: Correcting reporting view definition with regard to ISBN and ISSN extraction
Modified: branches/rel_1_4_0/Open-ILS/src/sql/Pg/reporter-schema.sql
===================================================================
--- branches/rel_1_4_0/Open-ILS/src/sql/Pg/reporter-schema.sql 2009-09-24 19:35:34 UTC (rev 14163)
+++ branches/rel_1_4_0/Open-ILS/src/sql/Pg/reporter-schema.sql 2009-09-24 19:35:56 UTC (rev 14164)
@@ -158,8 +158,8 @@
FIRST(author.value) AS author,
publisher.value AS publisher,
SUBSTRING(pubdate.value FROM $$\d+$$) AS pubdate,
- ARRAY_ACCUM( SUBSTRING(isbn.value FROM $$^\S+$$) ) AS isbn,
- ARRAY_ACCUM( SUBSTRING(issn.value FROM $$^\S+$$) ) AS issn
+ ARRAY_ACCUM( DISTINCT SUBSTRING(isbn.value FROM $$^\S+$$) ) AS isbn,
+ ARRAY_ACCUM( DISTINCT SUBSTRING(issn.value FROM $$^\S+$$) ) 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