Skip to content

Commit

Permalink
UIQM-591 Show permission `quickMARC: Create a new MARC authority reco…
Browse files Browse the repository at this point in the history
…rd`. Don't load locations when MARC type is not Holdings. (#624)
  • Loading branch information
BogdanDenis authored Nov 28, 2023
1 parent f8e2f1a commit 5fb6c3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [UIQM-543](https://issues.folio.org/browse/UIQM-543) Remove eslint deps that are already listed in eslint-config-stripes.
* [UIQM-573](https://issues.folio.org/browse/UIQM-573) Edit MARC authority | Allow user to Add/Edit 010 $a when linking is based on 001.
* [UIQM-574](https://issues.folio.org/browse/UIQM-574) Added authority source file selection button and modal to Authority Create view.
* [UIQM-591](https://issues.folio.org/browse/UIQM-591) Show permission `quickMARC: Create a new MARC authority record`. Don't load locations when MARC type is not Holdings.

## [7.0.4](https://github.com/folio-org/ui-quick-marc/tree/v7.0.4) (2023-11-09)

Expand Down
5 changes: 4 additions & 1 deletion src/QuickMarcEditor/QuickMarcEditorContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ const QuickMarcEditorContainer = ({
...headers,
});

const locationsPromise = mutator.locations.GET(headers);
const locationsPromise = marcType === MARC_TYPES.HOLDINGS
? mutator.locations.GET(headers)
: Promise.resolve();

// must be with the central tenant id when user derives shared record
const linkingRulesPromise = mutator.linkingRules.GET(headers);

Expand Down

0 comments on commit 5fb6c3c

Please sign in to comment.