const SETTINGS = [
'circ.checkin.strict_barcode'
-]
+];
@Component({
templateUrl: 'checkin.component.html',
if (copyIds.length === 0) { return; }
this.copyAlertsDialog.copyIds = copyIds;
- this.copyAlertsDialog.mode = 'create'
+ this.copyAlertsDialog.mode = 'create';
this.copyAlertsDialog.open({size: 'lg'}).subscribe();
}
<ng-template ngbNavContent>
<div class="mt-3">
<eg-grid idlClass="mb" #billingGrid toolbarLabel="Bills"
+ persistKey="circ.patron.xact_details_details_bills"
i18n-toolbarLabel [dataSource]="billingDataSource" [sortable]="true">
<eg-grid-toolbar-action label="Edit Note" i18n-label
(onClick)="openNoteDialog($event)">
</div>
<div class="mt-3">
<eg-grid idlClass="mp" [dataSource]="paymentDataSource"
+ persistKey="circ.patron.xact_details_details_payments"
i18n-toolbarLabel toolbarLabel="Payments" [sortable]="true">
<eg-grid-toolbar-action label="Edit Note" i18n-label
(onClick)="openNoteDialog($event)">
</ng-template>
<eg-grid #billGrid [dataSource]="gridDataSource"
- [sortable]="true" [useLocalSort]="true" (onRowActivate)="showStatement($event)"
+ persistKey="circ.patron.bills" [sortable]="true"
+ [useLocalSort]="true" (onRowActivate)="showStatement($event)"
[cellTextGenerator]="cellTextGenerator">
<eg-grid-toolbar-button i18n-label label="Add Billing"
<div class="row">
<div class="col-lg-12">
<eg-grid #checkoutsGrid [dataSource]="gridDataSource" [sortable]="true"
+ persistKey="circ.patron.checkout"
[useLocalSort]="true" [cellTextGenerator]="cellTextGenerator"
[disablePaging]="true" persistKey="circ.patron.checkout">
</ng-template>
<eg-grid idlClass="au" #groupGrid
- [cellTextGenerator]="cellTextGenerator"
- [dataSource]="dataSource"
- [sortable]="true"
- [useLocalSort]="true"
+ persistKey="circ.patron.group_members" [cellTextGenerator]="cellTextGenerator"
+ [dataSource]="dataSource" [sortable]="true" [useLocalSort]="true"
(onRowActivate)="onRowActivate($event)"
showFields="active,barred,dob,family_name,first_given_name,barcode,
master_account,second_given_name,balance_owed,total_out,overdue">
<ng-template ngbNavContent>
<eg-holds-grid
printTemplate="holds_for_patron"
- persistKey="circ.patron.holds.canceled"
+ persistKey="circ.patron.holds"
[noLoadProgress]="true"
[hidePickupLibFilter]="true"
[showRecentlyCanceled]="true"
<ng-container *ngIf="loading">
<ng-container *ngTemplateOutlet="progress"></ng-container>
</ng-container>
- <eg-circ-grid #checkoutsGrid [persistKey]="persistKey" (reloadRequested)="load()">
+ <eg-circ-grid #checkoutsGrid
+ persistKey="circ.patron.items_out" (reloadRequested)="load()">
</eg-circ-grid>
</ng-template>
</li>
<ng-container *ngIf="loading">
<ng-container *ngTemplateOutlet="progress"></ng-container>
</ng-container>
- <eg-circ-grid #otherGrid [persistKey]="persistKey" (reloadRequested)="load()">
+ <eg-circ-grid #otherGrid
+ persistKey="circ.patron.items_out.other" (reloadRequested)="load()">
</eg-circ-grid>
</ng-container>
</ng-template>
<ng-container *ngIf="loading">
<ng-container *ngTemplateOutlet="progress"></ng-container>
</ng-container>
- <eg-circ-grid #nonCatGrid [persistKey]="persistKey"
+ <eg-circ-grid #nonCatGrid persistKey="circ.patron.items_out.noncat"
menuStyle="none" (reloadRequested)="load()">
</eg-circ-grid>
</ng-container>
displayClaimsReturned: number = null;
fetchCheckedIn = true;
displayAltList = true;
- persistKey: string;
@ViewChild('checkoutsGrid') private checkoutsGrid: CircGridComponent;
@ViewChild('otherGrid') private otherGrid: CircGridComponent;
promise = this.loadNonCatGrid();
}
- this.persistKey = `circ.patron.items.${name}`;
-
return promise.then(_ => this.loading = false);
}
</div>
<eg-grid #mainGrid idlClass="ausp" [dataSource]="mainDataSource"
- hideFields="id,usr,stop_date">
+ hideFields="id,usr,stop_date" persistKey="circ.patron.staff_messages">
<eg-grid-toolbar-button i18n-label label="Apply Penalty / Message"
(onClick)="applyPenalty()">
<eg-grid-toolbar-action (onClick)="archive($event)"
</div>
<eg-grid #archiveGrid idlClass="ausp" [dataSource]="archiveDataSource"
- hideFields="id,usr,stop_date">
+ hideFields="id,usr,stop_date" persistKey="circ.patron.archived_messages">
<eg-grid-column path="standing_penalty.label">
</eg-grid-column>
<eg-grid-column path="standing_penalty.staff_alert">
handleOverridableCheckinEvents(result: CheckinResult): Promise<CheckinResult> {
const params = result.params;
const events = result.allEvents;
- const firstEvent = result.firstEvent
+ const firstEvent = result.firstEvent;
if (params._override) {
// Should never get here. Just being safe.
nextStatuses.forEach(statId => {
const wanted = statMap[statId];
if (wanted) { this.nextStatuses.push(wanted); }
- })
+ });
if (this.nextStatuses.length > 0) {
this.nextStatus = this.nextStatuses[0].id();
-- SELECT evergreen.upgrade_deps_block_check('TODO', :eg_version);
/*
-INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
-VALUES (
- 'eg.catalog.results.count', 'gui', 'integer',
- oils_i18n_gettext(
- 'eg.catalog.results.count',
- 'Catalog Results Page Size',
- 'cwst', 'label'
- )
-);
-
-eg.circ.patron.holds.prefetch
-
-eg.grid.circ.patron.holds
-
-holds_for_patron print template
-
-- insert then update for easier iterative development tweaks
INSERT INTO config.print_template
(name, label, owner, active, locale, content_type, template)
VALUES ('checkin', 'Checkin', 1, TRUE, 'en-US', 'text/html', '');
-*/
-
UPDATE config.print_template SET template = $TEMPLATE$
[%
USE date;
$TEMPLATE$ WHERE name = 'checkin';
+INSERT INTO config.print_template
+ (name, label, owner, active, locale, content_type, template)
+VALUES ('holds_for_patron', 'Holds For Patron', 1, TRUE, 'en-US', 'text/html', '');
+
+*/
+
+UPDATE config.print_template SET template = $TEMPLATE$
+[%
+ USE date;
+ USE money = format('$%.2f');
+ SET holds = template_data;
+%]
+
+<div>
+ <div>Welcome to [% staff_org.name %]</div>
+ <div>You have the following items on hold:</div>
+ <hr/>
+ <ol>
+ [% FOR hold IN holds %]
+ <li>
+ <div>[% hold.title %]</div>
+ </li>
+ [% END %]
+ </ol>
+ <hr/>
+ <div>Slip Date: [% date.format(date.now, '%x %r') %]</div>
+ <div>Printed by [% staff.first_given_name %] at [% staff_org.shortname %]</div>
+</div>
+
+$TEMPLATE$ WHERE name = 'holds_for_patron';
+
COMMIT;