remove java hard coded metadata names
|Reported by:||kjdon||Owned by:||kjdon|
The server reads through xslt files and format statements looking for gsf:metadata etc to work out what metadata should be returned from the server. Things like <gsf:image type='cover> requires hascover to be retrieved. <gsf:image type='thumb'> requires Thumb metadata to be retrieved. Currently this is hard coded in the java code. (GSXSLT.findExtraMetadataNames)
We need some way of specifying this in the xslt instead so we don't need to modify the server when we add new things to eg config_format.xsl.
- can we apply config_format first before looking for metadata? then we'd need to look for /metadataList/metadata....
- Maybe config format could leave in a tag?
- maybe we do a pass through config format which results in a mapping between gsf elements and which metadata they require? and use that to determine what to output for gsf.xxx? in this case, we wouldn't need to hard code gsf:metadata itself in the code as the list of gsf:xxx elements would be dynamic too.