'Add location path to the item object
Once we\'ve established the path of names, the first name is the course
name, and the next 3 names are the navigable path within the edx
application. Notice that we stop at that level because a full path to
deep children would be confusing.'

@classmethod
def supplemental_fields(cls, item):

    location_path = []
    parent = item
    while (parent is not None):
        path_component_name = parent.display_name
        if (not path_component_name):
            path_component_name = unicode(cls.UNNAMED_MODULE_NAME)
        location_path.append(path_component_name)
        parent = parent.get_parent()
    location_path.reverse()
    return {'course_name': location_path[0], 'location': location_path[1:4]}
