Refs #18415 Forum; various fixes to facilitate migration of metadata from old aoa instance

git-svn-id: https://svn.eionet.europa.eu/repositories/Naaya/trunk/eggs@21071 a0171fae-0946-0410-966d-b1775066cd26