<eg-mark-missing-dialog #markMissingDialog></eg-mark-missing-dialog>
<eg-copy-alerts-dialog #copyAlertsDialog></eg-copy-alerts-dialog>
<eg-copy-tags-dialog #copyTagsDialog></eg-copy-tags-dialog>
+<eg-copy-notes-dialog #copyNotesDialog></eg-copy-notes-dialog>
<eg-replace-barcode-dialog #replaceBarcode></eg-replace-barcode-dialog>
<eg-delete-holding-dialog #deleteHolding></eg-delete-holding-dialog>
<eg-bucket-dialog #bucketDialog></eg-bucket-dialog>
</eg-grid-toolbar-action>
<eg-grid-toolbar-action
+ i18n-group group="Add" i18n-label label="Add/Manage Item Notes"
+ (onClick)="openItemNotes($event)">
+ </eg-grid-toolbar-action>
+
+ <eg-grid-toolbar-action
i18n-group group="Add" i18n-label label="Add Items To Bucket"
(onClick)="openBucketDialog($event)">
</eg-grid-toolbar-action>
<eg-grid-toolbar-action
i18n-group group="Edit" i18n-label label="Edit Item Alerts"
- (onClick)="openItemNotes($event, 'manage')">
+ (onClick)="openItemAlerts($event, 'manage')">
</eg-grid-toolbar-action>
<eg-grid-toolbar-action
} from '@eg/staff/share/holdings/copy-alerts-dialog.component';
import {CopyTagsDialogComponent
} from '@eg/staff/share/holdings/copy-tags-dialog.component';
+import {CopyNotesDialogComponent
+ } from '@eg/staff/share/holdings/copy-notes-dialog.component';
import {ReplaceBarcodeDialogComponent
} from '@eg/staff/share/holdings/replace-barcode-dialog.component';
import {DeleteHoldingDialogComponent
private copyAlertsDialog: CopyAlertsDialogComponent;
@ViewChild('copyTagsDialog', {static: false})
private copyTagsDialog: CopyTagsDialogComponent;
+ @ViewChild('copyNotesDialog', {static: false})
+ private copyNotesDialog: CopyNotesDialogComponent;
@ViewChild('replaceBarcode', { static: true })
private replaceBarcode: ReplaceBarcodeDialogComponent;
@ViewChild('deleteHolding', { static: true })
}
}
- openItemNotes(rows: HoldingsEntry[], mode: string) {
+ openItemAlerts(rows: HoldingsEntry[], mode: string) {
const copyIds = this.selectedCopyIds(rows);
if (copyIds.length === 0) { return; }
);
}
+ openItemNotes(rows: HoldingsEntry[]) {
+ const copyIds = this.selectedCopyIds(rows);
+ if (copyIds.length === 0) { return; }
+
+ this.copyNotesDialog.copyIds = copyIds;
+ this.copyNotesDialog.open({size: 'lg'}).subscribe(
+ modified => {
+ if (modified) {
+ this.hardRefresh();
+ }
+ }
+ );
+ }
+
openReplaceBarcodeDialog(rows: HoldingsEntry[]) {
const ids = this.selectedCopyIds(rows);
if (ids.length === 0) { return; }