/* This is the "new" batch updater that sits atop all lineitems. It does
* use this.afwCopyFieldArgs() to borrow a little common code from the
- * "old" batch updater atop the copy details view. */
- this.initBatchUpdater = function(disabled_fields) {
- openils.Util.show("acq-batch-update", "table");
+ * "old" batch updater atop the copy details view.
+ * @param hidden allows the batch updater to be initialized, activating
+ * fund selectors, while stying invisible for UI's where the batch
+ * updater is not fully integrated.
+ * */
+ this.initBatchUpdater = function(disabled_fields, hidden) {
+ if (!hidden) openils.Util.show("acq-batch-update", "table");
if (!dojo.isArray(disabled_fields)) disabled_fields = [];
liTable.reset();
liTable._isRelatedViewer = true;
+ // render the batch updater to activate fund selection, but leave
+ // it hidden for now since it's not fully functional in this UI.
+ liTable.initBatchUpdater(null, true);
+
prepareButtons();
fetchRelated();
liTable.enableActionsDropdownOptions("fs");
liTable.skipInitialEligibilityCheck = true;
+ // render the batch updater to activate fund selection, but leave
+ // it hidden for now since it's not fully functional in this UI.
+ liTable.initBatchUpdater(null, true);
+
fieldmapper.standardRequest(
['open-ils.search', 'open-ils.search.z3950.retrieve_services'],
{ async: true,