def convert_identifier(identifier):
    """
    old:
        identifier=='bg, a, ...'
        return  1

    identifier== bu-FD-J, 51234, 13212-01
    return bu-FD-J, 51234, 13212

    """
    if "-" in identifier:
        ln = identifier.split("-")[0]
        try:
            ln = int(ln)
            identifier = str(ln)
        except ValueError:
            return identifier

    return identifier