From: Galen Charlton Date: Fri, 1 Nov 2019 01:08:31 +0000 (-0400) Subject: teach open-ils.acq.lineitem.retrieve more fleshing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=02645495552deeceb2d9592d30d5a0b478c9b3be;p=working%2FEvergreen.git teach open-ils.acq.lineitem.retrieve more fleshing In particular, teach it how to flesh the LI provider, Vandelay queue, and claim policy so that Angular LI search can display them without having to make additional server requests. Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm index af491b6c68..2ed6dae2c4 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm @@ -129,6 +129,9 @@ flesh_attrs : for attributes, flesh_notes : for notes, flesh_cancel_reason : for cancel reason, flesh_li_details : for order details objects, +flesh_provider : for provider, +flesh_claim_policy : for claim policy, +flesh_queued_record : for queued bib record from Vandelay, clear_marc : to clear marcxml from lineitem/, type => 'hash'}, ], return => {desc => 'lineitem object on success, Event on error'} @@ -163,6 +166,9 @@ sub retrieve_lineitem_impl { push(@{$fields->{acqlin}}, 'alert_text') if $$options{flesh_notes}; push(@{$fields->{jub} }, 'order_summary') if $$options{flesh_order_summary}; push(@{$fields->{jub} }, 'cancel_reason') if $$options{flesh_cancel_reason}; + push(@{$fields->{jub} }, 'provider') if $$options{flesh_provider}; + push(@{$fields->{jub} }, 'claim_policy') if $$options{flesh_claim_policy}; + push(@{$fields->{jub} }, 'queued_record') if $$options{flesh_queued_record}; if($$options{flesh_li_details}) { push(@{$fields->{jub} }, 'lineitem_details');