From 3433d29e2e1f3023c71eef2d59e5b5bf227f2135 Mon Sep 17 00:00:00 2001 From: Bill Erickson <berickxx@gmail.com> Date: Fri, 9 Aug 2019 10:21:53 -0400 Subject: [PATCH] LP1839548 Angular catalog holds patron barcode link Holds grid on record detail page now present the patron barcode as a link to the patron UI. Related, this fixes the URL in the link for the copy barcode. Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Chris Sharp <csharp@georgialibraries.org> --- .../src/eg2/src/app/staff/share/holds/grid.component.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html index 6b609303ea..d049c28019 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html @@ -83,7 +83,7 @@ </eg-grid-column> <ng-template #barcodeTmpl let-hold="row"> - <a href="/eg/staff/cat/item/{{cp_id}}/summary"> + <a href="/eg/staff/cat/item/{{hold.cp_id}}/summary"> {{hold.cp_barcode}} </a> </ng-template> @@ -91,8 +91,14 @@ [cellTemplate]="barcodeTmpl"> </eg-grid-column> - <eg-grid-column i18n-label label="Patron Barcode" - path='ucard_barcode' [hidden]="true"></eg-grid-column> + <ng-template #userBarcodeTmpl let-hold="row"> + <a href="/eg/staff/circ/patron/{{hold.usr_id}}/checkout"> + {{hold.ucard_barcode}} + </a> + </ng-template> + <eg-grid-column i18n-label label="Patron Barcode" + [cellTemplate]="userBarcodeTmpl" [hidden]="true"></eg-grid-column> + <eg-grid-column i18n-label label="Patron alias" path="usr_alias"></eg-grid-column> <eg-grid-column i18n-label label="Request Date" path='request_time' datatype="timestamp"></eg-grid-column> -- 2.11.0