column name
authorJason Etheridge <jason@esilibrary.com>
Fri, 1 Apr 2011 17:46:09 +0000 (13:46 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 1 Apr 2011 17:46:09 +0000 (13:46 -0400)
Open-ILS/src/sql/Pg/990.schema.unapi.sql

index fddab10..15e2a3f 100644 (file)
@@ -626,7 +626,7 @@ CREATE OR REPLACE FUNCTION unapi.acp ( obj_id BIGINT, format TEXT,  ename TEXT,
                     XMLELEMENT( name foreign_records,
                         CASE
                             WHEN ('bre' = ANY ($4)) THEN
-                                XMLAGG((SELECT unapi.bre(peer_bib,'marcxml','record','{}'::TEXT[], $5, $6, $7, $8) FROM biblio.peer_bib_copy_map WHERE target_copy = cp.id))
+                                XMLAGG((SELECT unapi.bre(peer_record,'marcxml','record','{}'::TEXT[], $5, $6, $7, $8) FROM biblio.peer_bib_copy_map WHERE target_copy = cp.id))
                             ELSE NULL
                         END