

def oai_process_uris_addis_ababa(*args):
    identifiers = helpers.gather_identifiers(args)
    (provider_uris, object_uris) = helpers.seperate_provider_object_uris(list(map((lambda x: x.replace('http://hdl.handle.net/123456789/', 'http://etd.aau.edu.et/handle/123456789/')), identifiers)))
    potential_uris = (provider_uris + object_uris)
    try:
        canonical_uri = potential_uris[0]
    except IndexError:
        raise ValueError('No Canonical URI was returned for this record.')
    return {
        'canonicalUri': canonical_uri,
        'objectUris': object_uris,
        'providerUris': provider_uris,
    }

dataset/ETHPy150Open CenterForOpenScience/scrapi/scrapi/harvesters/addis_ababa.py oai_process_uris_addis_ababa/original