LP#1942220: tweak LI actions around viewing/updating items
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 30 Nov 2021 16:54:42 +0000 (11:54 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 12 May 2022 14:27:29 +0000 (10:27 -0400)
- Added "Update Barcodes" as a new LI action that opens the
  item attributes editor
- Changed the "Holdings Maintenance" LI action to open the
  record holdings view page rather than spawning the item
  attributes editor, making it match the behavior of the
  "Holdings Maint." LI action in the Dojo interface.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.html
Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem-list.component.ts

index afca18d..3942049 100644 (file)
                   <button ngbDropdownItem [disabled]="li.state() != 'received'"
                     (click)="markUnReceived([li.id()])" i18n>Mark Un-Received</button>
                   <button ngbDropdownItem [disabled]="!liHasRealCopies(li)"
-                    (click)="editHoldings(li)" i18n>Holdings Maintenance</button>
+                    (click)="editHoldings(li)" i18n>Update Barcodes</button>
+                  <button ngbDropdownItem [disabled]="!liHasRealCopies(li)"
+                    (click)="jumpToHoldings(li)" i18n>Holdings Maintenance</button>
                   <a ngbDropdownItem routerLink="lineitem/{{li.id()}}/history"
                     queryParamsHandling="merge" i18n>View History</a>
                 </div>
index 592c07c..515e236 100644 (file)
@@ -619,6 +619,10 @@ export class LineitemListComponent implements OnInit {
         );
     }
 
+    jumpToHoldings(li: IdlObject) {
+        window.open('/eg2/staff/catalog/record/' + li.eg_bib_id() + '/holdings', '_blank');
+    }
+
     receiveSelected() {
         this.markReceived(this.selectedIds());
     }