def oai_process_pcurio(*args):

    identifiers = helpers.gather_identifiers(args)
    provider_uris, object_uris = helpers.seperate_provider_object_uris(identifiers)

    for i, uri in enumerate(provider_uris):
        if 'resultadon' in uri:
            doc_id = provider_uris[i].replace('http://www.maxwell.vrac.puc-rio.br/Busca_etds.php?strSecao=resultadonrSeq=', '')
            provider_uris[i] = 'http://www.maxwell.vrac.puc-rio.br/Busca_etds.php?strSecao=resultado&nrSeq=' + doc_id

    for i, uri in enumerate(object_uris):
        if 'resultadon' in uri:
            doc_id = object_uris[i].replace('http://www.maxwell.vrac.puc-rio.br/Busca_etds.php?strSecao=resultadonrSeq=', '')
            object_uris[i] = 'http://www.maxwell.vrac.puc-rio.br/Busca_etds.php?strSecao=resultado&nrSeq=' + doc_id

    potential_uris = (provider_uris + object_uris)

    try:
        canonical_uri = potential_uris[0]
    except __HOLE__:
        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/pcurio.py/oai_process_pcurio