r23081 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23080‎ | r23081 | r23082 >
Date:20:18, 18 June 2007
Author:mulligen
Status:old
Tags:
Comment:
added the option to load into a particular dataset
Modified paths:
  • /trunk/extensions/Wikidata/php-tools/DataImport.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/php-tools/DataImport.php
@@ -32,8 +32,13 @@
3333
3434 $beginTime = time();
3535 $wgCommandLineMode = true;
36 -$wdDefaultViewDataSet = 'uw';
 36+$wdDefaultViewDataSet = 'sp';
3737
 38+$arg = reset( $argv );
 39+if ( $arg !== false ){
 40+ $wdDefaultViewDataSet = next( $argv );
 41+}
 42+
3843 /*
3944 * User IDs to use during the import of both UMLS and Swiss-Prot
4045 */
@@ -48,9 +53,9 @@
4954
5055 //$linkEC2GoFileName = "LinksEC2Go.txt";
5156 //$linkSwissProtKeyWord2GoFileName = "LinksSP2Go.txt";
52 -//$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\uniprot_sprot.xml";
 57+$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\uniprot_sprot.xml";
5358 //$swissProtXMLFileName = "100000lines.xml";
54 -$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\SPentriesForWPTest.xml";
 59+//$swissProtXMLFileName = "C:\Documents and Settings\mulligen\Bureaublad\SPentriesForWPTest.xml";
5560 //$swissProtXMLFileName = "C:\Users\mulligen\Desktop\SPentriesForWPTest.xml";
5661
5762 //$wgUser->setID($nlmUserID);

Status & tagging log