def get_year(s):
    """Get year from the signature.

    Parameters
    ----------
    :param s: dict
        Signature

    Returns
    -------
    :returns: int
        Year of publication if present on the signature, -1 otherwise
    """
    v = s['publication']['year']
    v = int(v) if v else -1
    return v
