freelawproject / courtlistener

A fully-searchable and accessible archive of court data including growing repositories of opinions, oral arguments, judges, judicial financial records, and federal filings.
https://www.courtlistener.com
Other
550 stars 151 forks source link

Link to RECAP docket from oral argument audio pages #4625

Closed v-anne closed 2 weeks ago

v-anne commented 3 weeks ago

Is it possible to link to RECAP dockets from the oral argument audio pages? I think the easiest way to do this is to link from the docket number. Since there are sometimes multiple versions of the same PACER docket, it might be most practical to link to a search query based on the identified court and the case number.

This would take the code from the "appealed from" line on docket pages and adapt it to the audio context. https://www.courtlistener.com/audio/78490/farhane-v-united-states/ https://www.courtlistener.com/docket/61402639/farhane-v-united-states/ Image

v-anne commented 3 weeks ago

I think the following would need to change in oral_argument.html:

Replace this:

<span class="meta-data-value select-all">{{ af.docket.docket_number }}</span>

with this:

<a
href="/?type=r&amp;docket_number={{ af.docket.docket_number }}&amp;court={{ af.docket.court.pk }}"
rel="nofollow"
data-toggle="tooltip"
data-placement="right"
title="Search for this docket number in the RECAP Archive.">{{ af.docket.docket_number }}</a>

Not entirely sure whether the existing function to render the view returns af.docket.court.pk already.