Works in the public domain have no copyright (in most cases because the
@@ -159,6 +159,13 @@ const License: React.FC = () => {
, you may copy, distribute and modify the work as long as any
modifications are also made available under the GPL.
+ In Copyright
+
+ Works that are In Copyright are protected by copyright and/or related
+ rights. You are free to use this Item in any way that is permitted by
+ the copyright and related rights legislation that applies to your use.
+ For other uses you need to obtain permission from the rights-holder(s).
+
, you may copy, distribute and modify the work as long as any modifications are also made available under the GPL.
+
+ In Copyright
+
+
+ Works that are In Copyright are protected by copyright and/or related rights. You are free to use this Item in any way that is permitted by the copyright and related rights legislation that applies to your use. For other uses you need to obtain permission from the rights-holder(s).
+
diff --git a/src/components/EditionCard/EditionCard.test.tsx b/src/components/EditionCard/EditionCard.test.tsx
index 5ab8fb91..ca68df12 100644
--- a/src/components/EditionCard/EditionCard.test.tsx
+++ b/src/components/EditionCard/EditionCard.test.tsx
@@ -37,7 +37,7 @@ describe("Edition Card with Valid Data", () => {
test("Shows license with links", () => {
expect(
screen.getByText("License: test rights statement").closest("a").href
- ).toContain("/license");
+ ).toContain("/copyright");
});
test("Shows cover", () => {
expect(
@@ -80,7 +80,7 @@ describe("Edition Year with Minimal Data", () => {
});
test("Shows Unknown license with links", () => {
expect(screen.getByText("License: Unknown").closest("a").href).toContain(
- "/license"
+ "/copyright"
);
});
test("Shows Placeholder cover", () => {
diff --git a/src/components/EditionCard/EditionCard.tsx b/src/components/EditionCard/EditionCard.tsx
index a5143e24..1dd58e06 100644
--- a/src/components/EditionCard/EditionCard.tsx
+++ b/src/components/EditionCard/EditionCard.tsx
@@ -19,6 +19,7 @@ import FeaturedEditionBadge from "./FeaturedEditionBadge";
import PhysicalEditionBadge from "./PhysicalEditionBadge";
import ScanAndDeliverBlurb from "./ScanAndDeliverBlurb";
import UpBlurb from "./UpBlurb";
+import LicenseLink from "./LicenseLink";
export const EditionCard: React.FC<{
edition: WorkEdition;
@@ -114,9 +115,7 @@ export const EditionCard: React.FC<{
publishers={edition.publishers}
/>
-
- {EditionCardUtils.getLicense(previewItem)}
-
+
{isPhysicalEdition && }
{isUniversityPress && }
diff --git a/src/components/EditionCard/LicenseLink.tsx b/src/components/EditionCard/LicenseLink.tsx
new file mode 100644
index 00000000..590ba7bd
--- /dev/null
+++ b/src/components/EditionCard/LicenseLink.tsx
@@ -0,0 +1,15 @@
+import React from "react";
+import { Rights } from "~/src/types/DataModel";
+import Link from "~/src/components/Link/Link";
+
+const LicenseLink: React.FC<{ rights: Rights[] }> = ({ rights }) => {
+ return (
+
+ {rights && rights.length > 0
+ ? `License: ${rights[0].rightsStatement}`
+ : "License: Unknown"}
+
+ );
+};
+
+export default LicenseLink;
diff --git a/src/components/EditionDetail/Edition.test.tsx b/src/components/EditionDetail/Edition.test.tsx
index be8ae370..00e157d7 100644
--- a/src/components/EditionDetail/Edition.test.tsx
+++ b/src/components/EditionDetail/Edition.test.tsx
@@ -75,7 +75,7 @@ describe("Renders edition component when given valid edition", () => {
screen
.getAllByText("License: Public Domain when viewed in the US")[0]
.closest("a").href
- ).toContain("/license");
+ ).toContain("/copyright");
});
test("Featured Card, which has publisher 'Miller', shows up once", () => {
diff --git a/src/components/InstanceCard/InstanceCard.test.tsx b/src/components/InstanceCard/InstanceCard.test.tsx
index 41a0042e..cd02e204 100644
--- a/src/components/InstanceCard/InstanceCard.test.tsx
+++ b/src/components/InstanceCard/InstanceCard.test.tsx
@@ -41,7 +41,7 @@ describe("Instance Card with Valid Data", () => {
test("shows license", () => {
expect(
screen.getByText("License: test rights statement").closest("a").href
- ).toContain("/license");
+ ).toContain("/copyright");
});
});
@@ -75,7 +75,7 @@ describe("Instance Card with Minmal Data", () => {
});
test("shows license", () => {
expect(screen.getByText("License: Unknown").closest("a").href).toContain(
- "/license"
+ "/copyright"
);
});
});
diff --git a/src/components/InstanceCard/InstanceCard.tsx b/src/components/InstanceCard/InstanceCard.tsx
index 2a7a52ba..0b53078f 100644
--- a/src/components/InstanceCard/InstanceCard.tsx
+++ b/src/components/InstanceCard/InstanceCard.tsx
@@ -10,7 +10,6 @@ import {
Flex,
} from "@nypl/design-system-react-components";
import EditionCardUtils from "~/src/util/EditionCardUtils";
-import Link from "../Link/Link";
import Ctas from "../EditionCard/Ctas";
import PublisherAndLocation from "../EditionCard/PublisherAndLocation";
import WorldCat from "./WorldCat";
@@ -19,6 +18,7 @@ import FeaturedEditionBadge from "../EditionCard/FeaturedEditionBadge";
import PhysicalEditionBadge from "../EditionCard/PhysicalEditionBadge";
import ScanAndDeliverBlurb from "../EditionCard/ScanAndDeliverBlurb";
import UpBlurb from "../EditionCard/UpBlurb";
+import LicenseLink from "../EditionCard/LicenseLink";
// Creates an Instance card out of the Edition Year and Instance object
// Note: Edition Year only needs to be passed because `instance.publication_date`
@@ -94,7 +94,7 @@ export const InstanceCard: React.FC<{
/>
- {EditionCardUtils.getLicense(previewItem)}
+
{isPhysicalEdition && }
{isUniversityPress && }
diff --git a/src/components/License/License.test.tsx b/src/components/License/License.test.tsx
deleted file mode 100644
index 10f21189..00000000
--- a/src/components/License/License.test.tsx
+++ /dev/null
@@ -1,8 +0,0 @@
-import React from "react";
-import { render } from "~/src/__tests__/testUtils/render";
-import License from "./License";
-
-it("renders License page unchanged", async () => {
- const tree = render();
- expect(tree.container.firstChild).toMatchSnapshot();
-});
diff --git a/src/components/Work/Work.test.tsx b/src/components/Work/Work.test.tsx
index 662ac6a4..d1194aea 100644
--- a/src/components/Work/Work.test.tsx
+++ b/src/components/Work/Work.test.tsx
@@ -77,7 +77,7 @@ describe("Renders Work component when given valid work", () => {
expect(screen.getAllByText("Languages: English, German").length).toBe(1);
expect(
screen.getAllByText("License: Unknown")[0].closest("a").href
- ).toContain("/license");
+ ).toContain("/copyright");
});
test("Shows Details Table", () => {
expect(
diff --git a/src/constants/analytics.ts b/src/constants/analytics.ts
index 68feb1d5..d787b3e4 100644
--- a/src/constants/analytics.ts
+++ b/src/constants/analytics.ts
@@ -3,7 +3,7 @@ export const SITE_SECTION = "Digital Research Books";
export const pageNames = {
home: "drb|home",
about: "drb|about",
- license: "drb|license",
+ copyright: "drb|copyright",
advancedSearch: "drb|advanced-search",
search: "drb|search|?",
workItem: "drb|work|",
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 7c5385bd..f01ee5c7 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -66,8 +66,8 @@ const sendAnalytics = (query: any, pathname: string) => {
trackPageview(pageNames.advancedSearch);
} else if (pathname === "/about") {
trackPageview(pageNames.about);
- } else if (pathname === "/license") {
- trackPageview(pageNames.license);
+ } else if (pathname === "/copyright") {
+ trackPageview(pageNames.copyright);
} else {
trackPageview(pageNames.home);
}
diff --git a/src/pages/copyright.tsx b/src/pages/copyright.tsx
new file mode 100644
index 00000000..873c0956
--- /dev/null
+++ b/src/pages/copyright.tsx
@@ -0,0 +1,12 @@
+import React from "react";
+import Copyright from "~/src/components/Copyright/Copyright";
+import Layout from "~/src/components/Layout/Layout";
+
+const CopyrightPage: React.FC = () => {
+ return (
+
+
+
+ );
+};
+export default CopyrightPage;
diff --git a/src/pages/license.tsx b/src/pages/license.tsx
deleted file mode 100644
index 2664efda..00000000
--- a/src/pages/license.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from "react";
-import License from "~/src/components/License/License";
-import Layout from "~/src/components/Layout/Layout";
-
-const LicensePage: React.FC = () => {
- return (
-
-
-
- );
-};
-export default LicensePage;