@BreadcrumbFactory
    def breadcrumb(self, request, context):
        if 'item' in context or context['search_form'].is_valid():
            title = _('Search Results')
        else:
            title = _('Library search')
        return Breadcrumb(
            self.conf.local_name,
            lazy_parent('index'),
            title,
            lazy_reverse('search'),
        )
dataset/ETHPy150Open mollyproject/mollyproject/molly/apps/library/views.py/SearchDetailView.breadcrumb/original