diff --git a/CHANGELOG.md b/CHANGELOG.md index 561091bba..9188ee9d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ * Change validation messages which were represented in code format (UIDATIMP-1473) * *BREAKING* bump `react` to `v18`, and dev-deps accordingly (UIDATIMP-1485) * Match profile: update options for Instance "Incoming records" (UIDATIMP-1501) +* Match profile: update options for MARC Bibliographic "Incoming records" (UIDATIMP-1504) * Update Node.js to v18 in GitHub Actions (UIDATIMP-1507) * leverage jest-config-stripes for all jest and testing-library packages (UIDATIMP-1508) * *BREAKING* bump `react-intl` to `v6.4.4` (UIDATIMP-1520) diff --git a/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js b/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js index 816c26f9c..284adf675 100644 --- a/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js +++ b/src/components/RecordTypesSelect/components/IncomingRecordMenu.test.js @@ -79,11 +79,10 @@ describe('IncomingRecordMenu component', () => { }); describe('when exisiting record type is "MARC_BIBLIOGRAPHIC"', () => { - it('should render "MARC Bibliographic", "MARC Authority" and "Static value" options', () => { + it('should render "MARC Bibliographic" and "Static value" options', () => { const { getByText } = renderIncomingRecordMenu({ open: true, existingRecordType: 'MARC_BIBLIOGRAPHIC' }); expect(getByText('MARC Bibliographic')).toBeVisible(); - expect(getByText('MARC Authority')).toBeVisible(); expect(getByText('Static value (submatch only)')).toBeVisible(); }); }); diff --git a/src/utils/constants.js b/src/utils/constants.js index b7cad8390..eedf4d805 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -882,6 +882,7 @@ export const ALLOWED_INCOMING_RECORD_TYPES = { ]), [FOLIO_RECORD_TYPES.MARC_BIBLIOGRAPHIC.type]: omit(MATCH_INCOMING_RECORD_TYPES, [ MATCH_INCOMING_RECORD_TYPES.MARC_HOLDINGS.type, + MATCH_INCOMING_RECORD_TYPES.MARC_AUTHORITY.type, ]), [FOLIO_RECORD_TYPES.MARC_AUTHORITY.type]: omit(MATCH_INCOMING_RECORD_TYPES, [ MATCH_INCOMING_RECORD_TYPES.MARC_HOLDINGS.type,