@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,530 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _intl = require("../intl");
|
|
9
|
+
var _formatHelpers = require("../helpers/formatHelpers");
|
|
10
|
+
const departmentMessages = (0, _reactIntl.defineMessages)({
|
|
11
|
+
antiquities: {
|
|
12
|
+
"id": "option.departments.antiquities",
|
|
13
|
+
"defaultMessage": "Antiquities"
|
|
14
|
+
},
|
|
15
|
+
'architecture-design': {
|
|
16
|
+
"id": "option.departments.architecture-design",
|
|
17
|
+
"defaultMessage": "Architecture and Design"
|
|
18
|
+
},
|
|
19
|
+
'decorative-arts': {
|
|
20
|
+
"id": "option.departments.decorative-arts",
|
|
21
|
+
"defaultMessage": "Decorative Arts"
|
|
22
|
+
},
|
|
23
|
+
ethnography: {
|
|
24
|
+
"id": "option.departments.ethnography",
|
|
25
|
+
"defaultMessage": "Ethnography"
|
|
26
|
+
},
|
|
27
|
+
herpetology: {
|
|
28
|
+
"id": "option.departments.herpetology",
|
|
29
|
+
"defaultMessage": "Herpetology"
|
|
30
|
+
},
|
|
31
|
+
'media-performance-art': {
|
|
32
|
+
"id": "option.departments.media-performance-art",
|
|
33
|
+
"defaultMessage": "Media and Performance Art"
|
|
34
|
+
},
|
|
35
|
+
'paintings-sculpture': {
|
|
36
|
+
"id": "option.departments.paintings-sculpture",
|
|
37
|
+
"defaultMessage": "Paintings and Sculpture"
|
|
38
|
+
},
|
|
39
|
+
paleobotany: {
|
|
40
|
+
"id": "option.departments.paleobotany",
|
|
41
|
+
"defaultMessage": "Paleobotany"
|
|
42
|
+
},
|
|
43
|
+
photographs: {
|
|
44
|
+
"id": "option.departments.photographs",
|
|
45
|
+
"defaultMessage": "Photographs"
|
|
46
|
+
},
|
|
47
|
+
'prints-drawings': {
|
|
48
|
+
"id": "option.departments.prints-drawings",
|
|
49
|
+
"defaultMessage": "Prints and Drawings"
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const formatDepartment = data => {
|
|
53
|
+
const message = departmentMessages[data];
|
|
54
|
+
return message ? (0, _intl.getIntl)().formatMessage(message) : data;
|
|
55
|
+
};
|
|
56
|
+
var _default = {
|
|
57
|
+
basename: '',
|
|
58
|
+
container: '#cspace-browser',
|
|
59
|
+
gatewayUrl: 'http://localhost:8180/gateway/core',
|
|
60
|
+
locale: 'en-US',
|
|
61
|
+
detailPath: 'detail',
|
|
62
|
+
// Time in milliseconds to wait before fetching a search result image. If the search result is
|
|
63
|
+
// scrolled offscreen before the time elapses, the image is not loaded until the result is
|
|
64
|
+
// scrolled into view again. This applies only to pages of results after the first. Images for
|
|
65
|
+
// the first page are fetched immediately.
|
|
66
|
+
imageLoadDelay: 2000,
|
|
67
|
+
// Time in milliseconds to wait before fetching another page of search results, when the result
|
|
68
|
+
// list is scrolled to the bottom.
|
|
69
|
+
pageLoadDelay: 1000,
|
|
70
|
+
// The maximum number of results to automatically load while scrolling. Once this number of
|
|
71
|
+
// results has been retrieved, the user must click a button to load more results.
|
|
72
|
+
pageAutoLoadLimit: 80,
|
|
73
|
+
defaultQuery: {
|
|
74
|
+
term: {
|
|
75
|
+
'ecm:primaryType': 'CollectionObject'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
fulltextSearchFields: ['all_field'],
|
|
79
|
+
includeFields: ['ecm:name', 'ecm:primaryType', 'collectionspace_denorm:mediaCsid', 'collectionspace_denorm:title'],
|
|
80
|
+
referenceField: 'ecm:name',
|
|
81
|
+
defaultSortOrder: 'bestmatch',
|
|
82
|
+
sortField: 'collectionspace_denorm:title',
|
|
83
|
+
storageKey: 'cspace-browser',
|
|
84
|
+
searchResultImageDerivative: 'Small',
|
|
85
|
+
detailImageDerivative: 'Medium',
|
|
86
|
+
tileTitle: {
|
|
87
|
+
field: 'collectionspace_denorm:title',
|
|
88
|
+
formatValue: _formatHelpers.displayName
|
|
89
|
+
},
|
|
90
|
+
filters: {
|
|
91
|
+
fields: {
|
|
92
|
+
objectName: {
|
|
93
|
+
field: 'collectionobjects_common:objectNameList.objectName',
|
|
94
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
95
|
+
label: {
|
|
96
|
+
"id": "filter.objectName.label",
|
|
97
|
+
"defaultMessage": "Name"
|
|
98
|
+
},
|
|
99
|
+
shortLabel: {
|
|
100
|
+
"id": "filter.objectName.shortLabel",
|
|
101
|
+
"defaultMessage": "Name"
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
},
|
|
105
|
+
objectProductionPerson: {
|
|
106
|
+
field: 'collectionobjects_common:objectProductionPersonGroupList.objectProductionPerson.displayName',
|
|
107
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
108
|
+
label: {
|
|
109
|
+
"id": "filter.objectProductionPerson.label",
|
|
110
|
+
"defaultMessage": "Production person"
|
|
111
|
+
},
|
|
112
|
+
shortLabel: {
|
|
113
|
+
"id": "filter.objectProductionPerson.shortLabel",
|
|
114
|
+
"defaultMessage": "Prod. person"
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
},
|
|
118
|
+
objectProductionOrganization: {
|
|
119
|
+
field: 'collectionobjects_common:objectProductionOrganizationGroupList.objectProductionOrganization.displayName',
|
|
120
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
121
|
+
label: {
|
|
122
|
+
"id": "filter.objectProductionOrganization.label",
|
|
123
|
+
"defaultMessage": "Production organization"
|
|
124
|
+
},
|
|
125
|
+
shortLabel: {
|
|
126
|
+
"id": "filter.objectProductionOrganization.shortLabel",
|
|
127
|
+
"defaultMessage": "Prod. organization"
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
},
|
|
131
|
+
objectProductionPeople: {
|
|
132
|
+
field: 'collectionobjects_common:objectProductionPeopleGroupList.objectProductionPeople',
|
|
133
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
134
|
+
label: {
|
|
135
|
+
"id": "filter.objectProductionPeople.label",
|
|
136
|
+
"defaultMessage": "Production people/culture"
|
|
137
|
+
},
|
|
138
|
+
shortLabel: {
|
|
139
|
+
"id": "filter.objectProductionPeople.shortLabel",
|
|
140
|
+
"defaultMessage": "Prod. people/culture"
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
},
|
|
144
|
+
prodYears: {
|
|
145
|
+
field: 'collectionspace_denorm:prodYears',
|
|
146
|
+
type: 'histogram',
|
|
147
|
+
interval: 10,
|
|
148
|
+
formatValue: _formatHelpers.decade,
|
|
149
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
150
|
+
label: {
|
|
151
|
+
"id": "filter.prodYears.label",
|
|
152
|
+
"defaultMessage": "Production date"
|
|
153
|
+
},
|
|
154
|
+
shortLabel: {
|
|
155
|
+
"id": "filter.prodYears.shortLabel",
|
|
156
|
+
"defaultMessage": "Prod. date"
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
},
|
|
160
|
+
objectProductionPlace: {
|
|
161
|
+
field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace',
|
|
162
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
163
|
+
label: {
|
|
164
|
+
"id": "filter.objectProductionPlace.label",
|
|
165
|
+
"defaultMessage": "Production place"
|
|
166
|
+
},
|
|
167
|
+
shortLabel: {
|
|
168
|
+
"id": "filter.objectProductionPlace.shortLabel",
|
|
169
|
+
"defaultMessage": "Prod. place"
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
},
|
|
173
|
+
material: {
|
|
174
|
+
field: 'collectionobjects_common:materialGroupList.material',
|
|
175
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
176
|
+
label: {
|
|
177
|
+
"id": "filter.material.label",
|
|
178
|
+
"defaultMessage": "Material"
|
|
179
|
+
},
|
|
180
|
+
shortLabel: {
|
|
181
|
+
"id": "filter.material.shortLabel",
|
|
182
|
+
"defaultMessage": "Material"
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
},
|
|
186
|
+
color: {
|
|
187
|
+
field: 'collectionobjects_common:colors',
|
|
188
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
189
|
+
label: {
|
|
190
|
+
"id": "filter.color.label",
|
|
191
|
+
"defaultMessage": "Color"
|
|
192
|
+
},
|
|
193
|
+
shortLabel: {
|
|
194
|
+
"id": "filter.color.shortLabel",
|
|
195
|
+
"defaultMessage": "Color"
|
|
196
|
+
}
|
|
197
|
+
})
|
|
198
|
+
},
|
|
199
|
+
responsibleDepartment: {
|
|
200
|
+
field: 'collectionobjects_common:responsibleDepartments',
|
|
201
|
+
formatValue: formatDepartment,
|
|
202
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
203
|
+
label: {
|
|
204
|
+
"id": "filter.responsibleDepartment.label",
|
|
205
|
+
"defaultMessage": "Department"
|
|
206
|
+
},
|
|
207
|
+
shortLabel: {
|
|
208
|
+
"id": "filter.responsibleDepartment.shortLabel",
|
|
209
|
+
"defaultMessage": "Dept"
|
|
210
|
+
}
|
|
211
|
+
})
|
|
212
|
+
},
|
|
213
|
+
exhibitionTitle: {
|
|
214
|
+
field: 'collectionspace_denorm:exhibition.title',
|
|
215
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
216
|
+
label: {
|
|
217
|
+
"id": "filter.exhibitionTitle.label",
|
|
218
|
+
"defaultMessage": "Exhibition title"
|
|
219
|
+
},
|
|
220
|
+
shortLabel: {
|
|
221
|
+
"id": "filter.exhibitionTitle.shortLabel",
|
|
222
|
+
"defaultMessage": "Exhibition title"
|
|
223
|
+
}
|
|
224
|
+
})
|
|
225
|
+
},
|
|
226
|
+
contentConcept: {
|
|
227
|
+
field: 'collectionobjects_common:contentConcepts.displayName',
|
|
228
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
229
|
+
label: {
|
|
230
|
+
"id": "filter.contentConcept.label",
|
|
231
|
+
"defaultMessage": "Subject"
|
|
232
|
+
},
|
|
233
|
+
shortLabel: {
|
|
234
|
+
"id": "filter.contentConcept.shortLabel",
|
|
235
|
+
"defaultMessage": "Subject"
|
|
236
|
+
}
|
|
237
|
+
}),
|
|
238
|
+
order: {
|
|
239
|
+
_count: 'desc'
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
technique: {
|
|
243
|
+
field: 'collectionobjects_common:techniqueGroupList.technique',
|
|
244
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
245
|
+
label: {
|
|
246
|
+
"id": "filter.technique.label",
|
|
247
|
+
"defaultMessage": "Technique"
|
|
248
|
+
},
|
|
249
|
+
shortLabel: {
|
|
250
|
+
"id": "filter.technique.shortLabel",
|
|
251
|
+
"defaultMessage": "Technique"
|
|
252
|
+
}
|
|
253
|
+
})
|
|
254
|
+
},
|
|
255
|
+
hasMedia: {
|
|
256
|
+
field: 'collectionspace_denorm:hasMedia',
|
|
257
|
+
formatValue: _formatHelpers.boolean,
|
|
258
|
+
showSearch: false,
|
|
259
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
260
|
+
label: {
|
|
261
|
+
"id": "filter.hasMedia.label",
|
|
262
|
+
"defaultMessage": "Has image"
|
|
263
|
+
},
|
|
264
|
+
shortLabel: {
|
|
265
|
+
"id": "filter.hasMedia.shortLabel",
|
|
266
|
+
"defaultMessage": "Has image"
|
|
267
|
+
}
|
|
268
|
+
})
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
groups: {
|
|
272
|
+
group_id: {
|
|
273
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
274
|
+
label: {
|
|
275
|
+
"id": "filterGroup.group_id.label",
|
|
276
|
+
"defaultMessage": "Identification"
|
|
277
|
+
}
|
|
278
|
+
}),
|
|
279
|
+
fields: ['responsibleDepartment', 'objectName', 'exhibitionTitle']
|
|
280
|
+
},
|
|
281
|
+
group_media: {
|
|
282
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
283
|
+
label: {
|
|
284
|
+
"id": "filterGroup.group_media.label",
|
|
285
|
+
"defaultMessage": "Media"
|
|
286
|
+
}
|
|
287
|
+
}),
|
|
288
|
+
fields: ['hasMedia']
|
|
289
|
+
},
|
|
290
|
+
group_description: {
|
|
291
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
292
|
+
label: {
|
|
293
|
+
"id": "filterGroup.group_description.label",
|
|
294
|
+
"defaultMessage": "Description"
|
|
295
|
+
}
|
|
296
|
+
}),
|
|
297
|
+
fields: ['material', 'contentConcept', 'color']
|
|
298
|
+
},
|
|
299
|
+
group_production: {
|
|
300
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
301
|
+
label: {
|
|
302
|
+
"id": "filterGroup.group_production.label",
|
|
303
|
+
"defaultMessage": "Production"
|
|
304
|
+
}
|
|
305
|
+
}),
|
|
306
|
+
fields: ['technique', 'objectProductionPerson', 'objectProductionOrganization', 'objectProductionPeople', 'objectProductionPlace', 'prodYears']
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
layout: {
|
|
310
|
+
filters1: ['group_id', 'group_media', 'group_description', 'group_production']
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
detailTitle: data => {
|
|
314
|
+
const {
|
|
315
|
+
'collectionobjects_common:titleGroupList': titleGroups
|
|
316
|
+
} = data;
|
|
317
|
+
if (titleGroups && titleGroups.length > 0) {
|
|
318
|
+
const {
|
|
319
|
+
title
|
|
320
|
+
} = titleGroups[0];
|
|
321
|
+
return title;
|
|
322
|
+
}
|
|
323
|
+
return undefined;
|
|
324
|
+
},
|
|
325
|
+
detailSubtitle: data => {
|
|
326
|
+
const {
|
|
327
|
+
'collectionobjects_common:objectNameList': objectNameGroups
|
|
328
|
+
} = data;
|
|
329
|
+
if (objectNameGroups && objectNameGroups.length > 0) {
|
|
330
|
+
const {
|
|
331
|
+
objectName
|
|
332
|
+
} = objectNameGroups[0];
|
|
333
|
+
return objectName;
|
|
334
|
+
}
|
|
335
|
+
return undefined;
|
|
336
|
+
},
|
|
337
|
+
detailDescription: data => {
|
|
338
|
+
const {
|
|
339
|
+
'collectionobjects_common:briefDescriptions': briefDescriptions
|
|
340
|
+
} = data;
|
|
341
|
+
if (briefDescriptions && briefDescriptions.length > 0) {
|
|
342
|
+
return briefDescriptions[0];
|
|
343
|
+
}
|
|
344
|
+
return undefined;
|
|
345
|
+
},
|
|
346
|
+
detailFields: {
|
|
347
|
+
fields: {
|
|
348
|
+
objectNumber: {
|
|
349
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
350
|
+
label: {
|
|
351
|
+
"id": "detailField.objectNumber.label",
|
|
352
|
+
"defaultMessage": "Number"
|
|
353
|
+
}
|
|
354
|
+
}),
|
|
355
|
+
field: 'collectionobjects_common:objectNumber'
|
|
356
|
+
},
|
|
357
|
+
responsibleDepartment: {
|
|
358
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
359
|
+
label: {
|
|
360
|
+
"id": "detailField.responsibleDepartment.label",
|
|
361
|
+
"defaultMessage": "Department"
|
|
362
|
+
}
|
|
363
|
+
}),
|
|
364
|
+
field: 'collectionobjects_common:responsibleDepartments',
|
|
365
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
|
|
366
|
+
linkTextFormat: formatDepartment
|
|
367
|
+
}))
|
|
368
|
+
},
|
|
369
|
+
objectProductionPerson: {
|
|
370
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
371
|
+
label: {
|
|
372
|
+
"id": "detailField.objectProductionPerson.label",
|
|
373
|
+
"defaultMessage": "Person"
|
|
374
|
+
}
|
|
375
|
+
}),
|
|
376
|
+
field: 'collectionobjects_common:objectProductionPersonGroupList',
|
|
377
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
|
|
378
|
+
nameFieldName: 'objectProductionPerson',
|
|
379
|
+
roleFieldName: 'objectProductionPersonRole'
|
|
380
|
+
}))
|
|
381
|
+
},
|
|
382
|
+
objectProductionOrganization: {
|
|
383
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
384
|
+
label: {
|
|
385
|
+
"id": "detailField.objectProductionOrganization.label",
|
|
386
|
+
"defaultMessage": "Organization"
|
|
387
|
+
}
|
|
388
|
+
}),
|
|
389
|
+
field: 'collectionobjects_common:objectProductionOrganizationGroupList',
|
|
390
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
|
|
391
|
+
nameFieldName: 'objectProductionOrganization',
|
|
392
|
+
roleFieldName: 'objectProductionOrganizationRole'
|
|
393
|
+
}))
|
|
394
|
+
},
|
|
395
|
+
objectProductionPeople: {
|
|
396
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
397
|
+
label: {
|
|
398
|
+
"id": "detailField.objectProductionPeople.label",
|
|
399
|
+
"defaultMessage": "People/culture"
|
|
400
|
+
}
|
|
401
|
+
}),
|
|
402
|
+
field: 'collectionobjects_common:objectProductionPeopleGroupList',
|
|
403
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
|
|
404
|
+
nameFieldName: 'objectProductionPeople',
|
|
405
|
+
roleFieldName: 'objectProductionPeopleRole'
|
|
406
|
+
}))
|
|
407
|
+
},
|
|
408
|
+
objectProductionPlace: {
|
|
409
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
410
|
+
label: {
|
|
411
|
+
"id": "detailField.objectProductionPlace.label",
|
|
412
|
+
"defaultMessage": "Place"
|
|
413
|
+
}
|
|
414
|
+
}),
|
|
415
|
+
field: 'collectionobjects_common:objectProductionPlaceGroupList',
|
|
416
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
|
|
417
|
+
nameFieldName: 'objectProductionPlace',
|
|
418
|
+
roleFieldName: 'objectProductionPlaceRole'
|
|
419
|
+
}))
|
|
420
|
+
},
|
|
421
|
+
objectProductionDate: {
|
|
422
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
423
|
+
label: {
|
|
424
|
+
"id": "detailField.objectProductionDate.label",
|
|
425
|
+
"defaultMessage": "Date"
|
|
426
|
+
}
|
|
427
|
+
}),
|
|
428
|
+
field: 'collectionobjects_common:objectProductionDateGroupList',
|
|
429
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueAt)({
|
|
430
|
+
path: 'dateDisplayDate'
|
|
431
|
+
}))
|
|
432
|
+
},
|
|
433
|
+
material: {
|
|
434
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
435
|
+
label: {
|
|
436
|
+
"id": "detailField.material.label",
|
|
437
|
+
"defaultMessage": "Material"
|
|
438
|
+
}
|
|
439
|
+
}),
|
|
440
|
+
field: 'collectionobjects_common:materialGroupList',
|
|
441
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueAt)({
|
|
442
|
+
path: 'material',
|
|
443
|
+
format: (0, _formatHelpers.filterLink)({})
|
|
444
|
+
}))
|
|
445
|
+
},
|
|
446
|
+
technique: {
|
|
447
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
448
|
+
label: {
|
|
449
|
+
"id": "detailField.technique.label",
|
|
450
|
+
"defaultMessage": "Technique"
|
|
451
|
+
}
|
|
452
|
+
}),
|
|
453
|
+
field: 'collectionobjects_common:techniqueGroupList',
|
|
454
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
|
|
455
|
+
nameFieldName: 'technique',
|
|
456
|
+
roleFieldName: 'techniqueType'
|
|
457
|
+
}))
|
|
458
|
+
},
|
|
459
|
+
contentConcept: {
|
|
460
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
461
|
+
label: {
|
|
462
|
+
"id": "detailField.contentConcept.label",
|
|
463
|
+
"defaultMessage": "Subject"
|
|
464
|
+
}
|
|
465
|
+
}),
|
|
466
|
+
field: 'collectionobjects_common:contentConcepts',
|
|
467
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
|
|
468
|
+
filterValueFormat: _formatHelpers.displayName
|
|
469
|
+
}))
|
|
470
|
+
},
|
|
471
|
+
measuredPart: {
|
|
472
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
473
|
+
label: {
|
|
474
|
+
"id": "detailField.measuredPart.label",
|
|
475
|
+
"defaultMessage": "Dimensions"
|
|
476
|
+
}
|
|
477
|
+
}),
|
|
478
|
+
field: 'collectionobjects_common:measuredPartGroupList',
|
|
479
|
+
format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
|
|
480
|
+
nameFieldName: 'dimensionSummary',
|
|
481
|
+
roleFieldName: 'measuredPart',
|
|
482
|
+
linkName: false
|
|
483
|
+
}))
|
|
484
|
+
},
|
|
485
|
+
creditLine: {
|
|
486
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
487
|
+
label: {
|
|
488
|
+
"id": "detailField.creditLine.label",
|
|
489
|
+
"defaultMessage": "Credit"
|
|
490
|
+
}
|
|
491
|
+
}),
|
|
492
|
+
field: 'collectionspace_denorm:creditLine',
|
|
493
|
+
format: _formatHelpers.list
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
groups: {
|
|
497
|
+
group_id: {
|
|
498
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
499
|
+
label: {
|
|
500
|
+
"id": "detailGroup.group_id.label",
|
|
501
|
+
"defaultMessage": "Identification"
|
|
502
|
+
}
|
|
503
|
+
}),
|
|
504
|
+
fields: ['objectNumber', 'responsibleDepartment']
|
|
505
|
+
},
|
|
506
|
+
group_description: {
|
|
507
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
508
|
+
label: {
|
|
509
|
+
"id": "detailGroup.group_description.label",
|
|
510
|
+
"defaultMessage": "Description"
|
|
511
|
+
}
|
|
512
|
+
}),
|
|
513
|
+
fields: ['material', 'technique', 'contentConcept', 'measuredPart', 'creditLine']
|
|
514
|
+
},
|
|
515
|
+
group_production: {
|
|
516
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
517
|
+
label: {
|
|
518
|
+
"id": "detailGroup.group_production.label",
|
|
519
|
+
"defaultMessage": "Production"
|
|
520
|
+
}
|
|
521
|
+
}),
|
|
522
|
+
fields: ['objectProductionPerson', 'objectProductionOrganization', 'objectProductionPeople', 'objectProductionPlace', 'objectProductionDate']
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
layout: {
|
|
526
|
+
fields1: ['group_id', 'group_description', 'group_production']
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
exports.default = _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactIntl = require("react-intl");
|
|
8
|
+
var _default = {
|
|
9
|
+
gatewayUrl: 'http://localhost:8180/gateway/fcart',
|
|
10
|
+
filters: {
|
|
11
|
+
fields: {
|
|
12
|
+
objectProductionPlace: {
|
|
13
|
+
field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace.displayName'
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
detailFields: {
|
|
18
|
+
fields: {
|
|
19
|
+
materialTechniqueDescription: {
|
|
20
|
+
messages: (0, _reactIntl.defineMessages)({
|
|
21
|
+
label: {
|
|
22
|
+
"id": "detailField.materialTechniqueDescription.label",
|
|
23
|
+
"defaultMessage": "Medium"
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
field: 'collectionobjects_fineart:materialTechniqueDescription'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
groups: {
|
|
30
|
+
group_description: {
|
|
31
|
+
fields: ['materialTechniqueDescription', 'material', 'technique', 'contentConcept', 'measuredPart', 'creditLine']
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.default = _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _get = _interopRequireDefault(require("lodash/get"));
|
|
8
|
+
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
9
|
+
var _default2 = _interopRequireDefault(require("./default"));
|
|
10
|
+
var _anthro = _interopRequireDefault(require("./anthro"));
|
|
11
|
+
var _bonsai = _interopRequireDefault(require("./bonsai"));
|
|
12
|
+
var _botgarden = _interopRequireDefault(require("./botgarden"));
|
|
13
|
+
var _fcart = _interopRequireDefault(require("./fcart"));
|
|
14
|
+
var _herbarium = _interopRequireDefault(require("./herbarium"));
|
|
15
|
+
var _lhmc = _interopRequireDefault(require("./lhmc"));
|
|
16
|
+
var _materials = _interopRequireDefault(require("./materials"));
|
|
17
|
+
var _publicart = _interopRequireDefault(require("./publicart"));
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
const namedConfig = {
|
|
20
|
+
anthro: _anthro.default,
|
|
21
|
+
bonsai: _bonsai.default,
|
|
22
|
+
botgarden: _botgarden.default,
|
|
23
|
+
fcart: _fcart.default,
|
|
24
|
+
herbarium: _herbarium.default,
|
|
25
|
+
lhmc: _lhmc.default,
|
|
26
|
+
materials: _materials.default,
|
|
27
|
+
publicart: _publicart.default
|
|
28
|
+
};
|
|
29
|
+
const config = (0, _merge.default)({}, _default2.default);
|
|
30
|
+
var _default = {
|
|
31
|
+
get: (path, defaultValue) => (0, _get.default)(config, path, defaultValue),
|
|
32
|
+
// eslint-disable-next-line no-console
|
|
33
|
+
log: () => console.log(config),
|
|
34
|
+
merge: function () {
|
|
35
|
+
for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36
|
+
sources[_key] = arguments[_key];
|
|
37
|
+
}
|
|
38
|
+
sources.forEach(source => {
|
|
39
|
+
const {
|
|
40
|
+
baseConfig: baseConfigName
|
|
41
|
+
} = source;
|
|
42
|
+
if (baseConfigName) {
|
|
43
|
+
const baseConfig = namedConfig[baseConfigName];
|
|
44
|
+
if (baseConfig) {
|
|
45
|
+
(0, _merge.default)(config, baseConfig);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
(0, _merge.default)(config, source);
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
getFilterFieldConfig: id => (0, _get.default)(config, ['filters', 'fields', id])
|
|
52
|
+
};
|
|
53
|
+
exports.default = _default;
|