Skip to content

Commit

Permalink
Merge pull request #97 from harvard-lil/text-updates
Browse files Browse the repository at this point in the history
Text updates
  • Loading branch information
bensteinberg authored Mar 15, 2024
2 parents ece6880 + 1629789 commit 039fe05
Show file tree
Hide file tree
Showing 13 changed files with 302 additions and 336 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# capstone-static

The Caselaw Access Project was a large-scale digitization project hosted by the [Harvard Law School Library Innovation Lab](http://lil.law.harvard.edu/).
The Caselaw Access Project is a large-scale digitization project hosted by the [Harvard Law School Library Innovation Lab](http://lil.law.harvard.edu/).

This is a static, archival port of the [website originally hosted at case.law](https://github.com/harvard-lil/capstone), which served court opinions and an accompanying suite of tools to users in a variety of formats.
This is a static, archival port of the [website originally hosted at case.law](https://github.com/harvard-lil/capstone), which served court opinions and an accompanying suite of tools to users in a variety of formats. The static website uses client-side javascript to allow browsing of the static case data hosted at https://static.case.law.

This repository does not itself contain case data: visit the [website](https://case.law) to browse and download case data.


---

## Summary
Expand Down
7 changes: 4 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ def send_error(self, code, message=None):
import os
import sys

BIND = "127.0.0.1"
PORT = 5501
DIRECTORY = 'src'

parser = argparse.ArgumentParser(description="A wrapper for http.server with generous CORS headers")
parser.add_argument("port", nargs='?', type=int, default=PORT, help=f"specify alternate port (default: {PORT})")
parser.add_argument("--bind", "-b", metavar='ADDRESS', help="specify alternate bind address (default: all interfaces)")
parser.add_argument("--directory", "-d", default=DIRECTORY, metavar='DIRECTORY', help="specify alternate directory (default: current directory)")
parser.add_argument("--port", type=int, default=PORT, help=f"specify alternate port (default: {PORT})")
parser.add_argument("--bind", "-b", metavar='ADDRESS', default=BIND, help=f"specify alternate bind address (default: {BIND})")
parser.add_argument("--directory", "-d", default=DIRECTORY, help="specify alternate directory (default: current directory)")
args = parser.parse_args()

os.chdir(args.directory)
Expand Down
1 change: 1 addition & 0 deletions src/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
content="../images/favicon/mstile-150x150.png"
/>
<meta name="theme-color" content="#ffffff" />

<!-- Matomo -->
<script>
var _paq = (window._paq = window._paq || []);
Expand Down
24 changes: 24 additions & 0 deletions src/components/cap-anchor-list.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
import { LitElement, css, html } from "../lib/lit.js";

export const AnchorListMixin = (superClass) =>
class extends superClass {
/* mixin for classes that include a CapAnchorList, to automatically populate anchorLinks from h2 elements */
constructor() {
super();
this.anchorLinks = [];
}

updated(changedProperties) {
super.updated?.(changedProperties);
this.anchorLinks.length = 0;
this.renderRoot.querySelectorAll("h2").forEach((heading) => {
// set anchorText from data-anchor-text attribute if present, otherwise use the textContent of the heading
const anchorText =
heading.getAttribute("data-anchor-text") ||
heading.textContent.trim();
this.anchorLinks.push({
title: heading.textContent.trim(),
url: `#${heading.id}`,
});
});
}
};

export class CapAnchorList extends LitElement {
static properties = {
data: { type: Array },
Expand Down
10 changes: 6 additions & 4 deletions src/components/cap-footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,15 @@ export class CapFooter extends LitElement {
</ul>
<div class="footer__socialWrapper">
<cap-social-group theme="dark"></cap-social-group>
<cap-social-group theme="dark"></cap-social-group>
</div>
<p class="footer__copyrightNotice">
Site text is licensed <a class="footer__textLink footer__textLink--emphasis" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0<a>. <a class="footer__textLink footer__textLink--emphasis" href="https://github.com/harvard-lil/capstone-static">Source code</a> is MIT licensed.
Harvard asserts no copyright in caselaw retrieved from this site.
©2024 The President and Fellows of Harvard University.
©2024 The President and Fellows of Harvard University. See
<a class="footer__textLink footer__textLink--emphasis" href="/terms/"
>Terms of Use</a
>
for licenses to Caselaw Data, site text, and source code.
</p>
</footer>
`;
Expand Down
35 changes: 0 additions & 35 deletions src/data/privacySidebarLinks.js

This file was deleted.

54 changes: 0 additions & 54 deletions src/data/termsSidebarLinks.js

This file was deleted.

42 changes: 42 additions & 0 deletions src/privacy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,48 @@
website.</noscript
>
<script type="module" src="/templates/cap-privacy-page.js"></script>

<link
rel="apple-touch-icon"
sizes="152x152"
href="../images/favicon/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="../images/favicon/android-chrome-144x144.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="../images/favicon/favicon.ico"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="../images/favicon/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="../images/favicon/favicon-16x16.png"
/>
<link
rel="mask-icon"
href="../images/favicon/safari-pinned-tab.svg"
color="#0075FF"
/>
<meta name="msapplication-TileColor" content="#2b5797" />
<meta
name="msapplication-TileImage"
content="../images/favicon/mstile-150x150.png"
/>
<meta name="theme-color" content="#ffffff" />

<!-- Matomo -->
<script>
var _paq = (window._paq = window._paq || []);
Expand Down
41 changes: 17 additions & 24 deletions src/templates/cap-about-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class CapAboutPage extends LitElement {
<p class="interiorMain__description">
The Caselaw Access Project (“CAP”) expands public access to U.S.
law. Our goal is to make all published U.S. court decisions freely
available to the public online, in a consistent format, digitized
available to the public online in a consistent format, digitized
from the collection of the Harvard Law School Library.
</p>
</cap-page-header>
Expand All @@ -218,8 +218,8 @@ export class CapAboutPage extends LitElement {
</h2>
<p>
CAP includes all official, book-published state and federal United
States case law — every volume or case designated as an official
report of decisions by a court within the United States.
States case law through 2020 — every volume or case designated as an
official report of decisions by a court within the United States.
</p>
<p>
Our scope includes all state courts, federal courts, and territorial
Expand Down Expand Up @@ -293,15 +293,14 @@ export class CapAboutPage extends LitElement {
</ul>
<h3 id="fastcase-collection">Fastcase Collection</h3>
<p>
Our collection is augmented with yearly caselaw donations courtesy
of
Our collection is augmented with additional caselaw donations
courtesy of
<a href="https://www.fastcase.com/">Fastcase</a>.
</p>
<p>
Fastcase provides updates, on a yearly basis, of all caselaw volumes
published more than one year ago that is not yet in the case.law
corpus. We currently provide Fastcase cases for volumes published
through 2020.
Fastcase updates sets include all caselaw volumes published more
than one year ago that are not yet in the case.law corpus. We
currently provide Fastcase cases for volumes published through 2020.
</p>
<p>
Fastcase volumes are delivered to us in an internal XML/HTML format,
Expand All @@ -317,9 +316,7 @@ export class CapAboutPage extends LitElement {
F. Supp. 3d, N.E.3d, N.W.2d, P.3d, S.Ct., S.E.2d, So.3d, S.W.3d,
and U.S.
</li>
<li>
Cases published in volumes during or before {{ CASE_MAX_YEAR }}.
</li>
<li>Cases published in volumes during or before 2020.</li>
<li>
Cases not otherwise published in the Harvard Law School
Collection.
Expand All @@ -346,19 +343,19 @@ export class CapAboutPage extends LitElement {
Data citation
</h2>
<p>
Data made available through the Caselaw Access Project API and bulk
download service is citable. View our suggested citation in these
standard formats:
Data made available through the Caselaw Access Project website and
bulk download service is citable. View our suggested citation in
these standard formats:
</p>
<p>
<strong class="interiorMain__emphasis">APA</strong><br />
<span>Caselaw Access Project.</span> (2018). Retrieved [date], from
<span>Caselaw Access Project.</span> (2024). Retrieved [date], from
[url].
</p>
<p>
<strong class="interiorMain__emphasis">MLA</strong><br />
The President and Fellows of Harvard University. &quot;Caselaw
Access Project.&quot; 2018, [url].
Access Project.&quot; 2024, [url].
</p>
<p>
<strong class="interiorMain__emphasis">Chicago / Turabian</strong
Expand Down Expand Up @@ -470,13 +467,9 @@ export class CapAboutPage extends LitElement {
cooperated with LIL on the Caselaw Access Project.
</li>
<li>
<a href="https://www.ravellaw.com/">Ravel Law</a> has partnered
with the Harvard Law School Library and LIL since the beginning of
the Caselaw Access Project. Ravel funded the digitization effort
and now offers free public access to the entire corpus through
their <a href="https://home.ravellaw.com">search interface</a> and
their
<a href="https://home.ravellaw.com/api">non-commercial API</a>.
<a href="https://www.ravellaw.com/">Ravel Law</a>, which funded
our digitization effort, has partnered with the Harvard Law School
Library and LIL since the beginning of the Caselaw Access Project.
</li>
<li>
Carl Jaeckel of
Expand Down
Loading

0 comments on commit 039fe05

Please sign in to comment.