Fixes an issue where the "Go!" button was disabled in the MARC Batch
Edit interface when chosing column "0" for a CSV file updload.
Form now prevents values below 0 from being applied (via the number
spinner) and treats all column values >= 0 as valid.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
<div class="row">
<div class="col-lg-3" i18n>Column: </div>
<div class="col-lg-3 d-flex">
- <input type="number" class="form-control" [(ngModel)]="csvColumn"/>
+ <input min="0" type="number" class="form-control" [(ngModel)]="csvColumn"/>
<span class="pl-2" i18n> of </span>
</div>
<div class="col-lg-6">
return !this.bucket;
} else if (this.source === 'c') {
- return (!this.csvColumn || !this.csvFile);
+ return (this.csvColumn < 0 || !this.csvFile);
} else if (this.source === 'r') {
return !this.recordId;