From e1c1f88af7313c1640d1a6f4d4942ccb50d8351d Mon Sep 17 00:00:00 2001 From: Renaud Michotte Date: Thu, 6 May 2021 16:04:52 +0200 Subject: [PATCH] circulation: add data into pending/pickup patron profile * Adds a column into `pending` patron profile tab to display the request creation date. * Adds a column into `pickup` patron profile tab to display the "available until" date. * Closes rero/rero-ils#1778. Co-Authored-By: Renaud Michotte --- .../pending/pending-item/pending-item.component.html | 8 ++++---- .../patron/pending/pending-item/pending-item.component.ts | 2 +- .../app/circulation/patron/pending/pending.component.html | 8 ++++---- .../patron/pickup/pickup-item/pickup-item.component.html | 8 ++++---- .../app/circulation/patron/pickup/pickup.component.html | 8 ++++---- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.html b/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.html index 4a24a201e..b772bbf55 100644 --- a/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.html +++ b/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.html @@ -16,7 +16,7 @@ --> -
+ -
+
{{ title }}
@@ -43,8 +43,8 @@
-
-
-
+
{{ loan.created | dateTranslate: 'short' }}
+
-
diff --git a/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.ts b/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.ts index a88786a11..b7570d31a 100644 --- a/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.ts +++ b/projects/admin/src/app/circulation/patron/pending/pending-item/pending-item.component.ts @@ -46,7 +46,7 @@ export class PendingItemComponent implements OnInit { ) { } /** - * Init + * OnInit hook */ ngOnInit() { if (this.loan) { diff --git a/projects/admin/src/app/circulation/patron/pending/pending.component.html b/projects/admin/src/app/circulation/patron/pending/pending.component.html index 849bd1a0d..e835b3ad5 100644 --- a/projects/admin/src/app/circulation/patron/pending/pending.component.html +++ b/projects/admin/src/app/circulation/patron/pending/pending.component.html @@ -18,10 +18,10 @@
-
Item
-
Title
-
Expected availability
-
 
+
Item
+
Title
+
Request date
+
Expected availability
diff --git a/projects/admin/src/app/circulation/patron/pickup/pickup-item/pickup-item.component.html b/projects/admin/src/app/circulation/patron/pickup/pickup-item/pickup-item.component.html index feca9b78a..00d170a80 100644 --- a/projects/admin/src/app/circulation/patron/pickup/pickup-item/pickup-item.component.html +++ b/projects/admin/src/app/circulation/patron/pickup/pickup-item/pickup-item.component.html @@ -15,10 +15,10 @@ along with this program. If not, see . --> -
+ -
+
{{ title }}
@@ -36,10 +36,10 @@
-
+
{{ loan.metadata.pickup_location_pid | getRecord: 'locations' : 'field' : 'pickup_name' | async }}
-
+
-
diff --git a/projects/admin/src/app/circulation/patron/pickup/pickup.component.html b/projects/admin/src/app/circulation/patron/pickup/pickup.component.html index 6697318e3..8d9055acd 100644 --- a/projects/admin/src/app/circulation/patron/pickup/pickup.component.html +++ b/projects/admin/src/app/circulation/patron/pickup/pickup.component.html @@ -18,10 +18,10 @@
-
Item
-
Title
-
Pickup location
-
 
+
Item
+
Title
+
Pickup location
+
To pick-up until