From e7dae2938b8ecf91916057a0117fae20d758c355 Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Thu, 19 Oct 2023 15:47:46 -0400 Subject: [PATCH 1/8] Frogot to change ranks in lanes.json --- src/data/lanes.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/data/lanes.json b/src/data/lanes.json index fb04fddf..ea69d9cd 100644 --- a/src/data/lanes.json +++ b/src/data/lanes.json @@ -6,7 +6,7 @@ "slug": "recently-digitized-collections", "created_at": "2023-10-17T17:33:14.000Z", "updated_at": "2023-10-17T17:33:14.000Z", - "rank": null, + "rank": 0, "featured": false, "query": null, "type": "CollectionLane" @@ -17,7 +17,7 @@ "slug": "photographs", "created_at": "2023-10-17T17:33:14.000Z", "updated_at": "2023-10-17T17:33:14.000Z", - "rank": null, + "rank": 1, "featured": false, "query": null, "type": "CollectionLane" @@ -28,7 +28,7 @@ "slug": "prints-and-drawings", "created_at": "2023-10-17T17:33:14.000Z", "updated_at": "2023-10-17T17:33:14.000Z", - "rank": null, + "rank": 2, "featured": false, "query": null, "type": "CollectionLane" @@ -39,7 +39,7 @@ "slug": "maps", "created_at": "2023-10-17T17:33:15.000Z", "updated_at": "2023-10-17T17:33:15.000Z", - "rank": null, + "rank": 3, "featured": false, "query": null, "type": "CollectionLane" @@ -50,7 +50,7 @@ "slug": "books-and-periodicals", "created_at": "2023-10-17T17:33:15.000Z", "updated_at": "2023-10-17T17:33:15.000Z", - "rank": null, + "rank": 4, "featured": false, "query": null, "type": "CollectionLane" @@ -61,7 +61,7 @@ "slug": "manuscripts-and-correspondence", "created_at": "2023-10-17T17:33:15.000Z", "updated_at": "2023-10-17T17:33:15.000Z", - "rank": null, + "rank": 5, "featured": false, "query": null, "type": "CollectionLane" @@ -72,7 +72,7 @@ "slug": "fliers-and-ephemera", "created_at": "2023-10-17T17:33:15.000Z", "updated_at": "2023-10-17T17:33:15.000Z", - "rank": null, + "rank": 6, "featured": false, "query": null, "type": "CollectionLane" From 5eebaa8c364f321095ff33f11bd12aaa95d2fd19 Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:43:41 -0400 Subject: [PATCH 2/8] A lot less folders of data --- README.md | 2 +- __tests__/[slug].test.tsx | 79 ++--- src/data/lanes.json | 300 +++++++++++++----- .../lanes/books-and-periodicals/data.json | 1 - src/data/lanes/fliers-and-ephemera/data.json | 1 - .../manuscripts-and-correspondence/data.json | 1 - src/data/lanes/maps/data.json | 1 - src/data/lanes/photographs/data.json | 1 - src/data/lanes/prints-and-drawings/data.json | 1 - .../recently-digitized-collections/data.json | 1 - src/pages/api/lanes/[slug].ts | 35 +- 11 files changed, 264 insertions(+), 159 deletions(-) delete mode 100644 src/data/lanes/books-and-periodicals/data.json delete mode 100644 src/data/lanes/fliers-and-ephemera/data.json delete mode 100644 src/data/lanes/manuscripts-and-correspondence/data.json delete mode 100644 src/data/lanes/maps/data.json delete mode 100644 src/data/lanes/photographs/data.json delete mode 100644 src/data/lanes/prints-and-drawings/data.json delete mode 100644 src/data/lanes/recently-digitized-collections/data.json diff --git a/README.md b/README.md index 68c5df74..2b995b32 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ Returns respective JSON for that lane. --- -Returns JSON containing all lanes' metadata. +Returns JSON containing all lanes. #### Note for future diff --git a/__tests__/[slug].test.tsx b/__tests__/[slug].test.tsx index a42d7fa2..1d770bea 100644 --- a/__tests__/[slug].test.tsx +++ b/__tests__/[slug].test.tsx @@ -1,57 +1,22 @@ -import path from "path"; -import { promises as fs } from "fs"; -import { NextApiRequest, NextApiResponse } from "next"; -import handler from "@/pages/api/lanes/[slug]"; - -jest.mock("fs/promises"); - -describe("Individual swim lane API endpoints handler", () => { - afterEach(() => { - jest.restoreAllMocks(); - }); - - it("should respond with 200 status and cleaned file contents for a GET request", async () => { - const mockReadFile = jest.spyOn(fs, "readFile"); - mockReadFile.mockResolvedValue(JSON.stringify({ key: "value" })); - - const request: NextApiRequest = { - method: "GET", - query: { - slug: "test-slug", - }, - } as unknown as NextApiRequest; - - const response: NextApiResponse = { - status: jest.fn(() => response), - json: jest.fn(), - } as unknown as NextApiResponse; - - await handler(request, response); - - expect(response.status).toHaveBeenCalledWith(200); - - expect(response.json).toHaveBeenCalledWith({ key: "value" }); - - expect(mockReadFile).toHaveBeenCalledWith( - path.join(process.cwd(), "/src/data/lanes/test-slug/data.json"), - "utf8" - ); - }); - - it("should respond with an error for non-GET requests", async () => { - const request: NextApiRequest = { - method: "POST", - query: { - slug: "maps", // A valid 'slug' value - }, - } as unknown as NextApiRequest; - - const response: NextApiResponse = { - status: jest.fn(() => response), - } as unknown as NextApiResponse; - - await handler(request, response); - - expect(response.status).not.toHaveBeenCalledWith(200); - }); -}); +import slugHandler from "@/pages/api/lanes"; +import { NextApiRequest } from 'next'; + +it('should respond with 200 status and lanes data for a GET request', () => { + const request: NextApiRequest = { + method: 'GET', + query: { + slug: "maps", + } + } as unknown as NextApiRequest; + + const mockResponse: any = { + status: jest.fn(function () { + return this; + }), + json: jest.fn(), + }; + + slugHandler(request, mockResponse); + + expect(mockResponse.status).toHaveBeenCalledWith(200); +}) \ No newline at end of file diff --git a/src/data/lanes.json b/src/data/lanes.json index ea69d9cd..e1eca7c2 100644 --- a/src/data/lanes.json +++ b/src/data/lanes.json @@ -1,81 +1,235 @@ { - "lanes": { - "recently-digitized-collections": { - "id": 241, - "title": "Recently digitized collections", - "slug": "recently-digitized-collections", - "created_at": "2023-10-17T17:33:14.000Z", - "updated_at": "2023-10-17T17:33:14.000Z", - "rank": 0, - "featured": false, - "query": null, - "type": "CollectionLane" - }, + "lanes": [ + { + "recently-digitized-collections": { + "title": "Recently Digitized Collections", + "slug": "recently-digitized-collections", + "rank": 0, + "collections": [ + { + "uuid": "60932400-20f2-0138-8583-05c43d448773", + "title": "Posada Collection", + "url": "https://digitalcollections.nypl.org/collections/posada-collection#/?tab=navigation", + "image_id": "58270299" + }, + { + "uuid": "724303e0-c6bb-012f-afbd-58d385a7bc34", + "title": "MAVO", + "url": "https://digitalcollections.nypl.org/collections/mavo#/?tab=navigation", + "image_id": "1408153" + }, + { + "uuid": "6b6532b0-5df7-013b-36f8-0242ac110002", + "title": "Austin Hansen photograph collection", + "url": "https://digitalcollections.nypl.org/collections/austin-hansen-photograph-collection#/?tab=navigation", + "image_id": "58300996" + }, + { + "uuid": "5b996640-c31c-0139-0bac-0242ac110004", + "title": "Arthur Alfonso Schomburg papers", + "url": "https://digitalcollections.nypl.org/collections/arthur-alfonso-schomburg-papers#/?tab=navigation", + "image_id": "58591658" + } + ] + } + }, + { "photographs": { - "id": 242, - "title": "Photographs", - "slug": "photographs", - "created_at": "2023-10-17T17:33:14.000Z", - "updated_at": "2023-10-17T17:33:14.000Z", - "rank": 1, - "featured": false, - "query": null, - "type": "CollectionLane" - }, + "title": "Photographs", + "slug": "photographs", + "rank": 1, + "collections": [ + { + "uuid": "d3802d10-f49a-0139-3bff-0242ac110002", + "title": "Friedman-Abeles photographs", + "url": "https://digitalcollections.nypl.org/collections/friedman-abeles-photographs#/?tab=navigation", + "image_id": "58498722" + }, + { + "uuid": "e5462600-c5d9-012f-a6a3-58d385a7bc34", + "title": "Farm Security Administration Photographs", + "url": "https://digitalcollections.nypl.org/collections/farm-security-administration-photographs#/?tab=navigation", + "image_id": "1952272" + }, + { + "uuid": "812e5770-c60c-012f-7167-58d385a7bc34", + "title": "Changing New York", + "url": "https://digitalcollections.nypl.org/collections/changing-new-york#/?tab=navigation", + "image_id": "58447105" + }, + { + "uuid": "f7ffc990-c5ae-012f-eb75-58d385a7bc34", + "title": "Diana Davies photographs", + "url": "https://digitalcollections.nypl.org/collections/diana-davies-photographs#/?tab=navigation", + "image_id": "1582202" + } + ] + } + }, + { "prints-and-drawings": { - "id": 243, - "title": "Prints and drawings", - "slug": "prints-and-drawings", - "created_at": "2023-10-17T17:33:14.000Z", - "updated_at": "2023-10-17T17:33:14.000Z", - "rank": 2, - "featured": false, - "query": null, - "type": "CollectionLane" - }, + "title": "Prints and Drawings", + "slug": "prints-and-drawings", + "rank": 2, + "collections": [ + { + "uuid": "54e9cab0-c6ce-012f-957e-58d385a7bc34", + "title": "Works on paper collection", + "url": "https://digitalcollections.nypl.org/collections/works-on-paper-collection#/?tab=about", + "image_id": "58755283" + }, + { + "uuid": "239b09e0-ea66-013a-39ba-0242ac110003", + "title": "Saul Steinberg collection", + "url": "https://digitalcollections.nypl.org/collections/saul-steinberg-collection#/?tab=about", + "image_id": "58495568" + }, + { + "uuid": "94437a40-c607-012f-45c8-58d385a7bc34", + "title": "The Emilio Sanchez Private Sketches", + "url": "https://digitalcollections.nypl.org/collections/the-emilio-sanchez-private-sketches#/?tab=about", + "image_id": "1945789" + }, + { + "uuid": "ab394b60-d4bc-0131-8bd5-58d385a7bbd0", + "title": "Works Progress Administration (WPA) Art", + "url": "https://digitalcollections.nypl.org/collections/works-progress-administration-wpa-art#/?tab=about", + "image_id": "5179162" + } + ] + } + }, + { "maps": { - "id": 244, - "title": "Maps", - "slug": "maps", - "created_at": "2023-10-17T17:33:15.000Z", - "updated_at": "2023-10-17T17:33:15.000Z", - "rank": 3, - "featured": false, - "query": null, - "type": "CollectionLane" - }, + "title": "Maps", + "slug": "maps", + "rank": 3, + "collections": [ + { + "uuid": "5cd94760-c52a-012f-bcd4-3c075448cc4b", + "title": "Maps of North America", + "url": "https://digitalcollections.nypl.org/collections/maps-of-north-america#/?tab=navigation", + "image_id": "5452683" + }, + { + "uuid": "2600a3f0-c5ec-012f-424e-58d385a7bc34", + "title": "Atlases of the United States", + "url": "https://digitalcollections.nypl.org/collections/atlases-of-the-united-states#/?tab=navigation", + "image_id": "3928477" + }, + { + "uuid": "a1a9d830-c5a6-012f-00ec-58d385a7bc34", + "title": "Maps of New York City and State", + "url": "https://digitalcollections.nypl.org/collections/maps-of-new-york-city-and-state#/?tab=navigation", + "image_id": "434724" + }, + { + "uuid": "de1dcfb0-c5f6-012f-1dfc-58d385a7bc34", + "title": "Atlases of New York City", + "url": "https://digitalcollections.nypl.org/collections/atlases-of-new-york-city#/?tab=navigation", + "image_id": "1516806" + } + ] + } + }, + { "books-and-periodicals": { - "id": 245, - "title": "Books and periodicals", - "slug": "books-and-periodicals", - "created_at": "2023-10-17T17:33:15.000Z", - "updated_at": "2023-10-17T17:33:15.000Z", - "rank": 4, - "featured": false, - "query": null, - "type": "CollectionLane" - }, + "title": "Books and Periodicals", + "slug": "books-and-periodicals", + "rank": 4, + "collections": [ + { + "uuid": "f7533140-3179-0134-f53a-00505686a51c", + "title": "New York City directories", + "url": "https://digitalcollections.nypl.org/collections/new-york-city-directories#/?tab=about", + "image_id": "57066397" + }, + { + "uuid": "924921a0-3cd0-0136-c557-0af54bc5b55e", + "title": "The Reform advocate", + "url": "https://digitalcollections.nypl.org/collections/the-reform-advocate#/?tab=navigation", + "image_id": "57879179" + }, + { + "uuid": "d6d29460-031a-0133-7ddc-58d385a7b928", + "title": "Yizkor Book Collection", + "url": "https://digitalcollections.nypl.org/collections/yizkor-book-collection#/?tab=navigation", + "image_id": "57502571" + }, + { + "uuid": "fea9db50-5c18-0134-d0a5-00505686a51c", + "title": "The Black Experience in Children's Books: Selections from Augusta Baker's Bibliographies", + "url": "https://digitalcollections.nypl.org/collections/the-black-experience-in-childrens-books-selections-from-augusta-bakers#/?tab=about", + "image_id": "56958645" + } + ] + } + }, + { "manuscripts-and-correspondence": { - "id": 246, - "title": "Manuscripts and correspondence", - "slug": "manuscripts-and-correspondence", - "created_at": "2023-10-17T17:33:15.000Z", - "updated_at": "2023-10-17T17:33:15.000Z", - "rank": 5, - "featured": false, - "query": null, - "type": "CollectionLane" - }, + "title": "Manuscripts and Correspondence", + "slug": "manuscripts-and-correspondence", + "rank": 5, + "collections": [ + { + "uuid": "cd0fd890-b0de-0133-ad22-00505686d14e", + "title": "Century Company records", + "url": "https://digitalcollections.nypl.org/collections/century-company-records#/?tab=navigation", + "image_id": "57555753" + }, + { + "uuid": "7b25ca60-9d2e-0133-44f8-00505686a51c", + "title": "Sidney Lapidus Slavery and Abolition Collection", + "url": "https://digitalcollections.nypl.org/collections/sidney-lapidus-slavery-and-abolition-collection#/?tab=about", + "image_id": "5661680" + }, + { + "uuid": "4a97cea0-10ad-0135-a349-51eb7763f8d0", + "title": "Brown Brothers & Company records", + "url": "https://digitalcollections.nypl.org/collections/brown-brothers-company-records#/?tab=about", + "image_id": "57840965" + }, + { + "uuid": "954eecd0-c5bf-012f-9413-58d385a7bc34", + "title": "Samuel J. Tilden papers", + "url": "https://digitalcollections.nypl.org/collections/samuel-j-tilden-papers#/?tab=navigation", + "image_id": "psnypl_mss_986" + } + ] + } + }, + { "fliers-and-ephemera": { - "id": 247, - "title": "Fliers and ephemera", - "slug": "fliers-and-ephemera", - "created_at": "2023-10-17T17:33:15.000Z", - "updated_at": "2023-10-17T17:33:15.000Z", - "rank": 6, - "featured": false, - "query": null, - "type": "CollectionLane" + "title": "Fliers and Ephemera", + "slug": "fliers-and-ephemera", + "rank": 6, + "collections": [ + { + "uuid": "24fc78e0-988f-0138-b354-7557849ba9de", + "title": "ACT UP New York records", + "url": "https://digitalcollections.nypl.org/collections/act-up-new-york-records#/?tab=navigation", + "image_id": "58498722" + }, + { + "uuid": "79d4a650-c52e-012f-67ad-58d385a7bc34", + "title": "Wallach Division Picture Collection", + "url": "https://digitalcollections.nypl.org/collections/wallach-division-picture-collection#/?tab=navigation", + "image_id": "808351" + }, + { + "uuid": "7d10f150-e9c8-013a-8b28-0242ac110003", + "title": "Michael Cummings African American Art Event Ephemera Collection", + "url": "https://digitalcollections.nypl.org/collections/michael-cummings-african-american-art-event-ephemera-collection#/?tab=about", + "image_id": "58507228" + }, + { + "uuid": "3ad08ad0-3c29-013b-6e69-0242ac110002", + "title": "Arthur Russell papers", + "url": "https://digitalcollections.nypl.org/collections/arthur-russell-papers#/?tab=navigation", + "image_id": "58613681" + } + ] } - } -} \ No newline at end of file + } + ] + } \ No newline at end of file diff --git a/src/data/lanes/books-and-periodicals/data.json b/src/data/lanes/books-and-periodicals/data.json deleted file mode 100644 index bc87212e..00000000 --- a/src/data/lanes/books-and-periodicals/data.json +++ /dev/null @@ -1 +0,0 @@ -{"lane":{"id":245,"title":"Books and periodicals","slug":"books-and-periodicals","created_at":"2023-10-17T17:33:15.000Z","updated_at":"2023-10-17T17:33:15.000Z","rank":4,"featured":false,"query":null,"type":"CollectionLane","collections":[{"id":9212,"uuid":"f7533140-3179-0134-f53a-00505686a51c","hades_id":null,"title":"New York City directories","slug":"new-york-city-directories","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":156,"popularity":null,"division_id":56,"created_at":"2016-09-20T10:51:11.000Z","updated_at":"2023-09-08T03:19:12.000Z","image_id":"57045713","mss_id":null,"hades_collection_id":null,"alt_image_ids":"57995592,57864985,57546385,57569985,56762445,56803305,56869366,56908565","video_thumbnail":null,"custom_image_id":"56913225"},{"id":10797,"uuid":"924921a0-3cd0-0136-c557-0af54bc5b55e","hades_id":null,"title":"The Reform advocate","slug":"the-reform-advocate","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":2503,"popularity":null,"division_id":63,"created_at":"2019-04-27T03:21:56.000Z","updated_at":"2023-10-10T03:23:21.000Z","image_id":"57870350","mss_id":null,"hades_collection_id":null,"alt_image_ids":"57885917,57898401,57920035,57932827,57941029,57964163,57976487,57989553","video_thumbnail":null,"custom_image_id":null},{"id":9201,"uuid":"d6d29460-031a-0133-7ddc-58d385a7b928","hades_id":null,"title":"Yizkor Book Collection","slug":"yizkor-book-collection","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":645,"popularity":null,"division_id":63,"created_at":"2016-08-23T10:44:09.000Z","updated_at":"2023-09-08T03:16:36.000Z","image_id":"5655465","mss_id":null,"hades_collection_id":null,"alt_image_ids":"5573818,56592669,5619038,56702845,5634218,5682758,5640853,5951868","video_thumbnail":null,"custom_image_id":null},{"id":9348,"uuid":"fea9db50-5c18-0134-d0a5-00505686a51c","hades_id":null,"title":"The Black Experience in Children's Books: Selections from Augusta Baker's Bibliographies","slug":"the-black-experience-in-childrens-books-selections-from-augusta-bakers","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":153,"popularity":null,"division_id":50,"created_at":"2017-03-22T10:52:25.000Z","updated_at":"2023-09-08T03:19:17.000Z","image_id":"56917725","mss_id":null,"hades_collection_id":null,"alt_image_ids":"57195369,56910585,56859614,57001605,57267985,57104205,57187705,57202365","video_thumbnail":null,"custom_image_id":"56917925"}]}} \ No newline at end of file diff --git a/src/data/lanes/fliers-and-ephemera/data.json b/src/data/lanes/fliers-and-ephemera/data.json deleted file mode 100644 index 231a4088..00000000 --- a/src/data/lanes/fliers-and-ephemera/data.json +++ /dev/null @@ -1 +0,0 @@ -{"lane":{"id":247,"title":"Fliers and ephemera","slug":"fliers-and-ephemera","created_at":"2023-10-17T17:33:15.000Z","updated_at":"2023-10-17T17:33:15.000Z","rank":6,"featured":false,"query":null,"type":"CollectionLane","collections":[{"id":19411,"uuid":"24fc78e0-988f-0138-b354-7557849ba9de","hades_id":null,"title":"ACT UP New York records","slug":"act-up-new-york-records","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":146,"popularity":null,"division_id":57,"created_at":"2021-11-19T03:33:55.000Z","updated_at":"2023-09-08T03:18:54.000Z","image_id":"5116782","mss_id":10,"hades_collection_id":null,"alt_image_ids":"1582293,1583358,1577306,1635827,1583383,1577361,1577348,1577367","video_thumbnail":null,"custom_image_id":null},{"id":4735,"uuid":"79d4a650-c52e-012f-67ad-58d385a7bc34","hades_id":569241,"title":"Wallach Division Picture Collection","slug":"wallach-division-picture-collection","short_description":"Over 30,000 images from books, magazines and newspapers as well as original photographs, prints and postcards, created mostly before 1923 and selected from the over 1,000,000 images in the Mid-Manhattan Library's Picture Collection.","description":"\u003cdiv id=\"collectioncontent\"\u003e\t\u003ch3\u003eCollection History\u003c/h3\u003e \u003cp\u003e This digitized presentation of over 30,000 items represents a select group of images from The New York Public Library Picture Collection at the Mid-Manhattan Library. Since its creation in 1915, the Picture Collection has met the needs of New York's large community of artists, illustrators, designers, teachers, students, and general researchers. Covering over 12,000 subjects, the Picture Collection is an extensive circulating collection and reference archive, the largest of its kind in any public library system. Most of these\t\t\t\tdigital images originally appeared on the NYPL website \"\u003ca href=\"http://digital.nypl.org/mmpco/\"\u003eThe NYPL Picture Collection Online\u003c/a\u003e.\" \u003c/p\u003e\t\t \u003cp\u003eThe digitization of selected \u003ca href=\"http://www.nypl.org/branch/central/mml/postcards/index.html\"\u003ePicture Collection postcards\u003c/a\u003e now accessible through NYPL Digital Gallery has been supported in part by funds from the Metropolitan New York Library Council (METRO) through the New York State Regional Bibliographic Databases Program. \u003c/p\u003e\u003ch3\u003eBackground\u003c/h3\u003e \u003cp\u003e Within two years of the opening of The New York Public Library's central building in 1911, the Print Room found itself overwhelmed with requests for prints strictly from a subject point of view. Most of these requests came from artists and illustrators in the employ of New York City's burgeoning graphic arts industries and cultural enterprises, which included movie studios, Broadway and vaudeville theatres, advertising agencies, publishing companies, and fashion houses, all competing for new ideas and pressuring their artists and illustrators to deliver them. The Print Room, a repository for fine art prints, did have a wealth of the sort of material that was sought, but its holdings constituted a rare and fragile collection that could not withstand heavy use. Moreover, these holdings were cataloged by artist only, not by subject.\u003c/p\u003e\t\t\u003c/p\u003e \u003cp\u003eIn 1914, the Circulation Department began saving plates, posters, postcards, and photographs for the new sort of \"reader.\" The Library's annual report for 1915 announced: \". . . a picture collection for lending was desirable. Requests have come from schools, city history clubs, moving picture actors, and advertisers. . . . Borrowers include not only people who have been card holders in the Branches, but an increasing number whose first interest in the Library was aroused by the picture collection.\"\u003c/p\u003e \u003cp\u003eBy the end of that year, 17,991 pictures had been prepared for circulation. Many of these pictures came from old magazines and books that might otherwise have been sold for scrap paper. Donations began to pour in. In 1926, with the growing collection now housed in Room 67 of the central building, Ellen Perkins, formerly a chief cataloger in the Circulation Department, was given the position of Head of the Picture Collection, and the Picture Collection was formally established. \u003c/p\u003e\t \u003cp\u003eIn this modest way began a collection that is today, at five million items, a major resource for visual ideas. Over the years, the Picture Collection staff built and organized so diverse and comprehensive a collection that libraries, corporations, and governments from around the world have studied its structure and consulted its librarians in order to apply its lessons to their own picture libraries. Historically, the development of the collection illustrates the way in which effective approaches to service and cataloging for visual materials evolved, and how the cataloging of pictures came to diverge from the traditional bibliographical orientation of descriptive cataloging, emphasizing instead the maximum number of access points to a picture's subject content. \u003c/p\u003e\t \u003cp\u003e\t\tRead more about the history of the Picture Collection and the contributions of \t\tRomana Javitz, whose leadership shaped the Collection profoundly over many years, \t\tin \u003ca href=\"http://www.nypl.org/research/chss/spe/art/photo/pchist/pchist2.html\"\u003e\u003cem\u003eWorth \t\tBeyond Words: Romana Javitz and The New York Public Library's Picture \t\tCollection\u003c/em\u003e\u003c/a\u003e, from which this text has been adapted.\t\t\t\t\u003c/p\u003e \u003ch3\u003eRelated Resources\u003c/h3\u003e \u003cp\u003eNYPL. \u0026quot;The NYPL Picture Collection Online.\u0026quot; (Web site) \u0026lt;\u003ca href=\"http://digital.nypl.org/mmpco/\" target=\"_blank\"\u003ehttp://digital.nypl.org/mmpco/\u003c/a\u003e\u0026gt;\t\t\u003c/p\u003e\t\t\u003cp\u003e_____. \"Historical Postcards of New York City from the Picture Collection at Mid-Manhattan Library\" (Online Exhibit) \u0026lt;\u003ca href=\"http://www.nypl.org/branch/central/mml/postcards/index.html\"\u003ehttp://www.nypl.org/branch/central/mml/postcards/index.html\u003c/a\u003e\u0026gt;\t\t\u003c/p\u003e \u003cp\u003eTroncale, Anthony T. \u0026quot;Worth Beyond Words: Romana Javitz and The New York Public Library's Picture Collection.\u0026quot; \u003cem\u003eBiblion: The Bulletin of The New York Public Library\u003c/em\u003e Volume 4, Number 1 (Fall 1995)\u003c/p\u003e \u003cp\u003e\u0026nbsp; \u003c/p\u003e\u003c/div\u003e","collection_type":null,"num_children":null,"num_items":34269,"popularity":null,"division_id":45,"created_at":"2014-11-24T22:22:45.000Z","updated_at":"2023-09-08T03:15:04.000Z","image_id":"833103","mss_id":null,"hades_collection_id":482,"alt_image_ids":"822524,820336,812310,816116,827315,825265,832790,809417","video_thumbnail":null,"custom_image_id":null},{"id":291993,"uuid":"7d10f150-e9c8-013a-8b28-0242ac110003","hades_id":null,"title":"Michael Cummings African American Art Event Ephemera Collection","slug":"michael-cummings-african-american-art-event-ephemera-collection","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":99,"popularity":null,"division_id":51,"created_at":"2022-12-11T03:24:43.000Z","updated_at":"2022-12-11T03:24:43.000Z","image_id":"58506995","mss_id":null,"hades_collection_id":null,"alt_image_ids":"58507035,58507076,58507102,58507139,58507184,58507232,58507275,58507318","video_thumbnail":null,"custom_image_id":null},{"id":494861,"uuid":"3ad08ad0-3c29-013b-6e69-0242ac110002","hades_id":null,"title":"Arthur Russell papers","slug":"arthur-russell-papers","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":10,"popularity":null,"division_id":48,"created_at":"2023-04-13T03:21:46.000Z","updated_at":"2023-09-09T03:39:26.000Z","image_id":"58613679","mss_id":23272,"hades_collection_id":null,"alt_image_ids":"58613681,58613687,58613715,58613717,58613721,58613731,58613741,58613817","video_thumbnail":null,"custom_image_id":null}]}} \ No newline at end of file diff --git a/src/data/lanes/manuscripts-and-correspondence/data.json b/src/data/lanes/manuscripts-and-correspondence/data.json deleted file mode 100644 index eda75fa4..00000000 --- a/src/data/lanes/manuscripts-and-correspondence/data.json +++ /dev/null @@ -1 +0,0 @@ -{"lane":{"id":246,"title":"Manuscripts and correspondence","slug":"manuscripts-and-correspondence","created_at":"2023-10-17T17:33:15.000Z","updated_at":"2023-10-17T17:33:15.000Z","rank":5,"featured":false,"query":null,"type":"CollectionLane","collections":[{"id":9174,"uuid":"cd0fd890-b0de-0133-ad22-00505686d14e","hades_id":null,"title":"Century Company records","slug":"century-company-records","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":15743,"popularity":null,"division_id":57,"created_at":"2016-07-22T10:54:33.000Z","updated_at":"2023-09-08T03:15:14.000Z","image_id":"5732648","mss_id":504,"hades_collection_id":null,"alt_image_ids":"56780180,57134915,57278266,57394706,57425384,57470390,57525223,57552841","video_thumbnail":null,"custom_image_id":"5777967"},{"id":9161,"uuid":"7b25ca60-9d2e-0133-44f8-00505686a51c","hades_id":null,"title":"Sidney Lapidus Slavery and Abolition Collection","slug":"sidney-lapidus-slavery-and-abolition-collection","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":97,"popularity":null,"division_id":49,"created_at":"2016-06-28T10:59:28.000Z","updated_at":"2023-09-08T03:21:03.000Z","image_id":"5661158","mss_id":null,"hades_collection_id":null,"alt_image_ids":"5661284,5661358,5661548,5661654,5661700,5564158,5825858,5875762","video_thumbnail":null,"custom_image_id":null},{"id":10077,"uuid":"4a97cea0-10ad-0135-a349-51eb7763f8d0","hades_id":null,"title":"Brown Brothers \u0026 Company records","slug":"brown-brothers-company-records","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":174,"popularity":null,"division_id":57,"created_at":"2018-11-21T03:28:40.000Z","updated_at":"2023-09-08T03:18:39.000Z","image_id":"57623145","mss_id":410,"hades_collection_id":null,"alt_image_ids":"57744638,57633759,57730056,57714485,57794028,57758560,57724321,57699445","video_thumbnail":null,"custom_image_id":null},{"id":4768,"uuid":"954eecd0-c5bf-012f-9413-58d385a7bc34","hades_id":1924691,"title":"Samuel J. Tilden papers","slug":"samuel-j-tilden-papers","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":1560,"popularity":null,"division_id":57,"created_at":"2014-11-24T23:09:59.000Z","updated_at":"2023-09-08T03:15:48.000Z","image_id":"3925589","mss_id":2993,"hades_collection_id":null,"alt_image_ids":"2031358,2034277,2041716,2046194,2049168,2054398,2035655,2055532","video_thumbnail":null,"custom_image_id":null}]}} \ No newline at end of file diff --git a/src/data/lanes/maps/data.json b/src/data/lanes/maps/data.json deleted file mode 100644 index 8e915a3c..00000000 --- a/src/data/lanes/maps/data.json +++ /dev/null @@ -1 +0,0 @@ -{"lane":{"id":244,"title":"Maps","slug":"maps","created_at":"2023-10-17T17:33:15.000Z","updated_at":"2023-10-17T17:33:15.000Z","rank":3,"featured":false,"query":null,"type":"CollectionLane","collections":[{"id":4809,"uuid":"5cd94760-c52a-012f-bcd4-3c075448cc4b","hades_id":854714,"title":"Maps of North America","slug":"maps-of-north-america","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":3341,"popularity":null,"division_id":55,"created_at":"2014-11-24T23:10:42.000Z","updated_at":"2023-09-08T03:15:30.000Z","image_id":"434086","mss_id":null,"hades_collection_id":149,"alt_image_ids":"5652863,57081097,56791707,57098660,57100151,57484224,57414998,57410759","video_thumbnail":null,"custom_image_id":null},{"id":4751,"uuid":"2600a3f0-c5ec-012f-424e-58d385a7bc34","hades_id":1062588,"title":"Atlases of the United States","slug":"atlases-of-the-united-states","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":3867,"popularity":null,"division_id":55,"created_at":"2014-11-24T22:27:35.000Z","updated_at":"2023-09-08T03:15:28.000Z","image_id":"433879","mss_id":null,"hades_collection_id":null,"alt_image_ids":"1603096,3999419,1582612,3903687,1584559,3905220,2055660,1602754","video_thumbnail":null,"custom_image_id":null},{"id":4771,"uuid":"a1a9d830-c5a6-012f-00ec-58d385a7bc34","hades_id":854843,"title":"Maps of New York City and State","slug":"maps-of-new-york-city-and-state","short_description":"Thousands of maps of North America from the earliest printed portrayals to the close of the 19th century; multiple versions and editions allow for historical comparisons.","description":"\u003cdiv id=\"collectioncontent\"\u003e\t\u003ch3\u003eCollection History\u003c/h3\u003e\u003cp\u003eIn 1997, on the death of Lawrence H. Slaughter, part of his magnificent private map collection came to NYPL from his estate, as a gift from his family. In 2001, the second half of the collection was given to the Map Division. His collection of maps focuses on the Middle Atlantic region, and formed the basis for the exhibition \"In thy map securely saile.\"\u003cbr\u003e \u003cbr\u003e Another private collection came to NYPL in 1990 from the John H. Levine estate, comprised of a wonderful miscellany of antique maps for places around the world, from the Holy Lands to Bermuda, providing additional specimens for this digital presentation. \u003c/p\u003e \u003ch3\u003eBackground\u003c/h3\u003e \u003cp\u003e Established in 1898, from map and atlas collections in the Astor and Lenox libraries, which that year joined to form The New York Public Library, the Map Division now holds some 400,000+ maps, atlases and books about cartography. Support from the National Endowment for the Humanities in 2000-2002 enabled cataloging of the Slaughter gift and the related maps included in this presentation, some of which are described in more detail on the \"American Shores: Maps of the Middle Atlantic Region to 1850\" site below. \u003c/p\u003e \u003ch3\u003eRelated Resources\u003c/h3\u003e\t \u003cp\u003eCampbell, Tony. \u0026#8220;Map History / History of Cartography.\u0026#8221; (c2004) \u0026lt;\u003ca href=\"http://www.maphistory.info/index.html\" target=\"_blank\"\u003ehttp://www.maphistory.info/index.html\u003c/a\u003e\u0026gt;\u003c/p\u003e \u003cp\u003eLibrary of Congress. \u0026#8220;American Memory: Map Collections 1500-2004.\u0026#8221; (2004) \u0026lt;\u003ca href=\"http://memory.loc.gov/ammem/gmdhtml/gmdhome.html\" target=\"_blank\"\u003ehttp://memory.loc.gov/ammem/gmdhtml/gmdhome.html\u003c/a\u003e\u0026gt;\u003c/p\u003e \u003cp\u003eNYPL. \u0026#8220;American Shores: Maps of the Middle Atlantic Region to 1850.\u0026#8221; (c2002) \u0026lt;\u003ca href=\"http://www.nypl.org/research/midatlantic/\" target=\"_blank\"\u003ehttp://www.nypl.org/research/midatlantic/\u003c/a\u003e\u0026gt;\u003c/p\u003e \u003cp\u003e_____ . \u0026#8220;\u0026#8217;In thy map securely saile\u0026#8217;: Maps, Atlases, Charts, and Globes from the Lawrence H. Slaughter Collection.\u0026#8221; (1998) \u0026lt;\u003ca href=\"http://www.nypl.org/research/chss/epo/mapexhib/index.html\" target=\"_blank\"\u003ehttp://www.nypl.org/research/chss/epo/mapexhib/index.html\u003c/a\u003e\u0026gt;\u003cbr\u003e \u003c/p\u003e\u003c/div\u003e","collection_type":null,"num_children":null,"num_items":2048,"popularity":null,"division_id":55,"created_at":"2014-11-24T23:10:02.000Z","updated_at":"2023-10-10T03:23:36.000Z","image_id":"ps_map_195","mss_id":null,"hades_collection_id":149,"alt_image_ids":"5564127,5818207,psnypl_map_297,4066363,ps_map_157,5059792,5060080,5081600","video_thumbnail":null,"custom_image_id":null},{"id":4742,"uuid":"de1dcfb0-c5f6-012f-1dfc-58d385a7bc34","hades_id":1013612,"title":"Atlases of New York City","slug":"atlases-of-new-york-city","short_description":"Over 2,000 maps of New York City, including Manhattan and Brooklyn \"fire insurance maps\" from the 1850s-1860, showing streets, blocks, tax lots, natural and manmade features, buildings, neighborhoods, and more.","description":"\u003cdiv id=\"collectioncontent\"\u003e\t\u003ch3\u003eCollection History\u003c/h3\u003e \u003cp\u003eThis group of maps includes the extent of NYPL's holding of real estate maps by William Perris (d.1862), the English-trained civil engineer and surveyor who originated the format. The Perris maps depict Manhattan and Brooklyn in the 1850s-1860s, when the two boroughs were still separate cities; their sequencing replicates their original published volumes. Commonly called \t\t\"fire insurance maps,\" these maps\t \tshow streets, blocks, tax lots, and current use classifications; they also indicate locations of former streams and related natural features, earlier roads, previous land uses, lot lines, and more. Other makers or publishers over time include Hyde, Hopkins, Bromley, and the most recent and prolific, Sanborn. Today, \"Sanborn\" has become shorthand for \"fire insurance map\" to a wide range of map users in local government and the real estate, hazard insurance and related industries, throughout the nation and the world.\u003c/p\u003e \u003cp\u003eOther maps in this digital presentation include aerial maps of New York City from 1924, \t topographical surveys of Central Park, and atlases covering the Bronx, Long Island, Queens,\t and Staten Island.\u003c/p\u003e \u003cp\u003eDigitization of the \"fire insurance\" group of maps was made possible by a grant from METRO \t (Metropolitan New York Library Council).\u003c/p\u003e \u003ch3\u003eBackground\u003c/h3\u003e \u003cp\u003eThe New York City conflagration of 1835, which destroyed 20 million dollars worth of property and bankrupted many small insurance companies, brought about substantial changes in the way insured property was identified and described; the Perris maps were one of the results. Beginning with Perris's earliest productions, the format of the maps has stayed relatively constant, measuring slightly smaller than 2 x 3 ft., bound or in single sheets. Uniquely, NYPL's Perris map collection contains manuscript notations from previous owners, which possibly include a real estate office. These notations appear as slips of paper pasted to the maps or as direct handwritten revisions; often they indicate multiple house numbers, showing when and where renumbering took place.\u003c/p\u003e \u003cp\u003eBoth Brooklyn and Manhattan of the 1850s are of substantial interest to the entire metropolitan region as the two boroughs are the locus of many early homesteads, prominent family domiciles and leading businesses important for the study of the history of New York City and its other boroughs as well as the surrounding suburbs in New York and adjacent states. Local historians, architects, archaeologists and urban planners are all avid users of historical maps of New York City at the block and lot level. They use the maps to research the history of particular buildings and neighborhoods, for purposes of social history and design as well as for ecological and engineering reasons. Sometimes the maps speak directly about the histories of the companies or homes documented, and sometimes they facilitate research more obliquely.\u003c/p\u003e \u003cp\u003eFor practical reasons, developers and architects are eager to learn why there is water in their new building site, and using these maps they can determine that an underground stream is the problem, or perhaps an old swamp or wetland area, such as that which Canal Street, once a canal, was built to drain. Cemeteries long ago built over are locatable; and brownstone owners can determine that yes, wooden porches did grace the back of the row houses on their block. Scholars also find the maps support their historical detective-work, confirming folklore or triangulating multiple and potentially conflicting accounts.\u003c/p\u003e \u003ch3\u003eRelated Resources\u003c/h3\u003e \u003cp\u003eHoehn, R. Philip, W. S. Peterson-Hunt and E. L. Woodruff. \u003cem\u003eUnion List of Sanborn Fire Insurance Maps Held by Institutions in the United States and Canada\u003c/em\u003e. (c1976-1977) V. 1. Alabama to Missouri --V. 2. Montana to Wyoming; Canada and Mexico. Occasional paper; \\no.2-3; Occasional paper (Western Association of Map Libraries); no. 2. \u003c/p\u003e\t \u003cp\u003eOswald, Diane L. \u003cem\u003eFire Insurance Maps: Their History and Applications\u003c/em\u003e. (c1997)\u003c/p\u003e\t \u003cp\u003eSanborn Map Company. \u003cem\u003eFire Insurance Maps from the Sanborn Map Company Archives: New York City Late 19th Century to 1990; A Microfilm Project of University Publications of America\u003c/em\u003e. (c1997) Research Collections in Urban History and Urban Studies. \u003c/p\u003e\u003c/div\u003e","collection_type":null,"num_children":null,"num_items":11721,"popularity":null,"division_id":55,"created_at":"2014-11-24T22:26:04.000Z","updated_at":"2023-10-06T03:16:03.000Z","image_id":"1516802","mss_id":null,"hades_collection_id":442,"alt_image_ids":"1808826,1810977,1996034,1957398,4051830,1268455,1531825,5223591","video_thumbnail":null,"custom_image_id":"1516805"}]}} \ No newline at end of file diff --git a/src/data/lanes/photographs/data.json b/src/data/lanes/photographs/data.json deleted file mode 100644 index 47b799e5..00000000 --- a/src/data/lanes/photographs/data.json +++ /dev/null @@ -1 +0,0 @@ -{"lane":{"id":242,"title":"Photographs","slug":"photographs","created_at":"2023-10-17T17:33:14.000Z","updated_at":"2023-10-17T17:33:14.000Z","rank":1,"featured":false,"query":null,"type":"CollectionLane","collections":[{"id":205326,"uuid":"d3802d10-f49a-0139-3bff-0242ac110002","hades_id":null,"title":"Friedman-Abeles photographs","slug":"friedman-abeles-photographs","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":17904,"popularity":null,"division_id":46,"created_at":"2022-10-17T03:15:50.000Z","updated_at":"2023-10-11T03:15:17.000Z","image_id":"58361645","mss_id":22538,"hades_collection_id":null,"alt_image_ids":"58498737,58498954,58369813,58367433,58782168,58530917,58622585,58788469","video_thumbnail":null,"custom_image_id":null},{"id":4779,"uuid":"e5462600-c5d9-012f-a6a3-58d385a7bc34","hades_id":2034756,"title":"Farm Security Administration Photographs","slug":"farm-security-administration-photographs","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":24376,"popularity":null,"division_id":54,"created_at":"2014-11-24T23:10:13.000Z","updated_at":"2023-09-08T03:15:10.000Z","image_id":"4001447","mss_id":null,"hades_collection_id":null,"alt_image_ids":"57798849,57934989,58075355,58087449,58110702,58172803,58251467,58477281","video_thumbnail":null,"custom_image_id":"4001311"},{"id":4862,"uuid":"812e5770-c60c-012f-7167-58d385a7bc34","hades_id":100160,"title":"Changing New York","slug":"changing-new-york","short_description":"Hundreds of black and white photographs of New York City by Berenice Abbott (1898-1991) from her \u0026lt;em\u0026gt;Changing New York\u0026lt;/em\u0026gt; Works Progress Administration/ Federal Art Project, plus other work Abbott produced as a project employee.","description":"\u003cdiv id=\"collectioncontent\"\u003e \u003ch3\u003eCollection History\u003c/h3\u003e \u003cp\u003eThe Library's \u003cem\u003eChanging New York\u003c/em\u003e archive contains more than 2,200 duplicate and variant prints representing about three-quarters of the 302 images contained in Abbott's definitive version of the project. The Library's holding also contains images that continue the project's negative numbering but fall outside its scope. These anomalous images are included here for historical and pictorial purposes. The Library's archive contains contact and enlarged prints, primarily from the 1930s, from several sources within NYPL that were united in 1989, supplemented by occasional purchases and generous gifts beginning in 1988 : \u003c/p\u003e \u003cdiv id=\"framelist\" style=\"font-size:0.95em;font-family:Arial,sans-serif;margin-left:10px\"\u003e \u003cul\u003e \u003cli\u003e Two hundred thirty prints acquired from the Federal Art Project in the 1930s by the Local History \u0026amp; Genealogy Division \t \u0026lt;\u003ca href=\"http://www.nypl.org/locations/divisions/milstein\" target=\"_blank\"\u003ehttp://www.nypl.org/locations/divisions/milstein\u003c/a\u003e\u0026gt; for the \u0026quot;New York City Views File,\u0026quot; a self-indexing file of 60,000+ photographs arranged by street location which also appears in Digital Gallery \u003c/li\u003e \u003cli\u003e More than five hundred single and duplicate prints received by the Picture Collection\t \u0026lt;\u003ca href=\"http://www.nypl.org/about/locations/mid-manhattan-library/picture-collection\" target=\"_blank\"\u003ehttp://www.nypl.org/about/locations/mid-manhattan-library/picture-collection\u003c/a\u003e\u0026gt; from the Federal Art Project in the 1930s and arranged in self-indexing files by neighborhood and subject \u003c/li\u003e \u003cli\u003e Over seventeen hundred prints, primarily duplicates, received by the Picture Collection from the files of the Federal Art Project when it disbanded in 1943 \u003c/li\u003e \u003cli\u003e Approximately one hundred prints donated by Ronald A. Kurtz in the late 1980s and early 1990s, primarily portfolio prints and file prints from Abbott's own archive \u003c/li\u003e \u003cli\u003e Occasional prints purchased with the Miriam and Ira D. Wallach Purchase Fund \u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003cp\u003eSupport from the National Endowment for the Arts in 1991-1992 enabled a computerized inventory of the individual prints-titles, dates, sizes, physical characteristics such as various hand-stamps, additional inscriptions, paper weight and types, print quality, and preservation condition. The images also received subject entries at this time. Information extracted from this database describes the particular prints presented in this digital collection .\u003c/p\u003e\u003ch3\u003eBackground\u003c/h3\u003e \u003cp\u003ePhotographer Berenice Abbott proposed \u003cem\u003eChanging New York\u003c/em\u003e, her grand project to document New York City, to the Federal Art Project (FAP) in 1935. The FAP was a Depression-era government program for unemployed artists and workers in related fields such as advertising, graphic design, illustration, photofinishing, and publishing. A changing staff of more than a dozen participated as darkroom printers, field assistants, researchers and clerks on this and other photographic efforts. Abbott's efforts resulted in a book in 1939, in advance of the World's Fair in Flushing Meadow NY, with 97 illustrations and text by Abbott's fellow WPA employee (and life companion), art critic Elizabeth McCausland (1899-1965). At the project's conclusion, the FAP distributed complete sets of Abbott's final 302 images to high schools, libraries and other public institutions in the metropolitan area, plus the State Library in Albany. Throughout the project, exhibitions of the work took place in New York and elsewhere. After decades of lapse, the founding of the National Endowment of the Arts in 1965 revived the FAP's ideals .\u003c/p\u003e \u003cp\u003eAbbott was born and raised in Ohio where she endured an erratic family life. In 1918, after two semesters at Ohio State University, she left to join friends associated with the Provincetown Players, in Greenwich Village. There she met Djuna Barnes, Kenneth Burke, Elsa von Freytag-Loringhoven, Edna St. Vincent Millay, \u003cem\u003eLittle Review\u003c/em\u003e editors Margaret Anderson and Jane Heap, and other influential modernists. From 1919-1921, while studying sculpture, Abbott supported herself as an artist's model, posing for photographers Nikolas Muray and Man Ray. She also met Marcel Duchamp, and participated in Dadaist publications.\u003c/p\u003e \u003cp\u003eAbbott moved to Paris in 1921, where she continued to study sculpture (and in Berlin), and to support herself by modeling. During 1923-1926, she worked as Man Ray's darkroom assistant (he had also relocated to Paris) and tried portrait photography at his suggestion. Abbott's first solo exhibition, in 1926, launched her career. In 1928 she rescued and began to promote Eug\u0026egrave;ne Atget's photographic work, calling his thirty years of Parisian streetscapes and related studies \"realism unadorned. \"\u003c/p\u003e \u003cp\u003eIn 1929 Abbott took a new artistic direction to tackle the scope (if not the scale) of Atget's achievement in New York City. During 1929-38, she photographed urban material culture and the built environment of New York, documenting the old before it was torn down and recording new construction. From 1934-58, she also taught photography at the New School. During 1935-39, Abbott worked as a \"supervisor\" for the Federal Art Project to create \u003cem\u003eChanging New York\u003c/em\u003e (her free-lance work and New School teaching commitment made her ineligible for unemployment relief) .\u003c/p\u003e \u003cp\u003eFrom 1939-60, Abbott photographed scientific subjects, concluding with her notable illustrations for the MIT-originated Physical Sciences Study Committee's revolutionary high school physics course. In 1954, she photographed along the length of US 1; the work never found a publisher. In 1968, Abbott sold the Atget archive to the Museum of Modern Art in New York, and moved permanently to her home in central Maine (bought in 1956 and restored over several decades) .\u003c/p\u003e \u003cp\u003e1970 saw Abbott's first major retrospective exhibition, at the Museum of Modern Art. Her first retrospective portfolio appeared in 1976, and she received the International Center of Photography's Lifetime Achievement Award in 1989. She died at home in Monson, Maine in December 1991 .\u003c/p\u003e \u003ch3\u003eRelated Resources\u003c/h3\u003e \u003cp\u003e Abbott, Berenice and Elizabeth McCausland. \u003cem\u003eChanging New York\u003c/em\u003e. (1939) [reprinted 1973 as \u003cem\u003eNew York in the Thirties\u003c/em\u003e] \u003c!--[CatNYP] B42199505 --\u003e\u003c/p\u003e \u003cp\u003eLevere, Douglas. \u003cem\u003eNew York Changing\u003c/em\u003e. (2004) \u003c/p\u003e \u003cp\u003eMuseum of the City of New York \"Berenice Abbott's Changing New York\" (1998). \u0026lt;\u003ca href=\"http://www.mcny.org/collections/abbott/abbott.htm\" target=\"_blank\"\u003ehttp://www.mcny.org/collections/abbott/abbott.htm\u003c/a\u003e\u0026gt;\u003c/p\u003e\u003cp\u003eNew York Public Library. \u003cem\u003eBerenice Abbott, Photographer: A Modern Vision; A Selection of Photographs and Essays\u003c/em\u003e. (1989) \u003c!--[CatNYP] B24478696--\u003e\u003c/p\u003e \u003cp\u003eO'Neal, Hank. \u003cem\u003eBerenice Abbott, American photographer\u003c/em\u003e. (c1982) \u003c!--[CatNYP] B17971469--\u003e\u003c/p\u003e \u003cp\u003eYochelson, Bonnie. \u003cem\u003eBerenice Abbott: Changing New York\u003c/em\u003e. (c1997) \u003c!--[CatNYP] B49561066--\u003e\u003c/p\u003e\u003c!--- \u003cp\u003e-- 9/13/04\u003cbr\u003e \u003c/p\u003e ---\u003e\u003c/div\u003e","collection_type":null,"num_children":null,"num_items":2183,"popularity":null,"division_id":54,"created_at":"2014-11-24T23:11:32.000Z","updated_at":"2023-09-08T03:15:35.000Z","image_id":"58449605","mss_id":null,"hades_collection_id":160,"alt_image_ids":"58457603,58447245,58452281,58458413,58453692,58456831,58488545,58495219","video_thumbnail":null,"custom_image_id":null},{"id":4880,"uuid":"f7ffc990-c5ae-012f-eb75-58d385a7bc34","hades_id":1066074,"title":"Diana Davies photographs","slug":"diana-davies-photographs","short_description":"Thousands of items from the 1960s-90s document the generations of activists in the United States that fought for civil rights for lesbian, gay, bisexual and transgender people, and struggled against societal stigma to end the AIDS crisis. The collection consists of photographs documenting key activists, organizations, and protests, as well as posters, ephemera, and artwork.","description":"\u003cdiv id=\"collectioncontent\"\u003e \u003ch3\u003eCollection History\u003c/h3\u003e\u003cp\u003e\tGays and lesbians in the United States began to mobilize politically in the 1950s with the founding\tof the Mattachine Society and the Daughters of Bilitis in California. This activist impulse\tspread nationwide, but did not reach critical mass until the late 1960s due to the influence\tof the African American civil rights, feminist, and anti-war student movements. In the \twake of the Stonewall Riots in 1969, the Gay Activists Alliance (GAA) was formed in New\tYork City by an alliance of both veteran and youth activists. GAA, along with the Gay \tLiberation Front (GLF) and Lesbian Feminist activists, made major transformations in the\tpolitics of sexuality and gender in the United States. \u003c/p\u003e\u003cp\u003e\tAmong the many activist groups that worked to archive this history was the International Gay\tInformation Center (IGIC), which grew out of the History Committee of GAA. The IGIC archives \toperated as a community-based repository until 1988, when the organization's directors gave \tthe collection to The New York Public Library. The IGIC archives, along with other archives \tand collections subsequently donated to the Library, such as the Barbara Gittings and Kay \tTobin Lahusen Gay History Papers and Photographs, comprehensively document the gay and lesbian \tcivil rights struggles in New York since the 1950s and have made NYPL one of the most important\tarchives of LGBT history in the United States.\u003c/p\u003e\u003cp\u003e\tDuring the 1980s-90s, activists in New York City drew upon the tactics of these earlier \tLGBT organizations to face the challenge of the AIDS crisis. They renewed these strategies \tin order to fight social stigma, demand treatment and support for people with HIV/AIDS, and\tcreate positive strategies to prevent the spread of the disease. Gay Men's Health Crisis \tand ACT UP were among the most pivotal of these pioneering organizations. Building upon \tthese growing strengths in LGBT history, the Library expanded its focus to document the \thistory of HIV/AIDS activism in New York City, collecting the archives of major organizations, \tactivists, and artists connected with this social movement.\u003c/p\u003e\u003cp\u003e \u003c/p\u003e \u003ch3\u003eRelated Resources\u003c/h3\u003e\u003cp\u003e1969: The Year of Gay Liberation \u0026lt;\u003ca href=\"http://legacy.www.nypl.org/research/chss/1969/\"\u003ehttp://legacy.www.nypl.org/research/chss/1969/\u003c/a\u003e\u0026gt; \u003c/p\u003e\u003cp\u003eCarter, David. \u003cem\u003eStonewall: the Riots that Sparked the Gay Revolution\u003c/em\u003e. New York: St. Martin's Press, 2004. \u003c/p\u003e\u003cp\u003eClendinen, Dudley. \u003cem\u003eOut for Good: the Struggle to Build a Gay Rights Movement in America\u003c/em\u003e. New York: Simon \u0026amp; Schuster, 1999. \u003c/p\u003e\u003cp\u003eCrimp, Douglas. \u003cem\u003eAIDS Demo Graphics\u003c/em\u003e. Seattle: Bay Press, 1990. \u003c/p\u003e\u003cp\u003eDuberman, Martin B. \u003cem\u003eStonewall\u003c/em\u003e. New York: Dutton, 1993. \u003c/p\u003e\u003cp\u003eEisenbach, David. \u003cem\u003eGay Power: An American Revolution\u003c/em\u003e. New York: Carroll \u0026amp; Graf, 2006. \u003c/p\u003e\u003cp\u003eGould, Deborah. \u003cem\u003eMoving Politics: Emotion and ACT UP's Fight against AIDS\u003c/em\u003e. Chicago: University Of Chicago Press, 2009. \u003c/p\u003e\u003cp\u003eShilts, Randy. \u003cem\u003eAnd the Band Played On: Politics, People, and the AIDS epidemic\u003c/em\u003e. New York: St Martin's Griffin, 2007. \u003c/p\u003e\u003c/div\u003e","collection_type":null,"num_children":null,"num_items":3837,"popularity":null,"division_id":57,"created_at":"2014-11-24T23:11:46.000Z","updated_at":"2023-09-08T03:15:27.000Z","image_id":"58103445","mss_id":732,"hades_collection_id":662,"alt_image_ids":"57977879,58050644,58081233,58077315,58083434,58086590,58096456,58097081","video_thumbnail":null,"custom_image_id":null}]}} \ No newline at end of file diff --git a/src/data/lanes/prints-and-drawings/data.json b/src/data/lanes/prints-and-drawings/data.json deleted file mode 100644 index 92e836d0..00000000 --- a/src/data/lanes/prints-and-drawings/data.json +++ /dev/null @@ -1 +0,0 @@ -{"lane":{"id":242,"title":"Photographs","slug":"photographs","created_at":"2023-10-17T17:33:14.000Z","updated_at":"2023-10-17T17:33:14.000Z","rank":2,"featured":false,"query":null,"type":"CollectionLane","collections":[{"id":205326,"uuid":"d3802d10-f49a-0139-3bff-0242ac110002","hades_id":null,"title":"Friedman-Abeles photographs","slug":"friedman-abeles-photographs","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":17904,"popularity":null,"division_id":46,"created_at":"2022-10-17T03:15:50.000Z","updated_at":"2023-10-11T03:15:17.000Z","image_id":"58361645","mss_id":22538,"hades_collection_id":null,"alt_image_ids":"58498737,58498954,58369813,58367433,58782168,58530917,58622585,58788469","video_thumbnail":null,"custom_image_id":null},{"id":4779,"uuid":"e5462600-c5d9-012f-a6a3-58d385a7bc34","hades_id":2034756,"title":"Farm Security Administration Photographs","slug":"farm-security-administration-photographs","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":24376,"popularity":null,"division_id":54,"created_at":"2014-11-24T23:10:13.000Z","updated_at":"2023-09-08T03:15:10.000Z","image_id":"4001447","mss_id":null,"hades_collection_id":null,"alt_image_ids":"57798849,57934989,58075355,58087449,58110702,58172803,58251467,58477281","video_thumbnail":null,"custom_image_id":"4001311"},{"id":4862,"uuid":"812e5770-c60c-012f-7167-58d385a7bc34","hades_id":100160,"title":"Changing New York","slug":"changing-new-york","short_description":"Hundreds of black and white photographs of New York City by Berenice Abbott (1898-1991) from her \u0026lt;em\u0026gt;Changing New York\u0026lt;/em\u0026gt; Works Progress Administration/ Federal Art Project, plus other work Abbott produced as a project employee.","description":"\u003cdiv id=\"collectioncontent\"\u003e \u003ch3\u003eCollection History\u003c/h3\u003e \u003cp\u003eThe Library's \u003cem\u003eChanging New York\u003c/em\u003e archive contains more than 2,200 duplicate and variant prints representing about three-quarters of the 302 images contained in Abbott's definitive version of the project. The Library's holding also contains images that continue the project's negative numbering but fall outside its scope. These anomalous images are included here for historical and pictorial purposes. The Library's archive contains contact and enlarged prints, primarily from the 1930s, from several sources within NYPL that were united in 1989, supplemented by occasional purchases and generous gifts beginning in 1988 : \u003c/p\u003e \u003cdiv id=\"framelist\" style=\"font-size:0.95em;font-family:Arial,sans-serif;margin-left:10px\"\u003e \u003cul\u003e \u003cli\u003e Two hundred thirty prints acquired from the Federal Art Project in the 1930s by the Local History \u0026amp; Genealogy Division \t \u0026lt;\u003ca href=\"http://www.nypl.org/locations/divisions/milstein\" target=\"_blank\"\u003ehttp://www.nypl.org/locations/divisions/milstein\u003c/a\u003e\u0026gt; for the \u0026quot;New York City Views File,\u0026quot; a self-indexing file of 60,000+ photographs arranged by street location which also appears in Digital Gallery \u003c/li\u003e \u003cli\u003e More than five hundred single and duplicate prints received by the Picture Collection\t \u0026lt;\u003ca href=\"http://www.nypl.org/about/locations/mid-manhattan-library/picture-collection\" target=\"_blank\"\u003ehttp://www.nypl.org/about/locations/mid-manhattan-library/picture-collection\u003c/a\u003e\u0026gt; from the Federal Art Project in the 1930s and arranged in self-indexing files by neighborhood and subject \u003c/li\u003e \u003cli\u003e Over seventeen hundred prints, primarily duplicates, received by the Picture Collection from the files of the Federal Art Project when it disbanded in 1943 \u003c/li\u003e \u003cli\u003e Approximately one hundred prints donated by Ronald A. Kurtz in the late 1980s and early 1990s, primarily portfolio prints and file prints from Abbott's own archive \u003c/li\u003e \u003cli\u003e Occasional prints purchased with the Miriam and Ira D. Wallach Purchase Fund \u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003cp\u003eSupport from the National Endowment for the Arts in 1991-1992 enabled a computerized inventory of the individual prints-titles, dates, sizes, physical characteristics such as various hand-stamps, additional inscriptions, paper weight and types, print quality, and preservation condition. The images also received subject entries at this time. Information extracted from this database describes the particular prints presented in this digital collection .\u003c/p\u003e\u003ch3\u003eBackground\u003c/h3\u003e \u003cp\u003ePhotographer Berenice Abbott proposed \u003cem\u003eChanging New York\u003c/em\u003e, her grand project to document New York City, to the Federal Art Project (FAP) in 1935. The FAP was a Depression-era government program for unemployed artists and workers in related fields such as advertising, graphic design, illustration, photofinishing, and publishing. A changing staff of more than a dozen participated as darkroom printers, field assistants, researchers and clerks on this and other photographic efforts. Abbott's efforts resulted in a book in 1939, in advance of the World's Fair in Flushing Meadow NY, with 97 illustrations and text by Abbott's fellow WPA employee (and life companion), art critic Elizabeth McCausland (1899-1965). At the project's conclusion, the FAP distributed complete sets of Abbott's final 302 images to high schools, libraries and other public institutions in the metropolitan area, plus the State Library in Albany. Throughout the project, exhibitions of the work took place in New York and elsewhere. After decades of lapse, the founding of the National Endowment of the Arts in 1965 revived the FAP's ideals .\u003c/p\u003e \u003cp\u003eAbbott was born and raised in Ohio where she endured an erratic family life. In 1918, after two semesters at Ohio State University, she left to join friends associated with the Provincetown Players, in Greenwich Village. There she met Djuna Barnes, Kenneth Burke, Elsa von Freytag-Loringhoven, Edna St. Vincent Millay, \u003cem\u003eLittle Review\u003c/em\u003e editors Margaret Anderson and Jane Heap, and other influential modernists. From 1919-1921, while studying sculpture, Abbott supported herself as an artist's model, posing for photographers Nikolas Muray and Man Ray. She also met Marcel Duchamp, and participated in Dadaist publications.\u003c/p\u003e \u003cp\u003eAbbott moved to Paris in 1921, where she continued to study sculpture (and in Berlin), and to support herself by modeling. During 1923-1926, she worked as Man Ray's darkroom assistant (he had also relocated to Paris) and tried portrait photography at his suggestion. Abbott's first solo exhibition, in 1926, launched her career. In 1928 she rescued and began to promote Eug\u0026egrave;ne Atget's photographic work, calling his thirty years of Parisian streetscapes and related studies \"realism unadorned. \"\u003c/p\u003e \u003cp\u003eIn 1929 Abbott took a new artistic direction to tackle the scope (if not the scale) of Atget's achievement in New York City. During 1929-38, she photographed urban material culture and the built environment of New York, documenting the old before it was torn down and recording new construction. From 1934-58, she also taught photography at the New School. During 1935-39, Abbott worked as a \"supervisor\" for the Federal Art Project to create \u003cem\u003eChanging New York\u003c/em\u003e (her free-lance work and New School teaching commitment made her ineligible for unemployment relief) .\u003c/p\u003e \u003cp\u003eFrom 1939-60, Abbott photographed scientific subjects, concluding with her notable illustrations for the MIT-originated Physical Sciences Study Committee's revolutionary high school physics course. In 1954, she photographed along the length of US 1; the work never found a publisher. In 1968, Abbott sold the Atget archive to the Museum of Modern Art in New York, and moved permanently to her home in central Maine (bought in 1956 and restored over several decades) .\u003c/p\u003e \u003cp\u003e1970 saw Abbott's first major retrospective exhibition, at the Museum of Modern Art. Her first retrospective portfolio appeared in 1976, and she received the International Center of Photography's Lifetime Achievement Award in 1989. She died at home in Monson, Maine in December 1991 .\u003c/p\u003e \u003ch3\u003eRelated Resources\u003c/h3\u003e \u003cp\u003e Abbott, Berenice and Elizabeth McCausland. \u003cem\u003eChanging New York\u003c/em\u003e. (1939) [reprinted 1973 as \u003cem\u003eNew York in the Thirties\u003c/em\u003e] \u003c!--[CatNYP] B42199505 --\u003e\u003c/p\u003e \u003cp\u003eLevere, Douglas. \u003cem\u003eNew York Changing\u003c/em\u003e. (2004) \u003c/p\u003e \u003cp\u003eMuseum of the City of New York \"Berenice Abbott's Changing New York\" (1998). \u0026lt;\u003ca href=\"http://www.mcny.org/collections/abbott/abbott.htm\" target=\"_blank\"\u003ehttp://www.mcny.org/collections/abbott/abbott.htm\u003c/a\u003e\u0026gt;\u003c/p\u003e\u003cp\u003eNew York Public Library. \u003cem\u003eBerenice Abbott, Photographer: A Modern Vision; A Selection of Photographs and Essays\u003c/em\u003e. (1989) \u003c!--[CatNYP] B24478696--\u003e\u003c/p\u003e \u003cp\u003eO'Neal, Hank. \u003cem\u003eBerenice Abbott, American photographer\u003c/em\u003e. (c1982) \u003c!--[CatNYP] B17971469--\u003e\u003c/p\u003e \u003cp\u003eYochelson, Bonnie. \u003cem\u003eBerenice Abbott: Changing New York\u003c/em\u003e. (c1997) \u003c!--[CatNYP] B49561066--\u003e\u003c/p\u003e\u003c!--- \u003cp\u003e-- 9/13/04\u003cbr\u003e \u003c/p\u003e ---\u003e\u003c/div\u003e","collection_type":null,"num_children":null,"num_items":2183,"popularity":null,"division_id":54,"created_at":"2014-11-24T23:11:32.000Z","updated_at":"2023-09-08T03:15:35.000Z","image_id":"58449605","mss_id":null,"hades_collection_id":160,"alt_image_ids":"58457603,58447245,58452281,58458413,58453692,58456831,58488545,58495219","video_thumbnail":null,"custom_image_id":null},{"id":4880,"uuid":"f7ffc990-c5ae-012f-eb75-58d385a7bc34","hades_id":1066074,"title":"Diana Davies photographs","slug":"diana-davies-photographs","short_description":"Thousands of items from the 1960s-90s document the generations of activists in the United States that fought for civil rights for lesbian, gay, bisexual and transgender people, and struggled against societal stigma to end the AIDS crisis. The collection consists of photographs documenting key activists, organizations, and protests, as well as posters, ephemera, and artwork.","description":"\u003cdiv id=\"collectioncontent\"\u003e \u003ch3\u003eCollection History\u003c/h3\u003e\u003cp\u003e\tGays and lesbians in the United States began to mobilize politically in the 1950s with the founding\tof the Mattachine Society and the Daughters of Bilitis in California. This activist impulse\tspread nationwide, but did not reach critical mass until the late 1960s due to the influence\tof the African American civil rights, feminist, and anti-war student movements. In the \twake of the Stonewall Riots in 1969, the Gay Activists Alliance (GAA) was formed in New\tYork City by an alliance of both veteran and youth activists. GAA, along with the Gay \tLiberation Front (GLF) and Lesbian Feminist activists, made major transformations in the\tpolitics of sexuality and gender in the United States. \u003c/p\u003e\u003cp\u003e\tAmong the many activist groups that worked to archive this history was the International Gay\tInformation Center (IGIC), which grew out of the History Committee of GAA. The IGIC archives \toperated as a community-based repository until 1988, when the organization's directors gave \tthe collection to The New York Public Library. The IGIC archives, along with other archives \tand collections subsequently donated to the Library, such as the Barbara Gittings and Kay \tTobin Lahusen Gay History Papers and Photographs, comprehensively document the gay and lesbian \tcivil rights struggles in New York since the 1950s and have made NYPL one of the most important\tarchives of LGBT history in the United States.\u003c/p\u003e\u003cp\u003e\tDuring the 1980s-90s, activists in New York City drew upon the tactics of these earlier \tLGBT organizations to face the challenge of the AIDS crisis. They renewed these strategies \tin order to fight social stigma, demand treatment and support for people with HIV/AIDS, and\tcreate positive strategies to prevent the spread of the disease. Gay Men's Health Crisis \tand ACT UP were among the most pivotal of these pioneering organizations. Building upon \tthese growing strengths in LGBT history, the Library expanded its focus to document the \thistory of HIV/AIDS activism in New York City, collecting the archives of major organizations, \tactivists, and artists connected with this social movement.\u003c/p\u003e\u003cp\u003e \u003c/p\u003e \u003ch3\u003eRelated Resources\u003c/h3\u003e\u003cp\u003e1969: The Year of Gay Liberation \u0026lt;\u003ca href=\"http://legacy.www.nypl.org/research/chss/1969/\"\u003ehttp://legacy.www.nypl.org/research/chss/1969/\u003c/a\u003e\u0026gt; \u003c/p\u003e\u003cp\u003eCarter, David. \u003cem\u003eStonewall: the Riots that Sparked the Gay Revolution\u003c/em\u003e. New York: St. Martin's Press, 2004. \u003c/p\u003e\u003cp\u003eClendinen, Dudley. \u003cem\u003eOut for Good: the Struggle to Build a Gay Rights Movement in America\u003c/em\u003e. New York: Simon \u0026amp; Schuster, 1999. \u003c/p\u003e\u003cp\u003eCrimp, Douglas. \u003cem\u003eAIDS Demo Graphics\u003c/em\u003e. Seattle: Bay Press, 1990. \u003c/p\u003e\u003cp\u003eDuberman, Martin B. \u003cem\u003eStonewall\u003c/em\u003e. New York: Dutton, 1993. \u003c/p\u003e\u003cp\u003eEisenbach, David. \u003cem\u003eGay Power: An American Revolution\u003c/em\u003e. New York: Carroll \u0026amp; Graf, 2006. \u003c/p\u003e\u003cp\u003eGould, Deborah. \u003cem\u003eMoving Politics: Emotion and ACT UP's Fight against AIDS\u003c/em\u003e. Chicago: University Of Chicago Press, 2009. \u003c/p\u003e\u003cp\u003eShilts, Randy. \u003cem\u003eAnd the Band Played On: Politics, People, and the AIDS epidemic\u003c/em\u003e. New York: St Martin's Griffin, 2007. \u003c/p\u003e\u003c/div\u003e","collection_type":null,"num_children":null,"num_items":3837,"popularity":null,"division_id":57,"created_at":"2014-11-24T23:11:46.000Z","updated_at":"2023-09-08T03:15:27.000Z","image_id":"58103445","mss_id":732,"hades_collection_id":662,"alt_image_ids":"57977879,58050644,58081233,58077315,58083434,58086590,58096456,58097081","video_thumbnail":null,"custom_image_id":null}]}} \ No newline at end of file diff --git a/src/data/lanes/recently-digitized-collections/data.json b/src/data/lanes/recently-digitized-collections/data.json deleted file mode 100644 index 55c4b157..00000000 --- a/src/data/lanes/recently-digitized-collections/data.json +++ /dev/null @@ -1 +0,0 @@ -{"lane":{"id":241,"title":"Recently digitized collections","slug":"recently-digitized-collections","created_at":"2023-10-17T17:33:14.000Z","updated_at":"2023-10-17T17:33:14.000Z","rank":0,"featured":false,"query":null,"type":"CollectionLane","collections":[{"id":18707,"uuid":"60932400-20f2-0138-8583-05c43d448773","hades_id":null,"title":"Posada Collection","slug":"posada-collection","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":665,"popularity":null,"division_id":58,"created_at":"2021-10-05T19:19:12.000Z","updated_at":"2022-09-09T03:19:20.000Z","image_id":"58270295","mss_id":null,"hades_collection_id":null,"alt_image_ids":"58269599,58276093,58276329,58280347,58280545,58280717,58271355,58340525","video_thumbnail":null,"custom_image_id":null},{"id":14971,"uuid":"724303e0-c6bb-012f-afbd-58d385a7bc34","hades_id":744249,"title":"MAVO","slug":"mavo","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":25,"popularity":null,"division_id":59,"created_at":"2020-02-08T04:37:11.000Z","updated_at":"2020-09-21T03:31:00.000Z","image_id":"1408140","mss_id":null,"hades_collection_id":null,"alt_image_ids":"1408142,1408144,1408151,1408153,1408155,1408157,1408159,1408161","video_thumbnail":null,"custom_image_id":null},{"id":314131,"uuid":"6b6532b0-5df7-013b-36f8-0242ac110002","hades_id":null,"title":"Austin Hansen photograph collection","slug":"austin-hansen-photograph-collection","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":84,"popularity":null,"division_id":52,"created_at":"2022-12-24T04:00:43.000Z","updated_at":"2023-03-15T03:22:00.000Z","image_id":"58300976","mss_id":533511,"hades_collection_id":null,"alt_image_ids":"58482546,58301004,1225939,58482552,1820620,58300966,1212148,5062802","video_thumbnail":null,"custom_image_id":null},{"id":237565,"uuid":"5b996640-c31c-0139-0bac-0242ac110004","hades_id":null,"title":"Arthur Alfonso Schomburg papers","slug":"arthur-alfonso-schomburg-papers","short_description":null,"description":null,"collection_type":null,"num_children":null,"num_items":1887,"popularity":null,"division_id":49,"created_at":"2022-11-09T03:49:45.000Z","updated_at":"2023-10-13T03:14:51.000Z","image_id":"58593610","mss_id":20639,"hades_collection_id":null,"alt_image_ids":"58548902,58675188,58676692,58520863,58665813,58692657,58744680,58747491","video_thumbnail":null,"custom_image_id":null}]}} \ No newline at end of file diff --git a/src/pages/api/lanes/[slug].ts b/src/pages/api/lanes/[slug].ts index 961952e1..97a8d655 100644 --- a/src/pages/api/lanes/[slug].ts +++ b/src/pages/api/lanes/[slug].ts @@ -1,32 +1,25 @@ -import path from "path"; -import { promises as fs } from "fs"; +import lanesData from "@/data/lanes.json"; import type { NextApiRequest, NextApiResponse } from "next"; -export default async function handler( +export default async function slugHandler( request: NextApiRequest, response: NextApiResponse ) { - const { slug } = request.query; + const { method, query } = request; + + const slug = query.slug as string; - // Find the absolute path of the json directory for the lanes/[...slug].json file - const lanesJsonDirectory = path.join( - process.cwd(), - `/src/data/lanes/${slug}` + const slugData = lanesData.lanes.find( + (lane) => lane[slug] !== undefined ); - // Read the json data file data.json - const fileContents = await fs.readFile( - lanesJsonDirectory + "/data.json", - "utf8" - ); - - const parsedData = JSON.parse(fileContents); - - const { method } = request; if (method === "GET") { - response.status(200).json(parsedData); + if (slugData) { + return response.status(200).json(slugData); + } else { + return response.status(404).json({ error: 'Lane not found' }); + } } -} - +}; -// http://localhost:3000/api/lanes/:slug \ No newline at end of file +// http://localhost:3000/api/lanes/[slug] \ No newline at end of file From d195d51bcd13b9f352c4b81f19f1cada91ed930e Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:41:17 -0400 Subject: [PATCH 3/8] Added testing but 404 failing --- __tests__/[slug].test.tsx | 33 +++++++++++++++++++++++++++------ src/pages/api/lanes/[slug].ts | 2 -- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/__tests__/[slug].test.tsx b/__tests__/[slug].test.tsx index 1d770bea..e697779a 100644 --- a/__tests__/[slug].test.tsx +++ b/__tests__/[slug].test.tsx @@ -1,17 +1,17 @@ import slugHandler from "@/pages/api/lanes"; -import { NextApiRequest } from 'next'; +import { NextApiRequest } from "next"; -it('should respond with 200 status and lanes data for a GET request', () => { +it("should respond with 200 status and lanes data for a GET request", () => { const request: NextApiRequest = { - method: 'GET', + method: "GET", query: { slug: "maps", - } + }, } as unknown as NextApiRequest; const mockResponse: any = { status: jest.fn(function () { - return this; + return this; }), json: jest.fn(), }; @@ -19,4 +19,25 @@ it('should respond with 200 status and lanes data for a GET request', () => { slugHandler(request, mockResponse); expect(mockResponse.status).toHaveBeenCalledWith(200); -}) \ No newline at end of file +}); + +it("should respond with an error for nonexistent slugs", () => { + const request: NextApiRequest = { + method: "GET", + query: { + slug: "not-a-slug", + }, + } as unknown as NextApiRequest; + + const mockResponse: any = { + status: jest.fn(function () { + return this; + }), + json: jest.fn(), + }; + + slugHandler(request, mockResponse); + + expect(mockResponse.status).toHaveBeenCalledWith(404); + expect(mockResponse.json).toHaveBeenCalledWith({ error: "Lane not found" }); +}); diff --git a/src/pages/api/lanes/[slug].ts b/src/pages/api/lanes/[slug].ts index 3f9158be..17a008e9 100644 --- a/src/pages/api/lanes/[slug].ts +++ b/src/pages/api/lanes/[slug].ts @@ -6,9 +6,7 @@ export default async function slugHandler( response: NextApiResponse ) { const { method, query } = request; - const slug = query.slug as string; - const slugData = lanesData.lanes.find((lane) => lane[slug] !== undefined); if (method === "GET") { From 19aed2913bb5815afd417da5c8cee384f80204ad Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:28:19 -0400 Subject: [PATCH 4/8] Featured items endpoint --- __tests__/featured-items.test.tsx | 39 +++++++++++ src/data/featured/featured-items.json | 95 +++++++++++++++++++++++++++ src/pages/api/lanes/items.ts | 19 ++++++ 3 files changed, 153 insertions(+) create mode 100644 __tests__/featured-items.test.tsx create mode 100644 src/data/featured/featured-items.json create mode 100644 src/pages/api/lanes/items.ts diff --git a/__tests__/featured-items.test.tsx b/__tests__/featured-items.test.tsx new file mode 100644 index 00000000..fcf96e3f --- /dev/null +++ b/__tests__/featured-items.test.tsx @@ -0,0 +1,39 @@ +import { getItemsData } from "@/pages/api/lanes/items"; +import itemsDataHandler from "@/pages/api/lanes/items"; +import { NextApiRequest } from "next"; + +describe("Featured items API endpoint handler", () => { + it("should respond with 200 status and items data for a GET request", () => { + const request: NextApiRequest = { + method: "GET", + } as NextApiRequest; + + const mockResponse: any = { + status: jest.fn(function () { + return this; + }), + json: jest.fn(), + }; + + itemsDataHandler(request, mockResponse); + + expect(mockResponse.status).toHaveBeenCalledWith(200); + expect(mockResponse.json).toHaveBeenCalledWith(getItemsData()); + }); + + it("should respond with an error for non-GET requests", () => { + const request: NextApiRequest = { + method: "POST", + } as NextApiRequest; + + const mockResponse: any = { + status: jest.fn(function () { + return this; + }), + }; + + itemsDataHandler(request, mockResponse); + + expect(mockResponse.status).not.toHaveBeenCalledWith(200); + }); +}); diff --git a/src/data/featured/featured-items.json b/src/data/featured/featured-items.json new file mode 100644 index 00000000..59a9b679 --- /dev/null +++ b/src/data/featured/featured-items.json @@ -0,0 +1,95 @@ +{ + "featuredItems": { + "images": [ + "105180.jpg", + "105196.jpg", + "105224.jpg", + "105226.jpg", + "1108684.jpg", + "1161044.jpg", + "1161045.jpg", + "1221632.jpg", + "1260009.jpg", + "1269908.jpg", + "1536497.jpg", + "1536861.jpg", + "1549431.jpg", + "1557804.jpg", + "1558053.jpg", + "1657176.jpg", + "1693502.jpg", + "4000175.jpg", + "405476.jpg", + "417074.jpg", + "419720.jpg", + "433221.jpg", + "433223.jpg", + "434110.jpg", + "434408.jpg", + "464341.jpg", + "465012.jpg", + "482599.jpg", + "482603.jpg", + "482752.jpg", + "482815.jpg", + "483644.jpg", + "5013067.jpg", + "5082781.jpg", + "5086214.jpg", + "5104191.jpg", + "5131004.jpg", + "5150304.jpg", + "5164274.jpg", + "5164604.jpg", + "5164631.jpg", + "5179778.jpg", + "5179798.jpg", + "5180605.jpg", + "5273165.jpg", + "5339958.jpg", + "53926.jpg", + "54528.jpg", + "54795.jpg", + "700179F.jpg", + "79781.jpg", + "79849.jpg", + "836151.jpg", + "G91F075_038F.jpg", + "M_1260849.jpg", + "T000725.jpg", + "nypl_mss_901.jpg", + "ps_mss_831.jpg", + "ps_prn_cd31_456.jpg", + "ps_prn_cd32_461.jpg", + "psnypl_dan_1757.jpg", + "psnypl_mss_1228.jpg", + "psnypl_spn_610.jpg" + ], + "noIndex": { + "images": [ + "105069.jpg", + "1558052.jpg", + "1582228.jpg", + "435037.jpg", + "465016.jpg", + "482602.jpg", + "5002508.jpg", + "5013067.jpg", + "5086214.jpg", + "5164590.jpg", + "5164599.jpg", + "5164608.jpg", + "5316870.jpg", + "53901.jpg", + "87300.jpg", + "G91F380_080F.jpg", + "den_1409v.jpg", + "psnypl_the_4323.jpg", + "swope_246124.jpg", + "th-16090.jpg", + "trouvelot_003.jpg", + "trouvelot_010.jpg" + ] + } + } +} diff --git a/src/pages/api/lanes/items.ts b/src/pages/api/lanes/items.ts new file mode 100644 index 00000000..08a29442 --- /dev/null +++ b/src/pages/api/lanes/items.ts @@ -0,0 +1,19 @@ +import itemsData from "@/data/featured/featured-items.json"; +import type { NextApiRequest, NextApiResponse } from "next"; + +export const getItemsData = () => { + return itemsData; +}; + +const itemsDataHandler = ( + request: NextApiRequest, + response: NextApiResponse +) => { + const { method } = request; + if (method === "GET") { + return response.status(200).json(getItemsData()); + } +}; +export default itemsDataHandler; + +// http://localhost:3000/api/lanes/items From 5e98df685a79ba37536ea2e9b03ac2af481dd183 Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:31:23 -0400 Subject: [PATCH 5/8] readme --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 72be121f..ee3ba361 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ The following endpoints are currently available at http://localhost:3000/api/lan - [/photographs](http://localhost:3000/api/lanes/photographs) - [/prints-and-drawings](http://localhost:3000/api/lanes/prints-and-drawings) - [/recently-digitized-collections](http://localhost:3000/api/lanes/recently-digitized-collections) +- [/items](http://localhost:3000/api/lanes/items) ### Individual Lane - GET /api/lanes/[...slug] @@ -81,6 +82,12 @@ Returns respective JSON for that lane. Returns JSON containing all lanes' metadata. +### Featured Items - GET /api/lanes/items + +--- + +Returns JSON containing all featured items' image data. + #### Note for future These endpoints will change (as DC homepage is built out) to be dynamically generated from another source instead of getting static data. From 5206b665058c98c2800d82814f5538446ebbdea6 Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:00:07 -0400 Subject: [PATCH 6/8] Fixed --- __tests__/{ => api/lanes}/[slug].test.tsx | 2 +- __tests__/{ => api/lanes}/lanes.test.tsx | 0 __tests__/{index.test.tsx => homepage.test.tsx} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename __tests__/{ => api/lanes}/[slug].test.tsx (94%) rename __tests__/{ => api/lanes}/lanes.test.tsx (100%) rename __tests__/{index.test.tsx => homepage.test.tsx} (100%) diff --git a/__tests__/[slug].test.tsx b/__tests__/api/lanes/[slug].test.tsx similarity index 94% rename from __tests__/[slug].test.tsx rename to __tests__/api/lanes/[slug].test.tsx index e697779a..0050ef26 100644 --- a/__tests__/[slug].test.tsx +++ b/__tests__/api/lanes/[slug].test.tsx @@ -1,4 +1,4 @@ -import slugHandler from "@/pages/api/lanes"; +import slugHandler from "@/pages/api/lanes/[slug]"; import { NextApiRequest } from "next"; it("should respond with 200 status and lanes data for a GET request", () => { diff --git a/__tests__/lanes.test.tsx b/__tests__/api/lanes/lanes.test.tsx similarity index 100% rename from __tests__/lanes.test.tsx rename to __tests__/api/lanes/lanes.test.tsx diff --git a/__tests__/index.test.tsx b/__tests__/homepage.test.tsx similarity index 100% rename from __tests__/index.test.tsx rename to __tests__/homepage.test.tsx From ba3c35bc8f0c24a4646a15ac6711d3485e7c2e7a Mon Sep 17 00:00:00 2001 From: Alessandra Vertrees Date: Tue, 24 Oct 2023 09:34:29 -0400 Subject: [PATCH 7/8] add robots.txt file and code fom ticket --- CHANGELOG.md | 2 +- public/robots.txt | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 public/robots.txt diff --git a/CHANGELOG.md b/CHANGELOG.md index aad2db90..a8a12325 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update version of NYPL Reservoir to 2.0.1 ### Added - +- Added spider block script (DR-2518) - Created Dockerfile and docker-compose.yml files. (DR-2446) - Created Next.js 13 app using NYPL Reservoir and TS 4.9.5. (DR-2444) diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 00000000..fd95a506 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,8 @@ +User-agent: Bytedance +Disallow: / + +User-agent: Bytespider +Disallow: / + +User-agent: GPTBot +Disallow: / \ No newline at end of file From 032e003e10d546c8a3b773574118e7da248f2e3b Mon Sep 17 00:00:00 2001 From: Emma Mansell <73774046+7emansell@users.noreply.github.com> Date: Tue, 24 Oct 2023 10:24:51 -0400 Subject: [PATCH 8/8] Refactored --- README.md | 2 +- __tests__/{featured-items.test.tsx => featureditems.test.tsx} | 4 ++-- src/data/{featured/featured-items.json => featureditems.json} | 0 src/pages/api/{lanes/items.ts => featuredItems.ts} | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename __tests__/{featured-items.test.tsx => featureditems.test.tsx} (89%) rename src/data/{featured/featured-items.json => featureditems.json} (100%) rename src/pages/api/{lanes/items.ts => featuredItems.ts} (78%) diff --git a/README.md b/README.md index ee3ba361..81e3215e 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Returns respective JSON for that lane. Returns JSON containing all lanes' metadata. -### Featured Items - GET /api/lanes/items +### Featured Items - GET /api/featuredItems --- diff --git a/__tests__/featured-items.test.tsx b/__tests__/featureditems.test.tsx similarity index 89% rename from __tests__/featured-items.test.tsx rename to __tests__/featureditems.test.tsx index fcf96e3f..af7786e3 100644 --- a/__tests__/featured-items.test.tsx +++ b/__tests__/featureditems.test.tsx @@ -1,5 +1,5 @@ -import { getItemsData } from "@/pages/api/lanes/items"; -import itemsDataHandler from "@/pages/api/lanes/items"; +import { getItemsData } from "@/pages/api/featuredItems"; +import itemsDataHandler from "@/pages/api/featuredItems"; import { NextApiRequest } from "next"; describe("Featured items API endpoint handler", () => { diff --git a/src/data/featured/featured-items.json b/src/data/featureditems.json similarity index 100% rename from src/data/featured/featured-items.json rename to src/data/featureditems.json diff --git a/src/pages/api/lanes/items.ts b/src/pages/api/featuredItems.ts similarity index 78% rename from src/pages/api/lanes/items.ts rename to src/pages/api/featuredItems.ts index 08a29442..2dfd189f 100644 --- a/src/pages/api/lanes/items.ts +++ b/src/pages/api/featuredItems.ts @@ -1,4 +1,4 @@ -import itemsData from "@/data/featured/featured-items.json"; +import itemsData from "@/data/featureditems.json"; import type { NextApiRequest, NextApiResponse } from "next"; export const getItemsData = () => { @@ -16,4 +16,4 @@ const itemsDataHandler = ( }; export default itemsDataHandler; -// http://localhost:3000/api/lanes/items +// http://localhost:3000/api/featuredItems