@collectionspace/cspace-public-browser 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +71 -0
- package/README.md +38 -0
- package/dist/cspacePublicBrowser.js +4680 -0
- package/dist/cspacePublicBrowser.min.js +2 -0
- package/dist/cspacePublicBrowser.min.js.LICENSE.txt +56 -0
- package/images/check.svg +3 -0
- package/images/close.svg +3 -0
- package/images/collapse.svg +3 -0
- package/images/collapseActive.svg +3 -0
- package/images/expand.svg +3 -0
- package/images/expandActive.svg +3 -0
- package/images/filter.svg +4 -0
- package/images/hideLeft.svg +4 -0
- package/images/linkBack.svg +4 -0
- package/images/linkDown.svg +4 -0
- package/images/linkNext.svg +4 -0
- package/images/linkPrev.svg +4 -0
- package/images/openNew.svg +4 -0
- package/images/search.svg +4 -0
- package/images/select.svg +4 -0
- package/images/top.svg +1 -0
- package/lib/actions/detailActions.js +177 -0
- package/lib/actions/filterActions.js +16 -0
- package/lib/actions/mediaActions.js +63 -0
- package/lib/actions/prefsActions.js +84 -0
- package/lib/actions/searchActions.js +140 -0
- package/lib/actions/searchEntryFormActions.js +19 -0
- package/lib/components/App.js +24 -0
- package/lib/components/detail/DetailNavBar.js +98 -0
- package/lib/components/detail/DetailPanel.js +171 -0
- package/lib/components/detail/DetailPanelContainer.js +22 -0
- package/lib/components/detail/ExhibitionSection.js +54 -0
- package/lib/components/detail/FieldList.js +95 -0
- package/lib/components/detail/FieldValueList.js +30 -0
- package/lib/components/detail/ImageGallery.js +137 -0
- package/lib/components/detail/ImageGalleryContainer.js +19 -0
- package/lib/components/detail/InstitutionHoldingList.js +155 -0
- package/lib/components/detail/InstitutionHoldingListContainer.js +22 -0
- package/lib/components/detail/InstitutionIndex.js +53 -0
- package/lib/components/detail/InstitutionIndexContainer.js +15 -0
- package/lib/components/detail/InstitutionSection.js +44 -0
- package/lib/components/detail/InstitutionSectionContainer.js +15 -0
- package/lib/components/layout/Fixed.js +26 -0
- package/lib/components/layout/IconButton.js +41 -0
- package/lib/components/layout/Panel.js +56 -0
- package/lib/components/layout/PanelContainer.js +19 -0
- package/lib/components/layout/PanelTitle.js +38 -0
- package/lib/components/layout/ScrollTopButton.js +70 -0
- package/lib/components/layout/ToggleFilterPanelButton.js +42 -0
- package/lib/components/pages/DetailPage.js +93 -0
- package/lib/components/pages/DetailPageContainer.js +20 -0
- package/lib/components/pages/RootPage.js +41 -0
- package/lib/components/pages/SearchPage.js +130 -0
- package/lib/components/pages/SearchPageContainer.js +23 -0
- package/lib/components/search/entry/SearchEntryForm.js +74 -0
- package/lib/components/search/entry/SearchEntryFormContainer.js +20 -0
- package/lib/components/search/entry/SearchEntryPanel.js +30 -0
- package/lib/components/search/entry/SearchQueryInput.js +89 -0
- package/lib/components/search/entry/SearchSubmitButton.js +22 -0
- package/lib/components/search/entry/SortSelect.js +89 -0
- package/lib/components/search/entry/SortSelectContainer.js +15 -0
- package/lib/components/search/result/ClearSearchParamsLink.js +42 -0
- package/lib/components/search/result/Filter.js +186 -0
- package/lib/components/search/result/FilterContainer.js +22 -0
- package/lib/components/search/result/FilterGroup.js +72 -0
- package/lib/components/search/result/FilterList.js +48 -0
- package/lib/components/search/result/FilterPanel.js +115 -0
- package/lib/components/search/result/FilterPanelContainer.js +16 -0
- package/lib/components/search/result/FilterSearchInput.js +63 -0
- package/lib/components/search/result/RemoveSearchParamLink.js +66 -0
- package/lib/components/search/result/SearchError.js +29 -0
- package/lib/components/search/result/SearchLoadMore.js +36 -0
- package/lib/components/search/result/SearchParamList.js +41 -0
- package/lib/components/search/result/SearchPending.js +21 -0
- package/lib/components/search/result/SearchResultImage.js +227 -0
- package/lib/components/search/result/SearchResultList.js +119 -0
- package/lib/components/search/result/SearchResultPanel.js +139 -0
- package/lib/components/search/result/SearchResultPanelContainer.js +23 -0
- package/lib/components/search/result/SearchResultStats.js +39 -0
- package/lib/components/search/result/SearchResultTile.js +61 -0
- package/lib/config/anthro.js +123 -0
- package/lib/config/bonsai.js +50 -0
- package/lib/config/botgarden.js +10 -0
- package/lib/config/default.js +530 -0
- package/lib/config/fcart.js +36 -0
- package/lib/config/herbarium.js +10 -0
- package/lib/config/index.js +53 -0
- package/lib/config/lhmc.js +10 -0
- package/lib/config/materials.js +982 -0
- package/lib/config/publicart.js +10 -0
- package/lib/constants/actionCodes.js +46 -0
- package/lib/constants/ids.js +12 -0
- package/lib/helpers/bodyClassName.js +11 -0
- package/lib/helpers/esQueryHelpers.js +206 -0
- package/lib/helpers/formatHelpers.js +293 -0
- package/lib/helpers/searchDimensions.js +28 -0
- package/lib/helpers/urlHelpers.js +43 -0
- package/lib/index.js +53 -0
- package/lib/intl/index.js +16 -0
- package/lib/reducers/detailReducer.js +145 -0
- package/lib/reducers/filterReducer.js +22 -0
- package/lib/reducers/index.js +66 -0
- package/lib/reducers/mediaReducer.js +43 -0
- package/lib/reducers/prefsReducer.js +27 -0
- package/lib/reducers/searchEntryFormReducer.js +24 -0
- package/lib/reducers/searchReducer.js +88 -0
- package/package.json +118 -0
- package/src/actions/detailActions.js +231 -0
- package/src/actions/filterActions.js +10 -0
- package/src/actions/mediaActions.js +65 -0
- package/src/actions/prefsActions.js +95 -0
- package/src/actions/searchActions.js +188 -0
- package/src/actions/searchEntryFormActions.js +15 -0
- package/src/components/App.jsx +18 -0
- package/src/components/detail/DetailNavBar.jsx +132 -0
- package/src/components/detail/DetailPanel.jsx +215 -0
- package/src/components/detail/DetailPanelContainer.js +29 -0
- package/src/components/detail/ExhibitionSection.jsx +71 -0
- package/src/components/detail/FieldList.jsx +122 -0
- package/src/components/detail/FieldValueList.jsx +31 -0
- package/src/components/detail/ImageGallery.jsx +153 -0
- package/src/components/detail/ImageGalleryContainer.js +17 -0
- package/src/components/detail/InstitutionHoldingList.jsx +188 -0
- package/src/components/detail/InstitutionHoldingListContainer.js +29 -0
- package/src/components/detail/InstitutionIndex.jsx +57 -0
- package/src/components/detail/InstitutionIndexContainer.js +11 -0
- package/src/components/detail/InstitutionSection.jsx +48 -0
- package/src/components/detail/InstitutionSectionContainer.js +11 -0
- package/src/components/layout/Fixed.jsx +29 -0
- package/src/components/layout/IconButton.jsx +41 -0
- package/src/components/layout/Panel.jsx +60 -0
- package/src/components/layout/PanelContainer.js +20 -0
- package/src/components/layout/PanelTitle.jsx +43 -0
- package/src/components/layout/ScrollTopButton.jsx +76 -0
- package/src/components/layout/ToggleFilterPanelButton.jsx +43 -0
- package/src/components/pages/DetailPage.jsx +101 -0
- package/src/components/pages/DetailPageContainer.js +18 -0
- package/src/components/pages/RootPage.jsx +37 -0
- package/src/components/pages/SearchPage.jsx +160 -0
- package/src/components/pages/SearchPageContainer.js +21 -0
- package/src/components/search/entry/SearchEntryForm.jsx +82 -0
- package/src/components/search/entry/SearchEntryFormContainer.js +22 -0
- package/src/components/search/entry/SearchEntryPanel.jsx +28 -0
- package/src/components/search/entry/SearchQueryInput.jsx +95 -0
- package/src/components/search/entry/SearchSubmitButton.jsx +22 -0
- package/src/components/search/entry/SortSelect.jsx +104 -0
- package/src/components/search/entry/SortSelectContainer.js +12 -0
- package/src/components/search/result/ClearSearchParamsLink.jsx +43 -0
- package/src/components/search/result/Filter.jsx +226 -0
- package/src/components/search/result/FilterContainer.js +20 -0
- package/src/components/search/result/FilterGroup.jsx +83 -0
- package/src/components/search/result/FilterList.jsx +51 -0
- package/src/components/search/result/FilterPanel.jsx +143 -0
- package/src/components/search/result/FilterPanelContainer.js +16 -0
- package/src/components/search/result/FilterSearchInput.jsx +68 -0
- package/src/components/search/result/RemoveSearchParamLink.jsx +79 -0
- package/src/components/search/result/SearchError.jsx +30 -0
- package/src/components/search/result/SearchLoadMore.jsx +37 -0
- package/src/components/search/result/SearchParamList.jsx +47 -0
- package/src/components/search/result/SearchPending.jsx +19 -0
- package/src/components/search/result/SearchResultImage.jsx +275 -0
- package/src/components/search/result/SearchResultList.jsx +144 -0
- package/src/components/search/result/SearchResultPanel.jsx +169 -0
- package/src/components/search/result/SearchResultPanelContainer.js +31 -0
- package/src/components/search/result/SearchResultStats.jsx +38 -0
- package/src/components/search/result/SearchResultTile.jsx +70 -0
- package/src/config/anthro.js +153 -0
- package/src/config/bonsai.js +50 -0
- package/src/config/botgarden.js +3 -0
- package/src/config/default.js +604 -0
- package/src/config/fcart.js +38 -0
- package/src/config/herbarium.js +3 -0
- package/src/config/index.js +51 -0
- package/src/config/lhmc.js +3 -0
- package/src/config/materials.js +1173 -0
- package/src/config/publicart.js +3 -0
- package/src/constants/actionCodes.js +26 -0
- package/src/constants/ids.js +3 -0
- package/src/helpers/bodyClassName.js +5 -0
- package/src/helpers/esQueryHelpers.js +224 -0
- package/src/helpers/formatHelpers.jsx +361 -0
- package/src/helpers/searchDimensions.js +21 -0
- package/src/helpers/urlHelpers.js +49 -0
- package/src/index.jsx +59 -0
- package/src/intl/index.js +16 -0
- package/src/reducers/detailReducer.js +201 -0
- package/src/reducers/filterReducer.js +16 -0
- package/src/reducers/index.js +56 -0
- package/src/reducers/mediaReducer.js +44 -0
- package/src/reducers/prefsReducer.js +24 -0
- package/src/reducers/searchEntryFormReducer.js +19 -0
- package/src/reducers/searchReducer.js +118 -0
- package/styles/colors.css +7 -0
- package/styles/cspace/DetailNavBar.css +17 -0
- package/styles/cspace/DetailPage.css +3 -0
- package/styles/cspace/DetailPanel.css +69 -0
- package/styles/cspace/ExhibitionSection.css +9 -0
- package/styles/cspace/FieldList.css +15 -0
- package/styles/cspace/FieldListField.css +7 -0
- package/styles/cspace/FieldListGroup.css +27 -0
- package/styles/cspace/FieldValueList.css +19 -0
- package/styles/cspace/Filter.css +64 -0
- package/styles/cspace/FilterGroup.css +21 -0
- package/styles/cspace/FilterPanel.css +45 -0
- package/styles/cspace/FilterSearchInput.css +13 -0
- package/styles/cspace/Fixed.css +8 -0
- package/styles/cspace/IconButton.css +11 -0
- package/styles/cspace/ImageGallery.css +43 -0
- package/styles/cspace/InstitutionHoldingList.css +109 -0
- package/styles/cspace/InstitutionIndex.css +13 -0
- package/styles/cspace/InstitutionSection.css +4 -0
- package/styles/cspace/Link.css +39 -0
- package/styles/cspace/Panel.css +53 -0
- package/styles/cspace/PanelTitle.css +48 -0
- package/styles/cspace/RemoveSearchParamLink.css +15 -0
- package/styles/cspace/RootPage.css +60 -0
- package/styles/cspace/ScrollTopButton.css +32 -0
- package/styles/cspace/SearchEntryForm.css +4 -0
- package/styles/cspace/SearchEntryPanel.css +11 -0
- package/styles/cspace/SearchPage.css +2 -0
- package/styles/cspace/SearchParamLink.css +21 -0
- package/styles/cspace/SearchParamList.css +6 -0
- package/styles/cspace/SearchQueryInput.css +30 -0
- package/styles/cspace/SearchResultImage.css +29 -0
- package/styles/cspace/SearchResultList.css +10 -0
- package/styles/cspace/SearchResultPanel.css +31 -0
- package/styles/cspace/SearchResultStats.css +4 -0
- package/styles/cspace/SearchResultTile.css +67 -0
- package/styles/cspace/SearchStatus.css +12 -0
- package/styles/cspace/SearchSubmitButton.css +3 -0
- package/styles/cspace/SortSelect.css +19 -0
- package/styles/cspace/ToggleFilterPanelButton.css +44 -0
- package/styles/dimensions.css +9 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { Link } from 'react-router-dom';
|
|
4
|
+
import Immutable from 'immutable';
|
|
5
|
+
import SearchResultImage from './SearchResultImage';
|
|
6
|
+
import config from '../../../config';
|
|
7
|
+
import styles from '../../../../styles/cspace/SearchResultTile.css';
|
|
8
|
+
|
|
9
|
+
const propTypes = {
|
|
10
|
+
gatewayUrl: PropTypes.string.isRequired,
|
|
11
|
+
index: PropTypes.number.isRequired,
|
|
12
|
+
loadImageImmediately: PropTypes.bool.isRequired,
|
|
13
|
+
params: PropTypes.instanceOf(Immutable.Map).isRequired,
|
|
14
|
+
result: PropTypes.instanceOf(Immutable.Map).isRequired,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default function SearchResultTile(props) {
|
|
18
|
+
const {
|
|
19
|
+
gatewayUrl,
|
|
20
|
+
loadImageImmediately,
|
|
21
|
+
index,
|
|
22
|
+
params,
|
|
23
|
+
result,
|
|
24
|
+
} = props;
|
|
25
|
+
|
|
26
|
+
const detailPath = config.get('detailPath');
|
|
27
|
+
const referenceField = config.get('referenceField');
|
|
28
|
+
const tileTitleField = config.get(['tileTitle', 'field']);
|
|
29
|
+
const tileTitleFormat = config.get(['tileTitle', 'formatValue']);
|
|
30
|
+
|
|
31
|
+
const doc = result.get('_source');
|
|
32
|
+
const csid = doc.get('ecm:name');
|
|
33
|
+
const url = csid && `/${detailPath}/${csid}`;
|
|
34
|
+
const holdingInstitutions = doc.get('collectionspace_denorm:holdingInstitutions');
|
|
35
|
+
const mediaCsid = doc.getIn(['collectionspace_denorm:mediaCsid', 0]);
|
|
36
|
+
const referenceValue = doc.get(referenceField);
|
|
37
|
+
|
|
38
|
+
let title = doc.get(tileTitleField);
|
|
39
|
+
|
|
40
|
+
if (tileTitleFormat) {
|
|
41
|
+
title = tileTitleFormat(title);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<Link
|
|
46
|
+
className={styles.common}
|
|
47
|
+
to={{
|
|
48
|
+
pathname: url,
|
|
49
|
+
state: {
|
|
50
|
+
index,
|
|
51
|
+
searchParams: params.toJS(),
|
|
52
|
+
},
|
|
53
|
+
}}
|
|
54
|
+
>
|
|
55
|
+
<SearchResultImage
|
|
56
|
+
gatewayUrl={gatewayUrl}
|
|
57
|
+
holdingInstitutions={holdingInstitutions}
|
|
58
|
+
loadImageImmediately={loadImageImmediately}
|
|
59
|
+
mediaCsid={mediaCsid}
|
|
60
|
+
referenceValue={referenceValue}
|
|
61
|
+
/>
|
|
62
|
+
|
|
63
|
+
<article>
|
|
64
|
+
<h2>{title}</h2>
|
|
65
|
+
</article>
|
|
66
|
+
</Link>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
SearchResultTile.propTypes = propTypes;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
decade,
|
|
5
|
+
displayName,
|
|
6
|
+
filterLink,
|
|
7
|
+
listOf,
|
|
8
|
+
valueAt,
|
|
9
|
+
} from '../helpers/formatHelpers';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
gatewayUrl: 'http://localhost:8180/gateway/anthro',
|
|
13
|
+
|
|
14
|
+
filters: {
|
|
15
|
+
fields: {
|
|
16
|
+
objectProductionPeople: {
|
|
17
|
+
field: 'collectionobjects_common:objectProductionPeopleGroupList.objectProductionPeople.displayName',
|
|
18
|
+
},
|
|
19
|
+
taxon: {
|
|
20
|
+
field: 'collectionobjects_naturalhistory_extension:taxonomicIdentGroupList.taxon.displayName',
|
|
21
|
+
messages: defineMessages({
|
|
22
|
+
label: {
|
|
23
|
+
id: 'filter.taxon.label',
|
|
24
|
+
defaultMessage: 'Taxon name',
|
|
25
|
+
},
|
|
26
|
+
shortLabel: {
|
|
27
|
+
id: 'filter.taxon.shortLabel',
|
|
28
|
+
defaultMessage: 'Taxon',
|
|
29
|
+
},
|
|
30
|
+
}),
|
|
31
|
+
},
|
|
32
|
+
collectionYears: {
|
|
33
|
+
field: 'collectionspace_denorm:collectionYears',
|
|
34
|
+
type: 'histogram',
|
|
35
|
+
interval: 10,
|
|
36
|
+
formatValue: decade,
|
|
37
|
+
messages: defineMessages({
|
|
38
|
+
label: {
|
|
39
|
+
id: 'filter.collectionYears.label',
|
|
40
|
+
defaultMessage: 'Collection date',
|
|
41
|
+
},
|
|
42
|
+
shortLabel: {
|
|
43
|
+
id: 'filter.collectionYears.shortLabel',
|
|
44
|
+
defaultMessage: 'Coll. date',
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
groups: {
|
|
50
|
+
group_collection: {
|
|
51
|
+
messages: defineMessages({
|
|
52
|
+
label: {
|
|
53
|
+
id: 'filterGroup.group_collection.label',
|
|
54
|
+
defaultMessage: 'Collection',
|
|
55
|
+
},
|
|
56
|
+
}),
|
|
57
|
+
fields: [
|
|
58
|
+
'collectionYears',
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
group_description: {
|
|
62
|
+
fields: [
|
|
63
|
+
'material',
|
|
64
|
+
'technique',
|
|
65
|
+
'contentConcept',
|
|
66
|
+
'color',
|
|
67
|
+
'taxon',
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
layout: {
|
|
72
|
+
filters1: [
|
|
73
|
+
'group_id',
|
|
74
|
+
'group_media',
|
|
75
|
+
'group_collection',
|
|
76
|
+
'group_description',
|
|
77
|
+
'group_production',
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
detailFields: {
|
|
83
|
+
fields: {
|
|
84
|
+
taxon: {
|
|
85
|
+
messages: defineMessages({
|
|
86
|
+
label: {
|
|
87
|
+
id: 'detailField.taxon.label',
|
|
88
|
+
defaultMessage: 'Taxon name',
|
|
89
|
+
},
|
|
90
|
+
}),
|
|
91
|
+
field: 'collectionobjects_naturalhistory_extension:taxonomicIdentGroupList',
|
|
92
|
+
format: listOf(valueAt({
|
|
93
|
+
path: 'taxon',
|
|
94
|
+
format: filterLink({
|
|
95
|
+
filterValueFormat: displayName,
|
|
96
|
+
}),
|
|
97
|
+
})),
|
|
98
|
+
},
|
|
99
|
+
fieldCollectionDate: {
|
|
100
|
+
messages: defineMessages({
|
|
101
|
+
label: {
|
|
102
|
+
id: 'detailField.fieldCollectionDate.label',
|
|
103
|
+
defaultMessage: 'Date',
|
|
104
|
+
},
|
|
105
|
+
}),
|
|
106
|
+
field: 'collectionobjects_common:fieldCollectionDateGroup',
|
|
107
|
+
format: valueAt({ path: 'dateDisplayDate' }),
|
|
108
|
+
},
|
|
109
|
+
fieldCollector: {
|
|
110
|
+
messages: defineMessages({
|
|
111
|
+
label: {
|
|
112
|
+
id: 'detailField.fieldCollector.label',
|
|
113
|
+
defaultMessage: 'Collector',
|
|
114
|
+
},
|
|
115
|
+
}),
|
|
116
|
+
field: 'collectionobjects_common:fieldCollectors',
|
|
117
|
+
format: listOf(displayName),
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
groups: {
|
|
121
|
+
group_collection: {
|
|
122
|
+
messages: defineMessages({
|
|
123
|
+
label: {
|
|
124
|
+
id: 'detailGroup.group_collection.label',
|
|
125
|
+
defaultMessage: 'Collection',
|
|
126
|
+
},
|
|
127
|
+
}),
|
|
128
|
+
fields: [
|
|
129
|
+
'fieldCollectionDate',
|
|
130
|
+
'fieldCollector',
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
group_description: {
|
|
134
|
+
fields: [
|
|
135
|
+
'material',
|
|
136
|
+
'technique',
|
|
137
|
+
'contentConcept',
|
|
138
|
+
'measuredPart',
|
|
139
|
+
'creditLine',
|
|
140
|
+
'taxon',
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
layout: {
|
|
145
|
+
fields1: [
|
|
146
|
+
'group_id',
|
|
147
|
+
'group_collection',
|
|
148
|
+
'group_description',
|
|
149
|
+
'group_production',
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
valueAt,
|
|
5
|
+
} from '../helpers/formatHelpers';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
gatewayUrl: 'http://localhost:8180/gateway/bonsai',
|
|
9
|
+
messages: {
|
|
10
|
+
'filter.objectProductionPerson.label': 'Original artist',
|
|
11
|
+
'filter.objectProductionPerson.shortLabel': 'Original artist',
|
|
12
|
+
'detailField.objectProductionPerson.label': 'Original artist',
|
|
13
|
+
},
|
|
14
|
+
detailFields: {
|
|
15
|
+
fields: {
|
|
16
|
+
originDate: {
|
|
17
|
+
messages: defineMessages({
|
|
18
|
+
label: {
|
|
19
|
+
id: 'detailField.originDate.label',
|
|
20
|
+
defaultMessage: 'Date of origin',
|
|
21
|
+
},
|
|
22
|
+
}),
|
|
23
|
+
field: 'collectionobjects_common:objectProductionDateGroupList',
|
|
24
|
+
format: valueAt({ path: [0, 'dateDisplayDate'] }),
|
|
25
|
+
},
|
|
26
|
+
trainingDate: {
|
|
27
|
+
messages: defineMessages({
|
|
28
|
+
label: {
|
|
29
|
+
id: 'detailField.trainingDate.label',
|
|
30
|
+
defaultMessage: 'In training since',
|
|
31
|
+
},
|
|
32
|
+
}),
|
|
33
|
+
field: 'collectionobjects_common:objectProductionDateGroupList',
|
|
34
|
+
format: valueAt({ path: [1, 'dateDisplayDate'] }),
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
groups: {
|
|
38
|
+
group_production: {
|
|
39
|
+
fields: [
|
|
40
|
+
'objectProductionPerson',
|
|
41
|
+
'objectProductionOrganization',
|
|
42
|
+
'objectProductionPeople',
|
|
43
|
+
'objectProductionPlace',
|
|
44
|
+
'originDate',
|
|
45
|
+
'trainingDate',
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|