Open tslittle opened 3 years ago
Bill has redone Item Status, which includes Show Originating Acquisition. It's here: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=blob;f=Open-ILS/src/eg2/src/app/staff/cat/item/status.component.ts;h=3dd047a1a58226935160c9e40bc084879f06d070;hb=ea8857fd8a34e70cf2b8dfb94b182f940223fccc
showAcq(copies: IdlObject[]) { 580 if (copies.length === 0) { return; } 581 582 this.net.request('open-ils.acq', 583 'open-ils.acq.lineitem.retrieve.by_copy_id', 584 this.auth.token(), copies[0].id() 585 ).subscribe(resp => { 586 587 if (this.evt.parse(resp)) { 588 return this.strings.interpolate('staff.cat.item.no-acq') 589 .then(str => this.toast.info(str)); 590 } 591 592 window.open(
/eg/staff/acq/legacy/po/view/${resp.purchase_order()}); 593 }); 594 }
So is it better to just copy and paste that into Holdings View, or to try to reference that from the Holdings.ts file?
https://bugs.launchpad.net/evergreen/+bug/1916291