From: Mike Taylor Date: Mon, 19 Jan 2015 12:29:54 +0000 (+0000) Subject: Towards a proper fix for MKWS-352. X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=c97f45e4d33571e878a99f49818c349c2ac2ddce;p=mkws-moved-to-github.git Towards a proper fix for MKWS-352. The targets widget now captures the "name" element in Pazpar2's "bytargets" response, which it was for some inexplicable reason discarding. --- diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 09565ac..3049959 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -19,6 +19,7 @@ mkws.registerWidgetType('targets', function() { var cleandata = []; for (var i = 0; i < data.length; i++) { var cur = {}; + cur.name = data[i].name; cur.id = that.team.targetName(data[i].id); cur.hits = data[i].hits; cur.diagnostic = data[i].diagnostic;