1 <eg-hold-note-dialog #noteDialog [holdId]="holdId"></eg-hold-note-dialog>
2 <eg-hold-notify-dialog #notifyDialog [holdId]="holdId"></eg-hold-notify-dialog>
4 <div class="mb-3" *ngIf="showRecordSummary">
5 <eg-bib-summary [recordId]="hold.record_id"></eg-bib-summary>
10 <button (click)="showListView()" class="btn btn-info" i18n>List View</button>
12 <div class="col-lg-3 font-weight-bold" i18n><h4>Hold #{{holdId}}</h4></div>
15 <div class="well-table">
16 <div class="well-row">
17 <div class="well-label" i18n>Request Date</div>
18 <div class="well-value">{{hold.request_time | formatValue:'timestamp'}}</div>
19 <div class="well-label" i18n>Capture Date</div>
20 <div class="well-value">{{hold.capture_time | formatValue:'timestamp'}}</div>
21 <div class="well-label" i18n>Available On</div>
22 <div class="well-value">{{hold.shelf_time | formatValue:'timestamp'}}</div>
24 <div class="well-row">
25 <div class="well-label" i18n>hold Type</div>
26 <div class="well-value">
28 <!-- TODO: add part data to wide holds
29 <span *ngIf="hold.hold_type == 'P'"> - {{hold.part_label}}</span>
32 <div class="well-label" i18n>Current Item</div>
33 <div class="well-value">
34 <a href="/eg/staff/cat/item/{{hold.cp_id}}">{{hold.cp_barcode}}</a>
36 <div class="well-label" i18n>Call Number</div>
37 <div class="well-value">{{hold.cn_full_label}}</div>
39 <div class="well-row">
40 <div class="well-label" i18n>Pickup Lib</div>
41 <div class="well-value">{{hold.pl_shortname}}</div>
42 <div class="well-label" i18n>Status</div>
43 <div class="well-value">
44 <ng-container [ngSwitch]="hold.hold_status">
45 <div *ngSwitchCase="-1" i18n>Unknown Error</div>
46 <div *ngSwitchCase="1" i18n>Waiting for Item</div>
47 <div *ngSwitchCase="2" i18n>Waiting for Capture</div>
48 <div *ngSwitchCase="3" i18n>In Transit</div>
49 <div *ngSwitchCase="4" i18n>Ready for Pickup</div>
50 <div *ngSwitchCase="5" i18n>Hold Shelf Delay</div>
51 <div *ngSwitchCase="6" i18n>Canceled</div>
52 <div *ngSwitchCase="7" i18n>Suspended</div>
53 <div *ngSwitchCase="8" i18n>Wrong Shelf</div>
54 <div *ngSwitchCase="9" i18n>Fulfilled</div>
57 <div class="well-label" i18n>Behind Desk</div>
58 <div class="well-value">{{hold.behind_desk === '1'}}</div>
60 <div class="well-row">
61 <div class="well-label" i18n>Current Shelf Lib</div>
62 <div class="well-value">{{getOrgName(hold.current_shelf_lib)}}</div>
63 <div class="well-label" i18n>Current Shelving Location</div>
64 <div class="well-value">{{hold.acpl_name}}</div>
65 <div class="well-label" i18n>Force Item Quality</div>
66 <div class="well-value">{{hold.mint_condition === '1'}}</div>
68 <div class="well-row">
69 <div class="well-label" i18n>Email Notify</div>
70 <div class="well-value">{{hold.email_notify === '1'}}</div>
71 <div class="well-label" i18n>Phone Notify</div>
72 <div class="well-value">{{hold.phone_notify}}</div>
73 <div class="well-label" i18n>SMS Notify</div>
74 <div class="well-value">{{hold.sms_notify}}</div>
76 <div class="well-row">
77 <div class="well-label" i18n>Cancel Cause</div>
78 <div class="well-value">{{hold.cancel_cause}}</div><!-- TODO: label -->
79 <div class="well-label" i18n>Cancel Time</div>
80 <div class="well-value">{{hold.cancel_time | formatValue:'timestamp'}}</div>
81 <div class="well-label" i18n>Cancel Note</div>
82 <div class="well-value">{{hold.cancel_note}}</div>
84 <div class="well-row">
85 <div class="well-label" i18n>Patron Name</div>
86 <div class="well-value">
87 <a href="/eg/staff/circ/patron/{{hold.usr_id}}/checkout">
88 {{hold.usr_display_name}}
91 <!-- force consistent width -->
92 <div class="well-label" i18n>Patron Barcode</div>
93 <div class="well-value">
94 <a href="/eg/staff/circ/patron/{{hold.usr_id}}/checkout">
95 {{hold.ucard_barcode}}
98 <div class="well-label" i18n>Hopeless Date</div>
99 <div class="well-value">{{hold.hopeless_date | formatValue:'timestamp'}}</div>
103 <div class="row mt-2">
104 <div class="col-lg-12">
105 <ul ngbNav #detailNav="ngbNav" class="nav-tabs" [activeId]="detailTab">
106 <li ngbNavItem="notes">
107 <a ngbNavLink i18n>Notes</a>
108 <ng-template ngbNavContent>
109 <button class="btn btn-outline-dark mt-3" (click)="newNote()" i18n>New Note</button>
110 <div class="mt-3" *ngFor="let note of notes">
112 <div class="font-weight-bold">{{note.title()}}</div>
113 <div class="flex-1"></div>
115 <span *ngIf="note.slip() === 't'"
116 class="ml-2 badge badge-info p-1">Print on Slip</span>
117 <span *ngIf="note.pub() === 't'"
118 class="ml-2 badge badge-warning p-1">Patron Visible</span>
119 <span *ngIf="note.staff() === 't'"
120 class="ml-2 badge badge-info p-1">Staff Create</span>
123 <div class="well-table">
124 <div class="well-row">
125 <div class="well-value">{{note.body()}}</div>
126 <div class="well-label-no-flex">
127 <button class="btn btn-warning"
128 (click)="deleteNote(note)" i18n>Delete</button>
135 <li ngbNavItem="notifications">
136 <a ngbNavLink i18n>Staff Notifications</a>
137 <ng-template ngbNavContent>
138 <button class="btn btn-outline-dark mt-3"
139 (click)="newNotify()" i18n>Add Record of Notification</button>
140 <div class="mt-3" *ngFor="let notify of notifies">
142 <div class="font-weight-bold">{{notify.method()}}</div>
143 <div class="flex-1"></div>
145 <span>{{notify.notify_time() | date:'short'}}</span>
146 <span class="ml-2" i18n>
147 Created by {{notify.notify_staff().usrname()}}</span>
152 <div class="well-table">
153 <div class="well-row">
154 <div class="well-value">{{notify.note()}}</div>
161 <div [ngbNavOutlet]="detailNav"></div>