diff --git a/CHANGELOG.md b/CHANGELOG.md index d7c8fbcb..48cc216a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ * *BREAKING* bump `react-intl` to `v6.4.4`. Refs UICIRC-977. * Add informational message for Holds to New Request Policy page. Refs UICIRC-981. * Restore previously deleted Jest/RTL tests that were failing. Refs UICIRC-971. +* Add "hour" to the time frequency for reminder fees. Fixes UICIRC-983. * Freeze the first five selection menus for reminder fees. Refs UICIRC-982. ## [8.0.1](https://github.com/folio-org/ui-circulation/tree/v8.0.1) (2023-03-07) diff --git a/src/constants.js b/src/constants.js index dd99ec68..e62878e1 100644 --- a/src/constants.js +++ b/src/constants.js @@ -378,6 +378,7 @@ export const closingTypesMap = { }; export const timeUnitsMap = { + HOUR: 'hour', DAY: 'day', WEEK: 'week', }; @@ -409,6 +410,10 @@ export const closedLoansRules = { }; export const timeUnits = [ + { + value: timeUnitsMap.HOUR, + label: 'ui-circulation.settings.finePolicy.reminderFees.timeUnit.hours', + }, { value: timeUnitsMap.DAY, label: 'ui-circulation.settings.finePolicy.reminderFees.timeUnit.days', diff --git a/translations/ui-circulation/en.json b/translations/ui-circulation/en.json index b20300d6..db10be68 100644 --- a/translations/ui-circulation/en.json +++ b/translations/ui-circulation/en.json @@ -440,6 +440,7 @@ "settings.finePolicy.reminderFees.selectNoticeMethod": "Select notice method", "settings.finePolicy.reminderFees.selectNoticeTemplate": "Select notice template", "settings.finePolicy.reminderFees.selectBlockTemplate": "Select block template", + "settings.finePolicy.reminderFees.timeUnit.hours": "Hour(s)", "settings.finePolicy.reminderFees.timeUnit.days": "Day(s)", "settings.finePolicy.reminderFees.timeUnit.weeks": "Week(s)", "settings.finePolicy.reminderFees.noticeMethods.email": "Email",