Skip to content

Commit

Permalink
Merge pull request #4854 from freelawproject/4134-link-docket-authori…
Browse files Browse the repository at this point in the history
…ties

feat(authorities): link docket authorities to search results
  • Loading branch information
mlissner authored Dec 24, 2024
2 parents 756226e + 8e30671 commit 1806ecc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cl/opinion_page/templates/includes/authorities_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
<ul>
{% for authority in authorities %}
<li>
{{ authority.depth }} reference{{ authority.depth|pluralize }} to
{% if docket %}
<a href="/?type=r&q=docket_id%3A{{ docket.pk }}%20AND%20cites%3A({{ authority.cited_opinion.cluster.sub_opinions.all|OR_join }})">
{% endif %}
{{ authority.depth }} reference{{ authority.depth|pluralize }}
{% if docket %}
</a>
{% endif %}
to
<a href="{{ authority.cited_opinion.cluster.get_absolute_url }}{% querystring %}" {% if authority.blocked %}rel="nofollow" {% endif %}>
{{ authority.cited_opinion.cluster.caption|safe|v_wrapper }}
</a>
Expand Down
5 changes: 5 additions & 0 deletions cl/scrapers/management/commands/clone_from_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
manage.py clone_from_cl --type people_db.Person --id 4173 --clone-person-positions
manage.py clone_from_cl --type search.Docket --id 5377675 --clone-person-positions
Note: for cloned Opinion Clusters to appear in docket authorities pages, use the
`find_citations_and_parantheticals_for_recap_documents` method in the Django shell.
You can pass all RECAPDocument IDs, for example:
`RECAPDocument.objects.values_list('pk', flat=True)`, or only a subset if needed.
This is still work in progress, some data is not cloned yet.
"""

Expand Down

0 comments on commit 1806ecc

Please sign in to comment.