From: Llewellyn Marshall Date: Wed, 23 Mar 2022 17:55:53 +0000 (-0400) Subject: aggregate hold notes in pull list fm_idl definition X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Flew%2Flp-1964986-pull-list-notes;p=working%2FEvergreen.git aggregate hold notes in pull list fm_idl definition --- 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') %]"> -