ooiservices/app/uframe/vocab.py
def _get_long_display_name_by_rd(reference_designator):
    """ Get long display name using database.
    """
    try:
        display_name = VocabNames.query.filter_by(reference_designator=reference_designator).first()
        if display_name is not None:
            tmp = ' '.join([display_name.level_one, display_name.level_two])
            display_name = ' - '.join([tmp, display_name.level_three, display_name.level_four])
        return display_name
    except Exception:
        return None
 Get long display name using database.
    
Get long display name using database.
Get long display name using database .
def _get_long_display_name_by_rd(reference_designator):
    try:
        display_name = VocabNames.query.filter_by(reference_designator=reference_designator).first()
        if display_name is not None:
            tmp = ' '.join([display_name.level_one, display_name.level_two])
            display_name = ' - '.join([tmp, display_name.level_three, display_name.level_four])
        return display_name
    except Exception:
        return None
def _get_long_display_name_by_rd ( reference_designator ) : try : display_name = VocabNames . query . filter_by ( reference_designator = reference_designator ) . first ( ) if display_name is not None : tmp = ' ' . join ( [ display_name . level_one , display_name . level_two ] ) display_name = ' - ' . join ( [ tmp , display_name . level_three , display_name . level_four ] ) return display_name except Exception : return None
Get long display name using database.
Get long display name using database .
""" Get long display name using database.
    """
reference_designator