Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(authorities): link docket authorities to search results #4854

Merged
merged 2 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading