From: Mike Rylander <mrylander@gmail.com>
Date: Mon, 11 Jul 2011 13:51:33 +0000 (-0400)
Subject: Merge/rebase cleanup -- authority template by id is needed
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=60755ab30c9ef33a1e0f8d2e526d2838dc03dc48;p=evergreen%2Fmasslnc.git

Merge/rebase cleanup -- authority template by id is needed

Signed-off-by: Mike Rylander <mrylander@gmail.com>
---

diff --git a/Open-ILS/src/sql/Pg/011.schema.authority.sql b/Open-ILS/src/sql/Pg/011.schema.authority.sql
index 8b2a52815a..7c44d7eab7 100644
--- a/Open-ILS/src/sql/Pg/011.schema.authority.sql
+++ b/Open-ILS/src/sql/Pg/011.schema.authority.sql
@@ -286,6 +286,10 @@ BEGIN
 END;
 $f$ STABLE LANGUAGE PLPGSQL;
 
+CREATE OR REPLACE FUNCTION authority.generate_overlay_template ( BIGINT ) RETURNS TEXT AS $func$
+    SELECT authority.generate_overlay_template( marc ) FROM authority.record_entry WHERE id = $1;
+$func$ LANGUAGE SQL;
+
 CREATE OR REPLACE FUNCTION authority.merge_records ( target_record BIGINT, source_record BIGINT ) RETURNS INT AS $func$
 DECLARE
     moved_objects INT := 0;