Skip to content

Commit

Permalink
circulation: add link to patron name
Browse files Browse the repository at this point in the history
* Adds the link on the patron's name to bounce to his account.
* Closes rero/rero-ils#2997.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Sep 8, 2022
1 parent 872d79d commit e6544e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions projects/admin/src/app/circulation/item/item.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@
title="{{ 'Requests' | translate }}"
class="badge badge-secondary font-weight-normal mr-1">
<i class="fa fa-shopping-basket pr-1"></i>
{{ item.pending_loans[0].patron.name }}
<a class="text-white" [routerLink]="['/circulation', 'patron', item.pending_loans[0].patron.barcode[0]]">
{{ item.pending_loans[0].patron.name }}
</a>
</span>
</li>
</ul>
Expand Down Expand Up @@ -199,7 +201,7 @@
</ng-container>
<span class="badge badge-secondary font-weight-normal mr-2" *ngFor="let request of item.pending_loans">
<i class="fa fa-shopping-basket pr-1"></i>
{{ request.patron.name }}
<a class="text-white" [routerLink]="['/circulation', 'patron', request.patron.barcode[0]]">{{ request.patron.name }}</a>
</span>
</dd>
</ng-container>
Expand Down

0 comments on commit e6544e4

Please sign in to comment.