From bab7d4ab8522f05c9a9df23c2796794325dd3171 Mon Sep 17 00:00:00 2001 From: Llewellyn Marshall Date: Wed, 23 Mar 2022 13:55:53 -0400 Subject: [PATCH] aggregate hold notes in pull list fm_idl definition --- Open-ILS/examples/fm_IDL.xml | 8 +++++--- Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2 | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 674ace4fc6..37abd55ab4 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -6672,6 +6672,7 @@ SELECT usr, au.prefix AS usr_prefix, au.suffix AS usr_suffix, au.alias AS usr_alias, + ahrn.body AS notes, CASE WHEN au.alias IS NOT NULL THEN au.alias ELSE @@ -6729,7 +6730,8 @@ SELECT usr, LEFT JOIN asset.copy_location_order acplo ON (acp.location = acplo.location AND acp.circ_lib = acplo.org) - WHERE + LEFT JOIN (SELECT hold,'[' || string_agg(body,', ' ORDER BY ID) || ']' as body FROM action.hold_request_note GROUP BY 1) ahrn on ahrn.hold = ahr.id + WHERE ahr.capture_time IS NULL AND ahr.cancel_time IS NULL AND csp.id IS NULL AND @@ -6775,7 +6777,7 @@ SELECT usr, - + @@ -6809,7 +6811,7 @@ SELECT usr, - + diff --git a/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2 b/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2 index eda5f059ef..efc9148519 100644 --- a/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/holds/t_pull_list.tt2 @@ -114,7 +114,7 @@ label="[% l('Item Status') %]"> -