var fundLabelFormat = ['${0} (${1})', 'code', 'year'];
var fundSearchFormat = ['${0} (${1})', 'code', 'year'];
-var fundSearchFilter = {};
+var fundSearchFilter = {active : 't'};
var cgi = new openils.CGI();
var pcrud = new openils.PermaCrud();
extraCopiesFund = new openils.widget.AutoFieldWidget({
fmField : 'fund',
fmClass : 'acqlid',
- searchFilter : {active : 't'},
labelFormat : fundLabelFormat,
searchFormat : fundSearchFormat,
searchFilter : fundSearchFilter,
}
if(item.fund_debit()) {
- fundArgs.searchFilter = {'-or' : [{active : 't'}, {id : item.fund()}]};
+ fundArgs.searchFilter = {'-or' : [{ "-and": fundSearchFilter }, {id : item.fund()}]};
} else {
- fundArgs.searchFilter = {active : 't'}
if(itemType && openils.Util.isTrue(itemType.prorate()))
fundArgs.dijitArgs = {disabled : true};
}