From ddd97b8ad011e10038a57427c957e15f79fb7d2f Mon Sep 17 00:00:00 2001 From: Priyanka Terala <104053200+Terala-Priyanka@users.noreply.github.com> Date: Thu, 30 May 2024 14:56:49 +0530 Subject: [PATCH 01/11] UITEN-290 - Make dependency on mod-reading-rooms optional. (#407) --- CHANGELOG.md | 5 +++-- package.json | 8 ++++---- src/settings/index.js | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6845b214..d93aca6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,16 +1,17 @@ # Change history for ui-tenant-settings -## 9.0.0 (IN PROGRESS) +## 8.2.0 (IN PROGRESS) * [UITEN-274](https://folio-org.atlassian.net/browse/UITEN-274) Use Save & close button label stripes-component translation key. * [UITEN-280](https://folio-org.atlassian.net/browse/UITEN-280) Conditionally include SSO Settings based on login-saml interface. -* [UITEN-286](https://folio-org.atlassian.net/browse/UITEN-286) *BREAKING* Add new interface. Add new permission to view reading room access in tenant settings. +* [UITEN-286](https://folio-org.atlassian.net/browse/UITEN-286) Add new interface. Add new permission to view reading room access in tenant settings. * [UITEN-287](https://folio-org.atlassian.net/browse/UITEN-287) Add new permission to create, edit and remove reading room access in tenant settings. * [UITEN-277](https://issues.folio.org/browse/UITEN-277) Ensure Reading Room Access settings page is wrapped by `Title Manager`. * [UITEN-276](https://issues.folio.org/browse/UITEN-276) Reading Room Access (settings): Basic Layout. * [UITEN-278] (https://issues.folio.org/browse/UITEN-278) Reading Room Access (settings): Create new reading room. * [UITEN-282] (https://issues.folio.org/browse/UITEN-282) Reading Room Access (settings): Update reading room. * [UITEN-283] (https://issues.folio.org/browse/UITEN-283) Reading Room Access (settings): Delete reading room. +* [UITEN-290] (https://issues.folio.org/browse/UITEN-290) Make dependency on mod-reading-rooms optional. ## [8.1.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.1.0)(2024-03-19) [Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v8.0.0...v8.1.0) diff --git a/package.json b/package.json index 484d7ed7..c1ce21e0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@folio/tenant-settings", - "version": "9.0.0", + "version": "8.1.0", "description": "Tenant settings", "main": "src/index.js", "repository": "folio-org/ui-tenant-settings", @@ -17,8 +17,7 @@ "route": "/tenant-settings", "okapiInterfaces": { "configuration": "2.0", - "users": "15.0 16.0", - "reading-room": "1.0" + "users": "15.0 16.0" }, "optionalOkapiInterfaces": { "location-units": "2.0", @@ -26,7 +25,8 @@ "login-saml": "2.0", "remote-storage-configurations": "1.0", "remote-storage-mappings": "1.0 2.0", - "service-points": "3.0" + "service-points": "3.0", + "reading-room": "1.0" }, "permissionSets": [ { diff --git a/src/settings/index.js b/src/settings/index.js index 57875c2e..51800ac1 100644 --- a/src/settings/index.js +++ b/src/settings/index.js @@ -62,7 +62,8 @@ class Organization extends React.Component { route: 'reading-room', label: , component: ReadingRoomAccess, - perm: 'ui-tenant-settings.settings.reading-room-access.view' + perm: 'ui-tenant-settings.settings.reading-room-access.view', + iface: 'reading-room' }, { route: 'servicePoints', From 5382d67ab55742a332354254e5dd028189ee1915 Mon Sep 17 00:00:00 2001 From: FOLIO Translations Bot <38661258+folio-translations@users.noreply.github.com> Date: Thu, 20 Jun 2024 09:44:30 -0400 Subject: [PATCH 02/11] Lokalise: updates --- translations/ui-tenant-settings/fr_FR.json | 22 +++++++++++----------- translations/ui-tenant-settings/pt_BR.json | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/translations/ui-tenant-settings/fr_FR.json b/translations/ui-tenant-settings/fr_FR.json index 5413340d..f8b03c98 100644 --- a/translations/ui-tenant-settings/fr_FR.json +++ b/translations/ui-tenant-settings/fr_FR.json @@ -111,20 +111,20 @@ "settings.locale.localeWarning": "Les paramètres de cette page modifieront de manière PERMANENTE les paramètres régionaux (y compris l'affichage de la langue, le format de la date et le format des nombres) pour tous les utilisateurs. Il est fortement déconseillé de modifier les paramètres régionaux ici, sauf si vous êtes absolument certain que c'est la bonne action. Pour modifier TEMPORAIREMENT les paramètres régionaux de votre session uniquement, cliquez sur le bouton \" {label} \" à la place.", "settings.locale.changeSessionLocale": "Changer langue et les paramètres régionaux de la session", "settings.pluginNames.create-inventory-records": "Créer des enregistrements d'inventaire / de catalogue", - "settings.pluginNames.find-user": "Trouver un utilisateur", + "settings.pluginNames.find-user": "Rechercher un utilisateur", "settings.pluginNames.find-instance": "Rechercher une instance", "settings.pluginNames.find-import-profile": "Rechercher un profil d'importation", - "settings.pluginNames.find-eresource": "Trouver une ressource électronique", - "settings.pluginNames.find-contact": "Trouver un contact", - "settings.pluginNames.find-organization": "Trouver une organisation", + "settings.pluginNames.find-eresource": "Rechercher une ressource électronique", + "settings.pluginNames.find-contact": "Rechercher un contact", + "settings.pluginNames.find-organization": "Rechercher une organisation", "settings.pluginNames.create-item": "Créer un exemplaire", - "settings.pluginNames.find-interface": "Trouver une interface", - "settings.pluginNames.find-license": "Trouver une licence", - "settings.pluginNames.find-agreement": "Trouver un accord", - "settings.pluginNames.find-po-line": "Trouver la ligne de commande", + "settings.pluginNames.find-interface": "Rechercher une interface", + "settings.pluginNames.find-license": "Rechercher une licence", + "settings.pluginNames.find-agreement": "Rechercher un accord", + "settings.pluginNames.find-po-line": "Rechercher la ligne de commande", "settings.pluginNames.find-package-title": "Rechercher le titre du bouquet", "settings.pluginNames.find-finc-metadata-collection": "Find finance metadata collection", - "settings.pluginNames.find-erm-usage-data-provider": "Trouver un fournisseur de métadonnées d'utilisation ERM", + "settings.pluginNames.find-erm-usage-data-provider": "Rechercher un fournisseur de métadonnées d'utilisation ERM", "settings.pluginNames.find-finc-metadata-source": "Rechercher une source de métadonnées financières", "permission.module.enabled": "UI: Tenant-settings module is enabled", "permission.settings.addresses": "Paramètres (tenant) : peut gérer l'adresse des tenants", @@ -172,8 +172,8 @@ "settings.addresses.cannotDeleteTermHeader": "Impossible de supprimer l'adresse", "settings.addresses.cannotDeleteTermMessage": "This address cannot be deleted, as it is in use by one or more records.", "settings.addresses.deleteEntry": "Supprimer l'adresse", - "settings.addresses.termDeleted": "L'adresse {term} a été supprimée avec succès ", - "settings.addresses.termWillBeDeleted": "L'adresse {term} sera supprimée. ", + "settings.addresses.termDeleted": "L'adresse {term} a été supprimée avec succès", + "settings.addresses.termWillBeDeleted": "L'adresse {term} sera supprimée.", "settings.confirmPickupLocationChangeModal.title": "Confirm Pickup location change", "settings.confirmPickupLocationChangeModal.message": "Changing this Pickup location from \"Yes\" to \"No\" will remove it from existing Request policies and affect all Circulation rules using the policies.", "settings.confirmPickupLocationChangeModal.button.confirm": "Confirm", diff --git a/translations/ui-tenant-settings/pt_BR.json b/translations/ui-tenant-settings/pt_BR.json index 215e3646..b49ec421 100644 --- a/translations/ui-tenant-settings/pt_BR.json +++ b/translations/ui-tenant-settings/pt_BR.json @@ -15,8 +15,8 @@ "settings.saml.validate.userProperty": "Por favor, selecione uma propriedade de usuário", "settings.saml.validate.idpUrl": "Este não é um URL válido do Provedor de identidade", "settings.saml.idpUrl": "URL do provedor de identidade", - "settings.saml.downloadMetadata": "Download de metadados", - "settings.saml.idpUrlChanged": "O URL do IdP foi alterado desde o último download. Faça o download dos metadados do ponto de serviço e faça o upload novamente para o IdP.", + "settings.saml.downloadMetadata": "Baixar metadados", + "settings.saml.idpUrlChanged": "A URL do IdP foi alterado desde o último download. Faça o download dos metadados do ponto de serviço e recarregue novamente para o IdP.", "settings.saml.binding": "Ligação SAML", "settings.saml.attribute": "Atributo SAML", "settings.saml.userProperty": "Propriedade do usuário", From 777efda08b1d2534f417f5a65de289878092a009 Mon Sep 17 00:00:00 2001 From: FOLIO Translations Bot <38661258+folio-translations@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:42:56 -0400 Subject: [PATCH 03/11] Lokalise: updates --- translations/ui-tenant-settings/pt_BR.json | 6 +++--- translations/ui-tenant-settings/zh_CN.json | 24 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/translations/ui-tenant-settings/pt_BR.json b/translations/ui-tenant-settings/pt_BR.json index b49ec421..4c4bc844 100644 --- a/translations/ui-tenant-settings/pt_BR.json +++ b/translations/ui-tenant-settings/pt_BR.json @@ -35,7 +35,7 @@ "settings.location.locations.location": "Localização", "settings.location.locations.generalInformation": "Informação geral", "settings.location.locations.name": "Nome do FOLIO", - "settings.location.locations.discoveryDisplayName": "Nome de exibição no serviço de descoberta", + "settings.location.locations.discoveryDisplayName": "Nome de exibição na descoberta", "settings.location.locations.status": "Status", "settings.location.locations.active": "Ativo", "settings.location.locations.inactive": "Inativo", @@ -58,7 +58,7 @@ "settings.servicePoints.new": "Novo ponto de serviço", "settings.servicePoints.generalInformation": "Informação geral", "settings.servicePoints.code": "Código", - "settings.servicePoints.discoveryDisplayName": "Nome de exibição no serviço de descoberta", + "settings.servicePoints.discoveryDisplayName": "Nome de exibição na descoberta", "settings.servicePoints.description": "Descrição", "settings.servicePoints.shelvingLagTime": "Tempo de atraso para guarda na estante de exemplar devolvido (em minutos)", "settings.servicePoints.pickupLocation": "Localização de retirada", @@ -110,7 +110,7 @@ "settings.save.error.network": "Registro não foi salvo", "settings.locale.localeWarning": "As configurações nesta página alterarão PERMANENTEMENTE o código de idioma (incluindo exibição de idioma, formato de data e formato de número) para todos os usuários. Você é fortemente desencorajado de alterar o código de idioma aqui, a menos que tenha certeza absoluta de que é a ação correta. Para alterar temporariamente o código de idioma da sua sessão, clique no botão \"{label}\".", "settings.locale.changeSessionLocale": "Alterar idioma da sessão", - "settings.pluginNames.create-inventory-records": "Criar registros de inventário", + "settings.pluginNames.create-inventory-records": "Criar registros de catalogação", "settings.pluginNames.find-user": "Encontrar usuário", "settings.pluginNames.find-instance": "Encontrar instância", "settings.pluginNames.find-import-profile": "Encontrar perfil de importação", diff --git a/translations/ui-tenant-settings/zh_CN.json b/translations/ui-tenant-settings/zh_CN.json index ce892b01..8e046b9e 100644 --- a/translations/ui-tenant-settings/zh_CN.json +++ b/translations/ui-tenant-settings/zh_CN.json @@ -199,16 +199,16 @@ "settings.items.title": "租户设置 - {item}", "settings.location.createNew.title": "租户设置 - 新位置", "settings.items.edit.title": "租户设置 - 编辑: {item}", - "permission.settings.reading-room-access.view": "Settings (tenant): Can view reading room access", - "permission.settings.reading-room-access.all": "Settings (tenant): Can create, edit and remove reading room access", - "settings.reading-room.title": "Tenant settings - Reading room access", - "settings.reading-room-access.label": "Reading room access", - "settings.reading-room-access.name": "Room name", - "settings.reading-room-access.public": "Public", - "settings.reading-room-access.asp": "Associated service points", - "settings.reading-room-access.cannotDeleteTermHeader": "Cannot delete reading room access", - "settings.reading-room-access.cannotDeleteTermMessage": "This reading room access cannot be deleted, as it is in use by one or more records.", - "settings.reading-room-access.deleteEntry": "Delete reading room access", - "settings.reading-room-access.termDeleted": "The reading room access {term} was successfully deleted", - "settings.reading-room-access.termWillBeDeleted": "The reading room {term} will be deleted" + "permission.settings.reading-room-access.view": "设置(租户):可查看阅览室访问", + "permission.settings.reading-room-access.all": "设置(租户):可以创建、编辑和删除阅览室访问", + "settings.reading-room.title": "租户设置 - 阅览室访问", + "settings.reading-room-access.label": "阅览室访问", + "settings.reading-room-access.name": "房间名称", + "settings.reading-room-access.public": "公开", + "settings.reading-room-access.asp": "相关服务点", + "settings.reading-room-access.cannotDeleteTermHeader": "无法删除阅览室访问", + "settings.reading-room-access.cannotDeleteTermMessage": "无法删除此阅览室访问,因为它正在被一条或多条记录使用。", + "settings.reading-room-access.deleteEntry": "删除阅览室访问", + "settings.reading-room-access.termDeleted": "阅览室访问 {term} 已成功删除", + "settings.reading-room-access.termWillBeDeleted": "阅览室 {term} 将被删除" } \ No newline at end of file From c70e491aa6feaef0058698c7039386e2ca7c19cf Mon Sep 17 00:00:00 2001 From: Priyanka Terala <104053200+Terala-Priyanka@users.noreply.github.com> Date: Thu, 4 Jul 2024 16:57:24 +0530 Subject: [PATCH 04/11] UITEN-298 - supply correct translation ids (#410) --- CHANGELOG.md | 1 + src/settings/ReadingRoomAccess/ReadingRoomAccess.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d93aca6a..d7106c25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * [UITEN-282] (https://issues.folio.org/browse/UITEN-282) Reading Room Access (settings): Update reading room. * [UITEN-283] (https://issues.folio.org/browse/UITEN-283) Reading Room Access (settings): Delete reading room. * [UITEN-290] (https://issues.folio.org/browse/UITEN-290) Make dependency on mod-reading-rooms optional. +* [UITEN-298] (https://issues.folio.org/browse/UITEN-298) Update translation ids for reading room. ## [8.1.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.1.0)(2024-03-19) [Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v8.0.0...v8.1.0) diff --git a/src/settings/ReadingRoomAccess/ReadingRoomAccess.js b/src/settings/ReadingRoomAccess/ReadingRoomAccess.js index ef5b9a2b..8dc0e697 100644 --- a/src/settings/ReadingRoomAccess/ReadingRoomAccess.js +++ b/src/settings/ReadingRoomAccess/ReadingRoomAccess.js @@ -18,8 +18,8 @@ import { getValidators } from './getValidators'; const hiddenFields = ['numberOfObjects', 'lastUpdated']; const translations = { - cannotDeleteTermHeader: 'ui-tenant-settings.settings.addresses.cannotDeleteTermHeader', - cannotDeleteTermMessage: 'ui-tenant-settings.settings.addresses.cannotDeleteTermMessage', + cannotDeleteTermHeader: 'ui-tenant-settings.settings.reading-room-access.cannotDeleteTermHeader', + cannotDeleteTermMessage: 'ui-tenant-settings.settings.reading-room-access.cannotDeleteTermMessage', deleteEntry: 'ui-tenant-settings.settings.reading-room-access.deleteEntry', termDeleted: 'ui-tenant-settings.settings.reading-room-access.termDeleted', termWillBeDeleted: 'ui-tenant-settings.settings.reading-room-access.termWillBeDeleted', From 1e77ab650a9c89c7086737d3706f4b6abc656dbd Mon Sep 17 00:00:00 2001 From: FOLIO Translations Bot <38661258+folio-translations@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:13:17 -0400 Subject: [PATCH 05/11] Lokalise: updates --- translations/ui-tenant-settings/fr_FR.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/ui-tenant-settings/fr_FR.json b/translations/ui-tenant-settings/fr_FR.json index f8b03c98..79b057fc 100644 --- a/translations/ui-tenant-settings/fr_FR.json +++ b/translations/ui-tenant-settings/fr_FR.json @@ -110,7 +110,7 @@ "settings.save.error.network": "Enregistrement non sauvegardé", "settings.locale.localeWarning": "Les paramètres de cette page modifieront de manière PERMANENTE les paramètres régionaux (y compris l'affichage de la langue, le format de la date et le format des nombres) pour tous les utilisateurs. Il est fortement déconseillé de modifier les paramètres régionaux ici, sauf si vous êtes absolument certain que c'est la bonne action. Pour modifier TEMPORAIREMENT les paramètres régionaux de votre session uniquement, cliquez sur le bouton \" {label} \" à la place.", "settings.locale.changeSessionLocale": "Changer langue et les paramètres régionaux de la session", - "settings.pluginNames.create-inventory-records": "Créer des enregistrements d'inventaire / de catalogue", + "settings.pluginNames.create-inventory-records": "Créer des notices de catalogue", "settings.pluginNames.find-user": "Rechercher un utilisateur", "settings.pluginNames.find-instance": "Rechercher une instance", "settings.pluginNames.find-import-profile": "Rechercher un profil d'importation", From f7339b615c2a1e9fac1178f09c0c6d015b8f3c9f Mon Sep 17 00:00:00 2001 From: Priyanka Terala <104053200+Terala-Priyanka@users.noreply.github.com> Date: Wed, 10 Jul 2024 18:17:30 +0530 Subject: [PATCH 06/11] UITEN-301 - Display Reading room access in alphabetical order on settings page. (#412) * UITEN-301 - Display Reading room access in alphabetical order on settings page. * UITEN-301 - add unit tests --- CHANGELOG.md | 1 + src/settings/index.js | 14 +++++++------- src/settings/index.test.js | 21 +++++++++++++++++++++ test/jest/__new_mocks__/stripesCore.mock.js | 2 +- 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7106c25..dcc1f8e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * [UITEN-283] (https://issues.folio.org/browse/UITEN-283) Reading Room Access (settings): Delete reading room. * [UITEN-290] (https://issues.folio.org/browse/UITEN-290) Make dependency on mod-reading-rooms optional. * [UITEN-298] (https://issues.folio.org/browse/UITEN-298) Update translation ids for reading room. +* [UITEN-301] (https://issues.folio.org/browse/UITEN-301) Display Reading room access in alphabetical order on settings page. ## [8.1.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.1.0)(2024-03-19) [Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v8.0.0...v8.1.0) diff --git a/src/settings/index.js b/src/settings/index.js index 51800ac1..323ed55f 100644 --- a/src/settings/index.js +++ b/src/settings/index.js @@ -51,13 +51,6 @@ class Organization extends React.Component { component: Plugins, perm: 'ui-tenant-settings.settings.plugins.view', }, - { - route: 'ssosettings', - label: , - component: SSOSettings, - perm: 'ui-tenant-settings.settings.sso.view', - iface: 'login-saml' - }, { route: 'reading-room', label: , @@ -65,6 +58,13 @@ class Organization extends React.Component { perm: 'ui-tenant-settings.settings.reading-room-access.view', iface: 'reading-room' }, + { + route: 'ssosettings', + label: , + component: SSOSettings, + perm: 'ui-tenant-settings.settings.sso.view', + iface: 'login-saml' + }, { route: 'servicePoints', label: , diff --git a/src/settings/index.test.js b/src/settings/index.test.js index d9778acd..d77e36c7 100644 --- a/src/settings/index.test.js +++ b/src/settings/index.test.js @@ -36,10 +36,12 @@ describe('Organization', () => { }; stripes.setIsAuthenticated = jest.fn(); stripes.hasInterface = jest.fn().mockReturnValue(false); + stripes.hasPerm = jest.fn().mockReturnValue(false); }); it('should render SSO Settings when login-saml interface is present', () => { stripes.hasInterface = jest.fn().mockReturnValue(true); + stripes.hasPerm = jest.fn().mockReturnValue(true); const { queryByText } = renderWithRouter(); expect(queryByText('ui-tenant-settings.settings.ssoSettings.label')).toBeTruthy(); }); @@ -48,4 +50,23 @@ describe('Organization', () => { const { queryByText } = renderWithRouter(); expect(queryByText('ui-tenant-settings.settings.ssoSettings.label')).toBeNull(); }); + + it('should render Reading room access when associated permission and interface are present', () => { + stripes.hasInterface = jest.fn().mockReturnValue(true); + stripes.hasPerm = jest.fn().mockReturnValue(true); + const { queryByText } = renderWithRouter(); + expect(queryByText('ui-tenant-settings.settings.reading-room-access.label')).toBeTruthy(); + }); + + it('should not render Reading room access when ui-tenant-settings.settings.reading-room-access.view permission is not present', () => { + stripes.hasInterface = jest.fn().mockReturnValue(true); + const { queryByText } = renderWithRouter(); + expect(queryByText('ui-tenant-settings.settings.reading-room-access.label')).toBeNull(); + }); + + it('should not render Reading room access when reading-room interface is not present', () => { + stripes.hasPerm = jest.fn().mockReturnValue(true); + const { queryByText } = renderWithRouter(); + expect(queryByText('ui-tenant-settings.settings.reading-room-access.label')).toBeNull(); + }); }); diff --git a/test/jest/__new_mocks__/stripesCore.mock.js b/test/jest/__new_mocks__/stripesCore.mock.js index 2b1d3773..9fb3bd2b 100644 --- a/test/jest/__new_mocks__/stripesCore.mock.js +++ b/test/jest/__new_mocks__/stripesCore.mock.js @@ -10,7 +10,7 @@ const buildStripes = (otherProperties = {}) => ({ }, currency: 'USD', hasInterface: () => true, - hasPerm: jest.fn(() => true), + hasPerm: () => true, locale: 'en-US', logger: { log: () => { }, From f0a79f53e2f5b2c2ced0e6589b40fd78ee0c5cfc Mon Sep 17 00:00:00 2001 From: FOLIO Translations Bot <38661258+folio-translations@users.noreply.github.com> Date: Sat, 13 Jul 2024 13:56:50 -0400 Subject: [PATCH 07/11] Lokalise: updates --- translations/ui-tenant-settings/fr_FR.json | 2 +- translations/ui-tenant-settings/pt_BR.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translations/ui-tenant-settings/fr_FR.json b/translations/ui-tenant-settings/fr_FR.json index 79b057fc..f6e0073b 100644 --- a/translations/ui-tenant-settings/fr_FR.json +++ b/translations/ui-tenant-settings/fr_FR.json @@ -175,7 +175,7 @@ "settings.addresses.termDeleted": "L'adresse {term} a été supprimée avec succès", "settings.addresses.termWillBeDeleted": "L'adresse {term} sera supprimée.", "settings.confirmPickupLocationChangeModal.title": "Confirm Pickup location change", - "settings.confirmPickupLocationChangeModal.message": "Changing this Pickup location from \"Yes\" to \"No\" will remove it from existing Request policies and affect all Circulation rules using the policies.", + "settings.confirmPickupLocationChangeModal.message": "Changer ce point de retrait de \"Oui\" à \"Non\" le supprimera des politiques de réservations existantes et s'appliquera à toutes les règles de circulation utilisant ces politiques.", "settings.confirmPickupLocationChangeModal.button.confirm": "Confirm", "settings.confirmPickupLocationChangeModal.button.cancel": "Back", "permission.settings.tenant-settings.view": "Settings (tenant): View", diff --git a/translations/ui-tenant-settings/pt_BR.json b/translations/ui-tenant-settings/pt_BR.json index 4c4bc844..77662b8b 100644 --- a/translations/ui-tenant-settings/pt_BR.json +++ b/translations/ui-tenant-settings/pt_BR.json @@ -60,7 +60,7 @@ "settings.servicePoints.code": "Código", "settings.servicePoints.discoveryDisplayName": "Nome de exibição na descoberta", "settings.servicePoints.description": "Descrição", - "settings.servicePoints.shelvingLagTime": "Tempo de atraso para guarda na estante de exemplar devolvido (em minutos)", + "settings.servicePoints.shelvingLagTime": "Tempo de atraso para guarda na estante de exemplar devolvido (em minutos)", "settings.servicePoints.pickupLocation": "Localização de retirada", "settings.servicePoints.feeFineOwner": "Dono da taxa/multa", "settings.servicePoints.deleteServicePoint": "Excluir ponto de serviço", From 3b4ee2fea104ece73c5ae5016d9ab02a2ba26d4b Mon Sep 17 00:00:00 2001 From: UladzislauKutarkin <72550466+UladzislauKutarkin@users.noreply.github.com> Date: Fri, 26 Jul 2024 12:56:27 +0400 Subject: [PATCH 08/11] UITEN-212: Permission changes for service point management (#414) --- CHANGELOG.md | 1 + package.json | 5 ++--- translations/ui-tenant-settings/en.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcc1f8e2..d889c0ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ * [UITEN-290] (https://issues.folio.org/browse/UITEN-290) Make dependency on mod-reading-rooms optional. * [UITEN-298] (https://issues.folio.org/browse/UITEN-298) Update translation ids for reading room. * [UITEN-301] (https://issues.folio.org/browse/UITEN-301) Display Reading room access in alphabetical order on settings page. +* [UITEN-212](https://folio-org.atlassian.net/browse/UITEN-212) Permission changes for service point management. ## [8.1.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.1.0)(2024-03-19) [Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v8.0.0...v8.1.0) diff --git a/package.json b/package.json index c1ce21e0..3098caaa 100644 --- a/package.json +++ b/package.json @@ -200,12 +200,11 @@ }, { "permissionName": "ui-tenant-settings.settings.servicepoints", - "displayName": "Settings (tenant): Can create, edit and remove service points", + "displayName": "Settings (tenant): Can create and edit service points", "subPermissions": [ "ui-tenant-settings.settings.servicepoints.view", "inventory-storage.service-points.item.post", - "inventory-storage.service-points.item.put", - "inventory-storage.service-points.item.delete" + "inventory-storage.service-points.item.put" ], "visible": true }, diff --git a/translations/ui-tenant-settings/en.json b/translations/ui-tenant-settings/en.json index a7512009..300476e6 100644 --- a/translations/ui-tenant-settings/en.json +++ b/translations/ui-tenant-settings/en.json @@ -223,7 +223,7 @@ "permission.settings.sso.view": "Settings (tenant): Can view SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", "permission.settings.location.view": "Settings (Tenant): View locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "permission.settings.servicepoints.view": "Settings (tenant): Can view service points", "permission.settings.bursar-exports": "Settings (tenant): Bursar admin", "permission.settings.reading-room-access.view": "Settings (tenant): Can view reading room access", From de327163d7cfb319ba25d4449be5a391cf6f5525 Mon Sep 17 00:00:00 2001 From: FOLIO Translations Bot <38661258+folio-translations@users.noreply.github.com> Date: Sat, 27 Jul 2024 14:37:33 -0400 Subject: [PATCH 09/11] Lokalise: updates --- translations/ui-tenant-settings/ber.json | 2 +- translations/ui-tenant-settings/ca.json | 2 +- translations/ui-tenant-settings/cs_CZ.json | 2 +- translations/ui-tenant-settings/en_GB.json | 2 +- translations/ui-tenant-settings/en_SE.json | 2 +- translations/ui-tenant-settings/en_US.json | 2 +- translations/ui-tenant-settings/es.json | 2 +- translations/ui-tenant-settings/es_ES.json | 2 +- translations/ui-tenant-settings/fr.json | 2 +- translations/ui-tenant-settings/fr_FR.json | 84 +++++++++++----------- translations/ui-tenant-settings/he.json | 2 +- translations/ui-tenant-settings/hi_IN.json | 2 +- translations/ui-tenant-settings/hu.json | 2 +- translations/ui-tenant-settings/nb.json | 2 +- translations/ui-tenant-settings/nl.json | 2 +- translations/ui-tenant-settings/nn.json | 2 +- translations/ui-tenant-settings/pt_BR.json | 2 +- translations/ui-tenant-settings/pt_PT.json | 2 +- translations/ui-tenant-settings/ru.json | 2 +- translations/ui-tenant-settings/sk.json | 2 +- translations/ui-tenant-settings/sv.json | 2 +- translations/ui-tenant-settings/ur.json | 2 +- 22 files changed, 63 insertions(+), 63 deletions(-) diff --git a/translations/ui-tenant-settings/ber.json b/translations/ui-tenant-settings/ber.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/ber.json +++ b/translations/ui-tenant-settings/ber.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/ca.json b/translations/ui-tenant-settings/ca.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/ca.json +++ b/translations/ui-tenant-settings/ca.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/cs_CZ.json b/translations/ui-tenant-settings/cs_CZ.json index a0de6399..22b553ef 100644 --- a/translations/ui-tenant-settings/cs_CZ.json +++ b/translations/ui-tenant-settings/cs_CZ.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Nastavení (nájemce): Může udržovat preferované pluginy", "permission.settings.sso": "Nastavení (nájemce): Může udržovat nastavení SSO", "permission.settings.location": "Nastavení (nájemce): Může vytvářet, upravovat a odstraňovat lokace", - "permission.settings.servicepoints": "Nastavení (nájemce): Může vytvářet, upravovat a odebírat pulty služeb", + "permission.settings.servicepoints": "Nastavení (nájemce): Může vytvářet a upravovat pulty služeb", "settings.location.remotes.remote": "Vzdálené úložiště", "settings.location.remotes.no": "Ne (výchozí)", "settings.location.remotes.loading": "načítání...", diff --git a/translations/ui-tenant-settings/en_GB.json b/translations/ui-tenant-settings/en_GB.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/en_GB.json +++ b/translations/ui-tenant-settings/en_GB.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/en_SE.json b/translations/ui-tenant-settings/en_SE.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/en_SE.json +++ b/translations/ui-tenant-settings/en_SE.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/en_US.json b/translations/ui-tenant-settings/en_US.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/en_US.json +++ b/translations/ui-tenant-settings/en_US.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/es.json b/translations/ui-tenant-settings/es.json index 0133f790..64ed6ed3 100644 --- a/translations/ui-tenant-settings/es.json +++ b/translations/ui-tenant-settings/es.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/es_ES.json b/translations/ui-tenant-settings/es_ES.json index b1d91c96..70c4bc44 100644 --- a/translations/ui-tenant-settings/es_ES.json +++ b/translations/ui-tenant-settings/es_ES.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/fr.json b/translations/ui-tenant-settings/fr.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/fr.json +++ b/translations/ui-tenant-settings/fr.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/fr_FR.json b/translations/ui-tenant-settings/fr_FR.json index f6e0073b..649c4b44 100644 --- a/translations/ui-tenant-settings/fr_FR.json +++ b/translations/ui-tenant-settings/fr_FR.json @@ -61,7 +61,7 @@ "settings.servicePoints.discoveryDisplayName": "Nom d'affichage", "settings.servicePoints.description": "Description", "settings.servicePoints.shelvingLagTime": "Temps de latence du rayonnage (minutes)", - "settings.servicePoints.pickupLocation": "Emplacement du point de retrait", + "settings.servicePoints.pickupLocation": "Point de retrait", "settings.servicePoints.feeFineOwner": "Propriétaire des frais/amendes", "settings.servicePoints.deleteServicePoint": "Supprimer l'unité de services", "settings.servicePoints.delete": "Supprimer", @@ -108,11 +108,11 @@ "settings.servicePoints.pickupLocation.yes": "Oui", "settings.servicePoints.pickupLocation.no": "Non", "settings.save.error.network": "Enregistrement non sauvegardé", - "settings.locale.localeWarning": "Les paramètres de cette page modifieront de manière PERMANENTE les paramètres régionaux (y compris l'affichage de la langue, le format de la date et le format des nombres) pour tous les utilisateurs. Il est fortement déconseillé de modifier les paramètres régionaux ici, sauf si vous êtes absolument certain que c'est la bonne action. Pour modifier TEMPORAIREMENT les paramètres régionaux de votre session uniquement, cliquez sur le bouton \" {label} \" à la place.", - "settings.locale.changeSessionLocale": "Changer langue et les paramètres régionaux de la session", + "settings.locale.localeWarning": "Les paramètres de cette page modifieront de manière PERMANENTE les paramètres régionaux (y compris l'affichage de la langue, le format de la date et le format des nombres) pour tous les utilisateurs. Il est fortement déconseillé de modifier les paramètres régionaux ici, sauf si vous êtes absolument certain que c'est la bonne action. Pour modifier TEMPORAIREMENT les paramètres régionaux de votre session uniquement, cliquez sur le bouton \"{label}\" à la place.", + "settings.locale.changeSessionLocale": "Changer la langue et les paramètres régionaux de la session", "settings.pluginNames.create-inventory-records": "Créer des notices de catalogue", "settings.pluginNames.find-user": "Rechercher un utilisateur", - "settings.pluginNames.find-instance": "Rechercher une instance", + "settings.pluginNames.find-instance": "Rechercher une notice bibliographique", "settings.pluginNames.find-import-profile": "Rechercher un profil d'importation", "settings.pluginNames.find-eresource": "Rechercher une ressource électronique", "settings.pluginNames.find-contact": "Rechercher un contact", @@ -127,67 +127,67 @@ "settings.pluginNames.find-erm-usage-data-provider": "Rechercher un fournisseur de métadonnées d'utilisation ERM", "settings.pluginNames.find-finc-metadata-source": "Rechercher une source de métadonnées financières", "permission.module.enabled": "UI: Tenant-settings module is enabled", - "permission.settings.addresses": "Paramètres (tenant) : peut gérer l'adresse des tenants", + "permission.settings.addresses": "Paramètres (Gestion/administration) : peut gérer l'adresse des tenants", "permission.settings.key-bindings": "Settings (tenant): Can maintain key bindings", - "permission.settings.locale": "Paramètres (tenant) : peut maintenir la langue, la localisation et la devise", - "permission.settings.plugins": "Paramètres (tenant) : peut maintenir les plugins préférés", - "permission.settings.sso": "Paramètres (tenant) : peut maintenir la configuration SSO", - "permission.settings.location": "Paramètres (tenant) : peut créer, modifier et supprimer des localisations", - "permission.settings.servicepoints": "Paramètres (tenant) : Peut créer, modifier et supprimer des \"service points\"", + "permission.settings.locale": "Paramètres (gestion/administration) : peut modifier la langue, la localisation et la devise", + "permission.settings.plugins": "Paramètres (Gestion/administration) : peut maintenir les plugins préférés", + "permission.settings.sso": "Paramètres (Gestion/administration) : peut maintenir la configuration SSO", + "permission.settings.location": "Paramètres (Gestion/administration) : peut créer, modifier et supprimer des localisations", + "permission.settings.servicepoints": "Paramètres (Gestion/administration) : Peut créer, modifier et supprimer des points de service", "settings.location.remotes.remote": "Stockage à distance", "settings.location.remotes.no": "Non (par défaut)", "settings.location.remotes.loading": "Chargement...", "settings.location.remotes.readonly": "ne peut être modifié que s'il n'y a pas de collections ou d'exemplaires permanents associés à cet emplacement", "settings.location.remotes.failed": "Échec du chargement", - "permission.settings.bursar-exports": "Paramètres: intendant (administration", + "permission.settings.bursar-exports": "Paramètres (Gestion/administration) : intendant", "settings.location.locations.remoteStorage": "Stockage à distance", "settings.location.locations.returning-workflow.title": "Returning workflow preference", "settings.location.locations.returning-workflow.Scanned to folio": "Items received at remote storage scanned into FOLIO", "settings.location.locations.returning-workflow.Scanned to CaiaSoft": "Items received at remote storage scanned into CaiaSoft", "settings.numberingSystem": "Numbering system", "settings.servicePoints.holdShelfClosedLibraryDateManagement": "Closed library date management for hold shelf expiration date calculation", - "settings.servicePoints.holdShelfClosedLibraryDateManagement.keepTheOriginalDate": "Keep the original date", - "settings.servicePoints.holdShelfClosedLibraryDateManagement.moveToTheEndOfThePreviousOpenDay": "Move to the end of the previous open day", - "settings.servicePoints.holdShelfClosedLibraryDateManagement.moveToTheEndOfTheNextOpenDay": "Move to the end of the next open day", - "settings.servicePoints.holdShelfClosedLibraryDateManagement.keepTheOriginalDateTime": "Keep the original date/time", - "settings.servicePoints.holdShelfClosedLibraryDateManagement.moveToTheEndOfTheCurrentServicePointHours": "Move to the end of the current service point hours", - "settings.servicePoints.holdShelfClosedLibraryDateManagement.MoveToTheBeginningOfTheNextOpenServicePointHours": "Move to the beginning of the next open service point hours", + "settings.servicePoints.holdShelfClosedLibraryDateManagement.keepTheOriginalDate": "Garder la date d'origine", + "settings.servicePoints.holdShelfClosedLibraryDateManagement.moveToTheEndOfThePreviousOpenDay": "Déplacer à la fin de la journée d'ouverture précédente", + "settings.servicePoints.holdShelfClosedLibraryDateManagement.moveToTheEndOfTheNextOpenDay": "Déplacer à la fin de la prochaine journée d'ouverture", + "settings.servicePoints.holdShelfClosedLibraryDateManagement.keepTheOriginalDateTime": "Garder la date/heure d'origine", + "settings.servicePoints.holdShelfClosedLibraryDateManagement.moveToTheEndOfTheCurrentServicePointHours": "Déplacer à la fin de la plage horaire actuelle du point de service", + "settings.servicePoints.holdShelfClosedLibraryDateManagement.MoveToTheBeginningOfTheNextOpenServicePointHours": "Déplacer au début de la prochaine plage horaire d'ouverture du point de service", "settings.servicePoints.expirationPeriod": "Hold shelf expiration period", "settings.servicePoints.selectInterval": "Select interval", - "settings.location.institutions.cannotDeleteTermHeader": "Cannot delete institution", - "settings.location.institutions.cannotDeleteTermMessage": "This institution cannot be deleted, as it is in use by one or more records.", - "settings.location.institutions.deleteEntry": "Delete institution", - "settings.location.institutions.termDeleted": "The institution {term} was successfully deleted", - "settings.location.institutions.termWillBeDeleted": "The institution {term} will be deleted.", - "settings.location.campuses.cannotDeleteTermHeader": "Cannot delete campus", - "settings.location.campuses.cannotDeleteTermMessage": "This campus cannot be deleted, as it is in use by one or more records.", - "settings.location.campuses.deleteEntry": "Delete campus", - "settings.location.campuses.termDeleted": "The campus {term} was successfully deleted", - "settings.location.campuses.termWillBeDeleted": "The campus {term} will be deleted.", - "settings.location.libraries.cannotDeleteTermHeader": "Cannot delete library", - "settings.location.libraries.cannotDeleteTermMessage": "This library cannot be deleted, as it is in use by one or more records.", - "settings.location.libraries.deleteEntry": "Delete library", - "settings.location.libraries.termDeleted": "The library {term} was successfully deleted", - "settings.location.libraries.termWillBeDeleted": "The library {term} will be deleted.", + "settings.location.institutions.cannotDeleteTermHeader": "Impossible de supprimer l'institution", + "settings.location.institutions.cannotDeleteTermMessage": "Cette institution ne peut être supprimée car elle est utilisée par une ou plusieurs notices", + "settings.location.institutions.deleteEntry": "Supprimer l'institution", + "settings.location.institutions.termDeleted": "L'institution {term} a été supprimée avec succès", + "settings.location.institutions.termWillBeDeleted": "L'institution {term} sera supprimée.", + "settings.location.campuses.cannotDeleteTermHeader": "Impossible de supprimer le campus", + "settings.location.campuses.cannotDeleteTermMessage": "Ce campus ne peut être supprimé car il est utilisé par une ou plusieurs notices.", + "settings.location.campuses.deleteEntry": "Supprimer le campus", + "settings.location.campuses.termDeleted": "Le campus {term} a été supprimé avec succès", + "settings.location.campuses.termWillBeDeleted": "Le campus {term} sera supprimé.", + "settings.location.libraries.cannotDeleteTermHeader": "Impossible de supprimer la bibliothèque", + "settings.location.libraries.cannotDeleteTermMessage": "Cette bibliothèque ne peut être supprimée car elle est utilisée par une ou plusieurs notices.", + "settings.location.libraries.deleteEntry": "Supprimer la bibliothèque", + "settings.location.libraries.termDeleted": "La bibliothèque {term} a été supprimée avec succès", + "settings.location.libraries.termWillBeDeleted": "La bibliothèque {term} sera supprimée.", "settings.addresses.cannotDeleteTermHeader": "Impossible de supprimer l'adresse", "settings.addresses.cannotDeleteTermMessage": "This address cannot be deleted, as it is in use by one or more records.", "settings.addresses.deleteEntry": "Supprimer l'adresse", "settings.addresses.termDeleted": "L'adresse {term} a été supprimée avec succès", "settings.addresses.termWillBeDeleted": "L'adresse {term} sera supprimée.", - "settings.confirmPickupLocationChangeModal.title": "Confirm Pickup location change", + "settings.confirmPickupLocationChangeModal.title": "Confirmer le changement de point de retrait", "settings.confirmPickupLocationChangeModal.message": "Changer ce point de retrait de \"Oui\" à \"Non\" le supprimera des politiques de réservations existantes et s'appliquera à toutes les règles de circulation utilisant ces politiques.", - "settings.confirmPickupLocationChangeModal.button.confirm": "Confirm", - "settings.confirmPickupLocationChangeModal.button.cancel": "Back", + "settings.confirmPickupLocationChangeModal.button.confirm": "Confirmer", + "settings.confirmPickupLocationChangeModal.button.cancel": "Retour", "permission.settings.tenant-settings.view": "Settings (tenant): View", "permission.settings.addresses.view": "Settings (tenant): Can view tenant addresses", - "permission.settings.locale.view": "Settings (tenant): Can view language, localization, and currency", - "permission.settings.plugins.view": "Settings (tenant): Can view preferred plugins", - "permission.settings.sso.view": "Settings (tenant): Can view SSO settings", + "permission.settings.locale.view": "Paramètres (Gestion/administration) : peut voir la langue, la localisation et la devise", + "permission.settings.plugins.view": "Paramètres (Gestion/administration) : peut voir les plugins préférés", + "permission.settings.sso.view": "Paramètres (Gestion/administration) : peut voir les paramètres SSO", "permission.settings.location.view": "Settings (Tenant): View locations", - "permission.settings.servicepoints.view": "Settings (tenant): Can view service points", + "permission.settings.servicepoints.view": "Paramètres (Gestion/administration) : peut voir les points de services", "settings.title": "Tenant settings", "settings.address.title": "Tenant settings - Addresses", - "settings.locale.title": "Tenant settings - Language and localization", + "settings.locale.title": "Paramètres locaux - Langue et localisation", "settings.plugins.title": "Tenant settings - Preferred plugins", "settings.sso.title": "Tenant settings - SSO settings", "settings.service.title": "Tenant settings - Service points", @@ -199,8 +199,8 @@ "settings.items.title": "Tenant settings - {item}", "settings.location.createNew.title": "Tenant settings - New location", "settings.items.edit.title": "Tenant settings - Edit: {item}", - "permission.settings.reading-room-access.view": "Settings (tenant): Can view reading room access", - "permission.settings.reading-room-access.all": "Settings (tenant): Can create, edit and remove reading room access", + "permission.settings.reading-room-access.view": "Paramètres (Gestion/administration) : peut voir l'accès aux salles de lecture", + "permission.settings.reading-room-access.all": "Paramètres (Gestion/administration) : peut créer, modifier et supprimer les accès aux salles de lecture", "settings.reading-room.title": "Tenant settings - Reading room access", "settings.reading-room-access.label": "Reading room access", "settings.reading-room-access.name": "Nom de la salle", diff --git a/translations/ui-tenant-settings/he.json b/translations/ui-tenant-settings/he.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/he.json +++ b/translations/ui-tenant-settings/he.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/hi_IN.json b/translations/ui-tenant-settings/hi_IN.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/hi_IN.json +++ b/translations/ui-tenant-settings/hi_IN.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/hu.json b/translations/ui-tenant-settings/hu.json index f92d4fd6..0c87829f 100644 --- a/translations/ui-tenant-settings/hu.json +++ b/translations/ui-tenant-settings/hu.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/nb.json b/translations/ui-tenant-settings/nb.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/nb.json +++ b/translations/ui-tenant-settings/nb.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/nl.json b/translations/ui-tenant-settings/nl.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/nl.json +++ b/translations/ui-tenant-settings/nl.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/nn.json b/translations/ui-tenant-settings/nn.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/nn.json +++ b/translations/ui-tenant-settings/nn.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/pt_BR.json b/translations/ui-tenant-settings/pt_BR.json index 77662b8b..35f14e7e 100644 --- a/translations/ui-tenant-settings/pt_BR.json +++ b/translations/ui-tenant-settings/pt_BR.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Configurações (locatário): Pode manter os plugins preferidos", "permission.settings.sso": "Configurações (locatário): Pode manter as configurações de SSO", "permission.settings.location": "Configurações (locatário): Pode criar, editar e remover locais", - "permission.settings.servicepoints": "Configurações (locatário): Pode criar, editar e remover pontos de serviço", + "permission.settings.servicepoints": "Configurações (locatário): Pode criar e editar pontos de serviço", "settings.location.remotes.remote": "Armazenamento externo", "settings.location.remotes.no": "Não (padrão)", "settings.location.remotes.loading": "carregando...", diff --git a/translations/ui-tenant-settings/pt_PT.json b/translations/ui-tenant-settings/pt_PT.json index 9427740c..b6723c63 100644 --- a/translations/ui-tenant-settings/pt_PT.json +++ b/translations/ui-tenant-settings/pt_PT.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/ru.json b/translations/ui-tenant-settings/ru.json index 65b80c83..e75b8b60 100644 --- a/translations/ui-tenant-settings/ru.json +++ b/translations/ui-tenant-settings/ru.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/sk.json b/translations/ui-tenant-settings/sk.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/sk.json +++ b/translations/ui-tenant-settings/sk.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/sv.json b/translations/ui-tenant-settings/sv.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/sv.json +++ b/translations/ui-tenant-settings/sv.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", diff --git a/translations/ui-tenant-settings/ur.json b/translations/ui-tenant-settings/ur.json index c06141e0..a98803e2 100644 --- a/translations/ui-tenant-settings/ur.json +++ b/translations/ui-tenant-settings/ur.json @@ -133,7 +133,7 @@ "permission.settings.plugins": "Settings (tenant): Can maintain preferred plugins", "permission.settings.sso": "Settings (tenant): Can maintain SSO settings", "permission.settings.location": "Settings (tenant): Can create, edit and remove locations", - "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", + "permission.settings.servicepoints": "Settings (tenant): Can create and edit service points", "settings.location.remotes.remote": "Remote storage", "settings.location.remotes.no": "No (default)", "settings.location.remotes.loading": "loading...", From 1a04912916987f72baaed905a5e880cbfb31844e Mon Sep 17 00:00:00 2001 From: Vadym Shchekotilin <86330150+vashjs@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:54:34 +0200 Subject: [PATCH 10/11] UITEN-299 Rewrite class components to functional ones (ui-tenant-settings module) (#416) UITEN-299 Rewrite all class components to functional ones (ui-tenant-settings module) --- CHANGELOG.md | 1 + package.json | 1 + src/components/Period/Period.js | 190 ++--- src/hooks/useCampusDetails.js | 20 + src/hooks/useCampuses.js | 19 + src/hooks/useConfigurations.js | 19 + src/hooks/useConfigurationsCreate.js | 16 + src/hooks/useConfigurationsUpdate.js | 16 + src/hooks/useInstitutionDetails.js | 20 + src/hooks/useInstitutions.js | 19 + src/hooks/useLibraries.js | 19 + src/hooks/useLibraryDetails.js | 20 + src/hooks/useLocationCreate.js | 16 + src/hooks/useLocationDelete.js | 16 + src/hooks/useLocationUpdate.js | 16 + src/hooks/useLocations.js | 20 + src/hooks/useRemoteStorageConfigurations.js | 21 + src/hooks/useRemoteStorageMappingDelete.js | 16 + src/hooks/useRemoteStorageMappingUpdate.js | 16 + src/hooks/useRemoteStorageMappings.js | 21 + src/hooks/useSamlConfiguration.js | 19 + src/hooks/useSamlConfigurationUpdate.js | 16 + src/hooks/useSamlDownload.js | 24 + src/hooks/useServicePoints.js | 19 + src/settings/Addresses.js | 192 ++--- src/settings/Bindings/Bindings.js | 52 +- src/settings/Bindings/BindingsForm.js | 139 ++-- src/settings/Locale.js | 79 +- src/settings/LocaleForm.js | 263 +++--- src/settings/LocationCampuses.js | 255 +++--- src/settings/LocationCampuses.test.js | 115 ++- src/settings/LocationInstitutions.js | 141 ++-- src/settings/LocationInstitutions.test.js | 63 +- src/settings/LocationLibraries.js | 327 +++----- src/settings/LocationLibraries.test.js | 111 ++- .../LocationLocations/LocationDetail.js | 112 +-- .../LocationForm/DetailsField.js | 99 +-- .../LocationForm/DetailsField.test.js | 9 +- .../LocationForm/LocationForm.js | 586 ++++++------- .../LocationForm/LocationFormContainer.js | 52 +- .../LocationFormContainer.test.js | 270 +++--- .../LocationForm/RemoteStorageField.js | 13 +- .../LocationForm/ServicePointsFields.js | 14 +- .../LocationLocations/LocationManager.js | 786 +++++++----------- .../LocationLocations/LocationManager.test.js | 233 ++---- .../RemoteStorage/Control.js | 17 +- .../RemoteStorage/Control.test.js | 26 +- .../RemoteStorage/Provider.js | 100 +-- .../LocationLocations/RemoteStorageDetails.js | 3 +- .../LocationLocations/locationDetail.test.js | 76 +- .../remoteStorageDetails.test.js | 23 +- src/settings/LocationLocations/utils.js | 8 +- src/settings/Plugins/PluginForm.js | 126 ++- src/settings/Plugins/Plugins.js | 162 ++-- src/settings/Plugins/Plugins.test.js | 67 +- .../ReadingRoomAccess/ReadingRoomAccess.js | 16 +- .../ReadingRoomAccess.test.js | 13 +- src/settings/SSOSettings/SSOSettings.js | 177 ++-- src/settings/SSOSettings/SSOSettings.test.js | 63 +- src/settings/SSOSettings/SamlForm.js | 292 +++---- src/settings/ServicePoints/LocationList.js | 6 +- .../ServicePoints/StaffSlipEditList.js | 36 +- src/settings/ServicePoints/StaffSlipList.js | 49 +- src/settings/ServicePoints/constants.js | 1 - src/settings/index.js | 228 +++-- src/settings/index.test.js | 47 +- test/jest/__mocks__/stripesCore.mock.js | 160 ++-- translations/ui-tenant-settings/en.json | 1 + 68 files changed, 2828 insertions(+), 3360 deletions(-) create mode 100644 src/hooks/useCampusDetails.js create mode 100644 src/hooks/useCampuses.js create mode 100644 src/hooks/useConfigurations.js create mode 100644 src/hooks/useConfigurationsCreate.js create mode 100644 src/hooks/useConfigurationsUpdate.js create mode 100644 src/hooks/useInstitutionDetails.js create mode 100644 src/hooks/useInstitutions.js create mode 100644 src/hooks/useLibraries.js create mode 100644 src/hooks/useLibraryDetails.js create mode 100644 src/hooks/useLocationCreate.js create mode 100644 src/hooks/useLocationDelete.js create mode 100644 src/hooks/useLocationUpdate.js create mode 100644 src/hooks/useLocations.js create mode 100644 src/hooks/useRemoteStorageConfigurations.js create mode 100644 src/hooks/useRemoteStorageMappingDelete.js create mode 100644 src/hooks/useRemoteStorageMappingUpdate.js create mode 100644 src/hooks/useRemoteStorageMappings.js create mode 100644 src/hooks/useSamlConfiguration.js create mode 100644 src/hooks/useSamlConfigurationUpdate.js create mode 100644 src/hooks/useSamlDownload.js create mode 100644 src/hooks/useServicePoints.js diff --git a/CHANGELOG.md b/CHANGELOG.md index d889c0ca..0cae5387 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * [UITEN-298] (https://issues.folio.org/browse/UITEN-298) Update translation ids for reading room. * [UITEN-301] (https://issues.folio.org/browse/UITEN-301) Display Reading room access in alphabetical order on settings page. * [UITEN-212](https://folio-org.atlassian.net/browse/UITEN-212) Permission changes for service point management. +* [UITEN-299](https://folio-org.atlassian.net/browse/UITEN-299) Rewrite class components to functional ones (ui-tenant-settings module). ## [8.1.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.1.0)(2024-03-19) [Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v8.0.0...v8.1.0) diff --git a/package.json b/package.json index 3098caaa..dda50338 100644 --- a/package.json +++ b/package.json @@ -304,6 +304,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-intl": "^6.4.4", + "react-query": "^3.6.0", "react-router-dom": "^5.2.0" } } diff --git a/src/components/Period/Period.js b/src/components/Period/Period.js index 9f999028..65d6b441 100644 --- a/src/components/Period/Period.js +++ b/src/components/Period/Period.js @@ -1,31 +1,24 @@ -import React from 'react'; +import React, { useRef } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; - -import { - Field, -} from 'react-final-form'; - -import { - get, - isEmpty, - isNumber, -} from 'lodash'; +import { Field } from 'react-final-form'; +import { get, isEmpty, isNumber } from 'lodash'; import { Col, Row, Select, TextField, - Label, + Label } from '@folio/stripes/components'; -import css from './Period.css'; import { shortTermExpiryPeriod, shortTermClosedDateManagementMenu, longTermClosedDateManagementMenu } from '../../settings/ServicePoints/constants'; +import css from './Period.css'; + const validateDuration = value => { if (typeof value !== 'number') { @@ -39,32 +32,19 @@ const validateDuration = value => { return undefined; }; -class Period extends React.Component { - static propTypes = { - fieldLabel: PropTypes.string.isRequired, - selectPlaceholder: PropTypes.string.isRequired, - dependentValuePath: PropTypes.string.isRequired, - inputValuePath: PropTypes.string.isRequired, - selectValuePath: PropTypes.string.isRequired, - entity: PropTypes.object.isRequired, - intervalPeriods: PropTypes.arrayOf(PropTypes.object), - changeFormValue: PropTypes.func.isRequired, - }; - - constructor(props) { - super(props); - - this.inputRef = React.createRef(); - } - - onInputBlur = () => { - const { - inputValuePath, - selectValuePath, - entity, - changeFormValue, - } = this.props; - +const Period = ({ + fieldLabel, + selectPlaceholder, + dependentValuePath, + inputValuePath, + selectValuePath, + entity, + intervalPeriods, + changeFormValue +}) => { + const inputRef = useRef(null); + + const onInputBlur = () => { const inputValue = get(entity, inputValuePath); if (isNumber(inputValue)) { @@ -74,22 +54,11 @@ class Period extends React.Component { changeFormValue(selectValuePath, ''); }; - onInputClear = () => { - const { - inputValuePath, - changeFormValue, - } = this.props; - + const onInputClear = () => { changeFormValue(inputValuePath, ''); }; - onSelectChange = (e) => { - const { - selectValuePath, - changeFormValue, - dependentValuePath, - } = this.props; - + const onSelectChange = (e) => { changeFormValue(selectValuePath, e.target.value); const holdShelfClosedLibraryDateManagementValue = shortTermExpiryPeriod.findIndex(item => item === e.target.value) > -1 @@ -97,10 +66,10 @@ class Period extends React.Component { : longTermClosedDateManagementMenu[0].value; changeFormValue(dependentValuePath, holdShelfClosedLibraryDateManagementValue); - this.inputRef.current.focus(); + inputRef.current.focus(); }; - transformInputValue = (value) => { + const transformInputValue = (value) => { if (isEmpty(value)) { return ''; } @@ -108,12 +77,7 @@ class Period extends React.Component { return Number(value); }; - generateOptions = () => { - const { - intervalPeriods, - selectValuePath, - } = this.props; - + const generateOptions = () => { return intervalPeriods.map(({ value, label }) => (