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..35fcf69 --- /dev/null +++ b/src/plugins/recordTypes/objectexit/optionLists.js @@ -0,0 +1,50 @@ +import { defineMessages } from 'react-intl'; + +export default { + exitReasons: { + values: [ + 'deaccession', + 'disposal', + 'returnofloan', + 'temporary', + 'transfer', + 'painted out', + 'covered by construction', + 'lost to demolition', + ], + messages: defineMessages({ + deaccession: { + id: 'option.exitReasons.deaccession', + defaultMessage: 'deaccession', + }, + disposal: { + id: 'option.exitReasons.disposal', + defaultMessage: 'disposal', + }, + returnofloan: { + id: 'option.exitReasons.returnofloan', + defaultMessage: 'return of loan', + }, + 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', + }, + }), + }, +};