@check_type(dict)
def get_note_text(note):
    'Parses note content from different note types.\n\n    :param dict: an ArchivesSpace note.\n\n    :returns: a list containing note content.\n    :rtype: list\n    '

    def parse_subnote(subnote):
        'Parses note content from subnotes.\n\n        :param dict: an ArchivesSpace subnote.\n\n        :returns: a list containing subnote content.\n        :rtype: list\n        '
        if (subnote['jsonmodel_type'] in ['note_orderedlist', 'note_index']):
            content = subnote['items']
        elif (subnote['jsonmodel_type'] in ['note_chronology', 'note_definedlist']):
            content = []
            for k in subnote['items']:
                for i in k:
                    content += (k.get(i) if isinstance(k.get(i), list) else [k.get(i)])
        else:
            content = (subnote['content'] if isinstance(subnote['content'], list) else [subnote['content']])
        return content
    if (note['jsonmodel_type'] == 'note_singlepart'):
        content = note['content']
    elif (note['jsonmodel_type'] == 'note_bibliography'):
        data = []
        data += note['content']
        data += note['items']
        content = data
    elif (note['jsonmodel_type'] == 'note_index'):
        data = []
        for item in note['items']:
            data.append(item['value'])
        content = data
    else:
        subnote_content_list = list((parse_subnote(sn) for sn in note['subnotes']))
        content = [c for subnote_content in subnote_content_list for c in subnote_content]
    return content
Parses note content from different note types.

:param dict: an ArchivesSpace note.

:returns: a list containing note content.
:rtype: list
@check_type(dict)
def get_note_text(note):
    'Parses note content from different note types.\n\n    :param dict: an ArchivesSpace note.\n\n    :returns: a list containing note content.\n    :rtype: list\n    '

    def parse_subnote(subnote):
        'Parses note content from subnotes.\n\n        :param dict: an ArchivesSpace subnote.\n\n        :returns: a list containing subnote content.\n        :rtype: list\n        '
        if (subnote['jsonmodel_type'] in ['note_orderedlist', 'note_index']):
            content = subnote['items']
        elif (subnote['jsonmodel_type'] in ['note_chronology', 'note_definedlist']):
            content = []
            for k in subnote['items']:
                for i in k:
                    content += (k.get(i) if isinstance(k.get(i), list) else [k.get(i)])
        else:
            content = (subnote['content'] if isinstance(subnote['content'], list) else [subnote['content']])
        return content
    if (note['jsonmodel_type'] == 'note_singlepart'):
        content = note['content']
    elif (note['jsonmodel_type'] == 'note_bibliography'):
        data = []
        data += note['content']
        data += note['items']
        content = data
    elif (note['jsonmodel_type'] == 'note_index'):
        data = []
        for item in note['items']:
            data.append(item['value'])
        content = data
    else:
        subnote_content_list = list((parse_subnote(sn) for sn in note['subnotes']))
        content = [c for subnote_content in subnote_content_list for c in subnote_content]
    return content