<div class="patron-summary-container">
- <h3 *ngIf="patron()" class="font-weight-bold" i18n>
- {{patronService.namePart(patron(), 'family_name')}},
- {{patronService.namePart(patron(), 'first_given_name')}}
- {{patronService.namePart(patron(), 'second_given_name')}}
- </h3>
+ <div class="row d-flex" *ngIf="patron()">
+ <div class="flex-1 pt-1">
+ <h4 class="font-weight-bold" i18n>
+ {{patron().family_name()}},
+ {{patron().first_given_name()}}
+ {{patron().second_given_name()}}
+ </h4>
+ </div>
+ <ng-container *ngIf="hasPrefName()">
+ <div class="mr-2 ml-2 text-info font-italic" i18n>account</div>
+ </ng-container>
+ </div>
+
+ <div class="row d-flex border-top" *ngIf="hasPrefName()">
+ <div class="flex-1 pt-1">
+ <h4 class="font-weight-bold" i18n>
+ {{patronService.namePart(patron(), 'family_name')}},
+ {{patronService.namePart(patron(), 'first_given_name')}}
+ {{patronService.namePart(patron(), 'second_given_name')}}
+ </h4>
+ </div>
+ <div class="mr-2 ml-2 text-info font-italic" i18n>preferred</div>
+ </div>
<div class="row mb-1 alert alert-danger p-0"
*ngIf="context.alerts.accountExpiresSoon">
</div>
</div>
+ <div class="row mb-1 alert alert-danger p-0"
+ *ngFor="let pen of context.alerts.alertPenalties">
+ <div class="col-lg-9"
+ title="{{pen.standing_penalty().name()">
+ {{pen.note() || pen.standing_penalty().label()}}
+ </div>
+ <div class="col-lg-3">{{pen.set_date() | date:'shortDate'}}</div>
+ </div>
+
<div class="row mb-1">
<div class="col-lg-5" i18n>Profile</div>
<div class="col-lg-7">{{patron().profile().name()}}</div>
[rowClassCallback]="rowClass" [persistKey]="persistKey"
[useLocalSort]="true" [cellTextGenerator]="cellTextGenerator">
- <eg-grid-toolbar-action
- i18n-label label="Print Item Receipt(s)" (onClick)="printReceipts($event)">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- i18n-group group="Add" i18n-label label="Add Item Alerts"
- (onClick)="openItemAlerts($event, 'create')">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- i18n-group group="Add" i18n-label label="Add Billing"
- (onClick)="openBillingDialog($event)">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- i18n-group group="Circulation" i18n-label label="Edit Due Date"
- (onClick)="editDueDate($event)">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- group="Mark" i18n-group i18n-label label="Mark Item Damaged"
- (onClick)="markDamaged($event)"></eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- group="Mark" i18n-group i18n-label label="Mark Item Missing"
- (onClick)="markMissing($event)"></eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- group="Mark" i18n-group i18n-label label="Mark Claims Returned"
- (onClick)="claimsReturned($event)"></eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- group="Mark" i18n-group i18n-label label="Mark Claims Never Checked Out"
- (onClick)="claimsNeverCheckedOut($event)"></eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action
- group="Mark" i18n-group i18n-label label="Mark Lost (By Patron)"
- (onClick)="markLost($event)"></eg-grid-toolbar-action>
-
- <!-- .subscribe() nudges the observable to run -->
- <eg-grid-toolbar-action
- group="Circulation" i18n-group i18n-label label="Checkin"
- (onClick)="checkin($event).subscribe()">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action group="Circulation" i18n-group
- i18n-label label="Renew" (onClick)="renew($event)">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action group="Circulation" i18n-group
- i18n-label label="Renew All" (onClick)="renewAll()">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action group="Circulation" i18n-group
- i18n-label label="Renew With Specific Due Date"
- (onClick)="renewWithDate($event)">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action group="Show" i18n-group
- i18n-label label="Show Last Few Circulation" (onClick)="showRecentCircs($event)">
- </eg-grid-toolbar-action>
-
- <eg-grid-toolbar-action group="Show" i18n-group
- i18n-label label="Show Triggered Events" (onClick)="showTriggeredEvents($event)">
- </eg-grid-toolbar-action>
+ <ng-container *ngIf="menuStyle == 'full'">
+
+ <eg-grid-toolbar-action
+ i18n-label label="Print Item Receipt(s)" (onClick)="printReceipts($event)">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ i18n-group group="Add" i18n-label label="Add Item Alerts"
+ (onClick)="openItemAlerts($event, 'create')">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ i18n-group group="Add" i18n-label label="Add Billing"
+ (onClick)="openBillingDialog($event)">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ i18n-group group="Circulation" i18n-label label="Edit Due Date"
+ (onClick)="editDueDate($event)">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ group="Mark" i18n-group i18n-label label="Mark Item Damaged"
+ (onClick)="markDamaged($event)"></eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ group="Mark" i18n-group i18n-label label="Mark Item Missing"
+ (onClick)="markMissing($event)"></eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ group="Mark" i18n-group i18n-label label="Mark Claims Returned"
+ (onClick)="claimsReturned($event)"></eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ group="Mark" i18n-group i18n-label label="Mark Claims Never Checked Out"
+ (onClick)="claimsNeverCheckedOut($event)"></eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
+ group="Mark" i18n-group i18n-label label="Mark Lost (By Patron)"
+ (onClick)="markLost($event)"></eg-grid-toolbar-action>
+
+ <!-- .subscribe() nudges the observable to run -->
+ <eg-grid-toolbar-action
+ group="Circulation" i18n-group i18n-label label="Checkin"
+ (onClick)="checkin($event).subscribe()">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action group="Circulation" i18n-group
+ i18n-label label="Renew" (onClick)="renew($event)">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action group="Circulation" i18n-group
+ i18n-label label="Renew All" (onClick)="renewAll()">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action group="Circulation" i18n-group
+ i18n-label label="Renew With Specific Due Date"
+ (onClick)="renewWithDate($event)">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action group="Show" i18n-group
+ i18n-label label="Show Last Few Circulation" (onClick)="showRecentCircs($event)">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action group="Show" i18n-group
+ i18n-label label="Show Triggered Events" (onClick)="showTriggeredEvents($event)">
+ </eg-grid-toolbar-action>
+
+ </ng-container>
<!-- Columns =========================================== -->