From 5539ae3049e99ec7af49f502bd28e5ad957b3169 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 2 Mar 2021 11:18:19 -0500 Subject: [PATCH] LP1904036 patron summary pref name; penalties Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .../src/app/staff/circ/patron/items.component.html | 3 +- .../app/staff/circ/patron/patron.component.html | 12 +- .../app/staff/circ/patron/summary.component.css | 2 +- .../app/staff/circ/patron/summary.component.html | 37 +++++- .../src/app/staff/circ/patron/summary.component.ts | 10 ++ .../src/app/staff/share/circ/grid.component.html | 134 +++++++++++---------- .../eg2/src/app/staff/share/circ/grid.component.ts | 1 + 7 files changed, 121 insertions(+), 78 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.html index 04c388aa76..fe1542d4c9 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/items.component.html @@ -45,7 +45,8 @@ - + diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html index f917cbbb24..8ccfd34ddc 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html @@ -4,16 +4,16 @@ - - - + + +
diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.css b/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.css index 71ba8a412d..2c7d847f7d 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.css +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.css @@ -1,5 +1,5 @@ -.patron-summary-container .row:nth-child(odd) { +.patron-summary-container .row:nth-child(odd):not(.alert) { background-color: rgb(248, 248, 248); } diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.html index 32f773b156..05ac82d706 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.html @@ -1,11 +1,29 @@
-

- {{patronService.namePart(patron(), 'family_name')}}, - {{patronService.namePart(patron(), 'first_given_name')}} - {{patronService.namePart(patron(), 'second_given_name')}} -

+
+
+

+ {{patron().family_name()}}, + {{patron().first_given_name()}} + {{patron().second_given_name()}} +

+
+ +
account
+
+
+ +
+
+

+ {{patronService.namePart(patron(), 'family_name')}}, + {{patronService.namePart(patron(), 'first_given_name')}} + {{patronService.namePart(patron(), 'second_given_name')}} +

+
+
preferred
+
@@ -14,6 +32,15 @@
+
+
+ {{pen.note() || pen.standing_penalty().label()}} +
+
{{pen.set_date() | date:'shortDate'}}
+
+
Profile
{{patron().profile().name()}}
diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.ts index dd1a830a83..79d6957285 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/summary.component.ts @@ -30,6 +30,16 @@ export class SummaryComponent implements OnInit { return this.context.patron; } + hasPrefName(): boolean { + if (this.patron()) { + return ( + this.patron().pref_first_given_name() || + this.patron().pref_second_given_name() || + this.patron().pref_family_name() + ); + } + } + printAddress(addr: IdlObject) { this.printer.print({ templateName: 'patron_address', diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.html b/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.html index 5a79e40319..37a78c202c 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.html +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.html @@ -38,71 +38,75 @@ [rowClassCallback]="rowClass" [persistKey]="persistKey" [useLocalSort]="true" [cellTextGenerator]="cellTextGenerator"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts index 8b79cbae9b..0a28134d3e 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts @@ -79,6 +79,7 @@ export class CircGridComponent implements OnInit { @Input() persistKey: string; @Input() printTemplate: string; // defaults to items_out + @Input() menuStyle: 'full' | 'slim' | 'none' = 'full'; // Emitted when a grid action modified data in a way that could // affect which cirulcations should appear in the grid. Caller -- 2.11.0