From 396923a2fa9b5b74a056c26d7dae73c67f3683a3 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Thu, 21 Mar 2024 16:13:24 -0400 Subject: [PATCH 1/6] Fix EDD status check to exclude status 'o' Fixes an issue where we are currently enabling Request Scan buttons on on-site materials that have item status 'Use in library' (o). Sierra rejects all holds on all items with that status. I think we only ever thought that we might want to enable on-site EDD requests on such items because that status was part of the original onsite-edd criteria doc. That doc was updated to remove the status, but we retain policies in discovery-api and DFE that allow holds on items with that status. --- data/onsite-edd-criteria.json | 3 +- lib/delivery-locations-resolver.js | 2 + test/requestability_resolver.test.js | 73 ++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) diff --git a/data/onsite-edd-criteria.json b/data/onsite-edd-criteria.json index f39b32ec..233ed669 100644 --- a/data/onsite-edd-criteria.json +++ b/data/onsite-edd-criteria.json @@ -1,6 +1,7 @@ { "status": [ - "a" + "a", + "na" ], "accessMessage": [ "-", diff --git a/lib/delivery-locations-resolver.js b/lib/delivery-locations-resolver.js index 0b4815b1..5a731fb4 100644 --- a/lib/delivery-locations-resolver.js +++ b/lib/delivery-locations-resolver.js @@ -84,6 +84,8 @@ class DeliveryLocationsResolver { const eddCriteriaChecks = [ // Check the following properties for agreement with required values // rm status because we have separated availability and requestability - VK 7/27/2023 + // Add status because status 'o' actually makes holds impossible - PB 3/21/2024 + 'status', 'catalogItemType', 'holdingLocation', 'accessMessage' diff --git a/test/requestability_resolver.test.js b/test/requestability_resolver.test.js index f07a6ca7..1c2a8b72 100644 --- a/test/requestability_resolver.test.js +++ b/test/requestability_resolver.test.js @@ -110,6 +110,79 @@ describe('RequestabilityResolver', () => { var notAvailableItem = items.find((item) => item.uri === 'i10283665777') expect(notAvailableItem.requestable[0]).to.equal(true) }) + + describe('On-site edd requestability', function () { + let esResponse + + beforeEach(() => { + const item = { + uri: 'i10283665', + accessMessage: [ { id: 'accessMessage:1' } ], + catalogItemType: [ { id: 'catalogItemType:2' } ], + status: [ { id: 'status:a' } ], + holdingLocation: [ { id: 'loc:scff2' } ], + identifier: [ 'urn:barcode:33433058338470' ] + } + esResponse = { hits: { hits: [ { _source: { items: [item] } } ] } } + }) + + it('an item that meets all on-site edd criteria is edd-requestable', function () { + let updatedItem = RequestabilityResolver.fixItemRequestability(esResponse) + .hits.hits[0]._source.items[0] + expect(updatedItem.eddRequestable).to.equal(true) + + // Access message '-' still eddRequestable: + esResponse.hits.hits[0]._source.items[0].accessMessage = [ + { id: 'accessMessage:-' } + ] + updatedItem = RequestabilityResolver.fixItemRequestability(esResponse) + .hits.hits[0]._source.items[0] + expect(updatedItem.eddRequestable).to.equal(true) + + // Access message '1' still eddRequestable: + esResponse.hits.hits[0]._source.items[0].accessMessage = [ + { id: 'accessMessage:1' } + ] + updatedItem = RequestabilityResolver.fixItemRequestability(esResponse) + .hits.hits[0]._source.items[0] + expect(updatedItem.eddRequestable).to.equal(true) + + // Status 'na' still eddRequestable: + esResponse.hits.hits[0]._source.items[0].status = [ + { id: 'status:na' } + ] + updatedItem = RequestabilityResolver.fixItemRequestability(esResponse) + .hits.hits[0]._source.items[0] + expect(updatedItem.eddRequestable).to.equal(true) + }) + + it('an item that with an invalid accessMessage is no longer edd-requestable', function () { + esResponse.hits.hits[0]._source.items[0].accessMessage = [ + { id: 'accessMessage:b' } + ] + const updatedItem = RequestabilityResolver.fixItemRequestability(esResponse) + .hits.hits[0]._source.items[0] + expect(updatedItem.eddRequestable).to.equal(false) + }) + + it('an item that with an invalid catalogItemType is no longer edd-requestable', function () { + esResponse.hits.hits[0]._source.items[0].catalogItemType = [ + { id: 'catalogItemType:13' } + ] + const updatedItem = RequestabilityResolver.fixItemRequestability(esResponse) + .hits.hits[0]._source.items[0] + expect(updatedItem.eddRequestable).to.equal(false) + }) + + it('an item that with an invalid status is no longer edd-requestable', function () { + esResponse.hits.hits[0]._source.items[0].status = [ + { id: 'status:o' } + ] + const updatedItem = RequestabilityResolver.fixItemRequestability(esResponse) + .hits.hits[0]._source.items[0] + expect(updatedItem.eddRequestable).to.equal(false) + }) + }) }) describe('Special collections items', function () { From 95622ac0734b7950cd287614ee6114e494ed2ce4 Mon Sep 17 00:00:00 2001 From: Paul Beaudoin Date: Thu, 21 Mar 2024 16:23:37 -0400 Subject: [PATCH 2/6] Fix broken test --- test/delivery-locations-resolver.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/delivery-locations-resolver.test.js b/test/delivery-locations-resolver.test.js index 94ab3eb6..957f92b2 100644 --- a/test/delivery-locations-resolver.test.js +++ b/test/delivery-locations-resolver.test.js @@ -309,7 +309,7 @@ describe('Delivery-locations-resolver', function () { }) it('will return true for on-site item failing status check', function () { - item.status[0].id = 'status:co' + item.status[0].id = 'status:na' expect(DeliveryLocationsResolver.eddRequestableByOnSiteCriteria(item)).to.equal(true) }) From f08ea79d5a6c747c8f6814c8d4fb84bae1beedb6 Mon Sep 17 00:00:00 2001 From: danamansana Date: Fri, 29 Mar 2024 16:20:01 -0400 Subject: [PATCH 3/6] Add uniformTitle and formerTitle to appropriate scopes --- lib/resources.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/resources.js b/lib/resources.js index 84c1e43e..d7fb3cbf 100644 --- a/lib/resources.js +++ b/lib/resources.js @@ -80,7 +80,10 @@ const SEARCH_SCOPES = { 'parallelTitleAlt.folded', 'parallelSeriesStatement.folded', 'parallelCreatorLiteral.folded', - 'parallelPublisher' + 'parallelPublisher', + 'uniformTitle.folded', + 'parallelUniformTitle', + 'formerTitle' ] }, title: { @@ -98,7 +101,8 @@ const SEARCH_SCOPES = { 'parallelSeriesStatement.folded', 'parallelTitleAlt.folded', 'parallelCreatorLiteral.folded', - 'parallelUniformTitle' + 'parallelUniformTitle', + 'formerTitle' ] }, contributor: { From 74a228f83234a0db5440b26600baf39ed1ab8c5e Mon Sep 17 00:00:00 2001 From: danamansana Date: Thu, 4 Apr 2024 18:04:30 -0400 Subject: [PATCH 4/6] Update fixtures --- ...uery-43e5852edae04421272017a93f38e773.json | 14 + ...uery-6476866fe336c036fafdbac3e872d1db.json | 1225 +++++++++++++++++ 2 files changed, 1239 insertions(+) create mode 100644 test/fixtures/query-43e5852edae04421272017a93f38e773.json create mode 100644 test/fixtures/query-6476866fe336c036fafdbac3e872d1db.json diff --git a/test/fixtures/query-43e5852edae04421272017a93f38e773.json b/test/fixtures/query-43e5852edae04421272017a93f38e773.json new file mode 100644 index 00000000..e6af91eb --- /dev/null +++ b/test/fixtures/query-43e5852edae04421272017a93f38e773.json @@ -0,0 +1,14 @@ +{ + "took": 77, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 0, + "max_score": null, + "hits": [] + } +} \ No newline at end of file diff --git a/test/fixtures/query-6476866fe336c036fafdbac3e872d1db.json b/test/fixtures/query-6476866fe336c036fafdbac3e872d1db.json new file mode 100644 index 00000000..050112c6 --- /dev/null +++ b/test/fixtures/query-6476866fe336c036fafdbac3e872d1db.json @@ -0,0 +1,1225 @@ +{ + "took": 553, + "timed_out": false, + "_shards": { + "total": 3, + "successful": 3, + "failed": 0 + }, + "hits": { + "total": 32343, + "max_score": 0, + "hits": [] + }, + "aggregations": { + "owner": { + "doc_count": 41100, + "_nested": { + "doc_count_error_upper_bound": 36, + "sum_other_doc_count": 1803, + "buckets": [ + { + "key": "orgs:1000||Stephen A. Schwarzman Building", + "doc_count": 8165 + }, + { + "key": "orgs:0004||Harvard Library", + "doc_count": 5006 + }, + { + "key": "orgs:0002||Columbia University Libraries", + "doc_count": 4776 + }, + { + "key": "orgs:1101||General Research Division", + "doc_count": 3795 + }, + { + "key": "orgs:0003||Princeton University Library", + "doc_count": 3648 + }, + { + "key": "orgs:1002||New York Public Library for the Performing Arts, Dorothy and Lewis B. Cullman Center", + "doc_count": 1202 + }, + { + "key": "orgs:1105||Irma and Paul Milstein Division of United States History, Local History and Genealogy", + "doc_count": 1069 + }, + { + "key": "orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division", + "doc_count": 732 + }, + { + "key": "orgs:1110||The Miriam and Ira D. Wallach Division of Art, Prints and Photographs: Art & Architecture Collection", + "doc_count": 388 + }, + { + "key": "orgs:1119||Billy Rose Theatre Division", + "doc_count": 373 + } + ] + } + }, + "contributorLiteral": { + "doc_count_error_upper_bound": 19, + "sum_other_doc_count": 36829, + "buckets": [ + { + "key": "OverDrive, Inc.", + "doc_count": 708 + }, + { + "key": "Gale (Firm)", + "doc_count": 435 + }, + { + "key": "New York Genealogical and Biographical Society Collection.", + "doc_count": 247 + }, + { + "key": "Sinclair Hamilton Collection of American Illustrated Books. NjP http://id.loc.gov/authorities/names/no2003086490", + "doc_count": 228 + }, + { + "key": "Hamilton, Alexander, 1757-1804.", + "doc_count": 180 + }, + { + "key": "Bibliotheca (Firm)", + "doc_count": 139 + }, + { + "key": "Ford Collection.", + "doc_count": 131 + }, + { + "key": "Jay, John, 1745-1829.", + "doc_count": 115 + }, + { + "key": "Alexander Hamilton Institute (U.S.)", + "doc_count": 104 + }, + { + "key": "Madison, James, 1751-1836.", + "doc_count": 101 + }, + { + "key": "Harty, Hamilton, 1879-1941.", + "doc_count": 68 + }, + { + "key": "Booz, Allen & Hamilton.", + "doc_count": 63 + }, + { + "key": "Worcester Dramatic Museum.", + "doc_count": 52 + }, + { + "key": "American Music Collection.", + "doc_count": 51 + }, + { + "key": "Metropolitan Opera Radio Broadcast collection.", + "doc_count": 51 + }, + { + "key": "Milton, John, 1608-1674.", + "doc_count": 49 + }, + { + "key": "Metropolitan Opera (New York, N.Y.)", + "doc_count": 48 + }, + { + "key": "Art Gallery of Hamilton (Ont.)", + "doc_count": 47 + }, + { + "key": "Handel, George Frideric, 1685-1759.", + "doc_count": 47 + }, + { + "key": "Philip Hamilton McMillan Memorial Publication Fund.", + "doc_count": 46 + }, + { + "key": "New York Public Library for the Performing Arts. Billy Rose Theatre Division. Theatre on Film and Tape Archive.", + "doc_count": 45 + }, + { + "key": "Geological Survey (U.S.)", + "doc_count": 43 + }, + { + "key": "Wild Hawthorn Press. pbl", + "doc_count": 40 + }, + { + "key": "Hamilton, Chico, 1921-", + "doc_count": 38 + }, + { + "key": "Geological Survey (U.S.), issuing body.", + "doc_count": 37 + }, + { + "key": "Baker, John H. (John Hamilton)", + "doc_count": 36 + }, + { + "key": "Worcester Theatre (Front Street, Worcester, Mass.)", + "doc_count": 36 + }, + { + "key": "American Antiquarian Society.", + "doc_count": 35 + }, + { + "key": "Drexel Collection.", + "doc_count": 35 + }, + { + "key": "Schomburg Children's Collection.", + "doc_count": 35 + }, + { + "key": "Allen, Peter, 1920-2016.", + "doc_count": 34 + }, + { + "key": "Barr, Alfred Hamilton, 1902-", + "doc_count": 34 + }, + { + "key": "Kirk-Greene, A. H. M. (Anthony Hamilton Millard)", + "doc_count": 33 + }, + { + "key": "Madison, James, 1751-1836", + "doc_count": 33 + }, + { + "key": "Darley, Felix Octavius Carr, 1822-1888,", + "doc_count": 32 + }, + { + "key": "Hamilton, Alexander, 1757-1804", + "doc_count": 32 + }, + { + "key": "Mabie, Hamilton Wright, 1846-1916.", + "doc_count": 32 + }, + { + "key": "Children's Room Collection.", + "doc_count": 31 + }, + { + "key": "Reynolds, Peter H. (Peter Hamilton), 1961-", + "doc_count": 31 + }, + { + "key": "Long, John Hamilton.", + "doc_count": 30 + }, + { + "key": "Sinclair Hamilton Collection of American Illustrated Books. NjP", + "doc_count": 30 + }, + { + "key": "DHCA.", + "doc_count": 29 + }, + { + "key": "Hamilton, Iain, 1922-2000.", + "doc_count": 25 + }, + { + "key": "Corwin, Betty L.", + "doc_count": 24 + }, + { + "key": "Young, J. H. (James Hamilton)", + "doc_count": 23 + }, + { + "key": "Hamilton College (Clinton, N.Y.)", + "doc_count": 22 + }, + { + "key": "Hamilton, Stuart.", + "doc_count": 22 + }, + { + "key": "Hamilton, F. E. Ian.", + "doc_count": 21 + }, + { + "key": "Hamilton, Ian, 1938-2001.", + "doc_count": 21 + }, + { + "key": "United States. National Aeronautics and Space Administration.", + "doc_count": 21 + } + ] + }, + "materialType": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "resourcetypes:txt||Text", + "doc_count": 30186 + }, + { + "key": "resourcetypes:aud||Audio", + "doc_count": 1038 + }, + { + "key": "resourcetypes:mov||Moving image", + "doc_count": 315 + }, + { + "key": "resourcetypes:car||Cartographic", + "doc_count": 251 + }, + { + "key": "resourcetypes:img||Still image", + "doc_count": 200 + }, + { + "key": "resourcetypes:not||Notated music", + "doc_count": 186 + }, + { + "key": "resourcetypes:mix||Mixed material", + "doc_count": 126 + }, + { + "key": "resourcetypes:mul||Multimedia", + "doc_count": 3 + } + ] + }, + "issuance": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "urn:biblevel:m||monograph/item", + "doc_count": 31330 + }, + { + "key": "urn:biblevel:s||serial", + "doc_count": 460 + }, + { + "key": "urn:biblevel:c||collection", + "doc_count": 264 + }, + { + "key": "urn:biblevel:a||monograph component part", + "doc_count": 92 + }, + { + "key": "urn:biblevel:b||serial component part", + "doc_count": 73 + }, + { + "key": "urn:biblevel:d||subunit", + "doc_count": 60 + }, + { + "key": "urn:biblevel:i||integrating resource", + "doc_count": 2 + }, + { + "key": "urn:biblevel:2||", + "doc_count": 1 + } + ] + }, + "publisher": { + "doc_count_error_upper_bound": 26, + "sum_other_doc_count": 23086, + "buckets": [ + { + "key": "H. Hamilton,", + "doc_count": 946 + }, + { + "key": "Hamish Hamilton,", + "doc_count": 867 + }, + { + "key": "Hamilton,", + "doc_count": 843 + }, + { + "key": "H. Hamilton", + "doc_count": 528 + }, + { + "key": "Hamilton Books,", + "doc_count": 395 + }, + { + "key": "s.n.,", + "doc_count": 378 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent,", + "doc_count": 166 + }, + { + "key": "Oxford University Press,", + "doc_count": 164 + }, + { + "key": "Hamilton", + "doc_count": 125 + }, + { + "key": "Hamilton, Adams,", + "doc_count": 116 + }, + { + "key": "Alexander Hamilton Institute,", + "doc_count": 107 + }, + { + "key": "Macmillan,", + "doc_count": 101 + }, + { + "key": "Press of C. Hamilton,", + "doc_count": 101 + }, + { + "key": "Printed by Chas. Hamilton, Palladium Office, Worcester.,", + "doc_count": 93 + }, + { + "key": "[s.n.],", + "doc_count": 89 + }, + { + "key": "Hamish Hamilton", + "doc_count": 86 + }, + { + "key": "Wiley,", + "doc_count": 86 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent & Co.,", + "doc_count": 81 + }, + { + "key": "Doubleday,", + "doc_count": 76 + }, + { + "key": "Cambridge University Press,", + "doc_count": 69 + }, + { + "key": "s.n.],", + "doc_count": 68 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent & Co., Ltd.,", + "doc_count": 64 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent & Co., Ltd.", + "doc_count": 62 + }, + { + "key": "Ticknor and Fields,", + "doc_count": 57 + }, + { + "key": "Wild Hawthorn Press,", + "doc_count": 56 + }, + { + "key": "[publisher not identified],", + "doc_count": 56 + }, + { + "key": "C. Hamilton,", + "doc_count": 55 + }, + { + "key": "Harper & Brothers,", + "doc_count": 55 + }, + { + "key": "Harvard University Press,", + "doc_count": 55 + }, + { + "key": "Alexander Hamilton Institute", + "doc_count": 54 + }, + { + "key": "Princeton University Press,", + "doc_count": 50 + }, + { + "key": "J. Murray,", + "doc_count": 49 + }, + { + "key": "Yale University Press,", + "doc_count": 48 + }, + { + "key": "Random House,", + "doc_count": 47 + }, + { + "key": "Charles Hamilton,", + "doc_count": 44 + }, + { + "key": "Routledge,", + "doc_count": 43 + }, + { + "key": "Dodd, Mead,", + "doc_count": 42 + }, + { + "key": "Simon & Schuster,", + "doc_count": 42 + }, + { + "key": "Hamilton, Adams & Co.,", + "doc_count": 40 + }, + { + "key": "Harper & brothers,", + "doc_count": 40 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent", + "doc_count": 40 + }, + { + "key": "Little, Brown,", + "doc_count": 39 + }, + { + "key": "McGraw-Hill,", + "doc_count": 38 + }, + { + "key": "Press of Charles Hamilton,", + "doc_count": 37 + }, + { + "key": "Printed by C. Hamilton,", + "doc_count": 37 + }, + { + "key": "Simpkin, Marshall, Hamilton, Kent & Co.", + "doc_count": 35 + }, + { + "key": "G.P. Putnam's Sons,", + "doc_count": 34 + }, + { + "key": "Printed at the Journal office,", + "doc_count": 34 + }, + { + "key": "Berkley Books,", + "doc_count": 33 + }, + { + "key": "Concord Jazz,", + "doc_count": 33 + } + ] + }, + "language": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 10, + "buckets": [ + { + "key": "lang:eng||English", + "doc_count": 30174 + }, + { + "key": "lang:fre||French", + "doc_count": 241 + }, + { + "key": "lang:zxx||No linguistic content", + "doc_count": 239 + }, + { + "key": "lang:ger||German", + "doc_count": 229 + }, + { + "key": "lang:spa||Spanish", + "doc_count": 162 + }, + { + "key": "lang:lat||Latin", + "doc_count": 159 + }, + { + "key": "lang:por||Portuguese", + "doc_count": 153 + }, + { + "key": "lang:ita||Italian", + "doc_count": 124 + }, + { + "key": "lang:swe||Swedish", + "doc_count": 62 + }, + { + "key": "lang:heb||Hebrew", + "doc_count": 31 + }, + { + "key": "lang:rus||Russian", + "doc_count": 22 + }, + { + "key": "lang:und||Undetermined", + "doc_count": 22 + }, + { + "key": "lang:dut||Dutch", + "doc_count": 14 + }, + { + "key": "lang:mul||Multiple languages", + "doc_count": 13 + }, + { + "key": "lang:ara||Arabic", + "doc_count": 12 + }, + { + "key": "lang:chi||Chinese", + "doc_count": 11 + }, + { + "key": "lang:dan||Danish", + "doc_count": 10 + }, + { + "key": "lang:jpn||Japanese", + "doc_count": 9 + }, + { + "key": "lang:nor||Norwegian", + "doc_count": 8 + }, + { + "key": "lang:cze||Czech", + "doc_count": 7 + }, + { + "key": "lang:grc||Greek, Ancient (to 1453)", + "doc_count": 7 + }, + { + "key": "lang:pol||Polish", + "doc_count": 6 + }, + { + "key": "lang:gle||Irish", + "doc_count": 5 + }, + { + "key": "lang:kor||Korean", + "doc_count": 5 + }, + { + "key": "lang:per||Persian", + "doc_count": 5 + }, + { + "key": "lang:gre||Greek, Modern (1453- )", + "doc_count": 4 + }, + { + "key": "lang:lav||Latvian", + "doc_count": 4 + }, + { + "key": "lang:tur||Turkish", + "doc_count": 4 + }, + { + "key": "lang:nai||North American Indian (Other)", + "doc_count": 3 + }, + { + "key": "lang:ukr||Ukrainian", + "doc_count": 3 + }, + { + "key": "lang:afr||Afrikaans", + "doc_count": 2 + }, + { + "key": "lang:asm||Assamese", + "doc_count": 2 + }, + { + "key": "lang:bnt||Bantu (Other)", + "doc_count": 2 + }, + { + "key": "lang:bul||Bulgarian", + "doc_count": 2 + }, + { + "key": "lang:cat||Catalan", + "doc_count": 2 + }, + { + "key": "lang:gla||Scottish Gaelic", + "doc_count": 2 + }, + { + "key": "lang:hin||Hindi", + "doc_count": 2 + }, + { + "key": "lang:afa||Afroasiatic (Other)", + "doc_count": 1 + }, + { + "key": "lang:ang||English, Old (ca. 450-1100)", + "doc_count": 1 + }, + { + "key": "lang:arm||Armenian", + "doc_count": 1 + }, + { + "key": "lang:ben||Bengali", + "doc_count": 1 + }, + { + "key": "lang:enm||English, Middle (1100-1500)", + "doc_count": 1 + }, + { + "key": "lang:epo||Esperanto", + "doc_count": 1 + }, + { + "key": "lang:frm||French, Middle (ca. 1300-1600)", + "doc_count": 1 + }, + { + "key": "lang:fro||French, Old (ca. 842-1300)", + "doc_count": 1 + }, + { + "key": "lang:gem||Germanic (Other)", + "doc_count": 1 + }, + { + "key": "lang:hau||Hausa", + "doc_count": 1 + }, + { + "key": "lang:hrv||Croatian", + "doc_count": 1 + }, + { + "key": "lang:hun||Hungarian", + "doc_count": 1 + }, + { + "key": "lang:ice||Icelandic", + "doc_count": 1 + } + ] + }, + "mediaType": { + "doc_count_error_upper_bound": 0, + "sum_other_doc_count": 0, + "buckets": [ + { + "key": "mediatypes:n||unmediated", + "doc_count": 26184 + }, + { + "key": "mediatypes:c||computer", + "doc_count": 3794 + }, + { + "key": "mediatypes:undefined||unmediated", + "doc_count": 902 + }, + { + "key": "mediatypes:h||microform", + "doc_count": 850 + }, + { + "key": "mediatypes:v||video", + "doc_count": 137 + }, + { + "key": "mediatypes:undefined||audio", + "doc_count": 10 + }, + { + "key": "mediatypes:s||audio", + "doc_count": 8 + }, + { + "key": "mediatypes:undefined||microform", + "doc_count": 4 + }, + { + "key": "mediatypes:undefined||video", + "doc_count": 2 + }, + { + "key": "mediatypes:n||computer", + "doc_count": 1 + }, + { + "key": "mediatypes:undefined||computer", + "doc_count": 1 + }, + { + "key": "mediatypes:undefined||text", + "doc_count": 1 + } + ] + }, + "subjectLiteral": { + "doc_count_error_upper_bound": 33, + "sum_other_doc_count": 73906, + "buckets": [ + { + "key": "Hamilton, Alexander, 1757-1804.", + "doc_count": 457 + }, + { + "key": "United States.", + "doc_count": 261 + }, + { + "key": "Man-woman relationships -- Fiction.", + "doc_count": 134 + }, + { + "key": "Theater programs.", + "doc_count": 116 + }, + { + "key": "Hamilton, Emma, Lady, 1765-1815.", + "doc_count": 104 + }, + { + "key": "Hamilton family.", + "doc_count": 93 + }, + { + "key": "Artists' books.", + "doc_count": 92 + }, + { + "key": "Constitutional law -- United States.", + "doc_count": 90 + }, + { + "key": "Drama -- 19th century.", + "doc_count": 86 + }, + { + "key": "United States -- Politics and government -- 1783-1809.", + "doc_count": 86 + }, + { + "key": "Drama.", + "doc_count": 85 + }, + { + "key": "English fiction.", + "doc_count": 85 + }, + { + "key": "Theater -- Worcester.", + "doc_count": 85 + }, + { + "key": "Operas.", + "doc_count": 76 + }, + { + "key": "Tariff -- United States.", + "doc_count": 76 + }, + { + "key": "United States -- Politics and government -- 1775-1783.", + "doc_count": 75 + }, + { + "key": "Statesmen -- United States -- Biography.", + "doc_count": 72 + }, + { + "key": "Jefferson, Thomas, 1743-1826.", + "doc_count": 69 + }, + { + "key": "Blake, Anita (Fictitious character) -- Fiction.", + "doc_count": 66 + }, + { + "key": "Great Britain -- Court and courtiers.", + "doc_count": 66 + }, + { + "key": "Authors, English -- 20th century -- Biography.", + "doc_count": 62 + }, + { + "key": "Jazz.", + "doc_count": 62 + }, + { + "key": "Comedy.", + "doc_count": 61 + }, + { + "key": "Farce.", + "doc_count": 60 + }, + { + "key": "Burr, Aaron, 1756-1836.", + "doc_count": 56 + }, + { + "key": "English poetry.", + "doc_count": 56 + }, + { + "key": "Murder -- Investigation -- Fiction.", + "doc_count": 55 + }, + { + "key": "Music.", + "doc_count": 54 + }, + { + "key": "Politics and government.", + "doc_count": 53 + }, + { + "key": "United States", + "doc_count": 53 + }, + { + "key": "Vampires -- Fiction.", + "doc_count": 53 + }, + { + "key": "English drama.", + "doc_count": 51 + }, + { + "key": "Nelson, Horatio Nelson, Viscount, 1758-1805.", + "doc_count": 51 + }, + { + "key": "Adams, John, 1735-1826.", + "doc_count": 49 + }, + { + "key": "Conduct of life.", + "doc_count": 49 + }, + { + "key": "Washington, George, 1732-1799.", + "doc_count": 49 + }, + { + "key": "Economics.", + "doc_count": 48 + }, + { + "key": "Fiction in English, 1945- - Texts", + "doc_count": 48 + }, + { + "key": "Gramont, Philibert, comte de, 1621-1707.", + "doc_count": 48 + }, + { + "key": "United States -- Description and travel.", + "doc_count": 48 + }, + { + "key": "United States -- Politics and government -- 1861-1865.", + "doc_count": 48 + }, + { + "key": "Piano music.", + "doc_count": 47 + }, + { + "key": "Theater -- New York.", + "doc_count": 47 + }, + { + "key": "Bible. -- Criticism, interpretation, etc.", + "doc_count": 46 + }, + { + "key": "Hamilton, Alexander, 1757-1804", + "doc_count": 46 + }, + { + "key": "Concrete poetry.", + "doc_count": 45 + }, + { + "key": "States' rights (American politics)", + "doc_count": 44 + }, + { + "key": "Great Britain.", + "doc_count": 43 + }, + { + "key": "Hamilton County (Ohio) -- Genealogy.", + "doc_count": 43 + }, + { + "key": "Voyages and travels.", + "doc_count": 43 + } + ] + }, + "creatorLiteral": { + "doc_count_error_upper_bound": 24, + "sum_other_doc_count": 25265, + "buckets": [ + { + "key": "Mabie, Hamilton Wright, 1846-1916.", + "doc_count": 134 + }, + { + "key": "Hamilton, Alexander, 1757-1804.", + "doc_count": 122 + }, + { + "key": "Finlay, Ian Hamilton.", + "doc_count": 94 + }, + { + "key": "Finlay, Ian Hamilton", + "doc_count": 88 + }, + { + "key": "Hamilton, Virginia, 1936-2002.", + "doc_count": 84 + }, + { + "key": "Carey, Mathew, 1760-1839.", + "doc_count": 82 + }, + { + "key": "Hamilton, Laurell K.", + "doc_count": 81 + }, + { + "key": "Hamilton, Gail, 1833-1896.", + "doc_count": 76 + }, + { + "key": "Maxwell, W. H. (William Hamilton), 1792-1850.", + "doc_count": 75 + }, + { + "key": "Child, Hamilton, 1836-", + "doc_count": 74 + }, + { + "key": "Simenon, Georges, 1903-1989.", + "doc_count": 67 + }, + { + "key": "Hamilton, Anthony, Count, approximately 1646-1720.", + "doc_count": 61 + }, + { + "key": "Hamilton, Iain, 1922-2000.", + "doc_count": 59 + }, + { + "key": "Handel, George Frideric, 1685-1759.", + "doc_count": 59 + }, + { + "key": "Worcester Dramatic Museum.", + "doc_count": 59 + }, + { + "key": "Fyfe, Hamilton, 1869-1951.", + "doc_count": 52 + }, + { + "key": "Lockhart, Robert Hamilton Bruce, 1887-1970.", + "doc_count": 52 + }, + { + "key": "Hamilton, James, 1814-1867.", + "doc_count": 50 + }, + { + "key": "Sears, Edmund H. (Edmund Hamilton), 1810-1876.", + "doc_count": 50 + }, + { + "key": "Eaton, Arthur Wentworth Hamilton, 1849-1937.", + "doc_count": 48 + }, + { + "key": "Worcester Theatre (Front Street, Worcester, Mass.)", + "doc_count": 47 + }, + { + "key": "Hamilton, Patrick, 1904 March 17-1962.", + "doc_count": 44 + }, + { + "key": "Hamilton, Peter F.", + "doc_count": 44 + }, + { + "key": "Hamilton-Paterson, James.", + "doc_count": 44 + }, + { + "key": "Stephens, Alexander H. (Alexander Hamilton), 1812-1883.", + "doc_count": 44 + }, + { + "key": "Hamilton, Cicely, 1872-1952.", + "doc_count": 43 + }, + { + "key": "West, Jerry, 1910-1975.", + "doc_count": 43 + }, + { + "key": "Booz, Allen & Hamilton.", + "doc_count": 41 + }, + { + "key": "Thompson, A. Hamilton (Alexander Hamilton), 1873-1952.", + "doc_count": 41 + }, + { + "key": "Hamilton, William, Sir, 1788-1856.", + "doc_count": 40 + }, + { + "key": "Basso, Hamilton, 1904-1964.", + "doc_count": 37 + }, + { + "key": "Hamilton, Cosmo, 1872?-1942.", + "doc_count": 37 + }, + { + "key": "Hamilton, Edith, 1867-1963.", + "doc_count": 37 + }, + { + "key": "Hamilton, Ian, 1938-2001.", + "doc_count": 37 + }, + { + "key": "Cushing, Frank Hamilton, 1857-1900.", + "doc_count": 36 + }, + { + "key": "Gibb, H. A. R. (Hamilton Alexander Rosskeen), 1895-1971.", + "doc_count": 36 + }, + { + "key": "Hamilton, Clayton Meeker, 1881-1946.", + "doc_count": 36 + }, + { + "key": "Kirk-Greene, A. H. M. (Anthony Hamilton Millard)", + "doc_count": 36 + }, + { + "key": "Gibson, W. Hamilton (William Hamilton), 1850-1896.", + "doc_count": 35 + }, + { + "key": "Hamilton, Mary Agnes, 1884-1966.", + "doc_count": 35 + }, + { + "key": "United States. Department of the Treasury.", + "doc_count": 35 + }, + { + "key": "Belhaven, John Hamilton, Baron, 1656-1708.", + "doc_count": 31 + }, + { + "key": "Hamilton, Ian, 1853-1947.", + "doc_count": 30 + }, + { + "key": "Hill, Hamilton Andrews, 1827-1895.", + "doc_count": 30 + }, + { + "key": "Ellis, Cuthbert Hamilton, 1909-", + "doc_count": 29 + }, + { + "key": "Gibbs, A. Hamilton (Arthur Hamilton), 1888-1964.", + "doc_count": 29 + }, + { + "key": "Hamilton College (Clinton, N.Y.)", + "doc_count": 29 + }, + { + "key": "Baldwin-Lima-Hamilton Corporation.", + "doc_count": 28 + }, + { + "key": "Hamilton, Ernest, Lord, 1858-1939.", + "doc_count": 28 + }, + { + "key": "Brogan, D. W. (Denis William), 1900-1974.", + "doc_count": 27 + } + ] + } + } +} \ No newline at end of file From ad882865b77d2e9f4189b559690361e8706df0a9 Mon Sep 17 00:00:00 2001 From: danamansana Date: Mon, 8 Apr 2024 09:56:26 -0400 Subject: [PATCH 5/6] Update packages --- package-lock.json | 168 +++++++++++++++++++++++----------------------- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/package-lock.json b/package-lock.json index 00620d1f..4aca55c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,7 +46,7 @@ "@nypl/scsb-rest-client": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@nypl/scsb-rest-client/-/scsb-rest-client-1.0.6.tgz", - "integrity": "sha1-/EGMScQCewA8d70x0hx6u8KdDc0=", + "integrity": "sha512-T7XxIRiiJ5NiaDYpuOvERath+rgcjxgJ1LGrcV7MNZAxgGLfBht447toqs1Elbj1wNyPDoimBiERMg5r2ZE6/w==", "requires": { "request": "^2.88.2" } @@ -72,7 +72,7 @@ "@sinonjs/samsam": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", - "integrity": "sha1-Rmgu/Zlnslm4ETa58SD9VFhf60o=", + "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", "dev": true, "requires": { "@sinonjs/commons": "^1.3.0", @@ -98,7 +98,7 @@ "acorn": { "version": "5.7.4", "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", - "integrity": "sha1-Po2KmUfQWZoXltECJddDL0pKz14=" + "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==" }, "acorn-jsx": { "version": "3.0.1", @@ -142,7 +142,7 @@ "ansi-colors": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", - "integrity": "sha1-V9NbhoboUeLMBMQD8cACA5dqGBM=", + "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", "dev": true }, "ansi-escapes": { @@ -224,7 +224,7 @@ "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" }, "asn1": { "version": "0.2.6", @@ -290,7 +290,7 @@ "uuid": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", - "integrity": "sha1-vGzPkbX/CsB7vNvxx8ThUNtNu2w=", + "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", "dev": true } } @@ -394,7 +394,7 @@ "browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha1-uqVZ7hTO1zRSIputcyZGfGH6vWA=", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "dev": true }, "buffer": { @@ -448,7 +448,7 @@ "camelcase": { "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha1-48mzFWnhBoEd8kL3FXJaH0xJQyA=", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true }, "canonicalize": { @@ -479,7 +479,7 @@ "chai-as-promised": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.1.tgz", - "integrity": "sha1-CGRdgl3rhpbuYXJdv1kMAS6wDKA=", + "integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==", "dev": true, "requires": { "check-error": "^1.0.2" @@ -530,7 +530,7 @@ "cliui": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", - "integrity": "sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", "dev": true, "requires": { "string-width": "^3.1.0", @@ -553,7 +553,7 @@ "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { "emoji-regex": "^7.0.1", @@ -564,7 +564,7 @@ "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { "ansi-regex": "^4.1.0" @@ -590,7 +590,7 @@ "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "dev": true, "requires": { "color-name": "1.1.3" @@ -618,7 +618,7 @@ "command-exists": { "version": "1.2.9", "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", - "integrity": "sha1-xQclrzgIyKsCYP1gsB+/oluVT2k=" + "integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==" }, "concat-map": { "version": "0.0.1", @@ -899,7 +899,7 @@ "emoji-regex": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", "dev": true }, "encodeurl": { @@ -983,7 +983,7 @@ "es-to-primitive": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha1-5VzUyc3BiLzvsDs2bHNjI/xciYo=", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", "dev": true, "requires": { "is-callable": "^1.1.4", @@ -1304,7 +1304,7 @@ "extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha1-+LETa0Bx+9jrFAr/hYsQGewpFfo=" + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "extended": { "version": "0.0.6", @@ -1399,7 +1399,7 @@ "find-up": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha1-SRafHXmTQwZG2mHsxa41XCHJe3M=", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { "locate-path": "^3.0.0" @@ -1481,7 +1481,7 @@ "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha1-pWiZ0+o8m6uHS7l3O3xe3pL0iV0=" + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "function.prototype.name": { "version": "1.1.5", @@ -1520,7 +1520,7 @@ "get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, "get-func-name": { @@ -1543,7 +1543,7 @@ "get-port": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha1-3Xzn3hh8Bsi/NTeWrHHgmfCYDrw=" + "integrity": "sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg==" }, "get-stdin": { "version": "5.0.1", @@ -1612,7 +1612,7 @@ "growl": { "version": "1.10.5", "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha1-8nNdwig2dPpnR4sQGBBZNVw2nl4=", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true }, "har-schema": { @@ -1632,7 +1632,7 @@ "has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "requires": { "function-bind": "^1.1.1" } @@ -1688,13 +1688,13 @@ "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha1-hK5l+n6vsWX922FWauFLrwVmTw8=", + "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true }, "http-basic": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/http-basic/-/http-basic-2.5.1.tgz", - "integrity": "sha1-jORHvbW2xXf4pj4/p4BW7Eu02/s=", + "integrity": "sha512-q/qOkgjcnZ90v0wSaMwamhfAhIf6lhOsH0ehHFnQHAt1lA9MedSnmqEEnh8bq0njTBAK3IsmS2gEuXryfWCDkw==", "requires": { "caseless": "~0.11.0", "concat-stream": "^1.4.6", @@ -1716,7 +1716,7 @@ "http-response-object": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-1.1.0.tgz", - "integrity": "sha1-p8TnWq6C87tJBOT0P2FWc7TVGMM=" + "integrity": "sha512-adERueQxEMtIfGk4ee/9CG7AGUjS09OyHeKrubTjmHUsEVXesrGlZLWYnCL8fajPZIX9H4NDnXyyzBPrF078sA==" }, "http-signature": { "version": "1.2.0", @@ -2049,7 +2049,7 @@ "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha1-afaofZUTq4u4/mO9sJecRI5oRmA=" + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "json-stable-stringify": { "version": "1.0.2", @@ -2072,7 +2072,7 @@ "jsonld": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/jsonld/-/jsonld-2.0.2.tgz", - "integrity": "sha1-9dBjHegozm3uOhTwjL3GpTF0zRU=", + "integrity": "sha512-/TQzRe75/3h2khu57IUojha5oat+M82bm8RYw0jLhlmmPrW/kTWAZ9nGzKPfZWnPYnVVJJMQVc/pU8HCmpv9xg==", "requires": { "canonicalize": "^1.0.1", "lru-cache": "^5.1.1", @@ -2085,7 +2085,7 @@ "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=" + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" } } }, @@ -2114,7 +2114,7 @@ "just-flatten": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/just-flatten/-/just-flatten-1.0.0.tgz", - "integrity": "sha1-PxMolnGrcJkllCWnbym4aTQynqE=" + "integrity": "sha512-BXIPhC+Zmr4Hg04wueix8PdoFyr/VSKymJBMOGDtkeZ+4LPX82Y1v082DJ91OzGTynI5t4RtA1hfdC+mLIrJeA==" }, "levn": { "version": "0.3.0", @@ -2128,7 +2128,7 @@ "locate-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha1-2+w7OrdZdYBxtY/ln8QYca8hQA4=", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { "p-locate": "^3.0.0", @@ -2149,7 +2149,7 @@ "log-symbols": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", - "integrity": "sha1-V0Dhxdbw39pK2TI7UzIQfva0xAo=", + "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", "dev": true, "requires": { "chalk": "^2.0.1" @@ -2158,7 +2158,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -2167,7 +2167,7 @@ "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha1-zUJUFnelQzPPVBpJEIwUMrRMlCQ=", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { "ansi-styles": "^3.2.1", @@ -2178,7 +2178,7 @@ "supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -2194,7 +2194,7 @@ "loglevel-plugin-prefix": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/loglevel-plugin-prefix/-/loglevel-plugin-prefix-0.5.3.tgz", - "integrity": "sha1-jpExuW5Gl6DbpReZb3a55sP0MhA=" + "integrity": "sha512-zRAJw3WYCQAJ6xfEIi04/oqlmR6jkwg3hmBcMW82Zic3iPWyju1gwntcgic0m5NgqYNJ62alCmb0g/div26WjQ==" }, "lolex": { "version": "2.7.5", @@ -2214,7 +2214,7 @@ "lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha1-HaJ+ZxAnGUdpXa9oSOhH8B2EuSA=", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "requires": { "yallist": "^3.0.2" } @@ -2222,7 +2222,7 @@ "manakin": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/manakin/-/manakin-0.5.2.tgz", - "integrity": "sha1-q+PfQwymCF9pg/bkz1rwKY9NMMw=" + "integrity": "sha512-pfDSB7QYoVg0Io4KMV9hhPoXpj6p0uBscgtyUSKCOFZe8bqgbpStfgnKIbF/ulnr6U3ICu4OqdyxAqBgOhZwBQ==" }, "md5": { "version": "2.3.0", @@ -2292,7 +2292,7 @@ "mocha": { "version": "6.2.3", "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.3.tgz", - "integrity": "sha1-5khDIYHYuZOTQQISZkRQpMHjGRI=", + "integrity": "sha512-0R/3FvjIGH3eEuG17ccFPk117XL2rWxatr81a57D+r/x2uTYZRbdZ4oVidEUMh2W2TJDa7MdAb12Lm2/qrKajg==", "dev": true, "requires": { "ansi-colors": "3.2.3", @@ -2323,7 +2323,7 @@ "debug": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha1-6D0X3hbYp++3cX7b5fsQE17uYps=", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", "dev": true, "requires": { "ms": "^2.1.1" @@ -2332,7 +2332,7 @@ "glob": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", - "integrity": "sha1-OWCDLT8VdBCDQtr9OmezMsCWnfE=", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -2365,7 +2365,7 @@ "mkdirp": { "version": "0.5.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz", - "integrity": "sha1-/QFQSmeX7Fyb6B/0PSBJYe1kpRI=", + "integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==", "dev": true, "requires": { "minimist": "^1.2.5" @@ -2374,7 +2374,7 @@ "ms": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha1-MKWGTrPrsKZvLr5tcnrwagnYbgo=", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", "dev": true }, "strip-json-comments": { @@ -2386,7 +2386,7 @@ "supports-color": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", - "integrity": "sha1-ds/nQs8fQbubHCmtAwaMBbTA5Ao=", + "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", "dev": true, "requires": { "has-flag": "^3.0.0" @@ -2410,7 +2410,7 @@ "mute-stream": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha1-FjDEKyJR/4HiooPelqVJfqkuXg0=" + "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" }, "negotiator": { "version": "0.6.3", @@ -2425,7 +2425,7 @@ "nise": { "version": "1.5.3", "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", - "integrity": "sha1-nSz+N9RPVzF3ZsbpQIo1nF06wfc=", + "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", "dev": true, "requires": { "@sinonjs/formatio": "^3.2.1", @@ -2438,7 +2438,7 @@ "@sinonjs/formatio": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", - "integrity": "sha1-dxxg36dep/LWjjuUx+iIp4eBNyw=", + "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", "dev": true, "requires": { "@sinonjs/commons": "^1", @@ -2454,7 +2454,7 @@ "lolex": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", - "integrity": "sha1-lTaU0JjOfAe8XtbQ5CvGwMbVo2c=", + "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", "dev": true, "requires": { "@sinonjs/commons": "^1.7.0" @@ -2463,7 +2463,7 @@ "path-to-regexp": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha1-iHs7qdhDk+h6CgufTLdWGYtTVIo=", + "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", "dev": true, "requires": { "isarray": "0.0.1" @@ -2474,7 +2474,7 @@ "node-cache": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/node-cache/-/node-cache-4.2.1.tgz", - "integrity": "sha1-79hHTe5O3sQTjN3tWA9VFlAPczQ=", + "integrity": "sha512-BOb67bWg2dTyax5kdef5WfU3X8xu4wPg+zHzkvls0Q/QpYycIFRLEEIdAx9Wma43DxG6Qzn4illdZoYseKWa4A==", "requires": { "clone": "2.x", "lodash": "^4.17.15" @@ -2483,7 +2483,7 @@ "node-environment-flags": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", - "integrity": "sha1-+pMCdfW/Xa4YjWGSsktMi7rD12o=", + "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", "dev": true, "requires": { "object.getownpropertydescriptors": "^2.0.3", @@ -2524,7 +2524,7 @@ "oauth-sign": { "version": "0.9.0", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha1-R6ewFrqmi1+g7PPe4IqFxnmsZFU=" + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" }, "object-assign": { "version": "4.1.1", @@ -2549,13 +2549,13 @@ "object-keys": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha1-HEfyct8nfzsdrwYWd9nILiMixg4=", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", "dev": true }, "object.assign": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", - "integrity": "sha1-lovxEA15Vrs8oIbwBvhGs7xACNo=", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", "dev": true, "requires": { "define-properties": "^1.1.2", @@ -2595,7 +2595,7 @@ }, "onetime": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=" }, "optionator": { @@ -2619,7 +2619,7 @@ "p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha1-PdM8ZHohT9//2DWTPrCG2g3CHbE=", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" @@ -2628,7 +2628,7 @@ "p-locate": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha1-Mi1poFwCZLJZl9n0DNiokasAZKQ=", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, "requires": { "p-limit": "^2.0.0" @@ -2637,7 +2637,7 @@ "p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha1-yyhoVA4xPWHeWPr741zpAE1VQOY=", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, "packet-reader": { @@ -2709,17 +2709,17 @@ "pg-minify": { "version": "0.5.5", "resolved": "https://registry.npmjs.org/pg-minify/-/pg-minify-0.5.5.tgz", - "integrity": "sha1-bJYaYaoZ9GnY7f5aPA2lh2Dzwzk=" + "integrity": "sha512-7Pf9h6nV1RFqED1hkRosePqvpPwNUUtW06TT4+lHwzesxa5gffxkShTjYH6JXV5sSSfh5+2yHOTTWEkCyCQ0Eg==" }, "pg-pool": { "version": "2.0.10", "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-2.0.10.tgz", - "integrity": "sha1-hC7iOwToaCTOnXhkMPg2UILYHEo=" + "integrity": "sha512-qdwzY92bHf3nwzIUcj+zJ0Qo5lpG/YxchahxIN8+ZVmXqkahKXsnl2aiJPHLYN9o5mB/leG+Xh6XKxtP7e0sjg==" }, "pg-promise": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/pg-promise/-/pg-promise-7.5.4.tgz", - "integrity": "sha1-we8vka2GhylkmdzPx3CdSzw/pDw=", + "integrity": "sha512-wuL+13P+Ris8MEUpdatv7OH5eHEahWBNmgGHEwLd88fym/eMAjxrFV+3jRKO7bFAyDTvo3wNcmuntYwR9eJnvg==", "requires": { "manakin": "~0.5.1", "pg": "~7.4.1", @@ -2764,7 +2764,7 @@ "postgres-array": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-1.0.3.tgz", - "integrity": "sha1-xWH8OyZrIUUfxlVThPSYbXjsgPU=" + "integrity": "sha512-5wClXrAP0+78mcsNX3/ithQ5exKvCyK5lr5NEEEeGwwM6NJdQgzIJBVxLvRW+huFpX92F2QnZ5CcokH0VhK2qQ==" }, "postgres-bytea": { "version": "1.0.0", @@ -2774,12 +2774,12 @@ "postgres-date": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", - "integrity": "sha1-UbwIYAYAXlBhxZHO5yfyUxv2Qag=" + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==" }, "postgres-interval": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", - "integrity": "sha1-tGDILLFYdQd4iBmgaqD//bNURpU=", + "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", "requires": { "xtend": "^4.0.0" } @@ -2802,7 +2802,7 @@ "promise": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha1-BktyYCsY+Q8pGSuLG8QY/9Hr078=", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "requires": { "asap": "~2.0.3" } @@ -2954,7 +2954,7 @@ "request": { "version": "2.88.2", "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha1-1zyRhzHLWofaBH4gcjQUb2ZNErM=", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", "requires": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -3020,7 +3020,7 @@ "require-main-filename": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=", + "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, "require-uncached": { @@ -3208,7 +3208,7 @@ }, "should-equal": { "version": "0.5.0", - "resolved": "https://registry.npmjs.org/should-equal/-/should-equal-0.5.0.tgz", + "resolved": "http://registry.npmjs.org/should-equal/-/should-equal-0.5.0.tgz", "integrity": "sha1-x5fxNfMGf+tp6+zbMGscP+IbPm8=", "dev": true, "requires": { @@ -3274,7 +3274,7 @@ "spex": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/spex/-/spex-2.0.2.tgz", - "integrity": "sha1-6MjWM6TGevZC3e1wHsI1DJ3pZKA=" + "integrity": "sha512-LU6TS3qTEpRth+FnNs/fIWEmridYN7JmaN2k1Jk31XVC4ex7+wYxiHMnKguRxS7oKjbOFl4H6seeWNDFFgkVRg==" }, "split2": { "version": "4.2.0", @@ -3456,7 +3456,7 @@ "sync-request": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/sync-request/-/sync-request-4.1.0.tgz", - "integrity": "sha1-MktOUG+5lNKv0qACGkVfgAcl8Ho=", + "integrity": "sha512-iFbOBWYaznBNbheIKaMkj+3EabpEsXbuwcTVuYkRjoav+Om5L8VXXLIXms0cHxkouXMRCQaSfhfau9/HyIbM2Q==", "requires": { "command-exists": "^1.2.2", "concat-stream": "^1.6.0", @@ -3524,7 +3524,7 @@ "then-request": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/then-request/-/then-request-2.2.0.tgz", - "integrity": "sha1-ZnizL6DKIY/laZgbvYhxtZQGDYE=", + "integrity": "sha512-YM/Fho1bQ3JFX9dgFQsBswc3aSTePXvtNHl3aXJTZNz/444yC86EVJR92aWMRNA0O9X0UfmojyCTUcT8Lbo5yA==", "requires": { "caseless": "~0.11.0", "concat-stream": "^1.4.7", @@ -3692,7 +3692,7 @@ "uuid": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4=" + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" }, "vary": { "version": "1.1.2", @@ -3719,7 +3719,7 @@ "which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -3761,7 +3761,7 @@ "wide-align": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha1-rgdOa9wMFKQx6ATmJFScYzsABFc=", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, "requires": { "string-width": "^1.0.2 || 2" @@ -3795,7 +3795,7 @@ "wrap-ansi": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", "dev": true, "requires": { "ansi-styles": "^3.2.0", @@ -3812,7 +3812,7 @@ "ansi-styles": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { "color-convert": "^1.9.0" @@ -3827,7 +3827,7 @@ "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { "emoji-regex": "^7.0.1", @@ -3838,7 +3838,7 @@ "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { "ansi-regex": "^4.1.0" @@ -3894,12 +3894,12 @@ "yallist": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha1-27fa+b/YusmrRev2ArjLrQ1dCP0=" + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, "yargs": { "version": "13.3.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", - "integrity": "sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "dev": true, "requires": { "cliui": "^5.0.0", @@ -3929,7 +3929,7 @@ "string-width": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha1-InZ74htirxCBV0MG9prFG2IgOWE=", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { "emoji-regex": "^7.0.1", @@ -3940,7 +3940,7 @@ "strip-ansi": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { "ansi-regex": "^4.1.0" @@ -3951,7 +3951,7 @@ "yargs-parser": { "version": "13.1.2", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", - "integrity": "sha1-Ew8JcC667vJlDVTObj5XBvek+zg=", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", "dev": true, "requires": { "camelcase": "^5.0.0", @@ -3961,7 +3961,7 @@ "yargs-unparser": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.6.0.tgz", - "integrity": "sha1-7yXCx2n/a9CeSw+dfGBfsnhG6p8=", + "integrity": "sha512-W9tKgmSn0DpSatfri0nx52Joq5hVXgeLiqR/5G0sZNDoLZFOr/xjBUDcShCOGNsBnEMNo1KAMBkTej1Hm62HTw==", "dev": true, "requires": { "flat": "^4.1.0", From 43936a668ae0aeb65f08654bf782afa1d43d2704 Mon Sep 17 00:00:00 2001 From: Vera Kahn Date: Thu, 11 Apr 2024 11:58:25 -0400 Subject: [PATCH 6/6] remove schomburg phys requestability logic --- lib/requestability_resolver.js | 6 +- lib/util.js | 25 - test/fixtures/schomburg.js | 1104 -------------------------- test/requestability_resolver.test.js | 24 - test/util.test.js | 23 - 5 files changed, 1 insertion(+), 1181 deletions(-) delete mode 100644 test/fixtures/schomburg.js diff --git a/lib/requestability_resolver.js b/lib/requestability_resolver.js index 9574a314..52b4d816 100644 --- a/lib/requestability_resolver.js +++ b/lib/requestability_resolver.js @@ -1,6 +1,6 @@ const DeliveryLocationsResolver = require('./delivery-locations-resolver') const { isItemNyplOwned } = require('./ownership_determination') -const { isInRecap, isInSchomburg, getSchomburgDeliveryInfo } = require('./util') +const { isInRecap } = require('./util') const logger = require('./logger') class RequestabilityResolver { static fixItemRequestability (elasticSearchResponse) { @@ -26,10 +26,6 @@ class RequestabilityResolver { physRequestableCriteria = `${deliveryInfo.deliveryLocation && deliveryInfo.deliveryLocation.length || 0} delivery locations.` } - if (isInSchomburg(item)) { - deliveryInfo = getSchomburgDeliveryInfo(item, deliveryInfo) - physRequestableCriteria = deliveryInfo.criteria - } item.eddRequestable = !!deliveryInfo.eddRequestable item.physRequestable = !!(deliveryInfo.deliveryLocation && deliveryInfo.deliveryLocation.length) diff --git a/lib/util.js b/lib/util.js index 542fed4c..b9707ab8 100644 --- a/lib/util.js +++ b/lib/util.js @@ -486,28 +486,3 @@ exports.isInRecap = (item) => { exports.itemHasRecapHoldingLocation(item) || !isItemNyplOwned(item) } - -exports.isInSchomburg = (item) => { - const holdingLocation = exports.deepValue(item, 'holdingLocation[0].id') - if (holdingLocation) { - return holdingLocation.startsWith('loc:sc') - } -} - -exports.getSchomburgDeliveryInfo = (item, deliveryInfo) => { - const itemType = exports.deepValue(item, 'catalogItemType[0].id') - if (itemType) { - const itemNumber = itemType.split(':')[1] - const holdingLocation = exports.deepValue(item, 'holdingLocation[0].id') - const case1 = holdingLocation === 'loc:scff3' && itemNumber === '26' - const case2 = holdingLocation === 'loc:scff2' && itemNumber === '6' - let criteria - if (case1) criteria = 'scff3 microfiche' - else if (case2) criteria = 'scff2 microfilm' - else { - deliveryInfo.deliveryLocation = [] - criteria = 'Non requestable schomburg catalog item type ' + itemNumber - } - return Object.assign({}, deliveryInfo, { criteria }) - } -} diff --git a/test/fixtures/schomburg.js b/test/fixtures/schomburg.js deleted file mode 100644 index d80870b5..00000000 --- a/test/fixtures/schomburg.js +++ /dev/null @@ -1,1104 +0,0 @@ -module.exports = { - scff3Microfiche: { - 'took': 817, - 'timed_out': false, - '_shards': { - 'total': 3, - 'successful': 3, - 'failed': 0 - }, - 'hits': { - 'total': 18434492, - 'max_score': null, - 'hits': [{ - '_index': 'resources-2020-05-08', - '_type': 'resource', - '_id': 'b10769327', - '_version': 6, - 'found': true, - '_source': { - 'extent': [ - 'v, 107 leaves.' - ], - 'note': [ - { - 'noteType': 'Thesis', - 'label': 'Thesis (Ph. D.)--University of California, Berkeley, June 1977.', - 'type': 'bf:Note' - }, - { - 'noteType': 'Bibliography', - 'label': 'Bibliography: leaves 100-107.', - 'type': 'bf:Note' - }, - { - 'noteType': 'Reproduction', - 'label': 'Microfiche.', - 'type': 'bf:Note' - } - ], - 'nyplSource': 'sierra-nypl', - 'subjectLiteral_exploded': [ - 'African American children', - 'African American children -- Language', - 'African Americans', - 'African Americans -- Study and teaching', - 'Black English', - 'Reading (Elementary)' - ], - 'language': [ - { - 'id': 'lang:eng', - 'label': 'English' - } - ], - 'createdYear': [ - 1977 - ], - 'type': [ - 'nypl:Item' - ], - 'title': [ - 'The effect of Black examiners, who speak Black dialect or standard English, on the test performance of Black second and third grade students administered the survey of primary reading development [microform] / ' - ], - 'shelfMark': [ - 'Sc Micro F-10210' - ], - 'creatorLiteral': [ - 'Fisch, Elaine.' - ], - 'createdString': [ - '1977' - ], - 'materialType_packed': [ - 'resourcetypes:txt||Text' - ], - 'language_packed': [ - 'lang:eng||English' - ], - 'dateStartYear': [ - 1977 - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro F-10210' - }, - { - 'type': 'nypl:Bnumber', - 'value': '10769327' - }, - { - 'type': 'bf:Identifier', - 'value': '(WaOLN)nyp0776221' - } - ], - 'creator_sort': [ - 'fisch, elaine.' - ], - 'carrierType_packed': [ - 'carriertypes:nc||volume' - ], - 'issuance_packed': [ - 'urn:biblevel:m||monograph/item' - ], - 'holdings': [], - 'updatedAt': 1619446503123, - 'mediaType_packed': [ - 'mediatypes:n||unmediated' - ], - 'publicationStatement': [ - '1977.' - ], - 'identifier': [ - 'urn:bnum:10769327', - 'urn:undefined:(WaOLN)nyp0776221' - ], - 'materialType': [ - { - 'id': 'resourcetypes:txt', - 'label': 'Text' - } - ], - 'carrierType': [ - { - 'id': 'carriertypes:nc', - 'label': 'volume' - } - ], - 'title_sort': [ - 'the effect of black examiners, who speak black dialect or standard english, on t' - ], - 'dateString': [ - '1977' - ], - 'mediaType': [ - { - 'id': 'mediatypes:n', - 'label': 'unmediated' - } - ], - 'subjectLiteral': [ - 'African American children -- Language.', - 'African Americans -- Study and teaching.', - 'Black English.', - 'Reading (Elementary)' - ], - 'titleDisplay': [ - 'The effect of Black examiners, who speak Black dialect or standard English, on the test performance of Black second and third grade students administered the survey of primary reading development [microform] / by Elaine Fisch.' - ], - 'uri': 'b10769327', - 'numItems': [ - 1 - ], - 'numAvailable': [ - 1 - ], - 'uris': [ - 'b10769327', - 'b10769327-i13909591' - ], - 'issuance': [ - { - 'id': 'urn:biblevel:m', - 'label': 'monograph/item' - } - ], - 'items': [ - { - 'owner': [ - { - 'id': 'orgs:1114', - 'label': 'Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - } - ], - 'accessMessage_packed': [ - 'accessMessage:1||Use in library' - ], - 'identifier': [ - 'urn:barcode:33433058833009' - ], - 'shelfMark_sort': 'aSc Micro F-10210 no. 000001-2', - 'catalogItemType_packed': [ - 'catalogItemType:26||microfiche' - ], - 'accessMessage': [ - { - 'id': 'accessMessage:1', - 'label': 'Use in library' - } - ], - 'status_packed': [ - 'status:a||Available ' - ], - 'uri': 'i13909591', - 'shelfMark': [ - 'Sc Micro F-10210 no. 1-2' - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro F-10210 no. 1-2' - }, - { - 'type': 'bf:Barcode', - 'value': '33433058833009' - } - ], - 'holdingLocation_packed': [ - 'loc:scff3||Schomburg Center - Research & Reference - Desk' - ], - 'idBarcode': [ - '33433058833009' - ], - 'owner_packed': [ - 'orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - ], - 'requestable': [ - false - ], - 'catalogItemType': [ - { - 'id': 'catalogItemType:26', - 'label': 'microfiche' - } - ], - 'status': [ - { - 'id': 'status:a', - 'label': 'Available ' - } - ], - 'holdingLocation': [ - { - 'id': 'loc:scff3', - 'label': 'Schomburg Center - Research & Reference - Desk' - } - ] - } - ] - } - }] - } - }, - invalidTypeScff3: { - 'took': 817, - 'timed_out': false, - '_shards': { - 'total': 3, - 'successful': 3, - 'failed': 0 - }, - 'hits': { - 'total': 18434492, - 'max_score': null, - 'hits': [ - { - '_index': 'resources-2020-05-08', - '_type': 'resource', - '_id': 'b13643829', - '_version': 3, - 'found': true, - '_source': { - 'extent': [ - '20 p. : ill. ;' - ], - 'note': [ - { - 'noteType': 'Note', - 'label': 'Cover title.', - 'type': 'bf:Note' - }, - { - 'noteType': 'Note', - 'label': 'At head of title: Dark & Lovely.', - 'type': 'bf:Note' - } - ], - 'nyplSource': 'sierra-nypl', - 'subjectLiteral_exploded': [ - 'African American families', - 'Family reunions', - 'Family reunions -- United States', - 'Family reunions -- United States -- Planning', - 'Still family' - ], - 'publisherLiteral': [ - 's.n.,' - ], - 'language': [ - { - 'id': 'lang:eng', - 'label': 'English' - } - ], - 'createdYear': [ - 1994 - ], - 'dateEndString': [ - '1995' - ], - 'type': [ - 'nypl:Item' - ], - 'title': [ - 'Proud heritage guide to planning a successful family reunion' - ], - 'shelfMark': [ - 'Sc D 98-2481' - ], - 'materialType_packed': [ - 'resourcetypes:txt||Text' - ], - 'createdString': [ - '1994' - ], - 'language_packed': [ - 'lang:eng||English' - ], - 'dateStartYear': [ - 1994 - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc D 98-2481' - }, - { - 'type': 'nypl:Bnumber', - 'value': '13643829' - } - ], - 'carrierType_packed': [ - 'carriertypes:nc||volume' - ], - 'issuance_packed': [ - 'urn:biblevel:m||monograph/item' - ], - 'dateEndYear': [ - 1995 - ], - 'updatedAt': 1524981554942, - 'mediaType_packed': [ - 'mediatypes:n||unmediated' - ], - 'publicationStatement': [ - '[S.l. : s.n., 1994 or 1995]' - ], - 'identifier': [ - 'urn:bnum:13643829' - ], - 'materialType': [ - { - 'id': 'resourcetypes:txt', - 'label': 'Text' - } - ], - 'carrierType': [ - { - 'id': 'carriertypes:nc', - 'label': 'volume' - } - ], - 'dateString': [ - '1994' - ], - 'title_sort': [ - 'proud heritage guide to planning a successful family reunion' - ], - 'mediaType': [ - { - 'id': 'mediatypes:n', - 'label': 'unmediated' - } - ], - 'subjectLiteral': [ - 'African American families.', - 'Family reunions -- United States -- Planning.', - 'Still family.' - ], - 'titleDisplay': [ - 'Proud heritage guide to planning a successful family reunion / compliments of the Still family.' - ], - 'uri': 'b13643829', - 'numItems': [ - 1 - ], - 'numAvailable': [ - 1 - ], - 'uris': [ - 'b13643829', - 'b13643829-i11305566' - ], - 'placeOfPublication': [ - '[S.l. :' - ], - 'issuance': [ - { - 'id': 'urn:biblevel:m', - 'label': 'monograph/item' - } - ], - 'items': [ - { - 'accessMessage_packed': [ - 'accessMessage:1||Use in library' - ], - 'owner': [ - { - 'id': 'orgs:1114', - 'label': 'Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - } - ], - 'identifier': [ - 'urn:barcode:33433015885043' - ], - 'catalogItemType_packed': [ - 'catalogItemType:2||book non-circ' - ], - 'accessMessage': [ - { - 'id': 'accessMessage:1', - 'label': 'Use in library' - } - ], - 'status_packed': [ - 'status:a||Available ' - ], - 'uri': 'i11305566', - 'shelfMark': [ - 'Sc D 98-2481' - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc D 98-2481' - }, - { - 'type': 'bf:Barcode', - 'value': '33433015885043' - } - ], - 'holdingLocation_packed': [ - 'loc:scff3||Schomburg Center - Research & Reference - Desk' - ], - 'idBarcode': [ - '33433015885043' - ], - 'owner_packed': [ - 'orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - ], - 'requestable': [ - false - ], - 'catalogItemType': [ - { - 'id': 'catalogItemType:2', - 'label': 'book non-circ' - } - ], - 'status': [ - { - 'id': 'status:a', - 'label': 'Available ' - } - ], - 'holdingLocation': [ - { - 'id': 'loc:scff3', - 'label': 'Schomburg Center - Research & Reference - Desk' - } - ] - } - ], - 'dimensions': [ - '22 cm.' - ] - } - }] - } - }, - scff2Microfilm: { - 'took': 817, - 'timed_out': false, - '_shards': { - 'total': 3, - 'successful': 3, - 'failed': 0 - }, - 'hits': { - 'total': 18434492, - 'max_score': null, - 'hits': [{ - '_index': 'resources-2020-05-08', - '_type': 'resource', - '_id': 'b10224367', - '_version': 6, - 'found': true, - '_source': { - 'extent': [ - '223 p.' - ], - 'note': [ - { - 'noteType': 'Reproduction', - 'label': 'Microfilm.', - 'type': 'bf:Note' - } - ], - 'nyplSource': 'sierra-nypl', - 'subjectLiteral_exploded': [ - 'Helper, Hinton Rowan, 1829-1909', - 'Slavery', - 'Slavery -- United States', - 'Slavery -- United States -- Controversial literature', - 'Slavery -- United States -- Controversial literature -- 1860-' - ], - 'publisherLiteral': [ - 'J. T. Lloyd,' - ], - 'language': [ - { - 'id': 'lang:eng', - 'label': 'English' - } - ], - 'createdYear': [ - 1860 - ], - 'type': [ - 'nypl:Item' - ], - 'title': [ - "Helper's Impending crisis dissected[microform]" - ], - 'shelfMark': [ - 'Sc Micro R-864 [pt. G]' - ], - 'creatorLiteral': [ - 'Wolfe, Samuel M.' - ], - 'createdString': [ - '1860' - ], - 'materialType_packed': [ - 'resourcetypes:txt||Text' - ], - 'idLccn': [ - '11017853' - ], - 'language_packed': [ - 'lang:eng||English' - ], - 'dateStartYear': [ - 1860 - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro R-864 [pt. G]' - }, - { - 'type': 'nypl:Bnumber', - 'value': '10224367' - }, - { - 'type': 'bf:Lccn', - 'value': '11017853' - }, - { - 'type': 'bf:Identifier', - 'value': 'NN754080857' - }, - { - 'type': 'bf:Identifier', - 'value': '(WaOLN)nyp0226236' - } - ], - 'creator_sort': [ - 'wolfe, samuel m.' - ], - 'carrierType_packed': [ - 'carriertypes:nc||volume' - ], - 'issuance_packed': [ - 'urn:biblevel:m||monograph/item' - ], - 'holdings': [], - 'updatedAt': 1619445163123, - 'mediaType_packed': [ - 'mediatypes:n||unmediated' - ], - 'publicationStatement': [ - 'Philadelphia: J. T. Lloyd, 1860.' - ], - 'identifier': [ - 'urn:bnum:10224367', - 'urn:lccn:11017853', - 'urn:undefined:NN754080857', - 'urn:undefined:(WaOLN)nyp0226236' - ], - 'materialType': [ - { - 'id': 'resourcetypes:txt', - 'label': 'Text' - } - ], - 'carrierType': [ - { - 'id': 'carriertypes:nc', - 'label': 'volume' - } - ], - 'title_sort': [ - "helper's impending crisis dissected[microform]" - ], - 'dateString': [ - '1860' - ], - 'mediaType': [ - { - 'id': 'mediatypes:n', - 'label': 'unmediated' - } - ], - 'subjectLiteral': [ - 'Helper, Hinton Rowan, 1829-1909.', - 'Slavery -- United States -- Controversial literature -- 1860-' - ], - 'titleDisplay': [ - "Helper's Impending crisis dissected[microform] / by Samuel M.Wolfe, Virginia." - ], - 'uri': 'b10224367', - 'numItems': [ - 2 - ], - 'numAvailable': [ - 2 - ], - 'uris': [ - 'b10224367', - 'b10224367-i24028840', - 'b10224367-i30547944', - 'b10224367-i10053088' - ], - 'placeOfPublication': [ - 'Philadelphia:' - ], - 'issuance': [ - { - 'id': 'urn:biblevel:m', - 'label': 'monograph/item' - } - ], - 'items': [ - { - 'owner': [ - { - 'id': 'orgs:1114', - 'label': 'Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - } - ], - 'accessMessage_packed': [ - 'accessMessage:1||Use in library' - ], - 'identifier': [ - 'urn:barcode:33433016495024' - ], - 'shelfMark_sort': 'aSc Micro R-000864', - 'catalogItemType_packed': [ - 'catalogItemType:6||microfilm service copy' - ], - 'accessMessage': [ - { - 'id': 'accessMessage:1', - 'label': 'Use in library' - } - ], - 'status_packed': [ - 'status:a||Available ' - ], - 'uri': 'i24028840', - 'shelfMark': [ - 'Sc Micro R-864' - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro R-864' - }, - { - 'type': 'bf:Barcode', - 'value': '33433016495024' - } - ], - 'holdingLocation_packed': [ - 'loc:scff2||Schomburg Center - Research & Reference' - ], - 'idBarcode': [ - '33433016495024' - ], - 'owner_packed': [ - 'orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - ], - 'requestable': [ - false - ], - 'catalogItemType': [ - { - 'id': 'catalogItemType:6', - 'label': 'microfilm service copy' - } - ], - 'status': [ - { - 'id': 'status:a', - 'label': 'Available ' - } - ], - 'holdingLocation': [ - { - 'id': 'loc:scff2', - 'label': 'Schomburg Center - Research & Reference' - } - ] - }, - { - 'owner': [ - { - 'id': 'orgs:1114', - 'label': 'Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - } - ], - 'accessMessage_packed': [ - 'accessMessage:1||Use in library' - ], - 'shelfMark_sort': 'aSc Micro R-864 [pt. G]', - 'catalogItemType_packed': [ - 'catalogItemType:6||microfilm service copy' - ], - 'accessMessage': [ - { - 'id': 'accessMessage:1', - 'label': 'Use in library' - } - ], - 'status_packed': [ - 'status:a||Available' - ], - 'uri': 'i10053088', - 'shelfMark': [ - 'Sc Micro R-864 [pt. G]' - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro R-864 [pt. G]' - } - ], - 'holdingLocation_packed': [ - 'loc:scff2||Schomburg Center - Research & Reference' - ], - 'owner_packed': [ - 'orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - ], - 'requestable': [ - false - ], - 'catalogItemType': [ - { - 'id': 'catalogItemType:6', - 'label': 'microfilm service copy' - } - ], - 'status': [ - { - 'id': 'status:a', - 'label': 'Available' - } - ], - 'holdingLocation': [ - { - 'id': 'loc:scff2', - 'label': 'Schomburg Center - Research & Reference' - } - ] - } - ] - } - }] - } - }, - invalidTypeScff2: { - 'took': 817, - 'timed_out': false, - '_shards': { - 'total': 3, - 'successful': 3, - 'failed': 0 - }, - 'hits': { - 'total': 18434492, - 'max_score': null, - 'hits': [{ - '_index': 'resources-2020-05-08', - '_type': 'resource', - '_id': 'b10224367', - '_version': 6, - 'found': true, - '_source': { - 'extent': [ - '223 p.' - ], - 'note': [ - { - 'noteType': 'Reproduction', - 'label': 'Microfilm.', - 'type': 'bf:Note' - } - ], - 'nyplSource': 'sierra-nypl', - 'subjectLiteral_exploded': [ - 'Helper, Hinton Rowan, 1829-1909', - 'Slavery', - 'Slavery -- United States', - 'Slavery -- United States -- Controversial literature', - 'Slavery -- United States -- Controversial literature -- 1860-' - ], - 'publisherLiteral': [ - 'J. T. Lloyd,' - ], - 'language': [ - { - 'id': 'lang:eng', - 'label': 'English' - } - ], - 'createdYear': [ - 1860 - ], - 'type': [ - 'nypl:Item' - ], - 'title': [ - "Helper's Impending crisis dissected[microform]" - ], - 'shelfMark': [ - 'Sc Micro R-864 [pt. G]' - ], - 'creatorLiteral': [ - 'Wolfe, Samuel M.' - ], - 'createdString': [ - '1860' - ], - 'materialType_packed': [ - 'resourcetypes:txt||Text' - ], - 'idLccn': [ - '11017853' - ], - 'language_packed': [ - 'lang:eng||English' - ], - 'dateStartYear': [ - 1860 - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro R-864 [pt. G]' - }, - { - 'type': 'nypl:Bnumber', - 'value': '10224367' - }, - { - 'type': 'bf:Lccn', - 'value': '11017853' - }, - { - 'type': 'bf:Identifier', - 'value': 'NN754080857' - }, - { - 'type': 'bf:Identifier', - 'value': '(WaOLN)nyp0226236' - } - ], - 'creator_sort': [ - 'wolfe, samuel m.' - ], - 'carrierType_packed': [ - 'carriertypes:nc||volume' - ], - 'issuance_packed': [ - 'urn:biblevel:m||monograph/item' - ], - 'holdings': [], - 'updatedAt': 1619445163123, - 'mediaType_packed': [ - 'mediatypes:n||unmediated' - ], - 'publicationStatement': [ - 'Philadelphia: J. T. Lloyd, 1860.' - ], - 'identifier': [ - 'urn:bnum:10224367', - 'urn:lccn:11017853', - 'urn:undefined:NN754080857', - 'urn:undefined:(WaOLN)nyp0226236' - ], - 'materialType': [ - { - 'id': 'resourcetypes:txt', - 'label': 'Text' - } - ], - 'carrierType': [ - { - 'id': 'carriertypes:nc', - 'label': 'volume' - } - ], - 'title_sort': [ - "helper's impending crisis dissected[microform]" - ], - 'dateString': [ - '1860' - ], - 'mediaType': [ - { - 'id': 'mediatypes:n', - 'label': 'unmediated' - } - ], - 'subjectLiteral': [ - 'Helper, Hinton Rowan, 1829-1909.', - 'Slavery -- United States -- Controversial literature -- 1860-' - ], - 'titleDisplay': [ - "Helper's Impending crisis dissected[microform] / by Samuel M.Wolfe, Virginia." - ], - 'uri': 'b10224367', - 'numItems': [ - 2 - ], - 'numAvailable': [ - 2 - ], - 'uris': [ - 'b10224367', - 'b10224367-i24028840', - 'b10224367-i30547944', - 'b10224367-i10053088' - ], - 'placeOfPublication': [ - 'Philadelphia:' - ], - 'issuance': [ - { - 'id': 'urn:biblevel:m', - 'label': 'monograph/item' - } - ], - 'items': [ - { - 'owner': [ - { - 'id': 'orgs:1114', - 'label': 'Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - } - ], - 'accessMessage_packed': [ - 'accessMessage:1||Use in library' - ], - 'identifier': [ - 'urn:barcode:33433016495024' - ], - 'shelfMark_sort': 'aSc Micro R-000864', - 'catalogItemType_packed': [ - 'catalogItemType:6||microfilm service copy' - ], - 'accessMessage': [ - { - 'id': 'accessMessage:1', - 'label': 'Use in library' - } - ], - 'status_packed': [ - 'status:a||Available ' - ], - 'uri': 'i24028840', - 'shelfMark': [ - 'Sc Micro R-864' - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro R-864' - }, - { - 'type': 'bf:Barcode', - 'value': '33433016495024' - } - ], - 'holdingLocation_packed': [ - 'loc:scff2||Schomburg Center - Research & Reference' - ], - 'idBarcode': [ - '33433016495024' - ], - 'owner_packed': [ - 'orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - ], - 'requestable': [ - false - ], - 'catalogItemType': [ - { - 'id': 'catalogItemType:4', - 'label': 'microfilm service copy' - } - ], - 'status': [ - { - 'id': 'status:a', - 'label': 'Available ' - } - ], - 'holdingLocation': [ - { - 'id': 'loc:scff2', - 'label': 'Schomburg Center - Research & Reference' - } - ] - }, - { - 'owner': [ - { - 'id': 'orgs:1114', - 'label': 'Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - } - ], - 'accessMessage_packed': [ - 'accessMessage:1||Use in library' - ], - 'shelfMark_sort': 'aSc Micro R-864 [pt. G]', - 'catalogItemType_packed': [ - 'catalogItemType:6||microfilm service copy' - ], - 'accessMessage': [ - { - 'id': 'accessMessage:1', - 'label': 'Use in library' - } - ], - 'status_packed': [ - 'status:a||Available' - ], - 'uri': 'i10053088', - 'shelfMark': [ - 'Sc Micro R-864 [pt. G]' - ], - 'identifierV2': [ - { - 'type': 'bf:ShelfMark', - 'value': 'Sc Micro R-864 [pt. G]' - } - ], - 'holdingLocation_packed': [ - 'loc:scff2||Schomburg Center - Research & Reference' - ], - 'owner_packed': [ - 'orgs:1114||Schomburg Center for Research in Black Culture, Jean Blackwell Hutson Research and Reference Division' - ], - 'requestable': [ - false - ], - 'catalogItemType': [ - { - 'id': 'catalogItemType:6', - 'label': 'microfilm service copy' - } - ], - 'status': [ - { - 'id': 'status:a', - 'label': 'Available' - } - ], - 'holdingLocation': [ - { - 'id': 'loc:scff2', - 'label': 'Schomburg Center - Research & Reference' - } - ] - } - ] - } - }] - } - } -} diff --git a/test/requestability_resolver.test.js b/test/requestability_resolver.test.js index 1c2a8b72..164a2a45 100644 --- a/test/requestability_resolver.test.js +++ b/test/requestability_resolver.test.js @@ -3,32 +3,8 @@ const elasticSearchResponse = require('./fixtures/elastic_search_response.js') const specRequestableElasticSearchResponse = require('./fixtures/specRequestable-es-response') const eddElasticSearchResponse = require('./fixtures/edd_elastic_search_response') const noBarcodeResponse = require('./fixtures/no_barcode_es_response') -// const { scff3Microfiche, invalidTypeScff3, scff2Microfilm, invalidTypeScff2 } = require('./fixtures/schomburg.js') -const { scff3Microfiche, invalidTypeScff3, invalidTypeScff2 } = require('./fixtures/schomburg.js') describe('RequestabilityResolver', () => { - describe('Schomburg requestability', () => { - it('returns physRequestable true for scff3 microfiche', () => { - const resp = RequestabilityResolver.fixItemRequestability(scff3Microfiche) - const item = resp.hits.hits[0]._source.items[0] - expect(item.physRequestable).to.be.true - }) - it('returns physRequestable false for invalid item type, scff3', () => { - const resp = RequestabilityResolver.fixItemRequestability(invalidTypeScff3) - const item = resp.hits.hits[0]._source.items[0] - expect(item.physRequestable).to.be.false - }) - // it('returns physRequestable true for scff2 microfilm', () => { - // const resp = RequestabilityResolver.fixItemRequestability(scff2Microfilm) - // const item = resp.hits.hits[0]._source.items[0] - // expect(item.physRequestable).to.be.true - // }) - it('returns physRequestable false for invalid item type, scff2', () => { - const resp = RequestabilityResolver.fixItemRequestability(invalidTypeScff2) - const item = resp.hits.hits[0]._source.items[0] - expect(item.physRequestable).to.be.false - }) - }) describe('fixItemRequestability', function () { const NyplResponse = elasticSearchResponse.fakeElasticSearchResponseNyplItem() it('sets physRequestable false for items with no barcodes', () => { diff --git a/test/util.test.js b/test/util.test.js index d10769ae..3f9d3ad1 100644 --- a/test/util.test.js +++ b/test/util.test.js @@ -3,29 +3,6 @@ const { expect } = require('chai') const util = require('../lib/util') describe('Util', function () { - describe('isSchomburg', () => { - it('returns false for non schomburg location', () => { - const item = { - 'holdingLocation': [ - { - 'id': 'loc:mal' - } - ] - } - expect(util.isInSchomburg(item)).to.be.false - }) - it('returns true for schomburg items', () => { - const item = { - 'holdingLocation': [ - { - 'id': 'loc:scff3' - } - ] - } - expect(util.isInSchomburg(item)).to.be.true - }) - }) - describe('backslashes', function () { it('escapes specials', function () { const result = util.backslashes('?', 2)