From 388c27684a7a36e8159bc96cf3253d5354ff6f17 Mon Sep 17 00:00:00 2001 From: Mariia Aloshyna <55138456+mariia-aloshyna@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:20:45 +0200 Subject: [PATCH] Release v12.0.10 (#2717) * UIIN-3196: Fix '"location name" is undefined' error when trying to open instance details on ECS * UIIN-3198: Display Shared facet when user opens 'Move holdings/items to another instance' modal * UIIN-3188: ECS - Allow 'Move holdings/items to another instance' if instance is shared * Release v12.0.10 --------- Co-authored-by: Oleksandr Hladchenko1 --- CHANGELOG.md | 7 +++++++ package.json | 2 +- .../consortium/LimitedHoldingsList/LimitedHoldingsList.js | 2 +- src/ViewInstance.js | 3 +-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6662f78a4..45f12bd11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change history for ui-inventory +## [12.0.10](https://github.com/folio-org/ui-inventory/tree/v12.0.10) (2025-01-20) +[Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.9...v12.0.10) + +* Fix '"location name" is undefined' error when trying to open instance details on ECS. Fixes UIIN-3196. +* Display `Shared` facet when user opens "Move holdings/items to another instance" modal. Refs UIIN-3198. +* ECS - Allow 'Move holdings/items to another instance' if instance is shared. Refs UIIN-3188. + ## [12.0.9](https://github.com/folio-org/ui-inventory/tree/v12.0.9) (2025-01-13) [Full Changelog](https://github.com/folio-org/ui-inventory/compare/v12.0.8...v12.0.9) diff --git a/package.json b/package.json index a5d964349..7e8a14cf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@folio/inventory", - "version": "12.0.9", + "version": "12.0.10", "description": "Inventory manager", "repository": "folio-org/ui-inventory", "publishConfig": { diff --git a/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js b/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js index e90856712..fe22e07ce 100644 --- a/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js +++ b/src/Instance/HoldingsList/consortium/LimitedHoldingsList/LimitedHoldingsList.js @@ -19,7 +19,7 @@ const LimitedHoldingsList = ({ instance={instance} holding={holding} tenantId={tenantId} - locationName={locationsById[holding.permanentLocationId].name} + locationName={locationsById[holding.permanentLocationId]?.name} userTenantPermissions={userTenantPermissions} pathToAccordionsState={pathToAccordionsState} /> diff --git a/src/ViewInstance.js b/src/ViewInstance.js index 4b3eeef89..13b759327 100644 --- a/src/ViewInstance.js +++ b/src/ViewInstance.js @@ -826,7 +826,7 @@ class ViewInstance extends React.Component { ); const showQuickMarcMenuSection = isSourceMARC && (canCreateMARCHoldings || canEditMARCRecord || canDeriveMARCRecord); - const canMoveHoldingsItemsToAnotherInstance = (canMoveItems || canMoveHoldings) && !isShared; + const canMoveHoldingsItemsToAnotherInstance = canMoveItems || canMoveHoldings; // the `identifier` is responsible for displaying the plugin `copyright-permissions-checker` if (!showInventoryMenuSection && !showQuickMarcMenuSection && !identifier) { @@ -1218,7 +1218,6 @@ class ViewInstance extends React.Component { onSelect={this.selectInstance} onClose={this.toggleFindInstancePlugin} withTrigger={false} - suppressSharedFacet /> ) }