changeset 8:97e10319d86f

supporting column indexes
author pieter.lukasse@wur.nl
date Mon, 23 Mar 2015 22:11:39 +0100
parents ce9228263148
children 89264646e458
files TermMapperTool.jar term_mapper.xml
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file TermMapperTool.jar has changed
--- a/term_mapper.xml	Mon Mar 23 21:02:01 2015 +0100
+++ b/term_mapper.xml	Mon Mar 23 22:11:39 2015 +0100
@@ -32,6 +32,7 @@
  		#end if
 		
 		-mappedTermsColName $mappedTermsColName
+		-numberOfHeaderLines $numberOfHeaderLines
         	    
 	</command>
 	
@@ -57,6 +58,13 @@
   		
   		<!-- =================== cross-reference part ============== -->
   		<param name="mappingFileName" type="data" format="tabular,csv" label="Lookup table (TSV/CSV)" help="Simple mapping file between the coding scheme used to another scheme"/>
+  		<param name="numberOfHeaderLines" type="select" label="Number of header lines in mapping file"
+   		help="If this is '0', use the column numbers starting from 1 as the 'names' in the paramters below.">
+	    	<option value="0" >0</option>
+	    	<option value="1" selected="true">1</option>
+	    </param>
+		
+		
   		<param name="mappingFileIdColName" type="text" size="50" value="" label="ID column name (in lookup table)" help="Name of the ID column for the lookup"/>
   		
   		<conditional name="mappingIdCol">
@@ -95,6 +103,10 @@
 			</when>
 		</conditional>
      	
+     	
+
+     	
+     	
 	</inputs>
 	<outputs>
 		#if isinstance( $inputFileName.datatype, $__app__.datatypes_registry.get_datatype_by_extension('tabular').__class__):