def get_metadata_format(metadata_prefix):
    return next((metadata_format for metadata_format in settings.OAI_METADATA_FORMATS if (metadata_format['prefix'] == metadata_prefix)))
def get_metadata_format(metadata_prefix):
    return next((metadata_format for metadata_format in settings.OAI_METADATA_FORMATS if (metadata_format['prefix'] == metadata_prefix)))