Opened 8 years ago

Last modified 3 years ago

#905 new enhancement

remove java hard coded metadata names

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


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 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 (2)

comment:1 by kjdon, 8 years ago

Milestone: 3.08 Release3.09 Release

comment:2 by kjdon, 3 years ago

Milestone: 3.10 Release3.11 Release

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.