ooiservices/app/uframe/vocab.py
def _get_display_name_by_rd(reference_designator):
    """ Get display name using vocab_dict for array; using database for platform, assembly, instrument.
    """
    #print '\n -- db lookup - _get_display_name_by_rd: ', reference_designator
    if len(reference_designator) == 2:
        #array = _array_name(reference_designator)
        array = get_display_name_by_rd(reference_designator)
        return array

    if len(reference_designator) == 8:
        platform = _platform_name(reference_designator)
        return platform

    if len(reference_designator) == 14:
        assembly = _assembly_name(reference_designator)
        return assembly

    if len(reference_designator) == 27:
        instrument = _instrument_name(reference_designator)
        return instrument
 Get display name using vocab_dict for array; using database for platform, assembly, instrument.
    
Get display name using vocab_dict for array; using database for platform, assembly, instrument.
Get display name using vocab_dict for array ; using database for platform assembly instrument .
def _get_display_name_by_rd(reference_designator):
    if len(reference_designator) == 2:
        array = get_display_name_by_rd(reference_designator)
        return array
    if len(reference_designator) == 8:
        platform = _platform_name(reference_designator)
        return platform
    if len(reference_designator) == 14:
        assembly = _assembly_name(reference_designator)
        return assembly
    if len(reference_designator) == 27:
        instrument = _instrument_name(reference_designator)
        return instrument
def _get_display_name_by_rd ( reference_designator ) : if len ( reference_designator ) == 2 : array = get_display_name_by_rd ( reference_designator ) return array if len ( reference_designator ) == 8 : platform = _platform_name ( reference_designator ) return platform if len ( reference_designator ) == 14 : assembly = _assembly_name ( reference_designator ) return assembly if len ( reference_designator ) == 27 : instrument = _instrument_name ( reference_designator ) return instrument
Get display name using vocab_dict for array; using database for platform, assembly, instrument.
Get display name using vocab_dict for array ; using database for platform assembly instrument .
""" Get display name using vocab_dict for array; using database for platform, assembly, instrument.
    """ #print '\n -- db lookup - _get_display_name_by_rd: ', reference_designator #array = _array_name(reference_designator)
reference_designator