LP#1929749: in the items page for a single LI, display the LI ID and title
authorGalen Charlton <gmc@equinoxOLI.org>
Sat, 5 Feb 2022 23:29:08 +0000 (18:29 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Sat, 5 Feb 2022 23:29:08 +0000 (18:29 -0500)
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 <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.html
Open-ILS/src/eg2/src/app/staff/acq/lineitem/copies.component.ts

index fb84741..380336b 100644 (file)
@@ -1,4 +1,4 @@
-
+<h3 *ngIf="mode !== 'multiAdd'" class="mt-3" i18n>Items for Line Item {{lineitem.id()}} ({{getTitle(lineitem)}})</h3>  
 <div class="row mt-3 mb-1">
   <div class="col-lg-12 form-inline">
 
index b93cac6..3ac060a 100644 (file)
@@ -294,6 +294,10 @@ export class LineitemCopiesComponent implements OnInit, AfterViewInit {
             );
         });
     }
+
+    getTitle(li: IdlObject): string {
+        return this.liService.getFirstAttributeValue(li, 'title');
+    }
 }