res.push([k, v.t]);
}
- console.log(res);
-
for (var p in this.plugins) {
var plugin = this.plugins[p];
var h = plugin.getHints(q);
$.each(hints, function (k, v) {
var termType = 'word';
if (v.length > 2) {
- termType = v[2];
+ label = v[2];
+ } else {
+ label = v[0];
}
- $this.menuSearchHints.append('<a class="hint" term="' + v[0] + '" href="#/search/' + v[0] + '">' + v[0] + '</a>');
+ $this.menuSearchHints.append('<a class="hint" term="' + v[0] + '" href="#/search/' + v[0] + '">' + label + '</a>');
});
var qoffset = $("#q").offset();
var top = qoffset.top + $("#q").outerHeight() + 5;
var res = [];
$.each(all, function (k, v) {
if (v.indexOf(q) === 0) {
- res.push([v, 100000, 'ref']);
+ res.push([v, 100000, v + " : " + getWescoRef(v).title]);
}
});