From: Chris Sharp Date: Thu, 29 Sep 2016 17:08:15 +0000 (-0400) Subject: LP#1582354 - Add owning_lib to available links. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4ec0f29df944193ea668f67380c7d2a487bffb4f;p=contrib%2FConifer.git LP#1582354 - Add owning_lib to available links. Signed-off-by: Chris Sharp Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 515f766f11..90d83f12bf 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -9494,7 +9494,8 @@ SELECT usr, - + + @@ -9504,6 +9505,7 @@ SELECT usr, + diff --git a/Open-ILS/src/sql/Pg/extend-reporter.sql b/Open-ILS/src/sql/Pg/extend-reporter.sql index ca94530dad..a524cbbc3a 100644 --- a/Open-ILS/src/sql/Pg/extend-reporter.sql +++ b/Open-ILS/src/sql/Pg/extend-reporter.sql @@ -58,6 +58,7 @@ CREATE OR REPLACE VIEW extend_reporter.global_bibs_by_holding_update AS CREATE OR REPLACE VIEW extend_reporter.copy_count_per_org AS SELECT acn.record AS bibid, ac.circ_lib, + acn.owning_lib, max(ac.edit_date) AS last_edit_time, min(ac.deleted::integer) AS has_only_deleted_copies, count( @@ -74,6 +75,6 @@ CREATE OR REPLACE VIEW extend_reporter.copy_count_per_org AS FROM asset.call_number acn, asset.copy ac WHERE ac.call_number = acn.id - GROUP BY acn.record, ac.circ_lib; + GROUP BY acn.record, acn.owning_lib, ac.circ_lib; COMMIT;