Rename file -- part of MKWS-349
authorMike Taylor <mike@indexdata.com>
Mon, 12 Jan 2015 14:47:23 +0000 (14:47 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 12 Jan 2015 14:47:23 +0000 (14:47 +0000)
src/mkws-widget-reference.js [deleted file]
src/mkws-widget-wikipedia.js [new file with mode: 0644]

diff --git a/src/mkws-widget-reference.js b/src/mkws-widget-reference.js
deleted file mode 100644 (file)
index 59da6e7..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-mkws.registerWidgetType('reference', 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';
-  this.config.template_vars.paragraphs = this.config.paragraphs || 0;
-  this.config.template_vars.sentences = this.config.sentences || 0;
-  this.config.template_vars.credit = this.config.credit || "Wikipedia";
-});
diff --git a/src/mkws-widget-wikipedia.js b/src/mkws-widget-wikipedia.js
new file mode 100644 (file)
index 0000000..59da6e7
--- /dev/null
@@ -0,0 +1,8 @@
+mkws.registerWidgetType('reference', 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';
+  this.config.template_vars.paragraphs = this.config.paragraphs || 0;
+  this.config.template_vars.sentences = this.config.sentences || 0;
+  this.config.template_vars.credit = this.config.credit || "Wikipedia";
+});