-// A widget for one record
+// A widget for a record-list of a single record
mkws.registerWidgetType('record', function() {
if (!this.config.maxrecs) this.config.maxrecs = 1;
var that = this;
var team = this.team;
team.queue("records").subscribe(function(data) {
- var template = team.loadTemplate(that.config.template || "Record");
+ var template = team.loadTemplate(that.config.template || "details");
var targs = mkws.$.extend({}, data.hits[0], that.config.template_vars);
that.node.html(template(targs));
});