Ticket #905 (new enhancement)

Opened 17 months ago

Last modified 14 months ago

remove java hard coded metadata names

Reported by: kjdon Owned by: kjdon
Priority: moderate Milestone: 3.09 Release
Component: Greenstone3 Interface Severity: enhancement
Keywords: Cc:

Description

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.

Change History

Changed 14 months ago by kjdon

  • milestone changed from 3.08 Release to 3.09 Release
Note: See TracTickets for help on using tickets.