// Append fields to the document
dfNode.setAttribute('tag', '' + tags[0]);
- dfNode.setAttribute('ind1', ' ');
+ if (attr.code() === 'upc') {
+ dfNode.setAttribute('ind1', '1');
+ } else {
+ dfNode.setAttribute('ind1', ' ');
+ }
dfNode.setAttribute('ind2', ' ');
sfNode.setAttribute('code', '' + subfields[0]);
const tNode = doc.createTextNode(value);
title="Order Identifier Type" i18n-title [disabled]="!canEditIdent(li)"
[ngClass]="{'btn-warning': !selectedIdent(li)}">
<ng-container *ngIf="orderIdentTypes[li.id()]=='isbn'" i18n>ISBN</ng-container>
- <ng-container *ngIf="orderIdentTypes[li.id()]=='upc'" i18n>UPC</ng-container>
<ng-container *ngIf="orderIdentTypes[li.id()]=='issn'" i18n>ISSN</ng-container>
+ <ng-container *ngIf="orderIdentTypes[li.id()]=='upc'" i18n>UPC</ng-container>
</button>
<div ngbDropdownMenu>
<button class="btn-sm" ngbDropdownItem
(click)="orderIdentTypes[li.id()]='isbn'" i18n>ISBN</button>
<button class="btn-sm" ngbDropdownItem
- (click)="orderIdentTypes[li.id()]='upc'" i18n>UPC</button>
- <button class="btn-sm" ngbDropdownItem
(click)="orderIdentTypes[li.id()]='issn'" i18n>ISSN</button>
+ <button class="btn-sm" ngbDropdownItem
+ (click)="orderIdentTypes[li.id()]='upc'" i18n>UPC</button>
</div>
</div>
</div>