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.csv
15 15
collday,dayCollected,
16 16
collyear,yearCollected,
17 17
campus,"fieldNotes/_merge/5/_label[label=""campus""]/value",
18
leaves,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
19
flower,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
20
fruit,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
21
root,reproductiveCondition/_map:[]/value,"Main values are A, I, and M. What do they mean?"
18
leaves,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
19
flower,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
20
fruit,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
21
root,"reproductiveCondition/_map:[A=*,I=*,M=*]/value","Main values are A, I, and M. What do they mean?"
22 22
comment1,fieldNotes/_merge/1,
23 23
comment2,fieldNotes/_merge/2,
24 24
comment3,fieldNotes/_merge/3,
......
26 26
loanto,"fieldNotes/_merge/6/_label[label=""loaned to""]/value",
27 27
inorout,"fieldNotes/_merge/7/_label[label=""in or out""]/value",
28 28
sheetno,associatedMedia,?
29
cultivated,"establishmentMeans/_map:[Y=cultivated,N=wild]/value",Ignore other values
29
cultivated,"establishmentMeans/_map:[Y=cultivated,N=wild,*=]/value",Ignore other values
30 30
filler,,"Where used, same as family"

Also available in: Unified diff