</div>
</div>
<div class="p-1" [ngStyle]="{flex: flexAt(5)}">
- <div><label class="font-weight-bold" i18n>Call Number Label</label></div>
+ <div>
+ <label class="font-weight-bold label-with-material-icon" i18n>
+ Call Number Label
+ </label>
+ </div>
<div>
<eg-combobox [smallFormControl]="true"
[allowFreeText]="true" [(ngModel)]="batchVolLabel">
</div>
</div>
<div class="p-1" [ngStyle]="{flex: flexAt(8)}">
- <div><label class="font-weight-bold" i18n>Generate Barcodes</label></div>
- <button class="btn btn-sm btn-outline-dark label-with-material-icon"
- (click)="generateBarcodes()">
- <span i18n>Generate</span>
- <span class="material-icons">arrow_downward</span>
- </button>
+ <ng-container *ngIf="displayColumn('generate_barcodes')">
+ <div><label class="font-weight-bold" i18n>Generate Barcodes</label></div>
+ <button class="btn btn-sm btn-outline-dark label-with-material-icon"
+ (click)="generateBarcodes()">
+ <span i18n>Generate</span>
+ <span class="material-icons">arrow_downward</span>
+ </button>
+ </ng-container>
</div>
<div class="p-1" [ngStyle]="{flex: flexSpan(9, 10)}">
- <div><label class="font-weight-bold" i18n>Checkdigit</label></div>
- <div class="form-check form-check-inline">
- <input class="form-check-input" type="checkbox"
- (change)="saveUseCheckdigit()"
- id="use-checkdigit" [(ngModel)]="useCheckdigit"/>
- <label class="form-check-label" for="use-checkdigit" i18n>
- Use Checkdigit
- </label>
- </div>
+ <ng-container *ngIf="displayColumn('generate_barcodes')">
+ <div><label class="font-weight-bold" i18n>Checkdigit</label></div>
+ <div class="form-check form-check-inline">
+ <input class="form-check-input" type="checkbox"
+ (change)="saveUseCheckdigit()"
+ id="use-checkdigit" [(ngModel)]="useCheckdigit"/>
+ <label class="form-check-label" for="use-checkdigit" i18n>
+ Use Checkdigit
+ </label>
+ </div>
+ </ng-container>
</div>
</div>
+
<div class="row d-flex mt-2 mb-2">
<div class="p-1" [ngStyle]="{flex: flexAt(1)}">
<label class="font-weight-bold" i18n>Owning Library</label>
<label class="font-weight-bold" i18n>Classification</label>
</div>
<div class="p-1" [ngStyle]="{flex: flexAt(4)}" *ngIf="displayColumn('prefix')">
- <label class="font-weight-bold" i18n>Prefix</label>
+ <span class="font-weight-bold" i18n>Prefix
+ <ng-container *ngIf="expand !== 4">
+ <button title="Expand Column" i18n-title
+ class="material-icon-button" (click)="expand = 4" i18n>
+ ↗
+ </button>
+ </ng-container>
+ <ng-container *ngIf="expand === 4">
+ <button title="Shrink Column" i18n-title
+ class="material-icon-button" (click)="expand = null" i18n>
+ ↙
+ </button>
+ </ng-container>
+ </span>
</div>
<div class="p-1" [ngStyle]="{flex: flexAt(5)}">
- <label class="font-weight-bold" i18n>Call Number Label</label>
+ <span class="font-weight-bold" i18n>Call Number Label
+ <ng-container *ngIf="expand !== 5">
+ <button title="Expand Column" i18n-title
+ class="material-icon-button" (click)="expand = 5" i18n>
+ ↗
+ </button>
+ </ng-container>
+ <ng-container *ngIf="expand === 5">
+ <button title="Shrink Column" i18n-title
+ class="material-icon-button" (click)="expand = null" i18n>
+ ↙
+ </button>
+ </ng-container>
+ </span>
</div>
<div class="p-1" [ngStyle]="{flex: flexAt(6)}" *ngIf="displayColumn('suffix')">
- <label class="font-weight-bold" i18n>Suffix</label>
+ <span class="font-weight-bold" i18n>Suffix
+ <ng-container *ngIf="expand !== 6">
+ <button title="Expand Column" i18n-title
+ class="material-icon-button" (click)="expand = 6" i18n>
+ ↗
+ </button>
+ </ng-container>
+ <ng-container *ngIf="expand === 6">
+ <button title="Shrink Column" i18n-title
+ class="material-icon-button" (click)="expand = null" i18n>
+ ↙
+ </button>
+ </ng-container>
+ </span>
</div>
<div class="p-1" [ngStyle]="{flex: flexAt(7)}">
<label class="font-weight-bold" i18n>Items</label>
</div>
- <div class="p-1" [ngStyle]="{flex: flexAt(8)}">
- <label class="font-weight-bold" i18n>Barcode</label>
+ <!--
+ When hiding the copy_number column, absorb its colum width to
+ take advantage of the space and to ensure the main columns still
+ line up with the batch updater row sitting above
+ -->
+ <div class="p-1"
+ [ngStyle]="{flex: displayColumn('copy_number_vc') ? flexAt(8) : flexSpan(8, 9)}">
+ <span class="font-weight-bold" i18n>Barcode
+ <ng-container *ngIf="expand !== 8">
+ <button title="Expand Column" i18n-title
+ class="material-icon-button" (click)="expand = 8" i18n>
+ ↗
+ </button>
+ </ng-container>
+ <ng-container *ngIf="expand === 8">
+ <button title="Shrink Column" i18n-title
+ class="material-icon-button" (click)="expand = null" i18n>
+ ↙
+ </button>
+ </ng-container>
+ </span>
</div>
- <div class="p-1" [ngStyle]="{flex: flexAt(9)}">
+ <div class="p-1" [ngStyle]="{flex: flexAt(9)}" *ngIf="displayColumn('copy_number_vc')">
<label class="font-weight-bold" i18n>Item #</label>
</div>
<div class="p-1" [ngStyle]="{flex: flexAt(10)}">
</div>
</div>
-
<ng-container *ngFor="let orgNode of context.orgNodes(); let orgIdx = index">
<ng-container *ngFor="let volNode of orgNode.children; let volIdx = index">
<ng-container *ngFor="let copyNode of volNode.children; let copyIdx = index">
(ngModelChange)="copyCountChanged(volNode, $event)"/>
</ng-container>
</div>
- <div class="p-1" [ngStyle]="{flex: flexAt(8)}">
-
+ <div class="p-1"
+ [ngStyle]="{flex: displayColumn('copy_number_vc') ? flexAt(8) : flexSpan(8, 9)}">
<div class="d-flex">
<ng-container *ngIf="context.sessionType != 'copy'">
<button class="clear-button" (click)="deleteCopy(copyNode)"
Duplicate Barcode
</div>
</div>
- <div class="p-1" [ngStyle]="{flex: flexAt(9)}">
+ <div class="p-1" [ngStyle]="{flex: flexAt(9)}" *ngIf="displayColumn('copy_number_vc')">
<input type="number" min="1" class="form-control form-control-sm"
[ngModel]="copyNode.target.copy_number()"
(ngModelChange)="applyCopyValue(copyNode.target, 'copy_number', $event)"/>
<div class="p-1" [ngStyle]="{flex: flexAt(7)}"></div>
<div class="p-1 pl-3" [ngStyle]="{flex: flexAt(8)}">
- <button class="btn btn-sm btn-outline-dark mr-2"
- (click)="generateBarcodes()" i18n>Generate Barcodes</button>
+ <ng-container *ngIf="displayColumn('generate_barcodes')">
+ <button class="btn btn-sm btn-outline-dark mr-2"
+ (click)="generateBarcodes()" i18n>Generate Barcodes</button>
+ </ng-container>
</div>
<div class="p-1" [ngStyle]="{flex: flexSpan(9, 10)}">
- <div class="form-check form-check-inline mr-2">
- <input class="form-check-input" type="checkbox"
- (change)="saveUseCheckdigit()"
- id="use-checkdigit-2" [(ngModel)]="useCheckdigit"/>
- <label class="form-check-label" for="use-checkdigit-2" i18n>
- Use Checkdigit
- </label>
- </div>
+ <ng-container *ngIf="displayColumn('generate_barcodes')">
+ <div class="form-check form-check-inline mr-2">
+ <input class="form-check-input" type="checkbox"
+ (change)="saveUseCheckdigit()"
+ id="use-checkdigit-2" [(ngModel)]="useCheckdigit"/>
+ <label class="form-check-label" for="use-checkdigit-2" i18n>
+ Use Checkdigit
+ </label>
+ </div>
+ </ng-container>
</div>
</div>