} elsif ($vandelay) {
$vandelay->{new_rec_perm} = 'IMPORT_ACQ_LINEITEM_BIB_RECORD_UPLOAD';
- create_lineitem_list_assets($mgr, \@li_list, $vandelay, 1) or return $e->die_event;
+ create_lineitem_list_assets($mgr, \@li_list, $vandelay,
+ !$vandelay->{create_assets}) or return $e->die_event;
}
return $mgr->respond_complete;
<td>[% l('Insufficient Quality Fall-Through Profile') %]</td>
<td><div id='acq_vl:fall_through_merge_profile'></div></td>
</tr>
+ [% IF vl_show_copy_option %]
+ <tr>
+ <td>[% l('Load Items for Imported Records') %]</td>
+ <td><input dojoType='dijit.form.CheckBox' id='acq_vl:create_assets'></input></td>
+ </tr>
+ [% END %]
[% END %]
[% BLOCK vlagent_results %]
{key : 'auto_overlay_best_match'},
{key : 'match_quality_ratio'},
{key : 'queue_name'},
+ {key : 'create_assets'},
{key : 'match_set', cls : 'vms'},
{key : 'bib_source', cls : 'cbs'},
{key : 'merge_profile', cls : 'vmp'},
} else { // bools
widg.dijit = dijit.byId('acq_vl:' + widg.key);
+ if (!widg.dijit) return; // some fields optional
self.attachOnChange(widg);
}
}
var values = {};
dojo.forEach(this.widgets,
function(widg) {
- values[widg.key] = widg.dijit.attr('value');
+ if (widg.dijit)
+ values[widg.key] = widg.dijit.attr('value');
}
);
return values;