def get_breadcrumbs(index_instance_node, simple=False, single_link=False, include_count=False):

    result = []
    if single_link:
        # Return the entire breadcrumb path as a single HTML anchor
        simple = True

    for instance in index_instance_node.get_ancestors():
        result.append(get_instance_link(instance, simple=simple))

    result.append(get_instance_link(index_instance_node, simple=simple))

    output = []

    if include_count:
        output.append('(%d)' % index_instance_node.documents.count())

    if single_link:
        # Return the entire breadcrumb path as a single HTML anchor
        output.insert(
            0, get_instance_link(
                index_instance_node=index_instance_node, text=(
                    ' / '.join(result)
                )
            )
        )
        return mark_safe(' '.join(output))
    else:
        output.insert(0, ' / '.join(result))
        return mark_safe(' '.join(output))
Get an item with the given primary key
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/document_indexing/widgets.py/get_breadcrumbs--crossover with--dataset/ETHPy150Open ebroder/anygit/anygit/backends/mongodb.py/MongoDbModel.get