diff --git a/peachjam/templates/peachjam/_quick_search.html b/peachjam/templates/peachjam/_quick_search.html index d269a342c..0f037b700 100644 --- a/peachjam/templates/peachjam/_quick_search.html +++ b/peachjam/templates/peachjam/_quick_search.html @@ -12,6 +12,5 @@ {% if registry %}{% endif %} {% if MULTIPLE_JURISDICTIONS and country %}{% endif %} {% if locality %}{% endif %} - {% if doc_type %}{% endif %} -{% trans "Advanced search" %} +{% trans "Advanced search" %} diff --git a/peachjam/views/courts.py b/peachjam/views/courts.py index 54799db9c..de974872f 100644 --- a/peachjam/views/courts.py +++ b/peachjam/views/courts.py @@ -44,7 +44,7 @@ def page_title(self): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - context["doc_type"] = "Judgment" + context["nature"] = "Judgment" context["page_title"] = self.page_title() context["doc_table_show_jurisdiction"] = False context["doc_table_title_label"] = _("Citation") diff --git a/peachjam/views/gazette.py b/peachjam/views/gazette.py index b78326fe4..43900ab45 100644 --- a/peachjam/views/gazette.py +++ b/peachjam/views/gazette.py @@ -96,7 +96,7 @@ def get_context_data(self, **kwargs): context["doc_count"] = queryset.count() context["doc_count_noun"] = _("gazette") context["doc_count_noun_plural"] = _("gazettes") - context["doc_type"] = "Gazette" + context["nature"] = "Gazette" self.add_entity_profile(context) return context @@ -170,7 +170,7 @@ def get_context_data(self, **kwargs): ) context["documents"] = self.group_documents(context["documents"]) - context["doc_type"] = "Gazette" + context["nature"] = "Gazette" context["doc_table_show_jurisdiction"] = False context["doc_table_show_frbr_uri_number"] = True context["doc_table_show_sub_publication"] = True diff --git a/peachjam/views/judgment.py b/peachjam/views/judgment.py index fcd9d64eb..b474225c2 100644 --- a/peachjam/views/judgment.py +++ b/peachjam/views/judgment.py @@ -20,7 +20,7 @@ def get_context_data(self, **kwargs): .exclude(published=False) .order_by("-date")[:30] ) - context["doc_type"] = "Judgment" + context["nature"] = "Judgment" context["doc_count"] = Judgment.objects.filter(published=True).count() context["doc_count_noun"] = _("judgment") context["doc_count_noun_plural"] = _("judgments") diff --git a/peachjam/views/legislation.py b/peachjam/views/legislation.py index d1461c280..1f55869c7 100644 --- a/peachjam/views/legislation.py +++ b/peachjam/views/legislation.py @@ -18,7 +18,7 @@ class LegislationListView(FilteredDocumentListView): template_name = "peachjam/legislation_list.html" navbar_link = "legislation" queryset = Legislation.objects.prefetch_related("work", "labels") - extra_context = {"doc_type": "Legislation", "help_link": "legislation/"} + extra_context = {"nature": "Act", "help_link": "legislation/"} form_defaults = {"sort": "title"}