Signed-off-by: Bill Erickson <berickxx@gmail.com>
</td>
<td>
<ng-container *ngIf="xact.summary().xact_type() == 'circulation'" i18n>
- {{displayValue(xact, 'title')}}
+ {{getTitle(xact)}}
</ng-container>
<ng-container *ngIf="xact.summary().xact_type() != 'circulation'" i18n>
{{xact.summary().last_billing_type()}}
return entry ? entry.value() : '';
}
+ getTitle(xact: IdlObject): string {
+ const copy = xact.circulation().target_copy();
+
+ if (Number(copy.call_number().id()) === -1) {
+ return copy.dummy_title();
+ }
+
+ return this.displayValue(xact, 'title');
+ }
+
}