-<eg-staff-banner i18n-bannerText bannerText="Checkin Items"></eg-staff-banner>
+<eg-staff-banner *ngIf="!isHoldCapture" i18n-bannerText bannerText="Checkin Items">
+</eg-staff-banner>
+
+<eg-staff-banner *ngIf="isHoldCapture" i18n-bannerText bannerText="Capture Holds">
+</eg-staff-banner>
+
<eg-circ-components></eg-circ-components>
<eg-progress-dialog #progressDialog></eg-progress-dialog>
<eg-barcode-select #barcodeSelect></eg-barcode-select>
<div class="col-lg-12">
<eg-grid #grid [dataSource]="gridDataSource" [sortable]="true"
[useLocalSort]="true" [cellTextGenerator]="cellTextGenerator"
- [disablePaging]="true" persistKey="circ.checkin">
+ [disablePaging]="true" [persistKey]="persistKey">
<eg-grid-toolbar-action
group="Mark" i18n-group i18n-label label="Mark Item Damaged"
strictBarcode = false;
trimList = false;
itemNeverCirced: string;
+ persistKey: string;
gridDataSource: GridDataSource = new GridDataSource();
cellTextGenerator: GridCellTextGenerator;
) {}
ngOnInit() {
+
+ this.route.data.subscribe(data => {
+ if (data && data.capture) {
+ this.isHoldCapture = true;
+ this.persistKey = 'circ.checkin.capture';
+ } else {
+ this.isHoldCapture = false;
+ this.persistKey = 'circ.checkin.checkin';
+ }
+ });
+
this.gridDataSource.getRows = (pager: Pager, sort: any[]) => {
return from(this.checkins);
};
this.strictBarcode = sets['circ.checkin.strict_barcode'];
if (this.isHoldCapture) {
+ // In hold capture mode, some modifiers are forced
+ // regardless of preferences.
this.modifiers.noop = false;
this.modifiers.auto_print_holds_transits = true;
}
const routes: Routes = [{
path: '',
component: CheckinComponent
+ }, {
+ path: 'capture',
+ component: CheckinComponent,
+ data: {capture: true}
}];
@NgModule({
<span class="material-icons" aria-hidden="true">pin_drop</span>
<span i18n>Capture Holds</span>
</a>
+ <a class="dropdown-item" routerLink="/staff/circ/checkin/capture">
+ <span class="material-icons" aria-hidden="true">pin_drop</span>
+ <span i18n>Capture Holds (Experimental)</span>
+ </a>
<a class="dropdown-item" routerLink="/staff/circ/holds/pull-list">
<span class="material-icons" aria-hidden="true">view_list</span>
<span i18n>Pull List for Hold Requests</span>
</a>
</li>
<li>
+ <a href="/eg2/staff/circ/checkin/capture">
+ <span class="glyphicon glyphicon-pushpin" aria-hidden="true"></span>
+ [% l('Capture Holds (Experimental)') %]
+ </a>
+ </li>
+ <li>
<a href="/eg2/staff/circ/holds/pull-list">
<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
[% l('Pull List for Hold Requests') %]