add detection of metadata formats for oai-pmh endpoints