UDCF Import and the <PLACE> Element
Posted: Wed Sep 08, 2010 1:26 pm
HI. I have a lot of dives to import from another package that exports dive data via UDCF. I'm looking at the <PLACE> element in the exported UDCF, and I see data in the following format:
<PLACE>Country, Location, Dive Site</PLACE>
Now, I'm not sure at all that there is any info in the UDCF spec that says that those three fields are to appear in that order or not. Regardless, Mac Dive 2.0 is reading the PLACE element and dropping the whole string, commas and all, in the 'Site Name' column on imported dives. How hard would it be to add the ability to define the mapping for these fields to the Country, Location, and Site columns in Mac DIve so an import will correctly populate these values? Perhaps an option in the preferences dialog could do the trick. Something to accept a default mapping, or to break the values as needed.
Thanks for a great piece of software!
<PLACE>Country, Location, Dive Site</PLACE>
Now, I'm not sure at all that there is any info in the UDCF spec that says that those three fields are to appear in that order or not. Regardless, Mac Dive 2.0 is reading the PLACE element and dropping the whole string, commas and all, in the 'Site Name' column on imported dives. How hard would it be to add the ability to define the mapping for these fields to the Country, Location, and Site columns in Mac DIve so an import will correctly populate these values? Perhaps an option in the preferences dialog could do the trick. Something to accept a default mapping, or to break the values as needed.
Thanks for a great piece of software!