@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.
Files changed (233) hide show
  1. package/LICENSE.md +71 -0
  2. package/README.md +38 -0
  3. package/dist/cspacePublicBrowser.js +4680 -0
  4. package/dist/cspacePublicBrowser.min.js +2 -0
  5. package/dist/cspacePublicBrowser.min.js.LICENSE.txt +56 -0
  6. package/images/check.svg +3 -0
  7. package/images/close.svg +3 -0
  8. package/images/collapse.svg +3 -0
  9. package/images/collapseActive.svg +3 -0
  10. package/images/expand.svg +3 -0
  11. package/images/expandActive.svg +3 -0
  12. package/images/filter.svg +4 -0
  13. package/images/hideLeft.svg +4 -0
  14. package/images/linkBack.svg +4 -0
  15. package/images/linkDown.svg +4 -0
  16. package/images/linkNext.svg +4 -0
  17. package/images/linkPrev.svg +4 -0
  18. package/images/openNew.svg +4 -0
  19. package/images/search.svg +4 -0
  20. package/images/select.svg +4 -0
  21. package/images/top.svg +1 -0
  22. package/lib/actions/detailActions.js +177 -0
  23. package/lib/actions/filterActions.js +16 -0
  24. package/lib/actions/mediaActions.js +63 -0
  25. package/lib/actions/prefsActions.js +84 -0
  26. package/lib/actions/searchActions.js +140 -0
  27. package/lib/actions/searchEntryFormActions.js +19 -0
  28. package/lib/components/App.js +24 -0
  29. package/lib/components/detail/DetailNavBar.js +98 -0
  30. package/lib/components/detail/DetailPanel.js +171 -0
  31. package/lib/components/detail/DetailPanelContainer.js +22 -0
  32. package/lib/components/detail/ExhibitionSection.js +54 -0
  33. package/lib/components/detail/FieldList.js +95 -0
  34. package/lib/components/detail/FieldValueList.js +30 -0
  35. package/lib/components/detail/ImageGallery.js +137 -0
  36. package/lib/components/detail/ImageGalleryContainer.js +19 -0
  37. package/lib/components/detail/InstitutionHoldingList.js +155 -0
  38. package/lib/components/detail/InstitutionHoldingListContainer.js +22 -0
  39. package/lib/components/detail/InstitutionIndex.js +53 -0
  40. package/lib/components/detail/InstitutionIndexContainer.js +15 -0
  41. package/lib/components/detail/InstitutionSection.js +44 -0
  42. package/lib/components/detail/InstitutionSectionContainer.js +15 -0
  43. package/lib/components/layout/Fixed.js +26 -0
  44. package/lib/components/layout/IconButton.js +41 -0
  45. package/lib/components/layout/Panel.js +56 -0
  46. package/lib/components/layout/PanelContainer.js +19 -0
  47. package/lib/components/layout/PanelTitle.js +38 -0
  48. package/lib/components/layout/ScrollTopButton.js +70 -0
  49. package/lib/components/layout/ToggleFilterPanelButton.js +42 -0
  50. package/lib/components/pages/DetailPage.js +93 -0
  51. package/lib/components/pages/DetailPageContainer.js +20 -0
  52. package/lib/components/pages/RootPage.js +41 -0
  53. package/lib/components/pages/SearchPage.js +130 -0
  54. package/lib/components/pages/SearchPageContainer.js +23 -0
  55. package/lib/components/search/entry/SearchEntryForm.js +74 -0
  56. package/lib/components/search/entry/SearchEntryFormContainer.js +20 -0
  57. package/lib/components/search/entry/SearchEntryPanel.js +30 -0
  58. package/lib/components/search/entry/SearchQueryInput.js +89 -0
  59. package/lib/components/search/entry/SearchSubmitButton.js +22 -0
  60. package/lib/components/search/entry/SortSelect.js +89 -0
  61. package/lib/components/search/entry/SortSelectContainer.js +15 -0
  62. package/lib/components/search/result/ClearSearchParamsLink.js +42 -0
  63. package/lib/components/search/result/Filter.js +186 -0
  64. package/lib/components/search/result/FilterContainer.js +22 -0
  65. package/lib/components/search/result/FilterGroup.js +72 -0
  66. package/lib/components/search/result/FilterList.js +48 -0
  67. package/lib/components/search/result/FilterPanel.js +115 -0
  68. package/lib/components/search/result/FilterPanelContainer.js +16 -0
  69. package/lib/components/search/result/FilterSearchInput.js +63 -0
  70. package/lib/components/search/result/RemoveSearchParamLink.js +66 -0
  71. package/lib/components/search/result/SearchError.js +29 -0
  72. package/lib/components/search/result/SearchLoadMore.js +36 -0
  73. package/lib/components/search/result/SearchParamList.js +41 -0
  74. package/lib/components/search/result/SearchPending.js +21 -0
  75. package/lib/components/search/result/SearchResultImage.js +227 -0
  76. package/lib/components/search/result/SearchResultList.js +119 -0
  77. package/lib/components/search/result/SearchResultPanel.js +139 -0
  78. package/lib/components/search/result/SearchResultPanelContainer.js +23 -0
  79. package/lib/components/search/result/SearchResultStats.js +39 -0
  80. package/lib/components/search/result/SearchResultTile.js +61 -0
  81. package/lib/config/anthro.js +123 -0
  82. package/lib/config/bonsai.js +50 -0
  83. package/lib/config/botgarden.js +10 -0
  84. package/lib/config/default.js +530 -0
  85. package/lib/config/fcart.js +36 -0
  86. package/lib/config/herbarium.js +10 -0
  87. package/lib/config/index.js +53 -0
  88. package/lib/config/lhmc.js +10 -0
  89. package/lib/config/materials.js +982 -0
  90. package/lib/config/publicart.js +10 -0
  91. package/lib/constants/actionCodes.js +46 -0
  92. package/lib/constants/ids.js +12 -0
  93. package/lib/helpers/bodyClassName.js +11 -0
  94. package/lib/helpers/esQueryHelpers.js +206 -0
  95. package/lib/helpers/formatHelpers.js +293 -0
  96. package/lib/helpers/searchDimensions.js +28 -0
  97. package/lib/helpers/urlHelpers.js +43 -0
  98. package/lib/index.js +53 -0
  99. package/lib/intl/index.js +16 -0
  100. package/lib/reducers/detailReducer.js +145 -0
  101. package/lib/reducers/filterReducer.js +22 -0
  102. package/lib/reducers/index.js +66 -0
  103. package/lib/reducers/mediaReducer.js +43 -0
  104. package/lib/reducers/prefsReducer.js +27 -0
  105. package/lib/reducers/searchEntryFormReducer.js +24 -0
  106. package/lib/reducers/searchReducer.js +88 -0
  107. package/package.json +118 -0
  108. package/src/actions/detailActions.js +231 -0
  109. package/src/actions/filterActions.js +10 -0
  110. package/src/actions/mediaActions.js +65 -0
  111. package/src/actions/prefsActions.js +95 -0
  112. package/src/actions/searchActions.js +188 -0
  113. package/src/actions/searchEntryFormActions.js +15 -0
  114. package/src/components/App.jsx +18 -0
  115. package/src/components/detail/DetailNavBar.jsx +132 -0
  116. package/src/components/detail/DetailPanel.jsx +215 -0
  117. package/src/components/detail/DetailPanelContainer.js +29 -0
  118. package/src/components/detail/ExhibitionSection.jsx +71 -0
  119. package/src/components/detail/FieldList.jsx +122 -0
  120. package/src/components/detail/FieldValueList.jsx +31 -0
  121. package/src/components/detail/ImageGallery.jsx +153 -0
  122. package/src/components/detail/ImageGalleryContainer.js +17 -0
  123. package/src/components/detail/InstitutionHoldingList.jsx +188 -0
  124. package/src/components/detail/InstitutionHoldingListContainer.js +29 -0
  125. package/src/components/detail/InstitutionIndex.jsx +57 -0
  126. package/src/components/detail/InstitutionIndexContainer.js +11 -0
  127. package/src/components/detail/InstitutionSection.jsx +48 -0
  128. package/src/components/detail/InstitutionSectionContainer.js +11 -0
  129. package/src/components/layout/Fixed.jsx +29 -0
  130. package/src/components/layout/IconButton.jsx +41 -0
  131. package/src/components/layout/Panel.jsx +60 -0
  132. package/src/components/layout/PanelContainer.js +20 -0
  133. package/src/components/layout/PanelTitle.jsx +43 -0
  134. package/src/components/layout/ScrollTopButton.jsx +76 -0
  135. package/src/components/layout/ToggleFilterPanelButton.jsx +43 -0
  136. package/src/components/pages/DetailPage.jsx +101 -0
  137. package/src/components/pages/DetailPageContainer.js +18 -0
  138. package/src/components/pages/RootPage.jsx +37 -0
  139. package/src/components/pages/SearchPage.jsx +160 -0
  140. package/src/components/pages/SearchPageContainer.js +21 -0
  141. package/src/components/search/entry/SearchEntryForm.jsx +82 -0
  142. package/src/components/search/entry/SearchEntryFormContainer.js +22 -0
  143. package/src/components/search/entry/SearchEntryPanel.jsx +28 -0
  144. package/src/components/search/entry/SearchQueryInput.jsx +95 -0
  145. package/src/components/search/entry/SearchSubmitButton.jsx +22 -0
  146. package/src/components/search/entry/SortSelect.jsx +104 -0
  147. package/src/components/search/entry/SortSelectContainer.js +12 -0
  148. package/src/components/search/result/ClearSearchParamsLink.jsx +43 -0
  149. package/src/components/search/result/Filter.jsx +226 -0
  150. package/src/components/search/result/FilterContainer.js +20 -0
  151. package/src/components/search/result/FilterGroup.jsx +83 -0
  152. package/src/components/search/result/FilterList.jsx +51 -0
  153. package/src/components/search/result/FilterPanel.jsx +143 -0
  154. package/src/components/search/result/FilterPanelContainer.js +16 -0
  155. package/src/components/search/result/FilterSearchInput.jsx +68 -0
  156. package/src/components/search/result/RemoveSearchParamLink.jsx +79 -0
  157. package/src/components/search/result/SearchError.jsx +30 -0
  158. package/src/components/search/result/SearchLoadMore.jsx +37 -0
  159. package/src/components/search/result/SearchParamList.jsx +47 -0
  160. package/src/components/search/result/SearchPending.jsx +19 -0
  161. package/src/components/search/result/SearchResultImage.jsx +275 -0
  162. package/src/components/search/result/SearchResultList.jsx +144 -0
  163. package/src/components/search/result/SearchResultPanel.jsx +169 -0
  164. package/src/components/search/result/SearchResultPanelContainer.js +31 -0
  165. package/src/components/search/result/SearchResultStats.jsx +38 -0
  166. package/src/components/search/result/SearchResultTile.jsx +70 -0
  167. package/src/config/anthro.js +153 -0
  168. package/src/config/bonsai.js +50 -0
  169. package/src/config/botgarden.js +3 -0
  170. package/src/config/default.js +604 -0
  171. package/src/config/fcart.js +38 -0
  172. package/src/config/herbarium.js +3 -0
  173. package/src/config/index.js +51 -0
  174. package/src/config/lhmc.js +3 -0
  175. package/src/config/materials.js +1173 -0
  176. package/src/config/publicart.js +3 -0
  177. package/src/constants/actionCodes.js +26 -0
  178. package/src/constants/ids.js +3 -0
  179. package/src/helpers/bodyClassName.js +5 -0
  180. package/src/helpers/esQueryHelpers.js +224 -0
  181. package/src/helpers/formatHelpers.jsx +361 -0
  182. package/src/helpers/searchDimensions.js +21 -0
  183. package/src/helpers/urlHelpers.js +49 -0
  184. package/src/index.jsx +59 -0
  185. package/src/intl/index.js +16 -0
  186. package/src/reducers/detailReducer.js +201 -0
  187. package/src/reducers/filterReducer.js +16 -0
  188. package/src/reducers/index.js +56 -0
  189. package/src/reducers/mediaReducer.js +44 -0
  190. package/src/reducers/prefsReducer.js +24 -0
  191. package/src/reducers/searchEntryFormReducer.js +19 -0
  192. package/src/reducers/searchReducer.js +118 -0
  193. package/styles/colors.css +7 -0
  194. package/styles/cspace/DetailNavBar.css +17 -0
  195. package/styles/cspace/DetailPage.css +3 -0
  196. package/styles/cspace/DetailPanel.css +69 -0
  197. package/styles/cspace/ExhibitionSection.css +9 -0
  198. package/styles/cspace/FieldList.css +15 -0
  199. package/styles/cspace/FieldListField.css +7 -0
  200. package/styles/cspace/FieldListGroup.css +27 -0
  201. package/styles/cspace/FieldValueList.css +19 -0
  202. package/styles/cspace/Filter.css +64 -0
  203. package/styles/cspace/FilterGroup.css +21 -0
  204. package/styles/cspace/FilterPanel.css +45 -0
  205. package/styles/cspace/FilterSearchInput.css +13 -0
  206. package/styles/cspace/Fixed.css +8 -0
  207. package/styles/cspace/IconButton.css +11 -0
  208. package/styles/cspace/ImageGallery.css +43 -0
  209. package/styles/cspace/InstitutionHoldingList.css +109 -0
  210. package/styles/cspace/InstitutionIndex.css +13 -0
  211. package/styles/cspace/InstitutionSection.css +4 -0
  212. package/styles/cspace/Link.css +39 -0
  213. package/styles/cspace/Panel.css +53 -0
  214. package/styles/cspace/PanelTitle.css +48 -0
  215. package/styles/cspace/RemoveSearchParamLink.css +15 -0
  216. package/styles/cspace/RootPage.css +60 -0
  217. package/styles/cspace/ScrollTopButton.css +32 -0
  218. package/styles/cspace/SearchEntryForm.css +4 -0
  219. package/styles/cspace/SearchEntryPanel.css +11 -0
  220. package/styles/cspace/SearchPage.css +2 -0
  221. package/styles/cspace/SearchParamLink.css +21 -0
  222. package/styles/cspace/SearchParamList.css +6 -0
  223. package/styles/cspace/SearchQueryInput.css +30 -0
  224. package/styles/cspace/SearchResultImage.css +29 -0
  225. package/styles/cspace/SearchResultList.css +10 -0
  226. package/styles/cspace/SearchResultPanel.css +31 -0
  227. package/styles/cspace/SearchResultStats.css +4 -0
  228. package/styles/cspace/SearchResultTile.css +67 -0
  229. package/styles/cspace/SearchStatus.css +12 -0
  230. package/styles/cspace/SearchSubmitButton.css +3 -0
  231. package/styles/cspace/SortSelect.css +19 -0
  232. package/styles/cspace/ToggleFilterPanelButton.css +44 -0
  233. package/styles/dimensions.css +9 -0
@@ -0,0 +1,982 @@
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 _cspaceRefname = require("cspace-refname");
9
+ var _formatHelpers = require("../helpers/formatHelpers");
10
+ const composition = data => {
11
+ const parts = ['materialCompositionFamilyName', 'materialCompositionClassName', 'materialCompositionGenericName'].map(fieldName => (0, _formatHelpers.renderFilterLink)(fieldName, (0, _formatHelpers.displayName)(data[fieldName])));
12
+ return (0, _formatHelpers.renderJoined)(parts, ' - ');
13
+ };
14
+ var _default = {
15
+ messages: {
16
+ 'rootPage.title': 'Material Order',
17
+ 'searchQueryInput.label': 'Search materials',
18
+ 'searchQueryInput.placeholder': 'Search materials',
19
+ 'searchResultStats.count': '{count, plural, one {# material} other {# materials}} found',
20
+ 'institutionIndex.label': 'Samples at {title}'
21
+ },
22
+ gatewayUrl: 'http://localhost:8180/gateway/materials',
23
+ detailPath: 'material',
24
+ imageLoadDelay: 4000,
25
+ pageLoadDelay: 1500,
26
+ pageAutoLoadLimit: 40,
27
+ defaultQuery: {
28
+ term: {
29
+ 'ecm:primaryType': 'Materialitem'
30
+ }
31
+ },
32
+ includeFields: ['ecm:name', 'ecm:primaryType', 'collectionspace_denorm:holdingInstitutions', 'collectionspace_denorm:mediaCsid', 'collectionspace_denorm:title', 'materials_common:shortIdentifier'],
33
+ referenceField: 'materials_common:shortIdentifier',
34
+ storageKey: 'mo',
35
+ searchResultImageDerivative: 'OriginalJpeg',
36
+ detailImageDerivative: 'OriginalJpeg',
37
+ detailTitle: data => {
38
+ const {
39
+ 'materials_common:materialTermGroupList': materialTermGroups
40
+ } = data;
41
+ if (materialTermGroups && materialTermGroups.length > 0) {
42
+ const {
43
+ termDisplayName,
44
+ historicalStatus
45
+ } = materialTermGroups[0];
46
+ const title = termDisplayName + (historicalStatus === 'historical' ? ' (formerly known as)' : '');
47
+ return title;
48
+ }
49
+ return undefined;
50
+ },
51
+ detailSubtitle: data => {
52
+ const {
53
+ 'materials_common:materialTermGroupList': materialTermGroups
54
+ } = data;
55
+ if (materialTermGroups && materialTermGroups.length > 1) {
56
+ const displayNames = materialTermGroups.slice(1).map(termGroup => {
57
+ const {
58
+ termDisplayName,
59
+ historicalStatus
60
+ } = termGroup;
61
+ return termDisplayName + (historicalStatus === 'historical' ? ' (formerly known as)' : '');
62
+ });
63
+ return (0, _formatHelpers.renderJoined)(displayNames, '\n');
64
+ }
65
+ return undefined;
66
+ },
67
+ detailDescription: data => {
68
+ const {
69
+ 'materials_common:description': description
70
+ } = data;
71
+ return description;
72
+ },
73
+ filters: {
74
+ fields: {
75
+ materialTermAttributionContributingOrganization: {
76
+ field: 'collectionspace_denorm:holdingInstitutions.displayName',
77
+ messages: (0, _reactIntl.defineMessages)({
78
+ label: {
79
+ "id": "filter.materialTermAttributionContributingOrganization.label",
80
+ "defaultMessage": "Institution"
81
+ }
82
+ })
83
+ },
84
+ materialCompositionFamilyName: {
85
+ field: 'materials_common:materialCompositionGroupList.materialCompositionFamilyName.displayName',
86
+ messages: (0, _reactIntl.defineMessages)({
87
+ label: {
88
+ "id": "filter.materialCompositionFamilyName.label",
89
+ "defaultMessage": "Family name"
90
+ },
91
+ shortLabel: {
92
+ "id": "filter.materialCompositionFamilyName.shortLabel",
93
+ "defaultMessage": "Family"
94
+ }
95
+ })
96
+ },
97
+ materialCompositionClassName: {
98
+ field: 'materials_common:materialCompositionGroupList.materialCompositionClassName.displayName',
99
+ messages: (0, _reactIntl.defineMessages)({
100
+ label: {
101
+ "id": "filter.materialCompositionClassName.label",
102
+ "defaultMessage": "Class name"
103
+ },
104
+ shortLabel: {
105
+ "id": "filter.materialCompositionClassName.shortLabel",
106
+ "defaultMessage": "Class"
107
+ }
108
+ })
109
+ },
110
+ materialCompositionGenericName: {
111
+ field: 'materials_common:materialCompositionGroupList.materialCompositionGenericName.displayName',
112
+ messages: (0, _reactIntl.defineMessages)({
113
+ label: {
114
+ "id": "filter.materialCompositionGenericName.label",
115
+ "defaultMessage": "Generic name"
116
+ },
117
+ shortLabel: {
118
+ "id": "filter.materialCompositionGenericName.shortLabel",
119
+ "defaultMessage": "Generic"
120
+ }
121
+ })
122
+ },
123
+ typicalUses: {
124
+ field: 'materials_common:typicalUses.displayName',
125
+ messages: (0, _reactIntl.defineMessages)({
126
+ label: {
127
+ "id": "filter.typicalUses.label",
128
+ "defaultMessage": "Typical use"
129
+ }
130
+ })
131
+ },
132
+ commonForm: {
133
+ field: 'materials_common:commonForm.displayName',
134
+ messages: (0, _reactIntl.defineMessages)({
135
+ label: {
136
+ "id": "filter.commonForm.label",
137
+ "defaultMessage": "Common form"
138
+ }
139
+ })
140
+ },
141
+ formType: {
142
+ field: 'materials_common:formTypeGroupList.formType.displayName',
143
+ messages: (0, _reactIntl.defineMessages)({
144
+ label: {
145
+ "id": "filter.formType.label",
146
+ "defaultMessage": "Form type"
147
+ }
148
+ })
149
+ },
150
+ acousticalPropertyType: {
151
+ field: 'materials_common:acousticalPropertyGroupList.acousticalPropertyType.displayName',
152
+ messages: (0, _reactIntl.defineMessages)({
153
+ label: {
154
+ "id": "filter.acousticalPropertyType.label",
155
+ "defaultMessage": "Acoustical property"
156
+ },
157
+ shortLabel: {
158
+ "id": "filter.acousticalPropertyType.shortLabel",
159
+ "defaultMessage": "Acoustical"
160
+ }
161
+ })
162
+ },
163
+ durabilityPropertyType: {
164
+ field: 'materials_common:durabilityPropertyGroupList.durabilityPropertyType.displayName',
165
+ messages: (0, _reactIntl.defineMessages)({
166
+ label: {
167
+ "id": "filter.durabilityPropertyType.label",
168
+ "defaultMessage": "Durability property"
169
+ },
170
+ shortLabel: {
171
+ "id": "filter.durabilityPropertyType.shortLabel",
172
+ "defaultMessage": "Durability"
173
+ }
174
+ })
175
+ },
176
+ electricalPropertyType: {
177
+ field: 'materials_common:electricalPropertyGroupList.electricalPropertyType.displayName',
178
+ messages: (0, _reactIntl.defineMessages)({
179
+ label: {
180
+ "id": "filter.electricalPropertyType.label",
181
+ "defaultMessage": "Electrical property"
182
+ },
183
+ shortLabel: {
184
+ "id": "filter.electricalPropertyType.shortLabel",
185
+ "defaultMessage": "Electrical"
186
+ }
187
+ })
188
+ },
189
+ hygrothermalPropertyType: {
190
+ field: 'materials_common:hygrothermalPropertyGroupList.hygrothermalPropertyType.displayName',
191
+ messages: (0, _reactIntl.defineMessages)({
192
+ label: {
193
+ "id": "filter.hygrothermalPropertyType.label",
194
+ "defaultMessage": "Hygrothermal property"
195
+ },
196
+ shortLabel: {
197
+ "id": "filter.hygrothermalPropertyType.shortLabel",
198
+ "defaultMessage": "Hygrothermal"
199
+ }
200
+ })
201
+ },
202
+ mechanicalPropertyType: {
203
+ field: 'materials_common:mechanicalPropertyGroupList.mechanicalPropertyType.displayName',
204
+ messages: (0, _reactIntl.defineMessages)({
205
+ label: {
206
+ "id": "filter.mechanicalPropertyType.label",
207
+ "defaultMessage": "Mechanical property"
208
+ },
209
+ shortLabel: {
210
+ "id": "filter.mechanicalPropertyType.shortLabel",
211
+ "defaultMessage": "Mechanical"
212
+ }
213
+ })
214
+ },
215
+ opticalPropertyType: {
216
+ field: 'materials_common:opticalPropertyGroupList.opticalPropertyType.displayName',
217
+ messages: (0, _reactIntl.defineMessages)({
218
+ label: {
219
+ "id": "filter.opticalPropertyType.label",
220
+ "defaultMessage": "Optical property"
221
+ },
222
+ shortLabel: {
223
+ "id": "filter.opticalPropertyType.shortLabel",
224
+ "defaultMessage": "Optical"
225
+ }
226
+ })
227
+ },
228
+ sensorialPropertyType: {
229
+ field: 'materials_common:sensorialPropertyGroupList.sensorialPropertyType.displayName',
230
+ messages: (0, _reactIntl.defineMessages)({
231
+ label: {
232
+ "id": "filter.sensorialPropertyType.label",
233
+ "defaultMessage": "Sensorial property"
234
+ },
235
+ shortLabel: {
236
+ "id": "filter.sensorialPropertyType.shortLabel",
237
+ "defaultMessage": "Sensorial"
238
+ }
239
+ })
240
+ },
241
+ smartMaterialPropertyType: {
242
+ field: 'materials_common:smartMaterialPropertyGroupList.smartMaterialPropertyType.displayName',
243
+ messages: (0, _reactIntl.defineMessages)({
244
+ label: {
245
+ "id": "filter.smartMaterialPropertyType.label",
246
+ "defaultMessage": "Smart material property"
247
+ },
248
+ shortLabel: {
249
+ "id": "filter.smartMaterialPropertyType.shortLabel",
250
+ "defaultMessage": "Smart material"
251
+ }
252
+ })
253
+ },
254
+ additionalPropertyType: {
255
+ field: 'materials_common:additionalPropertyGroupList.additionalPropertyType.displayName',
256
+ messages: (0, _reactIntl.defineMessages)({
257
+ label: {
258
+ "id": "filter.additionalPropertyType.label",
259
+ "defaultMessage": "Additional property"
260
+ }
261
+ })
262
+ },
263
+ recycledContentQualifier: {
264
+ field: 'materials_common:recycledContentGroupList.recycledContentQualifier.displayName',
265
+ messages: (0, _reactIntl.defineMessages)({
266
+ label: {
267
+ "id": "filter.recycledContentQualifier.label",
268
+ "defaultMessage": "Recycled content"
269
+ },
270
+ shortLabel: {
271
+ "id": "filter.recycledContentQualifier.shortLabel",
272
+ "defaultMessage": "Recycled"
273
+ }
274
+ })
275
+ },
276
+ lifecycleComponent: {
277
+ field: 'materials_common:lifecycleComponentGroupList.lifecycleComponent.displayName',
278
+ messages: (0, _reactIntl.defineMessages)({
279
+ label: {
280
+ "id": "filter.lifecycleComponent.label",
281
+ "defaultMessage": "Lifecycle component"
282
+ },
283
+ shortLabel: {
284
+ "id": "filter.lifecycleComponent.shortLabel",
285
+ "defaultMessage": "Lifecycle"
286
+ }
287
+ })
288
+ },
289
+ certificationProgram: {
290
+ field: 'materials_common:certificationCreditGroupList.certificationProgram.displayName',
291
+ messages: (0, _reactIntl.defineMessages)({
292
+ label: {
293
+ "id": "filter.certificationProgram.label",
294
+ "defaultMessage": "Certification program"
295
+ },
296
+ shortLabel: {
297
+ "id": "filter.certificationProgram.shortLabel",
298
+ "defaultMessage": "Certification"
299
+ }
300
+ })
301
+ },
302
+ castingProcesses: {
303
+ field: 'materials_common:castingProcesses.displayName',
304
+ messages: (0, _reactIntl.defineMessages)({
305
+ label: {
306
+ "id": "filter.castingProcesses.label",
307
+ "defaultMessage": "Casting process"
308
+ },
309
+ shortLabel: {
310
+ "id": "filter.castingProcesses.shortLabel",
311
+ "defaultMessage": "Casting"
312
+ }
313
+ })
314
+ },
315
+ deformingProcesses: {
316
+ field: 'materials_common:deformingProcesses.displayName',
317
+ messages: (0, _reactIntl.defineMessages)({
318
+ label: {
319
+ "id": "filter.deformingProcesses.label",
320
+ "defaultMessage": "Deforming process"
321
+ },
322
+ shortLabel: {
323
+ "id": "filter.deformingProcesses.shortLabel",
324
+ "defaultMessage": "Deforming"
325
+ }
326
+ })
327
+ },
328
+ joiningProcesses: {
329
+ field: 'materials_common:joiningProcesses.displayName',
330
+ messages: (0, _reactIntl.defineMessages)({
331
+ label: {
332
+ "id": "filter.joiningProcesses.label",
333
+ "defaultMessage": "Joining process"
334
+ },
335
+ shortLabel: {
336
+ "id": "filter.joiningProcesses.shortLabel",
337
+ "defaultMessage": "Joining"
338
+ }
339
+ })
340
+ },
341
+ machiningProcesses: {
342
+ field: 'materials_common:machiningProcesses.displayName',
343
+ messages: (0, _reactIntl.defineMessages)({
344
+ label: {
345
+ "id": "filter.machiningProcesses.label",
346
+ "defaultMessage": "Machining process"
347
+ },
348
+ shortLabel: {
349
+ "id": "filter.machiningProcesses.shortLabel",
350
+ "defaultMessage": "Machining"
351
+ }
352
+ })
353
+ },
354
+ moldingProcesses: {
355
+ field: 'materials_common:moldingProcesses.displayName',
356
+ messages: (0, _reactIntl.defineMessages)({
357
+ label: {
358
+ "id": "filter.moldingProcesses.label",
359
+ "defaultMessage": "Molding process"
360
+ },
361
+ shortLabel: {
362
+ "id": "filter.moldingProcesses.shortLabel",
363
+ "defaultMessage": "Molding"
364
+ }
365
+ })
366
+ },
367
+ rapidPrototypingProcesses: {
368
+ field: 'materials_common:rapidPrototypingProcesses.displayName',
369
+ messages: (0, _reactIntl.defineMessages)({
370
+ label: {
371
+ "id": "filter.rapidPrototypingProcesses.label",
372
+ "defaultMessage": "Rapid prototyping process"
373
+ },
374
+ shortLabel: {
375
+ "id": "filter.rapidPrototypingProcesses.shortLabel",
376
+ "defaultMessage": "Rapid prototyping"
377
+ }
378
+ })
379
+ },
380
+ surfacingProcesses: {
381
+ field: 'materials_common:surfacingProcesses.displayName',
382
+ messages: (0, _reactIntl.defineMessages)({
383
+ label: {
384
+ "id": "filter.surfacingProcesses.label",
385
+ "defaultMessage": "Surfacing process"
386
+ },
387
+ shortLabel: {
388
+ "id": "filter.surfacingProcesses.shortLabel",
389
+ "defaultMessage": "Surfacing"
390
+ }
391
+ })
392
+ },
393
+ additionalProcess: {
394
+ field: 'materials_common:additionalProcessGroupList.additionalProcess.displayName',
395
+ messages: (0, _reactIntl.defineMessages)({
396
+ label: {
397
+ "id": "filter.additionalProcess.label",
398
+ "defaultMessage": "Additional process"
399
+ }
400
+ })
401
+ }
402
+ },
403
+ groups: {
404
+ group_institution: {
405
+ messages: (0, _reactIntl.defineMessages)({
406
+ label: {
407
+ "id": "filterGroup.group_institution.label",
408
+ "defaultMessage": "Holding Institution"
409
+ }
410
+ }),
411
+ fields: ['materialTermAttributionContributingOrganization']
412
+ },
413
+ group_composition: {
414
+ messages: (0, _reactIntl.defineMessages)({
415
+ label: {
416
+ "id": "filterGroup.group_composition.label",
417
+ "defaultMessage": "Composition"
418
+ }
419
+ }),
420
+ fields: ['materialCompositionFamilyName', 'materialCompositionClassName', 'materialCompositionGenericName']
421
+ },
422
+ group_use: {
423
+ messages: (0, _reactIntl.defineMessages)({
424
+ label: {
425
+ "id": "filterGroup.group_use.label",
426
+ "defaultMessage": "Use"
427
+ }
428
+ }),
429
+ fields: ['typicalUses']
430
+ },
431
+ group_form: {
432
+ messages: (0, _reactIntl.defineMessages)({
433
+ label: {
434
+ "id": "filterGroup.group_form.label",
435
+ "defaultMessage": "Form"
436
+ }
437
+ }),
438
+ fields: ['commonForm', 'formType']
439
+ },
440
+ group_properties: {
441
+ messages: (0, _reactIntl.defineMessages)({
442
+ label: {
443
+ "id": "filterGroup.group_properties.label",
444
+ "defaultMessage": "Properties"
445
+ }
446
+ }),
447
+ fields: ['acousticalPropertyType', 'durabilityPropertyType', 'electricalPropertyType', 'hygrothermalPropertyType', 'mechanicalPropertyType', 'opticalPropertyType', 'sensorialPropertyType', 'smartMaterialPropertyType', 'additionalPropertyType']
448
+ },
449
+ group_ecology: {
450
+ messages: (0, _reactIntl.defineMessages)({
451
+ label: {
452
+ "id": "filterGroup.group_ecology.label",
453
+ "defaultMessage": "Material Ecology"
454
+ }
455
+ }),
456
+ fields: ['recycledContentQualifier', 'lifecycleComponent', 'certificationProgram']
457
+ },
458
+ group_processing: {
459
+ messages: (0, _reactIntl.defineMessages)({
460
+ label: {
461
+ "id": "filterGroup.group_processing.label",
462
+ "defaultMessage": "Processing"
463
+ }
464
+ }),
465
+ fields: ['castingProcesses', 'deformingProcesses', 'joiningProcesses', 'machiningProcesses', 'moldingProcesses', 'rapidPrototypingProcesses', 'surfacingProcesses', 'additionalProcess']
466
+ }
467
+ },
468
+ layout: {
469
+ filters1: ['group_institution', 'group_composition', 'group_use', 'group_form', 'group_properties', 'group_ecology', 'group_processing']
470
+ }
471
+ },
472
+ detailFields: {
473
+ fields: {
474
+ featuredCollectionGroupList: {
475
+ field: 'materials_common:featuredCollectionGroupList',
476
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueAt)({
477
+ path: 'featuredCollection',
478
+ format: _formatHelpers.displayName
479
+ }))
480
+ },
481
+ materialCompositionGroupList: {
482
+ field: 'materials_common:materialCompositionGroupList',
483
+ format: (0, _formatHelpers.listOf)(composition)
484
+ },
485
+ typicalUses: {
486
+ field: 'materials_common:typicalUses',
487
+ format: (0, _formatHelpers.inlineListOf)((0, _formatHelpers.filterLink)({
488
+ filterValueFormat: _formatHelpers.displayName
489
+ }))
490
+ },
491
+ featuredApplicationGroupList: {
492
+ field: 'materials_common:featuredApplicationGroupList',
493
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
494
+ valueFieldName: 'featuredApplication',
495
+ noteFieldName: 'featuredApplicationNote'
496
+ }))
497
+ },
498
+ materialProductionOrganizationGroupList: {
499
+ label: 'Company',
500
+ field: 'materials_common:materialProductionOrganizationGroupList',
501
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
502
+ nameFieldName: 'materialProductionOrganization',
503
+ roleFieldName: 'materialProductionOrganizationRole',
504
+ linkName: false
505
+ }))
506
+ },
507
+ materialProductionPersonGroupList: {
508
+ label: 'Person',
509
+ field: 'materials_common:materialProductionPersonGroupList',
510
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
511
+ nameFieldName: 'materialProductionPerson',
512
+ roleFieldName: 'materialProductionPersonRole',
513
+ linkName: false
514
+ }))
515
+ },
516
+ materialProductionPlaceGroupList: {
517
+ label: 'Place',
518
+ field: 'materials_common:materialProductionPlaceGroupList',
519
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.nameRole)({
520
+ nameFieldName: 'materialProductionPlace',
521
+ roleFieldName: 'materialProductionPlaceRole',
522
+ linkName: false
523
+ }))
524
+ },
525
+ productionDate: {
526
+ label: 'Date',
527
+ field: 'materials_common:productionDate',
528
+ format: (0, _formatHelpers.valueAt)({
529
+ path: 'dateDisplayDate'
530
+ })
531
+ },
532
+ discontinued: {
533
+ label: 'Discontinued',
534
+ field: 'materials_common:discontinued'
535
+ },
536
+ productionNote: {
537
+ label: 'Production Note',
538
+ field: 'materials_common:productionNote'
539
+ },
540
+ externalUrlGroupList: {
541
+ field: 'materials_common:externalUrlGroupList',
542
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.linkText)({
543
+ urlFieldName: 'externalUrl',
544
+ textFieldName: 'externalUrlNote',
545
+ type: 'external'
546
+ }))
547
+ },
548
+ additionalResourceGroupList: {
549
+ field: 'materials_common:additionalResourceGroupList',
550
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
551
+ valueFieldName: 'additionalResource',
552
+ noteFieldName: 'additionalResourceNote'
553
+ }))
554
+ },
555
+ commonForm: {
556
+ label: 'Common form',
557
+ field: 'materials_common:commonForm',
558
+ format: (0, _formatHelpers.filterLink)({
559
+ filterValueFormat: _formatHelpers.displayName
560
+ })
561
+ },
562
+ formTypeGroupList: {
563
+ label: 'Form type',
564
+ field: 'materials_common:formTypeGroupList',
565
+ format: (0, _formatHelpers.inlineListOf)((0, _formatHelpers.valueAt)({
566
+ path: 'formType',
567
+ format: (0, _formatHelpers.filterLink)({
568
+ filterValueFormat: _formatHelpers.displayName
569
+ })
570
+ }))
571
+ },
572
+ acousticalPropertyGroupList: {
573
+ label: 'Acoustical',
574
+ field: 'materials_common:acousticalPropertyGroupList',
575
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
576
+ valueFieldName: 'acousticalPropertyType',
577
+ noteFieldName: 'acousticalPropertyNote'
578
+ }))
579
+ },
580
+ durabilityPropertyGroupList: {
581
+ label: 'Durability',
582
+ field: 'materials_common:durabilityPropertyGroupList',
583
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
584
+ valueFieldName: 'durabilityPropertyType',
585
+ noteFieldName: 'durabilityPropertyNote'
586
+ }))
587
+ },
588
+ electricalPropertyGroupList: {
589
+ label: 'Electrical',
590
+ field: 'materials_common:electricalPropertyGroupList',
591
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
592
+ valueFieldName: 'electricalPropertyType',
593
+ noteFieldName: 'electricalPropertyNote'
594
+ }))
595
+ },
596
+ hygrothermalPropertyGroupList: {
597
+ label: 'Hygro-thermal',
598
+ field: 'materials_common:hygrothermalPropertyGroupList',
599
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
600
+ valueFieldName: 'hygrothermalPropertyType',
601
+ noteFieldName: 'hygrothermalPropertyNote'
602
+ }))
603
+ },
604
+ mechanicalPropertyGroupList: {
605
+ label: 'Mechanical',
606
+ field: 'materials_common:mechanicalPropertyGroupList',
607
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
608
+ valueFieldName: 'mechanicalPropertyType',
609
+ noteFieldName: 'mechanicalPropertyNote'
610
+ }))
611
+ },
612
+ opticalPropertyGroupList: {
613
+ label: 'Optical',
614
+ field: 'materials_common:opticalPropertyGroupList',
615
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
616
+ valueFieldName: 'opticalPropertyType',
617
+ noteFieldName: 'opticalPropertyNote'
618
+ }))
619
+ },
620
+ sensorialPropertyGroupList: {
621
+ label: 'Sensorial',
622
+ field: 'materials_common:sensorialPropertyGroupList',
623
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
624
+ valueFieldName: 'sensorialPropertyType',
625
+ noteFieldName: 'sensorialPropertyNote'
626
+ }))
627
+ },
628
+ smartMaterialPropertyGroupList: {
629
+ label: 'Smart material',
630
+ field: 'materials_common:smartMaterialPropertyGroupList',
631
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
632
+ valueFieldName: 'smartMaterialPropertyType',
633
+ noteFieldName: 'smartMaterialPropertyNote'
634
+ }))
635
+ },
636
+ additionalPropertyGroupList: {
637
+ label: 'Additional',
638
+ field: 'materials_common:additionalPropertyGroupList',
639
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
640
+ valueFieldName: 'additionalPropertyType',
641
+ noteFieldName: 'additionalPropertyNote'
642
+ }))
643
+ },
644
+ propertyNote: {
645
+ label: 'Property note',
646
+ field: 'materials_common:propertyNote'
647
+ },
648
+ recycledContentGroupList: {
649
+ label: 'Recycled content',
650
+ field: 'materials_common:recycledContentGroupList',
651
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.numericRange)({
652
+ lowFieldName: 'recycledContent',
653
+ highFieldName: 'recycledContentHigh',
654
+ unit: '%',
655
+ qualifierFieldName: 'recycledContentQualifier',
656
+ linkQualifier: true
657
+ }))
658
+ },
659
+ lifecycleComponentGroupList: {
660
+ label: 'Lifecycle component',
661
+ field: 'materials_common:lifecycleComponentGroupList',
662
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
663
+ valueFieldName: 'lifecycleComponent',
664
+ noteFieldName: 'lifecycleComponentNote',
665
+ noteLabel: '',
666
+ separator: ' - '
667
+ }))
668
+ },
669
+ embodiedEnergyGroupList: {
670
+ label: 'Embodied energy',
671
+ field: 'materials_common:embodiedEnergyGroupList',
672
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.numericRange)({
673
+ lowFieldName: 'embodiedEnergyValue',
674
+ highFieldName: 'embodiedEnergyValueHigh',
675
+ unitFieldName: 'embodiedEnergyUnit',
676
+ qualifierFieldName: 'embodiedEnergyNote',
677
+ qualifierSeparator: ' - '
678
+ }))
679
+ },
680
+ certificationCreditGroupList: {
681
+ label: 'Certification credit',
682
+ field: 'materials_common:certificationCreditGroupList',
683
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
684
+ valueFieldName: 'certificationProgram',
685
+ noteFieldName: 'certificationCreditNote',
686
+ noteLabel: '',
687
+ separator: ' - '
688
+ }))
689
+ },
690
+ ecologyNote: {
691
+ label: 'Material ecology note',
692
+ field: 'materials_common:ecologyNote'
693
+ },
694
+ castingProcesses: {
695
+ label: 'Casting',
696
+ field: 'materials_common:castingProcesses',
697
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
698
+ filterValueFormat: _formatHelpers.displayName
699
+ }))
700
+ },
701
+ joiningProcesses: {
702
+ label: 'Joining',
703
+ field: 'materials_common:joiningProcesses',
704
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
705
+ filterValueFormat: _formatHelpers.displayName
706
+ }))
707
+ },
708
+ moldingProcesses: {
709
+ label: 'Molding',
710
+ field: 'materials_common:moldingProcesses',
711
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
712
+ filterValueFormat: _formatHelpers.displayName
713
+ }))
714
+ },
715
+ surfacingProcesses: {
716
+ label: 'Surfacing',
717
+ field: 'materials_common:surfacingProcesses',
718
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
719
+ filterValueFormat: _formatHelpers.displayName
720
+ }))
721
+ },
722
+ deformingProcesses: {
723
+ label: 'Deforming',
724
+ field: 'materials_common:deformingProcesses',
725
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
726
+ filterValueFormat: _formatHelpers.displayName
727
+ }))
728
+ },
729
+ machiningProcesses: {
730
+ label: 'Machining',
731
+ field: 'materials_common:machiningProcesses',
732
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
733
+ filterValueFormat: _formatHelpers.displayName
734
+ }))
735
+ },
736
+ rapidPrototypingProcesses: {
737
+ label: 'Rapid prototyping',
738
+ field: 'materials_common:rapidPrototypingProcesses',
739
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.filterLink)({
740
+ filterValueFormat: _formatHelpers.displayName
741
+ }))
742
+ },
743
+ additionalProcessGroupList: {
744
+ label: 'Additional process',
745
+ field: 'materials_common:additionalProcessGroupList',
746
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
747
+ valueFieldName: 'additionalProcess',
748
+ noteFieldName: 'additionalProcessNote'
749
+ }))
750
+ },
751
+ processNote: {
752
+ label: 'Process note',
753
+ field: 'materials_common:processNote'
754
+ }
755
+ },
756
+ groups: {
757
+ group_featured_collection: {
758
+ label: 'Featured collection',
759
+ fields: ['featuredCollectionGroupList']
760
+ },
761
+ group_composition: {
762
+ label: 'Composition',
763
+ fields: ['materialCompositionGroupList']
764
+ },
765
+ group_use: {
766
+ label: 'Typical use',
767
+ fields: ['typicalUses']
768
+ },
769
+ group_application: {
770
+ label: 'Featured application',
771
+ fields: ['featuredApplicationGroupList']
772
+ },
773
+ group_production: {
774
+ label: 'Production',
775
+ fields: ['materialProductionOrganizationGroupList', 'materialProductionPersonGroupList', 'materialProductionPlaceGroupList', 'productionDate', 'discontinued', 'productionNote']
776
+ },
777
+ group_link: {
778
+ label: 'External links',
779
+ fields: ['externalUrlGroupList']
780
+ },
781
+ group_standard: {
782
+ label: 'External standard',
783
+ fields: ['additionalResourceGroupList']
784
+ },
785
+ group_form: {
786
+ label: 'Form',
787
+ fields: ['commonForm', 'formTypeGroupList']
788
+ },
789
+ group_property: {
790
+ label: 'Properties',
791
+ fields: ['acousticalPropertyGroupList', 'durabilityPropertyGroupList', 'electricalPropertyGroupList', 'hygrothermalPropertyGroupList', 'mechanicalPropertyGroupList', 'opticalPropertyGroupList', 'sensorialPropertyGroupList', 'smartMaterialPropertyGroupList', 'additionalPropertyGroupList', 'propertyNote']
792
+ },
793
+ group_ecology: {
794
+ label: 'Material ecology',
795
+ fields: ['recycledContentGroupList', 'lifecycleComponentGroupList', 'embodiedEnergyGroupList', 'certificationCreditGroupList', 'ecologyNote']
796
+ },
797
+ group_process: {
798
+ label: 'Processes',
799
+ fields: ['castingProcesses', 'joiningProcesses', 'moldingProcesses', 'surfacingProcesses', 'deformingProcesses', 'machiningProcesses', 'rapidPrototypingProcesses', 'additionalProcessGroupList', 'processNote']
800
+ }
801
+ },
802
+ layout: {
803
+ fields1: ['group_featured_collection', 'group_composition', 'group_use', 'group_application', 'group_production', 'group_link', 'group_standard', 'group_form', 'group_property'],
804
+ fields2: ['group_ecology', 'group_process']
805
+ }
806
+ },
807
+ institutionHoldings: {
808
+ query: data => {
809
+ const {
810
+ 'collectionspace_core:refName': refName
811
+ } = data;
812
+ const shortId = (0, _cspaceRefname.getItemShortID)(refName);
813
+ return {
814
+ term: {
815
+ 'collectionobjects_common:materialGroupList.material.shortid': shortId
816
+ }
817
+ };
818
+ },
819
+ sortField: 'collectionobjects_common:objectNumber',
820
+ title: {
821
+ name: 'collectionobjects_common:otherNumberList',
822
+ format: (0, _formatHelpers.pickFromList)({
823
+ condition: {
824
+ path: 'numberType',
825
+ value: 'callnumber'
826
+ },
827
+ format: (0, _formatHelpers.valueAt)({
828
+ path: 'numberValue'
829
+ })
830
+ })
831
+ },
832
+ detailFields: {
833
+ fields: {
834
+ otherNumberList: {
835
+ label: 'Call number',
836
+ field: 'collectionobjects_common:otherNumberList',
837
+ format: (0, _formatHelpers.pickAllFromList)({
838
+ condition: {
839
+ path: 'numberType',
840
+ value: 'callnumber'
841
+ },
842
+ format: (0, _formatHelpers.valueAt)({
843
+ path: 'numberValue'
844
+ })
845
+ }),
846
+ className: 'title'
847
+ },
848
+ collection: {
849
+ label: 'Collection',
850
+ field: 'collectionobjects_common:collection',
851
+ format: _formatHelpers.displayName
852
+ },
853
+ namedCollection: {
854
+ label: 'Named collection',
855
+ field: 'collectionobjects_common:namedCollections',
856
+ format: (0, _formatHelpers.listOf)(_formatHelpers.displayName)
857
+ },
858
+ computedCurrentLocation: {
859
+ label: 'Current location',
860
+ field: 'collectionobjects_common:computedCurrentLocation',
861
+ format: _formatHelpers.displayName
862
+ },
863
+ materialPhysicalDescriptions: {
864
+ label: 'Physical description',
865
+ field: 'collectionobjects_materials:materialPhysicalDescriptions',
866
+ format: _formatHelpers.paragraphs
867
+ },
868
+ materialContainerGroupList: {
869
+ label: 'Container',
870
+ field: 'collectionobjects_materials:materialContainerGroupList',
871
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
872
+ valueFieldName: 'container',
873
+ noteFieldName: 'containerNote',
874
+ linkValue: false
875
+ }))
876
+ },
877
+ materialConditionGroupList: {
878
+ label: 'Condition',
879
+ field: 'collectionobjects_materials:materialConditionGroupList',
880
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
881
+ valueFieldName: 'condition',
882
+ noteFieldName: 'conditionNote',
883
+ linkValue: false
884
+ }))
885
+ },
886
+ materialHandlingGroupList: {
887
+ label: 'Handling',
888
+ field: 'collectionobjects_materials:materialHandlingGroupList',
889
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
890
+ valueFieldName: 'handling',
891
+ noteFieldName: 'handlingNote',
892
+ linkValue: false
893
+ }))
894
+ },
895
+ colors: {
896
+ label: 'Color',
897
+ field: 'collectionobjects_common:colors',
898
+ format: _formatHelpers.inlineList
899
+ },
900
+ materialGenericColors: {
901
+ label: 'Generic color',
902
+ field: 'collectionobjects_materials:materialGenericColors',
903
+ format: (0, _formatHelpers.inlineListOf)(_formatHelpers.displayName)
904
+ },
905
+ materialFinishGroupList: {
906
+ label: 'Finish',
907
+ field: 'collectionobjects_materials:materialFinishGroupList',
908
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueWithNote)({
909
+ valueFieldName: 'finish',
910
+ noteFieldName: 'finishNote',
911
+ linkValue: false
912
+ }))
913
+ },
914
+ numberOfObjects: {
915
+ label: 'Holdings',
916
+ field: 'collectionobjects_common:numberOfObjects'
917
+ },
918
+ objectStatusList: {
919
+ label: 'Type',
920
+ field: 'collectionobjects_common:objectStatusList',
921
+ format: (0, _formatHelpers.inlineListOf)(_formatHelpers.objectTypeValue)
922
+ },
923
+ briefDescriptions: {
924
+ label: 'Production description',
925
+ field: 'collectionobjects_common:briefDescriptions',
926
+ format: _formatHelpers.paragraphs
927
+ },
928
+ measuredPartGroupList: {
929
+ label: 'Size',
930
+ field: 'collectionobjects_common:measuredPartGroupList',
931
+ format: (0, _formatHelpers.listOf)((0, _formatHelpers.valueAt)({
932
+ path: 'dimensionSummary'
933
+ }))
934
+ },
935
+ objectNumber: {
936
+ label: 'System number',
937
+ field: 'collectionobjects_common:objectNumber'
938
+ }
939
+ },
940
+ groups: {
941
+ group_sample_otherNumberList: {
942
+ fields: ['otherNumberList']
943
+ },
944
+ group_sample_collection: {
945
+ fields: ['collection']
946
+ },
947
+ group_sample_namedCollection: {
948
+ fields: ['namedCollection']
949
+ },
950
+ group_sample_computedCurrentLocation: {
951
+ fields: ['computedCurrentLocation']
952
+ },
953
+ group_sample_materialPhysicalDescriptions: {
954
+ fields: ['materialPhysicalDescriptions']
955
+ },
956
+ group_sample_condition: {
957
+ fields: ['materialContainerGroupList', 'materialConditionGroupList', 'materialHandlingGroupList']
958
+ },
959
+ group_sample_description: {
960
+ fields: ['colors', 'materialGenericColors', 'materialFinishGroupList']
961
+ },
962
+ group_sample_holdings: {
963
+ fields: ['numberOfObjects', 'objectStatusList'],
964
+ className: 'inline'
965
+ },
966
+ group_sample_briefDescriptions: {
967
+ fields: ['briefDescriptions']
968
+ },
969
+ group_sample_measuredPartGroupList: {
970
+ fields: ['measuredPartGroupList']
971
+ },
972
+ group_sample_system: {
973
+ fields: ['objectNumber']
974
+ }
975
+ },
976
+ layout: {
977
+ fields1: ['group_sample_otherNumberList', 'group_sample_collection', 'group_sample_namedCollection', 'group_sample_computedCurrentLocation', 'group_sample_materialPhysicalDescriptions', 'group_sample_condition', 'group_sample_description', 'group_sample_holdings', 'group_sample_briefDescriptions', 'group_sample_measuredPartGroupList', 'group_sample_system']
978
+ }
979
+ }
980
+ }
981
+ };
982
+ exports.default = _default;