r51033 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51032‎ | r51033 | r51034 >
Date:20:01, 26 May 2009
Author:yaron
Status:deferred
Tags:
Comment:
New version: 0.3 - CSV importing added
Modified paths:
  • /trunk/extensions/DataTransfer/INSTALL (modified) (history)
  • /trunk/extensions/DataTransfer/README (modified) (history)
  • /trunk/extensions/DataTransfer/includes/DT_GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataTransfer/README
@@ -1,12 +1,12 @@
22 == About ==
33
4 -Data Transfer is an extension to MediaWiki that both exports XML based
5 -on the current contents of pages in a wiki, and imports XML in the same
6 -format, creating or modifying wiki pages based on the contents of the
7 -XML file. The XML format for both exporting and importing uses template
8 -calls, and the fields within them, to define XML tags. Any text that
9 -is not within a template calls gets placed into one or more "free text"
10 -tags.
 4+Data Transfer is an extension to MediaWiki that both exports XML
 5+based on the current contents of pages in a wiki, and imports pages
 6+in both XML format (using the same structure as the XML export) and
 7+CSV format. Both the XML and CSV formats use template calls, and
 8+the fields within them, to define fields. Any text that is not
 9+within a template calls gets placed into one or more "free text"
 10+fields.
1111
1212 For more information on Data Transfer, see the extension
1313 homepage at
Index: trunk/extensions/DataTransfer/INSTALL
@@ -1,4 +1,4 @@
2 -[[Data Transfer 0.2.1]]
 2+[[Data Transfer 0.3]]
33
44 Contents:
55 * Disclaimer
Index: trunk/extensions/DataTransfer/includes/DT_GlobalFunctions.php
@@ -7,7 +7,7 @@
88
99 if (!defined('MEDIAWIKI')) die();
1010
11 -define('DT_VERSION','0.2.1');
 11+define('DT_VERSION','0.3');
1212
1313 // constants for special properties
1414 define('DT_SP_HAS_XML_GROUPING', 1);
@@ -30,6 +30,8 @@
3131 $wgAutoloadClasses['DTViewXML'] = $dtgIP . '/specials/DT_ViewXML.php';
3232 $wgSpecialPages['ImportXML'] = 'DTImportXML';
3333 $wgAutoloadClasses['DTImportXML'] = $dtgIP . '/specials/DT_ImportXML.php';
 34+$wgSpecialPages['ImportCSV'] = 'DTImportCSV';
 35+$wgAutoloadClasses['DTImportCSV'] = $dtgIP . '/specials/DT_ImportCSV.php';
3436 $wgJobClasses['dtImport'] = 'DTImportJob';
3537 $wgAutoloadClasses['DTImportJob'] = $dtgIP . '/includes/DT_ImportJob.php';
3638 $wgAutoloadClasses['DTXMLParser'] = $dtgIP . '/includes/DT_XMLParser.php';
@@ -107,5 +109,6 @@
108110 $main_row = $import_export_section->getRow('main');
109111 $main_row->addItem(ALItem::newFromSpecialPage('ViewXML'));
110112 $main_row->addItem(ALItem::newFromSpecialPage('ImportXML'));
 113+ $main_row->addItem(ALItem::newFromSpecialPage('ImportCSV'));
111114 return true;
112115 }

Status & tagging log