diff --git a/README.md b/README.md index 72be121f..909d1dd1 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 deleted file mode 100644 index a42d7fa2..00000000 --- a/__tests__/[slug].test.tsx +++ /dev/null @@ -1,57 +0,0 @@ -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); - }); -}); diff --git a/__tests__/api/lanes/[slug].test.tsx b/__tests__/api/lanes/[slug].test.tsx new file mode 100644 index 00000000..0050ef26 --- /dev/null +++ b/__tests__/api/lanes/[slug].test.tsx @@ -0,0 +1,43 @@ +import slugHandler from "@/pages/api/lanes/[slug]"; +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); +}); + +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/__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 diff --git a/src/data/lanes.json b/src/data/lanes.json index e891a50e..e058c73f 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": null, - "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": null, - "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": null, - "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": null, - "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": null, - "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": null, - "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": null, - "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" + } + ] } - } -} + } + ] + } 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 a943b9d3..17a008e9 100644 --- a/src/pages/api/lanes/[slug].ts +++ b/src/pages/api/lanes/[slug].ts @@ -1,30 +1,20 @@ -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; + const slugData = lanesData.lanes.find((lane) => lane[slug] !== undefined); - // Find the absolute path of the json directory for the lanes/[...slug].json file - const lanesJsonDirectory = path.join( - process.cwd(), - `/src/data/lanes/${slug}` - ); - - // 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" }); + } } }