diff --git a/__test__/fixtures/bibFixtures.ts b/__test__/fixtures/bibFixtures.ts index 294842e95..0ba51f9b1 100644 --- a/__test__/fixtures/bibFixtures.ts +++ b/__test__/fixtures/bibFixtures.ts @@ -435,7 +435,7 @@ export const bibWithItems = { }, ], lccClassification: ["IN PROCESS"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -903,7 +903,7 @@ export const bibNoItems = { }, ], lccClassification: ["IN PROCESS"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -2655,7 +2655,7 @@ export const bibWithManyItems = { prefLabel: "Chinese", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -3127,7 +3127,7 @@ export const bibWithSupplementaryContent = { }, ], lccClassification: ["FICTION WAT"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -6525,7 +6525,7 @@ export const parallelsBib = { }, ], lccClassification: ["DR1932 .P68"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -7660,7 +7660,7 @@ export const noParallels = { }, ], lccClassification: ["PQ2663.O7223 Z46 2005"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -8217,7 +8217,7 @@ export const yiddishBib = { }, ], lccClassification: ["DS135.R93 K42 1968"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -11223,7 +11223,7 @@ export const bibManyEResources = { prefLabel: "French", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -11446,7 +11446,7 @@ export const bibWithSubjectHeadings = { }, ], lccClassification: ["PQ2663.O7223 Z46 2005"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", diff --git a/__test__/fixtures/rawSierraAccountData.ts b/__test__/fixtures/rawSierraAccountData.ts index 529d34a22..ce54e9a0e 100644 --- a/__test__/fixtures/rawSierraAccountData.ts +++ b/__test__/fixtures/rawSierraAccountData.ts @@ -599,7 +599,7 @@ export const checkoutBibs = { }, title: "Good night, Little Fish", author: "Cousins, Lucy, author.", - materialType: { + recordType: { code: "a ", value: "BOOK/TEXT", }, @@ -1499,7 +1499,7 @@ export const checkoutBibs = { }, title: "Fish, fish, fish", author: "Adams, Georgie.", - materialType: { + recordType: { code: "a ", value: "BOOK/TEXT", }, @@ -1852,7 +1852,7 @@ export const checkoutBibs = { }, title: "test 5/6 01", author: "Spaghetti Monster", - materialType: { + recordType: { code: "- ", value: "MISC", }, @@ -1904,7 +1904,7 @@ export const checkoutBibs = { title: "[Standard NYPL restrictions apply] HOF HA-KELAVIM HA-MESHUHRARIM = THE BEACH OF FREE DOGS / AVRON POLAKOW. [RECAP]", author: "Polakow, Avron, author.", - materialType: { + recordType: { code: "- ", value: "MISC", }, @@ -1983,7 +1983,7 @@ export const holdBibs = { }, title: "Spaghetti!", author: "Cortanze, GĂ©rard de.", - materialType: { + recordType: { code: "a ", value: "BOOK/TEXT", }, @@ -2466,7 +2466,7 @@ export const holdBibs = { }, title: "The house of mirth : large print", author: "Wharton, Edith, 1862-1937.", - materialType: { + recordType: { code: "l ", value: "LARGE PRINT", }, @@ -3154,7 +3154,7 @@ export const holdBibs = { }, title: "I want to be spaghetti!", author: "Wright-Ruiz, Kiera, author.", - materialType: { + recordType: { code: "a ", value: "BOOK/TEXT", }, @@ -3862,7 +3862,7 @@ export const holdBibs = { }, title: "Partner record", author: "Spaghetti Monster", - materialType: { + recordType: { code: "- ", value: "MISC", }, @@ -3912,7 +3912,7 @@ export const holdBibs = { lang: { code: "eng", name: "English" }, title: "Pasta every day : make it, shape it, sauce it, eat it", author: "Feinstein, Meryl, author.", - materialType: { code: "a ", value: "BOOK/TEXT" }, + recordType: { code: "a ", value: "BOOK/TEXT" }, bibLevel: { code: "m", value: "MONOGRAPH" }, publishYear: 2023, catalogDate: "2023-11-22", @@ -3975,7 +3975,7 @@ export const holds = { }, title: "Pasta every day : make it, shape it, sauce it, eat it", author: "Feinstein, Meryl, author.", - materialType: { + recordType: { code: "a ", value: "BOOK/TEXT", }, diff --git a/__test__/fixtures/searchResultElectronicResources.ts b/__test__/fixtures/searchResultElectronicResources.ts index 0343d3337..0d52f05e8 100644 --- a/__test__/fixtures/searchResultElectronicResources.ts +++ b/__test__/fixtures/searchResultElectronicResources.ts @@ -73,7 +73,7 @@ export const searchResultElectronicResources = { }, ], lccClassification: ["PQ4916.E778 S63 2019"], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -189,7 +189,7 @@ export const searchResultElectronicResourcesNoLabel = { }, ], lccClassification: ["PQ4916.E778 S63 2019"], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -311,7 +311,7 @@ export const searchResultMultipleElectronicResources = { }, ], lccClassification: ["PQ4916.E778 S63 2019"], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", diff --git a/__test__/fixtures/searchResultManyPhysicalItems.ts b/__test__/fixtures/searchResultManyPhysicalItems.ts index 0d7ac0a19..8366bf301 100644 --- a/__test__/fixtures/searchResultManyPhysicalItems.ts +++ b/__test__/fixtures/searchResultManyPhysicalItems.ts @@ -257,7 +257,7 @@ export const searchResultManyPhysicalItems = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", diff --git a/__test__/fixtures/searchResultPhysicalItems.ts b/__test__/fixtures/searchResultPhysicalItems.ts index 3c5538b7f..acdf60253 100644 --- a/__test__/fixtures/searchResultPhysicalItems.ts +++ b/__test__/fixtures/searchResultPhysicalItems.ts @@ -174,7 +174,7 @@ export const searchResultPhysicalItems = { }, ], lccClassification: ["TS2157 .P7"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Material", diff --git a/__test__/fixtures/searchResultsManyBibs.ts b/__test__/fixtures/searchResultsManyBibs.ts index 3dd9b598c..bd23baa8f 100644 --- a/__test__/fixtures/searchResultsManyBibs.ts +++ b/__test__/fixtures/searchResultsManyBibs.ts @@ -118,7 +118,7 @@ export const results = { }, ], lccClassification: ["PQ2663.O7223 Z46 2005"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -252,7 +252,7 @@ export const results = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -466,7 +466,7 @@ export const results = { }, ], lccClassification: ["TS2157 .P7"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -610,7 +610,7 @@ export const results = { }, ], lccClassification: ["D763.I8 W3"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -733,7 +733,7 @@ export const results = { }, ], lccClassification: ["PQ4916.E778 S63 2019"], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -880,7 +880,7 @@ export const results = { }, ], lccClassification: ["PZ7.F8596 Ed 1978"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -1075,7 +1075,7 @@ export const results = { }, ], lccClassification: ["PZ8.3.G427 On 1982"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -1231,7 +1231,7 @@ export const results = { prefLabel: "No linguistic content", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:not", prefLabel: "Notated music", @@ -1417,7 +1417,7 @@ export const results = { }, ], lccClassification: ["PZ7.D6224 Sp 2002"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -1563,7 +1563,7 @@ export const results = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -1733,7 +1733,7 @@ export const results = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -1893,7 +1893,7 @@ export const results = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -2133,7 +2133,7 @@ export const results = { prefLabel: "Italian", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -2316,7 +2316,7 @@ export const results = { }, ], lccClassification: ["PQ4916.E778 S63 2013"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -2474,7 +2474,7 @@ export const results = { }, ], lccClassification: ["PQ4907.E54 S63 2015"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -2629,7 +2629,7 @@ export const results = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:mov", prefLabel: "Moving image", @@ -2799,7 +2799,7 @@ export const results = { }, ], lccClassification: ["D763.I8 W3"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -2967,7 +2967,7 @@ export const results = { }, ], lccClassification: ["PZ7.J6354 Onat 2006"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -3575,7 +3575,7 @@ export const results = { }, ], lccClassification: ["IN PROCESS"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -3753,7 +3753,7 @@ export const results = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:not", prefLabel: "Notated music", @@ -4148,7 +4148,7 @@ export const results = { }, ], lccClassification: ["PN1995.9.W4 M325 2012"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -4303,7 +4303,7 @@ export const results = { }, ], lccClassification: ["PZ40.O74 E85 2017"], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -4418,7 +4418,7 @@ export const results = { }, ], lccClassification: ["FICTION WAT"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -4583,7 +4583,7 @@ export const results = { }, ], lccClassification: ["PQ4916.E668 L33 2011"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -4672,7 +4672,7 @@ export const results = { }, ], lccClassification: ["PQ2722.A734 S96 2020"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -4814,7 +4814,7 @@ export const results = { prefLabel: "German", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -4983,7 +4983,7 @@ export const results = { }, ], lccClassification: ["PN1995.9.W4 F75 2006"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -5179,7 +5179,7 @@ export const results = { }, ], lccClassification: ["M1035.E5 D38 2006"], - materialType: [ + recordType: [ { "@id": "resourcetypes:not", prefLabel: "Notated music", @@ -5377,7 +5377,7 @@ export const results = { prefLabel: "English", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -5704,7 +5704,7 @@ export const results = { }, ], lccClassification: ["PN1995.9.W4 M325 2012"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -5881,7 +5881,7 @@ export const results = { }, ], lccClassification: ["PQ2668.A569 S63 1994"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -6024,7 +6024,7 @@ export const results = { }, ], lccClassification: ["TX809.M17 W3"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -6186,7 +6186,7 @@ export const results = { }, ], lccClassification: ["D805.I8"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -6345,7 +6345,7 @@ export const results = { }, ], lccClassification: ["PZ44.9 .P58 2015"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -6500,7 +6500,7 @@ export const results = { }, ], lccClassification: ["M1630.2.L96 S63 1950"], - materialType: [ + recordType: [ { "@id": "resourcetypes:not", prefLabel: "Notated music", @@ -6662,7 +6662,7 @@ export const results = { }, ], lccClassification: ["PZ7.K8585 Fl"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -6850,7 +6850,7 @@ export const results = { }, ], lccClassification: ["PZ7.H572 Dad 1986"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -6972,7 +6972,7 @@ export const results = { }, ], lccClassification: ["PZ7.1.N342 On 2017eb"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -7136,7 +7136,7 @@ export const results = { prefLabel: "German", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -7241,7 +7241,7 @@ export const results = { }, ], lccClassification: ["PZ7.W3298 Sts 2016ab"], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -7397,7 +7397,7 @@ export const results = { prefLabel: "German", }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -7541,7 +7541,7 @@ export const results = { }, ], lccClassification: ["HF5415 .P57 1998"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -7696,7 +7696,7 @@ export const results = { }, ], lccClassification: ["PZ7.K7877 Mar 1991"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -7842,7 +7842,7 @@ export const results = { }, ], lccClassification: ["PZ7.F8596 Eg 1983"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -7976,7 +7976,7 @@ export const results = { }, }, ], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -8175,7 +8175,7 @@ export const results = { }, ], lccClassification: ["M1035.E5 D38 2006"], - materialType: [ + recordType: [ { "@id": "resourcetypes:not", prefLabel: "Notated music", @@ -8373,7 +8373,7 @@ export const results = { }, ], lccClassification: ["PQ7798.23.A657 C8"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -8536,7 +8536,7 @@ export const results = { }, ], lccClassification: ["PT2708.E4878 M36 2017"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -8693,7 +8693,7 @@ export const results = { }, ], lccClassification: ["GT2868.68 .M66 2021"], - materialType: [ + recordType: [ { "@id": "resourcetypes:txt", prefLabel: "Text", @@ -8936,7 +8936,7 @@ export const results = { }, ], lccClassification: ["M1630.2 .S63 2007"], - materialType: [ + recordType: [ { "@id": "resourcetypes:aud", prefLabel: "Audio", @@ -9017,9 +9017,9 @@ export const emptyAggregationsResults = { }, { "@type": "nypl:Aggregation", - "@id": "res:materialType", - id: "materialType", - field: "materialType", + "@id": "res:recordType", + id: "recordType", + field: "recordType", values: [], }, { @@ -9102,9 +9102,9 @@ export const aggregationsResults = { }, { "@type": "nypl:Aggregation", - "@id": "res:materialType", - id: "materialType", - field: "materialType", + "@id": "res:recordType", + id: "recordType", + field: "recordType", values: [ { value: "resourcetypes:txt", diff --git a/__test__/pages/search/advancedSearchForm.test.tsx b/__test__/pages/search/advancedSearchForm.test.tsx index b07ec4842..29e8c7767 100644 --- a/__test__/pages/search/advancedSearchForm.test.tsx +++ b/__test__/pages/search/advancedSearchForm.test.tsx @@ -69,12 +69,12 @@ describe("Advanced Search Form", () => { it("can check material checkboxes", async () => { render() await userEvent.click(screen.getByLabelText("Notated music")) - await userEvent.click(screen.getByLabelText("Cartographic")) + await userEvent.click(screen.getByLabelText("Map")) submit() // expect the label for notated music and cartographic // ("resourcetypes:not", "resourcetypes:car") to be in url expect(mockRouter.asPath).toBe( - "/search?q=&filters%5BmaterialType%5D%5B0%5D=resourcetypes%3Anot&filters%5BmaterialType%5D%5B1%5D=resourcetypes%3Acar" + "/search?q=&filters%5BrecordType%5D%5B0%5D=c&filters%5BrecordType%5D%5B1%5D=e" ) }) it("can check location checkboxes", async () => { @@ -91,7 +91,7 @@ describe("Advanced Search Form", () => { render() const notatedMusic = screen.getByLabelText("Notated music") await userEvent.click(notatedMusic) - const cartographic = screen.getByLabelText("Cartographic") + const cartographic = screen.getByLabelText("Map") await userEvent.click(cartographic) const selector = screen.getByLabelText("Language") await userEvent.selectOptions(selector, "Azerbaijani") diff --git a/discoveryApiResearchNowMapping.md b/discoveryApiResearchNowMapping.md index 6bb2b868f..06d7fce10 100644 --- a/discoveryApiResearchNowMapping.md +++ b/discoveryApiResearchNowMapping.md @@ -19,7 +19,7 @@ - `search_scope` string - "all", "title", "contributor", "subject", "series", "callnumber", "standard_number" - `filters` string - - "owner", "subjectLiteral", "holdingLocation", "deliveryLocation", "language", "materialType", "mediaType", " + - "owner", "subjectLiteral", "holdingLocation", "deliveryLocation", "language", "recordType", "mediaType", " carrierType", "publisher", "contributor", "creator", "issuance", "createdYear", "dateAfter"', or "dateBefore" - Specify a hash of filters to apply, where keys are from terms above @@ -126,7 +126,7 @@ e.g. `filters`) is used for the parameters the respective APIs except. |