AKROGIS / ThemeManager

NPS Alaska's GIS Theme Manager
2 stars 0 forks source link

Remove empty strings from node Tags, Summary... #32

Closed regan-sarwas closed 5 years ago

regan-sarwas commented 5 years ago

When the node has metadata (path is valid) that is synced, the tags, summary, description and pub date are populated. In some cases the metadata is minimal and these values are non existent. Not sure what gets saved in the various objects, but the XML gets created with a empty string which yields <tags></tags> if the tags were null, then there should be no XML.

Be sure to check reading the XML, so that empty tags are replaced with null and then not written on output.

Also skip the pubdate if it is the default value

regan-sarwas commented 5 years ago

Fixed with 1f598c2c48dd04505c8c9683481c19598a4b460e and 130b4fe43cf0b1f3a2f759725444e56761715ae3