From 34065b1d072b9182d8609439cc7a3033d939e3d9 Mon Sep 17 00:00:00 2001 From: Michael Ritter Date: Fri, 19 Jan 2024 19:10:29 -0700 Subject: [PATCH] DRYD-1326: Update exit reasons list (#23) --- src/plugins/recordTypes/objectexit/index.js | 2 + .../recordTypes/objectexit/optionLists.js | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/plugins/recordTypes/objectexit/optionLists.js diff --git a/src/plugins/recordTypes/objectexit/index.js b/src/plugins/recordTypes/objectexit/index.js index d4b1f7c..c132d81 100644 --- a/src/plugins/recordTypes/objectexit/index.js +++ b/src/plugins/recordTypes/objectexit/index.js @@ -1,6 +1,8 @@ import forms from './forms'; +import optionLists from './optionLists'; export default () => (configContext) => ({ + optionLists, recordTypes: { objectexit: { forms: forms(configContext), diff --git a/src/plugins/recordTypes/objectexit/optionLists.js b/src/plugins/recordTypes/objectexit/optionLists.js new file mode 100644 index 0000000..1562e19 --- /dev/null +++ b/src/plugins/recordTypes/objectexit/optionLists.js @@ -0,0 +1,38 @@ +import { defineMessages } from 'react-intl'; + +export default { + exitReasons: { + values: [ + 'deaccession', + 'disposal', + 'returnofloan', + 'temporary', + 'transfer', + 'painted out', + 'covered by construction', + 'lost to demolition', + ], + messages: defineMessages({ + temporary: { + id: 'option.exitReasons.temporary', + defaultMessage: 'temporary', + }, + transfer: { + id: 'option.exitReasons.transfer', + defaultMessage: 'transfer', + }, + 'painted out': { + id: 'option.exitReasons.painted out', + defaultMessage: 'painted out', + }, + 'covered by construction': { + id: 'option.exitReasons.covered by construction', + defaultMessage: 'covered by construction', + }, + 'lost to demolition': { + id: 'option.exitReasons.lost to demolition', + defaultMessage: 'lost to demolition', + }, + }), + }, +};