def build_oai_url(handle: str,
                  prefix: str,
                  base_url: str = "https://air.uniud.it/oai/request?") -> str:
    """build the url for an oai request of a single record (in the case of
    institutional repository, one record corresponds to a publication)

    Parameters
    ----------
    handle
        entire handle of the publication (e.g. "http://hdl.handle.net/11390/693468")
    prefix
        prefix for the oai request.
        Accepted values:
        - "oai"
        - "ore"
    base_url : optional
        url of the oai repository, by default "https://air.uniud.it/oai/request?"

    Returns
    -------
    str
        url of the publication
    """
    pub_id = handle.split("/")
    oai_url = base_url + "verb=GetRecord&" \
        + "metadataPrefix=" + prefix \
        + "&identifier=oai:air.uniud.it:" \
        + pub_id[-2] + "/" + pub_id[-1]
    return oai_url