that.queue("log").publish(m_teamName, timestamp, s);
}
- // ### transitional placeholder function until we have promoted all invocations
- that.log = function (x) { _log(mkws.log, x) };
-
that.trace = function(x) { _log(mkws.trace, x) };
that.debug = function(x) { _log(mkws.debug, x) };
that.info = function(x) { _log(mkws.info, x) };
params.onbytarget = onBytarget;
that.info("setting bytarget callback");
}
- if (m_queues.stat) {
+ if (m_queues.stat || m_queues.firstrecords || m_queues.complete) {
params.onstat = onStat;
that.info("setting stat callback");
}
function triggerSearch(query, sortOrder, maxrecs, perpage, limit, targets, torusquery) {
resetPage();
- queue("navi").publish();
// Continue to use previous query/sort-order unless new ones are specified
if (query) m_query = query;
"pp2filter = " + pp2filter + ", params = " + $.toJSON(params));
m_paz.search(m_query, m_perpage, m_sortOrder, pp2filter, undefined, params);
+ queue("searchtriggered").publish();
}
// fetch record details to be retrieved from the record queue
that.registerTemplate = function(name, text) {
if(mkws._old2new.hasOwnProperty(name)) {
- that.warn("Warning: registerTemplate old widget name: " + name + " => " + mkws._old2new[name]);
+ that.warn("registerTemplate: old widget name: " + name + " => " + mkws._old2new[name]);
name = mkws._old2new[name];
}
m_templateText[name] = text;
function loadTemplate(name, fallbackString) {
if(mkws._old2new.hasOwnProperty(name)) {
- that.warn("Warning loadTemplate: old widget name: " + name + " => " + mkws._old2new[name]);
+ that.warn("loadTemplate: old widget name: " + name + " => " + mkws._old2new[name]);
name = mkws._old2new[name];
}
}
}
return undefined;
- }
-
+ };
return that;
};