Project

General

Profile

« Previous | Next » 

Revision 1537

xml_func.py: _map: Instead of _closed special entry, make all maps closed by default and open them if special entry "*=*" is present. Support using a _map to filter values by interpreting special entry "*=" as removing all values not explicitly specified, and by interpreting special value "*" as keeping input value the same.

View differences:

DwC.specimens.full.csv
9 9
country,country
10 10
county,county
11 11
collday,dayCollected,
12
cultivated,"establishmentMeans/_map:[Y=cultivated,N=wild]/value",Ignore other values
12
cultivated,"establishmentMeans/_map:[Y=cultivated,N=wild,*=]/value",Ignore other values
13 13
family,family
14 14
comment1,fieldNotes/_merge/1,
15 15
comment2,fieldNotes/_merge/2,
......
24 24
locality,locality
25 25
collmonth,monthCollected,
26 26
accession,occurrenceID,
27
flower,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
28
fruit,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
29
leaves,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
30
root,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
27
flower,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
28
fruit,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
29
leaves,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
30
root,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
31 31
SciName,scientificName,
32 32
authors,scientificNameAuthorship,
33 33
species,species

Also available in: Unified diff