Changes between Version 5 and Version 6 of HidingMetadata
- Timestamp:
- 10/04/12 23:16:26 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HidingMetadata
v5 v6 40 40 * check the settings parameter hidewithheldelements/keepMarkedElement 41 41 * If the value is true, then the element with the nilReason attribute will be kept. This allows the UI to display the element with a note indicating that it has been hidden 42 * If the value is false, then the element with the nilReason attribute will be kept. This allows the UI to display the element with a note indicating that it has been hidden42 * If the value is false, then the element with the nilReason attribute will deleted along with all of its children. 43 43 * When the marked element is kept the following happens: 44 44 * search the document for the attribute: gco:nilReason='withheld'. if the following two checks are true then all attributes (excepting gco:nilReason) will be removed, as will all child elements. The element itself will remain as a marker 45 45 46 46 Note: at the moment only gco:nilReason='withheld' attribute marks an element as hidden. In the future more tags can be added for other schema's. There are two places that must be updated for new takes to work with this system: 47 * the xpath in update XmlSerializer.internalSelect.47 * the xpath in update !XmlSerializer.internalSelect. 48 48 * Update xsl/utils.xsl by changing the hasHiddenChildren template. 49 49 * If the new tag is in iso19139 then the xsl:template mode="localised" match="*[@gco:nilReason='withheld'... template must be updated as well.