diff --git a/CHANGELOG.md b/CHANGELOG.md index 33a3b8880..23c5245b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * User can edit Source consortium "Holdings sources" in member tenant but not in Consortia manager. Refs UIIN-3147. * React 19: refactor away from react-dom/test-utils. Refs UIIN-2888. * Add call number browse settings. Refs UIIN-3116. +* *BREAKING* Use `browse` `1.5` interface that provides new Call Number Browse endpoints. ## [12.0.7](https://github.com/folio-org/ui-inventory/tree/v12.0.7) (2024-12-17) [Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.6...v12.0.7) diff --git a/package.json b/package.json index d6c8f2008..a2c7a39a8 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "okapiInterfaces": { "alternative-title-types": "1.0", "call-number-types": "1.0", - "browse": "0.6 1.0", + "browse": "1.5", "circulation": "9.0 10.0 11.0 12.0 13.0 14.0", "classification-types": "1.1", "configuration": "2.0", diff --git a/src/hooks/useInventoryBrowse/constants.js b/src/hooks/useInventoryBrowse/constants.js index 0e0bb7b05..842fc955b 100644 --- a/src/hooks/useInventoryBrowse/constants.js +++ b/src/hooks/useInventoryBrowse/constants.js @@ -9,16 +9,16 @@ export const FIVE_MINUTES = 5 * 60 * 1000; export const PATH_MAP = { [browseModeOptions.SUBJECTS]: 'browse/subjects/instances', - [browseModeOptions.CALL_NUMBERS]: 'browse/call-numbers/instances', - [browseModeOptions.DEWEY]: 'browse/call-numbers/instances', - [browseModeOptions.LIBRARY_OF_CONGRESS]: 'browse/call-numbers/instances', - [browseModeOptions.LOCAL]: 'browse/call-numbers/instances', - [browseModeOptions.NATIONAL_LIBRARY_OF_MEDICINE]: 'browse/call-numbers/instances', - [browseModeOptions.OTHER]: 'browse/call-numbers/instances', + [browseModeOptions.CALL_NUMBERS]: 'browse/call-numbers/all/instances', + [browseModeOptions.DEWEY]: 'browse/call-numbers/dewey/instances', + [browseModeOptions.LIBRARY_OF_CONGRESS]: 'browse/call-numbers/lc/instances', + [browseModeOptions.LOCAL]: 'browse/call-numbers/instances', // not supported, option disabled + [browseModeOptions.NATIONAL_LIBRARY_OF_MEDICINE]: 'browse/call-numbers/nlm/instances', + [browseModeOptions.OTHER]: 'browse/call-numbers/other/instances', + [browseModeOptions.SUPERINTENDENT]: 'browse/call-numbers/sudoc/instances', [browseModeOptions.CLASSIFICATION_ALL]: 'browse/classification-numbers/all/instances', [browseModeOptions.DEWEY_CLASSIFICATION]: 'browse/classification-numbers/dewey/instances', [browseModeOptions.LC_CLASSIFICATION]: 'browse/classification-numbers/lc/instances', - [browseModeOptions.SUPERINTENDENT]: 'browse/call-numbers/instances', [browseModeOptions.CONTRIBUTORS]: 'browse/contributors/instances', };