[MediaWiki-commits] [Gerrit] mediawiki...DataTransfer[master]: Added extension.json file

2018-01-08 Thread Yaron Koren (Code Review)
Yaron Koren has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/402902 )

Change subject: Added extension.json file
..


Added extension.json file

Change-Id: I2f4ab164744d77474452bc8735cf035f9d425615
---
M INSTALL
A extension.json
2 files changed, 79 insertions(+), 8 deletions(-)

Approvals:
  Yaron Koren: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/INSTALL b/INSTALL
index 5361da4..4cab3a9 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,4 +1,4 @@
-[[Data Transfer 0.6.2]]
+[[Data Transfer 1.0-alpha]]
 
 Contents:
 * Disclaimer
@@ -12,21 +12,20 @@
 
 == Requirements ==
 
-The extension can make use of, but does not require, an install of
-Semantic MediaWiki. If Semantic MediaWiki is used, it must be of
-version 1.5 or greater. For more details, see Semantic MediaWiki's
-own installation requirements.
+This extension requires MediaWiki 1.23 or greater.
 
 == Installation ==
 
 (1) Extract the archive to obtain the directory "DataTransfer"
 that contains all relevant files. Copy this directory (or
 extract/download it) to "[wikipath]/extensions/".
-(2) Insert the following line into the file "[wikipath]/LocalSettings.php":
+(2) Insert either of the following lines into the file
+"[wikipath]/LocalSettings.php":
   include_once( "$IP/extensions/DataTransfer/DataTransfer.php" );
-(3) To enable importing spreadsheet files (Excel, OOCalc, Gnumeric, ...)
+  wfLoadExtension( 'DataTransfer' );
+(3) To enable importing spreadsheet files (Excel, OOCalc, Gnumeric, ...),
 use Composer to install the phpoffice/phpexcel module. From the MediaWiki
-installation directory call
+installation directory call:
   composer require "phpoffice/phpexcel:~1.8"
 
 == Contact ==
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..d35206c
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,72 @@
+{
+   "@Note": "When updating this file please also update DataTransfer.php 
with the same changes.",
+   "name": "Data Transfer",
+   "version": "1.0-alpha",
+   "author": [
+   "Yaron Koren",
+   "..."
+   ],
+   "url": "https://www.mediawiki.org/wiki/Extension:Data_Transfer;,
+   "descriptionmsg": "datatransfer-desc",
+   "license-name": "GPL-2.0+",
+   "type": "specialpage",
+   "GroupPermissions": {
+   "sysop": {
+   "datatransferimport": true
+   }
+   },
+   "AvailableRights": [
+   "datatransferimport"
+   ],
+   "SpecialPages": {
+   "ViewXML": "DTViewXML",
+   "ImportXML": "DTImportXML",
+   "ImportCSV": "DTImportCSV",
+   "ImportSpreadsheet": "DTImportSpreadsheet"
+   },
+"JobClasses": {
+  "dtImport": "DTImportJob"
+},
+   "MessagesDirs": {
+   "DataTransfer": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "DataTransferAlias": "DataTransfer.i18n.alias.php"
+   },
+   "AutoloadClasses": {
+   "DTPageStructure": "includes/DT_PageStructure.php",
+   "DTPageComponent": "includes/DT_PageComponent.php",
+   "DTPage": "includes/DT_Page.php",
+   "DTUtils": "includes/DT_Utils.php",
+   "DTImportJob": "includes/DT_ImportJob.php",
+   "DTXMLParser": "includes/DT_XMLParser.php",
+   "DTWikiTemplate": "includes/DT_WikiTemplate.php",
+   "DTWikiPage": "includes/DT_WikiPage.php",
+   "DTHooks": "includes/DT_Hooks.php",
+   "DTViewXML": "specials/DT_ViewXML.php",
+   "DTImportXML": "specials/DT_ImportXML.php",
+   "DTImportCSV": "specials/DT_ImportCSV.php",
+   "DTImportSpreadsheet": "specials/DT_ImportSpreadsheet.php"
+   },
+   "ResourceModules": {
+   "ext.datatransfer": {
+   "styles": "styles/DataTransfer.css"
+   }
+   },
+   "ResourceFileModulePaths": {
+   "localBasePath": "",
+   "remoteExtPath": "DataTransfer"
+   },
+   "Hooks": {
+   "AdminLinks": [
+   "DTHooks::addToAdminLinks"
+   ]
+   },
+   "config": {
+   "DataTransferViewXMLParseFields": false,
+   "DataTransferViewXMLParseFreeText": true
+   },
+   "manifest_version": 1
+}
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/402902
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2f4ab164744d77474452bc8735cf035f9d425615
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/DataTransfer
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren 
Gerrit-Reviewer: Yaron Koren 

[MediaWiki-commits] [Gerrit] mediawiki...DataTransfer[master]: Added extension.json file

2018-01-08 Thread Yaron Koren (Code Review)
Yaron Koren has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/402902 )

Change subject: Added extension.json file
..

Added extension.json file

Change-Id: I2f4ab164744d77474452bc8735cf035f9d425615
---
M INSTALL
A extension.json
2 files changed, 79 insertions(+), 8 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DataTransfer 
refs/changes/02/402902/2

diff --git a/INSTALL b/INSTALL
index 5361da4..4cab3a9 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,4 +1,4 @@
-[[Data Transfer 0.6.2]]
+[[Data Transfer 1.0-alpha]]
 
 Contents:
 * Disclaimer
@@ -12,21 +12,20 @@
 
 == Requirements ==
 
-The extension can make use of, but does not require, an install of
-Semantic MediaWiki. If Semantic MediaWiki is used, it must be of
-version 1.5 or greater. For more details, see Semantic MediaWiki's
-own installation requirements.
+This extension requires MediaWiki 1.23 or greater.
 
 == Installation ==
 
 (1) Extract the archive to obtain the directory "DataTransfer"
 that contains all relevant files. Copy this directory (or
 extract/download it) to "[wikipath]/extensions/".
-(2) Insert the following line into the file "[wikipath]/LocalSettings.php":
+(2) Insert either of the following lines into the file
+"[wikipath]/LocalSettings.php":
   include_once( "$IP/extensions/DataTransfer/DataTransfer.php" );
-(3) To enable importing spreadsheet files (Excel, OOCalc, Gnumeric, ...)
+  wfLoadExtension( 'DataTransfer' );
+(3) To enable importing spreadsheet files (Excel, OOCalc, Gnumeric, ...),
 use Composer to install the phpoffice/phpexcel module. From the MediaWiki
-installation directory call
+installation directory call:
   composer require "phpoffice/phpexcel:~1.8"
 
 == Contact ==
diff --git a/extension.json b/extension.json
new file mode 100644
index 000..d35206c
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,72 @@
+{
+   "@Note": "When updating this file please also update DataTransfer.php 
with the same changes.",
+   "name": "Data Transfer",
+   "version": "1.0-alpha",
+   "author": [
+   "Yaron Koren",
+   "..."
+   ],
+   "url": "https://www.mediawiki.org/wiki/Extension:Data_Transfer;,
+   "descriptionmsg": "datatransfer-desc",
+   "license-name": "GPL-2.0+",
+   "type": "specialpage",
+   "GroupPermissions": {
+   "sysop": {
+   "datatransferimport": true
+   }
+   },
+   "AvailableRights": [
+   "datatransferimport"
+   ],
+   "SpecialPages": {
+   "ViewXML": "DTViewXML",
+   "ImportXML": "DTImportXML",
+   "ImportCSV": "DTImportCSV",
+   "ImportSpreadsheet": "DTImportSpreadsheet"
+   },
+"JobClasses": {
+  "dtImport": "DTImportJob"
+},
+   "MessagesDirs": {
+   "DataTransfer": [
+   "i18n"
+   ]
+   },
+   "ExtensionMessagesFiles": {
+   "DataTransferAlias": "DataTransfer.i18n.alias.php"
+   },
+   "AutoloadClasses": {
+   "DTPageStructure": "includes/DT_PageStructure.php",
+   "DTPageComponent": "includes/DT_PageComponent.php",
+   "DTPage": "includes/DT_Page.php",
+   "DTUtils": "includes/DT_Utils.php",
+   "DTImportJob": "includes/DT_ImportJob.php",
+   "DTXMLParser": "includes/DT_XMLParser.php",
+   "DTWikiTemplate": "includes/DT_WikiTemplate.php",
+   "DTWikiPage": "includes/DT_WikiPage.php",
+   "DTHooks": "includes/DT_Hooks.php",
+   "DTViewXML": "specials/DT_ViewXML.php",
+   "DTImportXML": "specials/DT_ImportXML.php",
+   "DTImportCSV": "specials/DT_ImportCSV.php",
+   "DTImportSpreadsheet": "specials/DT_ImportSpreadsheet.php"
+   },
+   "ResourceModules": {
+   "ext.datatransfer": {
+   "styles": "styles/DataTransfer.css"
+   }
+   },
+   "ResourceFileModulePaths": {
+   "localBasePath": "",
+   "remoteExtPath": "DataTransfer"
+   },
+   "Hooks": {
+   "AdminLinks": [
+   "DTHooks::addToAdminLinks"
+   ]
+   },
+   "config": {
+   "DataTransferViewXMLParseFields": false,
+   "DataTransferViewXMLParseFreeText": true
+   },
+   "manifest_version": 1
+}
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/402902
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f4ab164744d77474452bc8735cf035f9d425615
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/DataTransfer
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren 
Gerrit-Reviewer: