cur.id = data[i].id;
cur.hits = data[i].hits;
cur.diagnostic = data[i].diagnostic;
+ cur.message = data[i].message;
cur.records = data[i].records;
cur.state = data[i].state;
cleandata.push(cur);
output.found = data.total;
//client indexes pages from 1 but pz2 from 0
- var onsides = 6;
+ var onsides = 5;
var pages = Math.ceil(that.team.totalRecordCount() / that.team.perpage());
var currentPage = that.team.currentPage();
});
}
this.team.queue("record").subscribe(function(data) {
- console.log(data);
if ($.inArray(recid, data.recid) > -1) {
var template = that.team.loadTemplate(that.config.template || "details");
that.node.html(template(data));
}
});
- that.autosearch();
});
mkws.registerWidgetType('records', function() {
this.team.queue("records").subscribe(function(data) {
for (var i = 0; i < data.hits.length; i++) {
var hit = data.hits[i];
- that.team.queue("record").publish(hit);
hit.detailLinkId = team.recordElementId(hit.recid[0]);
hit.detailClick = "mkws.showDetails('" + team.name() + "', '" + hit.recid[0] + "');return false;";
hit.containerClass = "mkws-summary mkwsSummary mkws-team-" + team.name();
mkws.registerWidgetType('search', function() {
var output = {};
output.team = this.team.name();
- output.queryWidth = this.config.query_width;
var template = this.team.loadTemplate(this.config.template || "search");
this.node.html(template(output));
});
var list = [];
/* display a list of configured languages, or all */
- var lang_options = this.config.lang_options || [];
+ var lang_options = this.config.lang_options;
var toBeIncluded = {};
for (var i = 0; i < lang_options.length; i++) {
toBeIncluded[lang_options[i]] = true;