--- /dev/null
+<ng-template #dialogContent>
+ <form class="form-validated">
+ <div class="modal-header bg-info">
+ <h3 class="modal-title" i18n>Add Items to Selected Line Items</h3>
+ <button type="button" class="close"
+ i18n-aria-label aria-label="Close" (click)="close()">
+ <span aria-hidden="true">×</span>
+ </button>
+ </div>
+ <div class="modal-body">
+ <h4 i18n>Lineitem(s) selected:
+ <span *ngFor="let id of ids; last as isLast">
+ {{id}}<span *ngIf="!isLast">,</span>
+ </span>
+ </h4>
+ <h4 i18n>Download a text file of ISBN, ISSN, or UPC
+ values for selected line item(s).
+ </h4>
+ <div class="form-group form-inline">
+ <label for="export-attr-select" class="form-check-label mr-1">Filter by:</label>
+ <select name="export-attr-select" id="export-attr-select"
+ [(ngModel)]="selectedAttr"
+ class="form-control">
+ <option value="isbn" i18n>ISBN</option>
+ <option value="issn" i18n>ISSN</option>
+ <option value="upc" i18n>UPC</option>
+ </select>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <button type="button" class="btn btn-success"
+ (click)="close(selectedAttr)" i18n>Download</button>
+ <button type="button" class="btn btn-warning"
+ (click)="close()" i18n>Cancel</button>
+ </div>
+ </form>
+</ng-template>
+
--- /dev/null
+import {Component, Input, ViewChild, TemplateRef, OnInit} from '@angular/core';
+import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
+import {DialogComponent} from '@eg/share/dialog/dialog.component';
+import {IdlService, IdlObject} from '@eg/core/idl.service';
+import {ComboboxEntry} from '@eg/share/combobox/combobox.component';
+
+@Component({
+ selector: 'eg-acq-export-attributes-dialog',
+ templateUrl: './export-attributes-dialog.component.html'
+})
+
+export class ExportAttributesDialogComponent extends DialogComponent {
+ @Input() ids: number[];
+ selectedAttr = 'isbn';
+ constructor(private modal: NgbModal) { super(modal); }
+}
+
+