At the moment we got the input/import and the template but no possibility to dynamically generate metadata during ingest, which depends on the item or it's owning collection ...
So if you want to create other identifiers (DOI, URN), fetch language dependent right statement, use authority files, translate subject terms etc. you got no default way to integrate this with DSpace.
This patch is an outline for a metadata generator plugin along with a demonstration of it's possible application. It is intended for discussion not straight application.
The patch based on trunk rev 3729 adds some new classes to org.dspace.content
Metadata.java (class representing a metadata, in contrast to a DSpace metadata value)
MetadataGenerator.java (the interface)
DemoGenerator.java (a demo implementation)
and changes the dspace.cfg and org.dspace.content.InstallItem to demonstrate it's possible application.
Feel free to add your thoughts and comments.