From 9ad9976b554e0ab63b884dc1fa7b9b1bb4151af7 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 5 Feb 2022 18:29:08 -0500 Subject: [PATCH] LP#1929749: in the items page for a single LI, display the LI ID and title Without that, it's not apparent simply by looking at the page which LI's copies the user is editing. Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.html | 2 +- Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.html index fb8474136b..380336bb4a 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.html @@ -1,4 +1,4 @@ - +

Items for Line Item {{lineitem.id()}} ({{getTitle(lineitem)}})

diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.ts index b93cac6a8a..3ac060a148 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.ts @@ -294,6 +294,10 @@ export class LineitemCopiesComponent implements OnInit, AfterViewInit { ); }); } + + getTitle(li: IdlObject): string { + return this.liService.getFirstAttributeValue(li, 'title'); + } } -- 2.11.0