From: Mike Taylor Date: Mon, 12 Jan 2015 16:51:06 +0000 (+0000) Subject: Last part of MKWS-348. X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=22e681033a9e5111081d701da64536b43b2dd1bb;p=mkws-moved-to-github.git Last part of MKWS-348. Widget type registered is now "wikipedia". But "reference" is still registered as an alias. --- diff --git a/src/mkws-widget-wikipedia.js b/src/mkws-widget-wikipedia.js index 59da6e7..5123f10 100644 --- a/src/mkws-widget-wikipedia.js +++ b/src/mkws-widget-wikipedia.js @@ -1,4 +1,4 @@ -mkws.registerWidgetType('reference', function() { +mkws.registerWidgetType('wikipedia', function() { mkws.promotionFunction('record').call(this); if (!this.config.target) this.config.target = 'wikimedia_wikipedia_single_result'; if (!this.config.template) this.config.template = 'reference'; @@ -6,3 +6,4 @@ mkws.registerWidgetType('reference', function() { this.config.template_vars.sentences = this.config.sentences || 0; this.config.template_vars.credit = this.config.credit || "Wikipedia"; }); +mkws.aliasWidgetType('reference', 'wikipedia');