From 3d23157dead2968e363262656bde0085327c4dc2 Mon Sep 17 00:00:00 2001 From: Renaud Michotte Date: Fri, 16 Oct 2020 18:27:27 +0200 Subject: [PATCH] circulation: add patron circulation statistics This commit adds some statistics on tabs into the patron circulation detail page. Available statistics are for 'CI/CO', 'pickup' and 'pending' tabs. Closes rero/rero-ils#1278 Closes rero/rero-ils#1281 Authored-by: Renaud Michotte --- .../patron/main/main.component.html | 32 +++++++++------- .../circulation/patron/main/main.component.ts | 37 +++++++++++++++++++ .../admin/src/app/service/patron.service.ts | 11 ++++++ 3 files changed, 67 insertions(+), 13 deletions(-) diff --git a/projects/admin/src/app/circulation/patron/main/main.component.html b/projects/admin/src/app/circulation/patron/main/main.component.html index 68fa54e87..470c72162 100644 --- a/projects/admin/src/app/circulation/patron/main/main.component.html +++ b/projects/admin/src/app/circulation/patron/main/main.component.html @@ -39,10 +39,12 @@ class="nav-link" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}" - [routerLink]="['/circulation', 'patron', patron.patron.barcode, 'loan']" - translate - >Checkin/Checkout + [routerLink]="['/circulation', 'patron', patron.patron.barcode, 'loan']"> + {{ 'Checkin/Checkout' | translate }} + + {{ this.patronCirculationStatistics.loans }} + +