def _parse_legacy_syntax(identifier):
    """Parse legacy syntax.

    .. note::

        It can handle requests such as `recid:{recid}` or
        `recid:{recid}-{filename}`.
    """
    if '-' in identifier:
        record_id, filename = identifier.split('recid:')[1].split('-', 1)
    else:
        record_id, filename = identifier.split('recid:')[1], None
    return record_id, filename
