fieldmuseum / EMu-xml-to-json

A script to convert EMu XML exports to JSON
Other
2 stars 0 forks source link

Conditionally mapping values to separate fields #5

Closed magpiedin closed 3 years ago

magpiedin commented 3 years ago

e.g. - where Description type = "Abc", map Description value to separate term/field "Xyz"

Is there a way to set this up dynamically / with a template csv?

(similarly to the input data_in/abcd_h2i_emu.csv mapping-csv?)

magpiedin commented 3 years ago

updated (h2i_conditions.csv)[https://github.com/fieldmuseum/EMu-xml-to-json/blob/main/mappings/h2i_conditions.csv] to handle these conditions so far: