Adds a limiter of owners to the acqf idlquery for fund dropdown in line items
Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
[displayTemplate]="fundTmpl"
[selectedId]="copy.fund()" (onChange)="valueChange('fund', $event)"
[idlQuerySort]="{acqf: 'year DESC, code'}"
- [idlQueryAnd]="{active: 't'}">
+ [idlQueryAnd]="{org: owners, active: 't'}">
</eg-combobox>
</div>
<div class="flex-1 p-1">
_fundBalanceCache: string[] = [];
_inflight: Promise<string>[] = [];
circModEntries: ComboboxEntry[];
+ owners: number[];
private _copy: IdlObject;
@Input() set copy(c: IdlObject) { // acqlid
ngOnInit() {
+ this.owners = this.org.ancestors(this.auth.user().ws_ou(), true);
+
if (this.gatherParamsOnly) {
this.batchMode = false;
this.batchAdd = false;