From 12878f7407a1bc9cfd86fc12019a14a59b2f43ff Mon Sep 17 00:00:00 2001 From: Dmytro-Melnyshyn <77053927+Dmytro-Melnyshyn@users.noreply.github.com> Date: Thu, 9 May 2024 17:37:11 +0300 Subject: [PATCH] add 'throwErrors: false' to DataProvider manifest (#2477) --- src/providers/DataProvider.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/providers/DataProvider.js b/src/providers/DataProvider.js index 5c8b9aa34..782f4a861 100644 --- a/src/providers/DataProvider.js +++ b/src/providers/DataProvider.js @@ -138,42 +138,49 @@ DataProvider.manifest = { records: 'identifierTypes', path: 'identifier-types?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, contributorTypes: { type: 'okapi', records: 'contributorTypes', path: 'contributor-types?limit=400&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, contributorNameTypes: { type: 'okapi', records: 'contributorNameTypes', path: 'contributor-name-types?limit=1000&query=cql.allRecords=1 sortby ordering', resourceShouldRefresh: true, + throwErrors: false, }, instanceFormats: { type: 'okapi', records: 'instanceFormats', path: 'instance-formats?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, instanceTypes: { type: 'okapi', records: 'instanceTypes', path: 'instance-types?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, classificationTypes: { type: 'okapi', records: 'classificationTypes', path: 'classification-types?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, alternativeTitleTypes: { type: 'okapi', records: 'alternativeTitleTypes', path: 'alternative-title-types?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, locations: { type: 'okapi', @@ -185,24 +192,28 @@ DataProvider.manifest = { }, accumulate: true, resourceShouldRefresh: true, + throwErrors: false, }, instanceRelationshipTypes: { type: 'okapi', records: 'instanceRelationshipTypes', path: 'instance-relationship-types?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, instanceStatuses: { type: 'okapi', records: 'instanceStatuses', path: 'instance-statuses?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, modesOfIssuance: { type: 'okapi', records: 'issuanceModes', path: 'modes-of-issuance?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, instanceNoteTypes: { type: 'okapi', @@ -213,48 +224,56 @@ DataProvider.manifest = { }, records: 'instanceNoteTypes', resourceShouldRefresh: true, + throwErrors: false, }, electronicAccessRelationships: { type: 'okapi', records: 'electronicAccessRelationships', path: 'electronic-access-relationships?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, statisticalCodeTypes: { type: 'okapi', records: 'statisticalCodeTypes', path: 'statistical-code-types?limit=1000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, statisticalCodes: { type: 'okapi', records: 'statisticalCodes', path: 'statistical-codes?limit=2000&query=cql.allRecords=1 sortby name', resourceShouldRefresh: true, + throwErrors: false, }, illPolicies: { type: 'okapi', path: 'ill-policies?limit=1000&query=cql.allRecords=1 sortby name', records: 'illPolicies', resourceShouldRefresh: true, + throwErrors: false, }, holdingsTypes: { type: 'okapi', path: 'holdings-types?limit=1000&query=cql.allRecords=1 sortby name', records: 'holdingsTypes', resourceShouldRefresh: true, + throwErrors: false, }, callNumberTypes: { type: 'okapi', path: 'call-number-types?limit=1000&query=cql.allRecords=1 sortby name', records: 'callNumberTypes', resourceShouldRefresh: true, + throwErrors: false, }, holdingsNoteTypes: { type: 'okapi', path: 'holdings-note-types?limit=1000&query=cql.allRecords=1 sortby name', records: 'holdingsNoteTypes', resourceShouldRefresh: true, + throwErrors: false, }, itemNoteTypes: { type: 'okapi', @@ -265,18 +284,21 @@ DataProvider.manifest = { }, records: 'itemNoteTypes', resourceShouldRefresh: true, + throwErrors: false, }, itemDamagedStatuses: { type: 'okapi', path: 'item-damaged-statuses?limit=1000&query=cql.allRecords=1 sortby name', records: 'itemDamageStatuses', resourceShouldRefresh: true, + throwErrors: false, }, natureOfContentTerms: { type: 'okapi', path: 'nature-of-content-terms?limit=1000&query=cql.allRecords=1 sortby name', records: 'natureOfContentTerms', resourceShouldRefresh: true, + throwErrors: false, }, materialTypes: { type: 'okapi', @@ -287,6 +309,7 @@ DataProvider.manifest = { }, records: 'mtypes', resourceShouldRefresh: true, + throwErrors: false, }, loanTypes: { type: 'okapi', @@ -297,6 +320,7 @@ DataProvider.manifest = { }, records: 'loantypes', resourceShouldRefresh: true, + throwErrors: false, }, tags: { path: 'tags?limit=10000', // the same as Tags component in stripes-smart-components @@ -314,6 +338,7 @@ DataProvider.manifest = { }, records: 'holdingsRecordsSources', resourceShouldRefresh: true, + throwErrors: false, } };