| 36 | This proposal will modify loading metadata so that the method will do the following things: |
| 37 | |
| 38 | * check the settings parameter hidewithheldelements if it is false then this feature is disabled |
| 39 | * check if the current user is either an administrator or the owner of the metadata if both are false then all elements will be retrieved |
| 40 | * 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 |
| 41 | * Note: at the moment only gco:nilReason='withheld' flag an element as hidden. In the future more tags can be added for other schema's |
| 42 | |
| 43 | By default this feature is disabled but this setting can be changed in the configuration page in administration. |
| 44 | |
| 45 | In addition to hiding the metadata the Show metadata UIs will show a message that there is hidden/censored metadata. The most important use of this is to notify editors (that can't see the data) that they should not remove the element. |
| 46 | |
| 47 | One of the expected uses of this is to have some semantics in update-fixed-info that adds the attribute tags to the metadata when needed. In addition a user could add the attribute via the edit UI. |
| 48 | |