@collectionspace/cspace-public-browser 2.1.3 → 3.0.0
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/dist/cspacePublicBrowser.js +5 -5
- package/dist/cspacePublicBrowser.min.js +1 -1
- package/lib/config/anthro.js +2 -2
- package/lib/config/default.js +21 -11
- package/lib/config/fcart.js +1 -1
- package/lib/config/materials.js +6 -3
- package/lib/helpers/formatHelpers.js +3 -1
- package/package.json +1 -1
- package/src/config/anthro.js +3 -2
- package/src/config/default.js +22 -11
- package/src/config/fcart.js +2 -1
- package/src/config/materials.js +5 -3
- package/src/helpers/formatHelpers.jsx +4 -0
|
@@ -686,7 +686,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
686
686
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
687
687
|
|
|
688
688
|
"use strict";
|
|
689
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n/* harmony import */ var _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/formatHelpers */ \"./src/helpers/formatHelpers.jsx\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n gatewayUrl: 'http://localhost:8180/gateway/anthro',\n filters: {\n fields: {\n objectProductionPeople: {\n field: 'collectionobjects_common:objectProductionPeopleGroupList.objectProductionPeople.displayName'\n },\n objectProductionPlace: {\n field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace.displayName'\n },\n taxon: {\n field: 'collectionobjects_naturalhistory_extension:taxonomicIdentGroupList.taxon.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"filter.taxon.label\",\n \"defaultMessage\": \"Taxon name\"\n },\n shortLabel: {\n \"id\": \"filter.taxon.shortLabel\",\n \"defaultMessage\": \"Taxon\"\n }\n })\n },\n collectionYears: {\n field: 'collectionspace_denorm:collectionYears',\n type: 'histogram',\n interval: 10,\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.decade,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"filter.collectionYears.label\",\n \"defaultMessage\": \"Collection date\"\n },\n shortLabel: {\n \"id\": \"filter.collectionYears.shortLabel\",\n \"defaultMessage\": \"Coll. date\"\n }\n })\n }\n },\n groups: {\n group_collection: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_collection.label\",\n \"defaultMessage\": \"Collection\"\n }\n }),\n fields: ['collectionYears']\n },\n group_description: {\n fields: ['material', 'technique', '
|
|
689
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n/* harmony import */ var _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/formatHelpers */ \"./src/helpers/formatHelpers.jsx\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n gatewayUrl: 'http://localhost:8180/gateway/anthro',\n filters: {\n fields: {\n objectProductionPeople: {\n field: 'collectionobjects_common:objectProductionPeopleGroupList.objectProductionPeople.displayName'\n },\n objectProductionPlace: {\n field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace.displayName'\n },\n taxon: {\n field: 'collectionobjects_naturalhistory_extension:taxonomicIdentGroupList.taxon.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"filter.taxon.label\",\n \"defaultMessage\": \"Taxon name\"\n },\n shortLabel: {\n \"id\": \"filter.taxon.shortLabel\",\n \"defaultMessage\": \"Taxon\"\n }\n })\n },\n collectionYears: {\n field: 'collectionspace_denorm:collectionYears',\n type: 'histogram',\n interval: 10,\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.decade,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"filter.collectionYears.label\",\n \"defaultMessage\": \"Collection date\"\n },\n shortLabel: {\n \"id\": \"filter.collectionYears.shortLabel\",\n \"defaultMessage\": \"Coll. date\"\n }\n })\n }\n },\n groups: {\n group_collection: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_collection.label\",\n \"defaultMessage\": \"Collection\"\n }\n }),\n fields: ['collectionYears']\n },\n group_description: {\n fields: ['material', 'technique', 'subject', 'color', 'taxon']\n }\n },\n layout: {\n filters1: ['group_id', 'group_media', 'group_collection', 'group_description', 'group_production']\n }\n },\n detailFields: {\n fields: {\n taxon: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"detailField.taxon.label\",\n \"defaultMessage\": \"Taxon name\"\n }\n }),\n field: 'collectionobjects_naturalhistory_extension:taxonomicIdentGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.valueAt)({\n path: 'taxon',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.displayName\n })\n }))\n },\n fieldCollectionDate: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"detailField.fieldCollectionDate.label\",\n \"defaultMessage\": \"Date\"\n }\n }),\n field: 'collectionobjects_common:fieldCollectionDateGroup',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.valueAt)({\n path: 'dateDisplayDate'\n })\n },\n fieldCollector: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"detailField.fieldCollector.label\",\n \"defaultMessage\": \"Collector\"\n }\n }),\n field: 'collectionobjects_common:fieldCollectors',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.listOf)(_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_0__.displayName)\n }\n },\n groups: {\n group_collection: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_1__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_collection.label\",\n \"defaultMessage\": \"Collection\"\n }\n }),\n fields: ['fieldCollectionDate', 'fieldCollector']\n },\n group_description: {\n fields: ['material', 'technique', 'subject', 'contentDescription', 'measuredPart', 'creditLine', 'taxon']\n }\n },\n layout: {\n fields1: ['group_id', 'group_collection', 'group_description', 'group_production']\n }\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/config/anthro.js?");
|
|
690
690
|
|
|
691
691
|
/***/ }),
|
|
692
692
|
|
|
@@ -719,7 +719,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
719
719
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
720
720
|
|
|
721
721
|
"use strict";
|
|
722
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n/* harmony import */ var _intl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../intl */ \"./src/intl/index.js\");\n/* harmony import */ var _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/formatHelpers */ \"./src/helpers/formatHelpers.jsx\");\n\n\n\nconst departmentMessages = (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n antiquities: {\n \"id\": \"option.departments.antiquities\",\n \"defaultMessage\": \"Antiquities\"\n },\n 'architecture-design': {\n \"id\": \"option.departments.architecture-design\",\n \"defaultMessage\": \"Architecture and Design\"\n },\n 'decorative-arts': {\n \"id\": \"option.departments.decorative-arts\",\n \"defaultMessage\": \"Decorative Arts\"\n },\n ethnography: {\n \"id\": \"option.departments.ethnography\",\n \"defaultMessage\": \"Ethnography\"\n },\n herpetology: {\n \"id\": \"option.departments.herpetology\",\n \"defaultMessage\": \"Herpetology\"\n },\n 'media-performance-art': {\n \"id\": \"option.departments.media-performance-art\",\n \"defaultMessage\": \"Media and Performance Art\"\n },\n 'paintings-sculpture': {\n \"id\": \"option.departments.paintings-sculpture\",\n \"defaultMessage\": \"Paintings and Sculpture\"\n },\n paleobotany: {\n \"id\": \"option.departments.paleobotany\",\n \"defaultMessage\": \"Paleobotany\"\n },\n photographs: {\n \"id\": \"option.departments.photographs\",\n \"defaultMessage\": \"Photographs\"\n },\n 'prints-drawings': {\n \"id\": \"option.departments.prints-drawings\",\n \"defaultMessage\": \"Prints and Drawings\"\n }\n});\nconst formatDepartment = data => {\n const message = departmentMessages[data];\n return message ? (0,_intl__WEBPACK_IMPORTED_MODULE_0__.getIntl)().formatMessage(message) : data;\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n basename: '',\n container: '#cspace-browser',\n gatewayUrl: 'http://localhost:8180/gateway/core',\n locale: 'en-US',\n detailPath: 'detail',\n // Time in milliseconds to wait before fetching a search result image. If the search result is\n // scrolled offscreen before the time elapses, the image is not loaded until the result is\n // scrolled into view again. This applies only to pages of results after the first. Images for\n // the first page are fetched immediately.\n imageLoadDelay: 2000,\n // Time in milliseconds to wait before fetching another page of search results, when the result\n // list is scrolled to the bottom.\n pageLoadDelay: 1000,\n // The maximum number of results to automatically load while scrolling. Once this number of\n // results has been retrieved, the user must click a button to load more results.\n pageAutoLoadLimit: 80,\n defaultQuery: {\n term: {\n 'ecm:primaryType': 'CollectionObject'\n }\n },\n fulltextSearchFields: ['all_field'],\n includeFields: ['ecm:name', 'ecm:primaryType', 'collectionspace_denorm:mediaCsid', 'collectionspace_denorm:title'],\n referenceField: 'ecm:name',\n defaultSortOrder: 'bestmatch',\n sortField: 'collectionspace_denorm:title',\n storageKey: 'cspace-browser',\n searchResultImageDerivative: 'Small',\n detailImageDerivative: 'Medium',\n tileTitle: {\n field: 'collectionspace_denorm:title',\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n },\n filterOrder: {\n _term: 'asc'\n },\n filterSize: 300,\n filters: {\n fields: {\n objectName: {\n field: 'collectionspace_denorm:objectNameList.objectName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectName.label\",\n \"defaultMessage\": \"Name\"\n },\n shortLabel: {\n \"id\": \"filter.objectName.shortLabel\",\n \"defaultMessage\": \"Name\"\n }\n })\n },\n objectProductionPerson: {\n field: 'collectionobjects_common:objectProductionPersonGroupList.objectProductionPerson.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionPerson.label\",\n \"defaultMessage\": \"Production person\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionPerson.shortLabel\",\n \"defaultMessage\": \"Prod. person\"\n }\n })\n },\n objectProductionOrganization: {\n field: 'collectionobjects_common:objectProductionOrganizationGroupList.objectProductionOrganization.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionOrganization.label\",\n \"defaultMessage\": \"Production organization\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionOrganization.shortLabel\",\n \"defaultMessage\": \"Prod. organization\"\n }\n })\n },\n objectProductionPeople: {\n field: 'collectionobjects_common:objectProductionPeopleGroupList.objectProductionPeople',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionPeople.label\",\n \"defaultMessage\": \"Production people/culture\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionPeople.shortLabel\",\n \"defaultMessage\": \"Prod. people/culture\"\n }\n })\n },\n prodYears: {\n field: 'collectionspace_denorm:prodYears',\n type: 'histogram',\n interval: 10,\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.decade,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.prodYears.label\",\n \"defaultMessage\": \"Production date\"\n },\n shortLabel: {\n \"id\": \"filter.prodYears.shortLabel\",\n \"defaultMessage\": \"Prod. date\"\n }\n })\n },\n objectProductionPlace: {\n field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionPlace.label\",\n \"defaultMessage\": \"Production place\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionPlace.shortLabel\",\n \"defaultMessage\": \"Prod. place\"\n }\n })\n },\n material: {\n field: 'collectionspace_denorm:materialGroupList.material',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.material.label\",\n \"defaultMessage\": \"Material\"\n },\n shortLabel: {\n \"id\": \"filter.material.shortLabel\",\n \"defaultMessage\": \"Material\"\n }\n })\n },\n color: {\n field: 'collectionobjects_common:colors',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.color.label\",\n \"defaultMessage\": \"Color\"\n },\n shortLabel: {\n \"id\": \"filter.color.shortLabel\",\n \"defaultMessage\": \"Color\"\n }\n })\n },\n responsibleDepartment: {\n field: 'collectionobjects_common:responsibleDepartments',\n formatValue: formatDepartment,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.responsibleDepartment.label\",\n \"defaultMessage\": \"Department\"\n },\n shortLabel: {\n \"id\": \"filter.responsibleDepartment.shortLabel\",\n \"defaultMessage\": \"Dept\"\n }\n })\n },\n exhibitionTitle: {\n field: 'collectionspace_denorm:exhibition.title',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.exhibitionTitle.label\",\n \"defaultMessage\": \"Exhibition title\"\n },\n shortLabel: {\n \"id\": \"filter.exhibitionTitle.shortLabel\",\n \"defaultMessage\": \"Exhibition title\"\n }\n })\n },\n contentConcept: {\n field: 'collectionobjects_common:contentConcepts.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.contentConcept.label\",\n \"defaultMessage\": \"Subject\"\n },\n shortLabel: {\n \"id\": \"filter.contentConcept.shortLabel\",\n \"defaultMessage\": \"Subject\"\n }\n }),\n order: {\n _count: 'desc'\n }\n },\n technique: {\n field: 'collectionobjects_common:techniqueGroupList.technique',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.technique.label\",\n \"defaultMessage\": \"Technique\"\n },\n shortLabel: {\n \"id\": \"filter.technique.shortLabel\",\n \"defaultMessage\": \"Technique\"\n }\n })\n },\n hasMedia: {\n field: 'collectionspace_denorm:hasMedia',\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.boolean,\n showSearch: false,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.hasMedia.label\",\n \"defaultMessage\": \"Has image\"\n },\n shortLabel: {\n \"id\": \"filter.hasMedia.shortLabel\",\n \"defaultMessage\": \"Has image\"\n }\n })\n }\n },\n groups: {\n group_id: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_id.label\",\n \"defaultMessage\": \"Identification\"\n }\n }),\n fields: ['responsibleDepartment', 'objectName', 'exhibitionTitle']\n },\n group_media: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_media.label\",\n \"defaultMessage\": \"Media\"\n }\n }),\n fields: ['hasMedia']\n },\n group_description: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_description.label\",\n \"defaultMessage\": \"Description\"\n }\n }),\n fields: ['material', 'contentConcept', 'color']\n },\n group_production: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_production.label\",\n \"defaultMessage\": \"Production\"\n }\n }),\n fields: ['technique', 'objectProductionPerson', 'objectProductionOrganization', 'objectProductionPeople', 'objectProductionPlace', 'prodYears']\n }\n },\n layout: {\n filters1: ['group_id', 'group_media', 'group_description', 'group_production']\n }\n },\n detailTitle: data => {\n const {\n 'collectionobjects_common:titleGroupList': titleGroups\n } = data;\n if (titleGroups && titleGroups.length > 0) {\n const {\n title\n } = titleGroups[0];\n return title;\n }\n return undefined;\n },\n detailSubtitle: data => {\n const {\n 'collectionspace_denorm:objectNameList': objectNameGroups\n } = data;\n if (objectNameGroups && objectNameGroups.length > 0) {\n const {\n objectName\n } = objectNameGroups[0];\n return objectName;\n }\n return undefined;\n },\n detailDescription: data => {\n const {\n 'collectionobjects_common:briefDescriptions': briefDescriptions\n } = data;\n if (briefDescriptions && briefDescriptions.length > 0) {\n return briefDescriptions[0];\n }\n return undefined;\n },\n detailFields: {\n fields: {\n objectNumber: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectNumber.label\",\n \"defaultMessage\": \"Number\"\n }\n }),\n field: 'collectionobjects_common:objectNumber'\n },\n objectName: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectName.label\",\n \"defaultMessage\": \"Name\"\n }\n }),\n field: 'collectionspace_denorm:objectNameList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'objectName',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({})\n }))\n },\n responsibleDepartment: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.responsibleDepartment.label\",\n \"defaultMessage\": \"Department\"\n }\n }),\n field: 'collectionobjects_common:responsibleDepartments',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n linkTextFormat: formatDepartment\n }))\n },\n objectProductionPerson: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionPerson.label\",\n \"defaultMessage\": \"Person\"\n }\n }),\n field: 'collectionobjects_common:objectProductionPersonGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionPerson',\n roleFieldName: 'objectProductionPersonRole'\n }))\n },\n objectProductionOrganization: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionOrganization.label\",\n \"defaultMessage\": \"Organization\"\n }\n }),\n field: 'collectionobjects_common:objectProductionOrganizationGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionOrganization',\n roleFieldName: 'objectProductionOrganizationRole'\n }))\n },\n objectProductionPeople: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionPeople.label\",\n \"defaultMessage\": \"People/culture\"\n }\n }),\n field: 'collectionobjects_common:objectProductionPeopleGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionPeople',\n roleFieldName: 'objectProductionPeopleRole'\n }))\n },\n objectProductionPlace: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionPlace.label\",\n \"defaultMessage\": \"Place\"\n }\n }),\n field: 'collectionobjects_common:objectProductionPlaceGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionPlace',\n roleFieldName: 'objectProductionPlaceRole'\n }))\n },\n objectProductionDate: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionDate.label\",\n \"defaultMessage\": \"Date\"\n }\n }),\n field: 'collectionobjects_common:objectProductionDateGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'dateDisplayDate'\n }))\n },\n material: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.material.label\",\n \"defaultMessage\": \"Material\"\n }\n }),\n field: 'collectionspace_denorm:materialGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'material',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({})\n }))\n },\n technique: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.technique.label\",\n \"defaultMessage\": \"Technique\"\n }\n }),\n field: 'collectionobjects_common:techniqueGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'technique',\n roleFieldName: 'techniqueType'\n }))\n },\n contentConcept: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.contentConcept.label\",\n \"defaultMessage\": \"Subject\"\n }\n }),\n field: 'collectionobjects_common:contentConcepts',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n measuredPart: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.measuredPart.label\",\n \"defaultMessage\": \"Dimensions\"\n }\n }),\n field: 'collectionobjects_common:measuredPartGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'dimensionSummary',\n roleFieldName: 'measuredPart',\n linkName: false\n }))\n },\n creditLine: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.creditLine.label\",\n \"defaultMessage\": \"Credit\"\n }\n }),\n field: 'collectionspace_denorm:creditLine',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.list\n },\n rightStatement: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.rightStatement.label\",\n \"defaultMessage\": \"Right Statement\"\n }\n }),\n field: 'collectionobjects_common:rightsGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'rightStatement'\n }))\n },\n standardizedRightStatement: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.standardizedRightStatement.label\",\n \"defaultMessage\": \"Standardized Right Statement\"\n }\n }),\n field: 'collectionobjects_common:rightsGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'standardizedRightStatement',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n rightReproductionStatement: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.rightReproductionStatement.label\",\n \"defaultMessage\": \"Right Reproduction Statement\"\n }\n }),\n field: 'collectionobjects_common:rightsInGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'rightReproductionStatement'\n }))\n }\n },\n groups: {\n group_id: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_id.label\",\n \"defaultMessage\": \"Identification\"\n }\n }),\n fields: ['objectNumber', 'objectName', 'responsibleDepartment']\n },\n group_description: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_description.label\",\n \"defaultMessage\": \"Description\"\n }\n }),\n fields: ['material', 'technique', 'contentConcept', 'measuredPart', 'creditLine']\n },\n group_production: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_production.label\",\n \"defaultMessage\": \"Production\"\n }\n }),\n fields: ['objectProductionPerson', 'objectProductionOrganization', 'objectProductionPeople', 'objectProductionPlace', 'objectProductionDate']\n },\n group_rights: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_rights.label\",\n \"defaultMessage\": \"Rights\"\n }\n }),\n fields: ['rightStatement', 'standardizedRightStatement', 'rightReproductionStatement']\n }\n },\n layout: {\n fields1: ['group_id', 'group_description', 'group_production', 'group_rights']\n }\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/config/default.js?");
|
|
722
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n/* harmony import */ var _intl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../intl */ \"./src/intl/index.js\");\n/* harmony import */ var _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/formatHelpers */ \"./src/helpers/formatHelpers.jsx\");\n\n\n\nconst departmentMessages = (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n antiquities: {\n \"id\": \"option.departments.antiquities\",\n \"defaultMessage\": \"Antiquities\"\n },\n 'architecture-design': {\n \"id\": \"option.departments.architecture-design\",\n \"defaultMessage\": \"Architecture and Design\"\n },\n 'decorative-arts': {\n \"id\": \"option.departments.decorative-arts\",\n \"defaultMessage\": \"Decorative Arts\"\n },\n ethnography: {\n \"id\": \"option.departments.ethnography\",\n \"defaultMessage\": \"Ethnography\"\n },\n herpetology: {\n \"id\": \"option.departments.herpetology\",\n \"defaultMessage\": \"Herpetology\"\n },\n 'media-performance-art': {\n \"id\": \"option.departments.media-performance-art\",\n \"defaultMessage\": \"Media and Performance Art\"\n },\n 'paintings-sculpture': {\n \"id\": \"option.departments.paintings-sculpture\",\n \"defaultMessage\": \"Paintings and Sculpture\"\n },\n paleobotany: {\n \"id\": \"option.departments.paleobotany\",\n \"defaultMessage\": \"Paleobotany\"\n },\n photographs: {\n \"id\": \"option.departments.photographs\",\n \"defaultMessage\": \"Photographs\"\n },\n 'prints-drawings': {\n \"id\": \"option.departments.prints-drawings\",\n \"defaultMessage\": \"Prints and Drawings\"\n }\n});\nconst formatDepartment = data => {\n const message = departmentMessages[data];\n return message ? (0,_intl__WEBPACK_IMPORTED_MODULE_0__.getIntl)().formatMessage(message) : data;\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n basename: '',\n container: '#cspace-browser',\n gatewayUrl: 'http://localhost:8180/gateway/core',\n locale: 'en-US',\n detailPath: 'detail',\n // Time in milliseconds to wait before fetching a search result image. If the search result is\n // scrolled offscreen before the time elapses, the image is not loaded until the result is\n // scrolled into view again. This applies only to pages of results after the first. Images for\n // the first page are fetched immediately.\n imageLoadDelay: 2000,\n // Time in milliseconds to wait before fetching another page of search results, when the result\n // list is scrolled to the bottom.\n pageLoadDelay: 1000,\n // The maximum number of results to automatically load while scrolling. Once this number of\n // results has been retrieved, the user must click a button to load more results.\n pageAutoLoadLimit: 80,\n defaultQuery: {\n term: {\n 'ecm:primaryType': 'CollectionObject'\n }\n },\n fulltextSearchFields: ['all_field'],\n includeFields: ['ecm:name', 'ecm:primaryType', 'collectionspace_denorm:mediaCsid', 'collectionspace_denorm:title'],\n referenceField: 'ecm:name',\n defaultSortOrder: 'bestmatch',\n sortField: 'collectionspace_denorm:title',\n storageKey: 'cspace-browser',\n searchResultImageDerivative: 'Small',\n detailImageDerivative: 'Medium',\n tileTitle: {\n field: 'collectionspace_denorm:title',\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n },\n filterOrder: {\n _term: 'asc'\n },\n filterSize: 300,\n filters: {\n fields: {\n objectName: {\n field: 'collectionspace_denorm:objectNameList.objectName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectName.label\",\n \"defaultMessage\": \"Name\"\n },\n shortLabel: {\n \"id\": \"filter.objectName.shortLabel\",\n \"defaultMessage\": \"Name\"\n }\n })\n },\n objectProductionPerson: {\n field: 'collectionobjects_common:objectProductionPersonGroupList.objectProductionPerson.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionPerson.label\",\n \"defaultMessage\": \"Production person\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionPerson.shortLabel\",\n \"defaultMessage\": \"Prod. person\"\n }\n })\n },\n objectProductionOrganization: {\n field: 'collectionobjects_common:objectProductionOrganizationGroupList.objectProductionOrganization.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionOrganization.label\",\n \"defaultMessage\": \"Production organization\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionOrganization.shortLabel\",\n \"defaultMessage\": \"Prod. organization\"\n }\n })\n },\n objectProductionPeople: {\n field: 'collectionobjects_common:objectProductionPeopleGroupList.objectProductionPeople',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionPeople.label\",\n \"defaultMessage\": \"Production people/culture\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionPeople.shortLabel\",\n \"defaultMessage\": \"Prod. people/culture\"\n }\n })\n },\n prodYears: {\n field: 'collectionspace_denorm:prodYears',\n type: 'histogram',\n interval: 10,\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.decade,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.prodYears.label\",\n \"defaultMessage\": \"Production date\"\n },\n shortLabel: {\n \"id\": \"filter.prodYears.shortLabel\",\n \"defaultMessage\": \"Prod. date\"\n }\n })\n },\n objectProductionPlace: {\n field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.objectProductionPlace.label\",\n \"defaultMessage\": \"Production place\"\n },\n shortLabel: {\n \"id\": \"filter.objectProductionPlace.shortLabel\",\n \"defaultMessage\": \"Prod. place\"\n }\n })\n },\n material: {\n field: 'collectionspace_denorm:materialGroupList.material',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.material.label\",\n \"defaultMessage\": \"Material\"\n },\n shortLabel: {\n \"id\": \"filter.material.shortLabel\",\n \"defaultMessage\": \"Material\"\n }\n })\n },\n color: {\n field: 'collectionobjects_common:colors',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.color.label\",\n \"defaultMessage\": \"Color\"\n },\n shortLabel: {\n \"id\": \"filter.color.shortLabel\",\n \"defaultMessage\": \"Color\"\n }\n })\n },\n responsibleDepartment: {\n field: 'collectionobjects_common:responsibleDepartments',\n formatValue: formatDepartment,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.responsibleDepartment.label\",\n \"defaultMessage\": \"Department\"\n },\n shortLabel: {\n \"id\": \"filter.responsibleDepartment.shortLabel\",\n \"defaultMessage\": \"Dept\"\n }\n })\n },\n exhibitionTitle: {\n field: 'collectionspace_denorm:exhibition.title',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.exhibitionTitle.label\",\n \"defaultMessage\": \"Exhibition title\"\n },\n shortLabel: {\n \"id\": \"filter.exhibitionTitle.shortLabel\",\n \"defaultMessage\": \"Exhibition title\"\n }\n })\n },\n subject: {\n field: 'collectionspace_denorm:contentSubjectList.subject',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.subject.label\",\n \"defaultMessage\": \"Subject\"\n },\n shortLabel: {\n \"id\": \"filter.subject.shortLabel\",\n \"defaultMessage\": \"Subject\"\n }\n }),\n order: {\n _count: 'desc'\n }\n },\n technique: {\n field: 'collectionobjects_common:techniqueGroupList.technique',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.technique.label\",\n \"defaultMessage\": \"Technique\"\n },\n shortLabel: {\n \"id\": \"filter.technique.shortLabel\",\n \"defaultMessage\": \"Technique\"\n }\n })\n },\n hasMedia: {\n field: 'collectionspace_denorm:hasMedia',\n formatValue: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.boolean,\n showSearch: false,\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.hasMedia.label\",\n \"defaultMessage\": \"Has image\"\n },\n shortLabel: {\n \"id\": \"filter.hasMedia.shortLabel\",\n \"defaultMessage\": \"Has image\"\n }\n })\n }\n },\n groups: {\n group_id: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_id.label\",\n \"defaultMessage\": \"Identification\"\n }\n }),\n fields: ['responsibleDepartment', 'objectName', 'exhibitionTitle']\n },\n group_media: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_media.label\",\n \"defaultMessage\": \"Media\"\n }\n }),\n fields: ['hasMedia']\n },\n group_description: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_description.label\",\n \"defaultMessage\": \"Description\"\n }\n }),\n fields: ['material', 'subject', 'color']\n },\n group_production: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_production.label\",\n \"defaultMessage\": \"Production\"\n }\n }),\n fields: ['technique', 'objectProductionPerson', 'objectProductionOrganization', 'objectProductionPeople', 'objectProductionPlace', 'prodYears']\n }\n },\n layout: {\n filters1: ['group_id', 'group_media', 'group_description', 'group_production']\n }\n },\n detailTitle: data => {\n const {\n 'collectionobjects_common:titleGroupList': titleGroups\n } = data;\n if (titleGroups && titleGroups.length > 0) {\n const {\n title\n } = titleGroups[0];\n return title;\n }\n return undefined;\n },\n detailSubtitle: data => {\n const {\n 'collectionspace_denorm:objectNameList': objectNameGroups\n } = data;\n if (objectNameGroups && objectNameGroups.length > 0) {\n const {\n objectName\n } = objectNameGroups[0];\n return objectName;\n }\n return undefined;\n },\n detailDescription: data => {\n const {\n 'collectionobjects_common:briefDescriptions': briefDescriptions\n } = data;\n if (briefDescriptions && briefDescriptions.length > 0) {\n return briefDescriptions[0];\n }\n return undefined;\n },\n detailFields: {\n fields: {\n objectNumber: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectNumber.label\",\n \"defaultMessage\": \"Number\"\n }\n }),\n field: 'collectionobjects_common:objectNumber'\n },\n objectName: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectName.label\",\n \"defaultMessage\": \"Name\"\n }\n }),\n field: 'collectionspace_denorm:objectNameList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'objectName',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({})\n }))\n },\n responsibleDepartment: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.responsibleDepartment.label\",\n \"defaultMessage\": \"Department\"\n }\n }),\n field: 'collectionobjects_common:responsibleDepartments',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n linkTextFormat: formatDepartment\n }))\n },\n objectProductionPerson: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionPerson.label\",\n \"defaultMessage\": \"Person\"\n }\n }),\n field: 'collectionobjects_common:objectProductionPersonGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionPerson',\n roleFieldName: 'objectProductionPersonRole'\n }))\n },\n objectProductionOrganization: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionOrganization.label\",\n \"defaultMessage\": \"Organization\"\n }\n }),\n field: 'collectionobjects_common:objectProductionOrganizationGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionOrganization',\n roleFieldName: 'objectProductionOrganizationRole'\n }))\n },\n objectProductionPeople: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionPeople.label\",\n \"defaultMessage\": \"People/culture\"\n }\n }),\n field: 'collectionobjects_common:objectProductionPeopleGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionPeople',\n roleFieldName: 'objectProductionPeopleRole'\n }))\n },\n objectProductionPlace: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionPlace.label\",\n \"defaultMessage\": \"Place\"\n }\n }),\n field: 'collectionobjects_common:objectProductionPlaceGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'objectProductionPlace',\n roleFieldName: 'objectProductionPlaceRole'\n }))\n },\n objectProductionDate: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.objectProductionDate.label\",\n \"defaultMessage\": \"Date\"\n }\n }),\n field: 'collectionobjects_common:objectProductionDateGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'dateDisplayDate'\n }))\n },\n material: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.material.label\",\n \"defaultMessage\": \"Material\"\n }\n }),\n field: 'collectionspace_denorm:materialGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'material',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({})\n }))\n },\n technique: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.technique.label\",\n \"defaultMessage\": \"Technique\"\n }\n }),\n field: 'collectionobjects_common:techniqueGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'technique',\n roleFieldName: 'techniqueType'\n }))\n },\n subject: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.subject.label\",\n \"defaultMessage\": \"Subject\"\n }\n }),\n field: 'collectionspace_denorm:contentSubjectList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'subject',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({})\n }))\n },\n contentDescription: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.contentDescription.label\",\n \"defaultMessage\": \"Content Description\"\n }\n }),\n field: 'collectionobjects_common:contentDescription'\n },\n measuredPart: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.measuredPart.label\",\n \"defaultMessage\": \"Dimensions\"\n }\n }),\n field: 'collectionobjects_common:measuredPartGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'dimensionSummary',\n roleFieldName: 'measuredPart',\n linkName: false\n }))\n },\n creditLine: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.creditLine.label\",\n \"defaultMessage\": \"Credit\"\n }\n }),\n field: 'collectionspace_denorm:creditLine',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.list\n },\n rightStatement: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.rightStatement.label\",\n \"defaultMessage\": \"Right Statement\"\n }\n }),\n field: 'collectionobjects_common:rightsGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'rightStatement'\n }))\n },\n standardizedRightStatement: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.standardizedRightStatement.label\",\n \"defaultMessage\": \"Standardized Right Statement\"\n }\n }),\n field: 'collectionobjects_common:rightsGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'standardizedRightStatement',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n rightReproductionStatement: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailField.rightReproductionStatement.label\",\n \"defaultMessage\": \"Right Reproduction Statement\"\n }\n }),\n field: 'collectionobjects_common:rightsInGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'rightReproductionStatement'\n }))\n }\n },\n groups: {\n group_id: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_id.label\",\n \"defaultMessage\": \"Identification\"\n }\n }),\n fields: ['objectNumber', 'objectName', 'responsibleDepartment']\n },\n group_description: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_description.label\",\n \"defaultMessage\": \"Description\"\n }\n }),\n fields: ['material', 'technique', 'subject', 'contentDescription', 'measuredPart', 'creditLine']\n },\n group_production: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_production.label\",\n \"defaultMessage\": \"Production\"\n }\n }),\n fields: ['objectProductionPerson', 'objectProductionOrganization', 'objectProductionPeople', 'objectProductionPlace', 'objectProductionDate']\n },\n group_rights: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"detailGroup.group_rights.label\",\n \"defaultMessage\": \"Rights\"\n }\n }),\n fields: ['rightStatement', 'standardizedRightStatement', 'rightReproductionStatement']\n }\n },\n layout: {\n fields1: ['group_id', 'group_description', 'group_production', 'group_rights']\n }\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/config/default.js?");
|
|
723
723
|
|
|
724
724
|
/***/ }),
|
|
725
725
|
|
|
@@ -730,7 +730,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
730
730
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
731
731
|
|
|
732
732
|
"use strict";
|
|
733
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n gatewayUrl: 'http://localhost:8180/gateway/fcart',\n filters: {\n fields: {\n objectProductionPlace: {\n field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace.displayName'\n }\n }\n },\n detailFields: {\n fields: {\n materialTechniqueDescription: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_0__.defineMessages)({\n label: {\n \"id\": \"detailField.materialTechniqueDescription.label\",\n \"defaultMessage\": \"Medium\"\n }\n }),\n field: 'collectionobjects_fineart:materialTechniqueDescription'\n }\n },\n groups: {\n group_description: {\n fields: ['materialTechniqueDescription', 'material', 'technique', '
|
|
733
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n gatewayUrl: 'http://localhost:8180/gateway/fcart',\n filters: {\n fields: {\n objectProductionPlace: {\n field: 'collectionobjects_common:objectProductionPlaceGroupList.objectProductionPlace.displayName'\n }\n }\n },\n detailFields: {\n fields: {\n materialTechniqueDescription: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_0__.defineMessages)({\n label: {\n \"id\": \"detailField.materialTechniqueDescription.label\",\n \"defaultMessage\": \"Medium\"\n }\n }),\n field: 'collectionobjects_fineart:materialTechniqueDescription'\n }\n },\n groups: {\n group_description: {\n fields: ['materialTechniqueDescription', 'material', 'technique', 'subject', 'contentDescription', 'measuredPart', 'creditLine']\n }\n }\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/config/fcart.js?");
|
|
734
734
|
|
|
735
735
|
/***/ }),
|
|
736
736
|
|
|
@@ -774,7 +774,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
774
774
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
775
775
|
|
|
776
776
|
"use strict";
|
|
777
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n/* harmony import */ var cspace_refname__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cspace-refname */ \"./node_modules/cspace-refname/lib/index.js\");\n/* harmony import */ var _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/formatHelpers */ \"./src/helpers/formatHelpers.jsx\");\n\n\n\nconst composition = data => {\n const parts = ['materialCompositionFamilyName', 'materialCompositionClassName', 'materialCompositionGenericName'].map(fieldName => (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.renderFilterLink)(fieldName, (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName)(data[fieldName])));\n return (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.renderJoined)(parts, ' - ');\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n messages: {\n 'rootPage.title': 'Material Order',\n 'searchQueryInput.label': 'Search materials',\n 'searchQueryInput.placeholder': 'Search materials',\n 'searchResultStats.count': '{count, plural, one {# material} other {# materials}} found',\n 'institutionIndex.label': 'Samples at {title}'\n },\n gatewayUrl: 'http://localhost:8180/gateway/materials',\n detailPath: 'material',\n imageLoadDelay: 4000,\n pageLoadDelay: 1500,\n pageAutoLoadLimit: 40,\n defaultQuery: {\n term: {\n 'ecm:primaryType': 'Materialitem'\n }\n },\n includeFields: ['ecm:name', 'ecm:primaryType', 'collectionspace_denorm:holdingInstitutions', 'collectionspace_denorm:mediaCsid', 'collectionspace_denorm:title', 'materials_common:shortIdentifier'],\n referenceField: 'materials_common:shortIdentifier',\n storageKey: 'mo',\n searchResultImageDerivative: 'OriginalJpeg',\n detailImageDerivative: 'OriginalJpeg',\n detailTitle: data => {\n const {\n 'materials_common:materialTermGroupList': materialTermGroups\n } = data;\n if (materialTermGroups && materialTermGroups.length > 0) {\n const {\n termDisplayName,\n historicalStatus\n } = materialTermGroups[0];\n const title = termDisplayName + (historicalStatus === 'historical' ? ' (formerly known as)' : '');\n return title;\n }\n return undefined;\n },\n detailSubtitle: data => {\n const {\n 'materials_common:materialTermGroupList': materialTermGroups\n } = data;\n if (materialTermGroups && materialTermGroups.length > 1) {\n const displayNames = materialTermGroups.slice(1).map(termGroup => {\n const {\n termDisplayName,\n historicalStatus\n } = termGroup;\n return termDisplayName + (historicalStatus === 'historical' ? ' (formerly known as)' : '');\n });\n return (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.renderJoined)(displayNames, '\\n');\n }\n return undefined;\n },\n detailDescription: data => {\n const {\n 'materials_common:description': description\n } = data;\n return description;\n },\n filters: {\n fields: {\n material: {\n field: 'collectionobjects_common:materialGroupList.material'\n },\n materialTermAttributionContributingOrganization: {\n field: 'collectionspace_denorm:holdingInstitutions.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialTermAttributionContributingOrganization.label\",\n \"defaultMessage\": \"Institution\"\n }\n })\n },\n materialCompositionFamilyName: {\n field: 'materials_common:materialCompositionGroupList.materialCompositionFamilyName.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialCompositionFamilyName.label\",\n \"defaultMessage\": \"Family name\"\n },\n shortLabel: {\n \"id\": \"filter.materialCompositionFamilyName.shortLabel\",\n \"defaultMessage\": \"Family\"\n }\n })\n },\n materialCompositionClassName: {\n field: 'materials_common:materialCompositionGroupList.materialCompositionClassName.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialCompositionClassName.label\",\n \"defaultMessage\": \"Class name\"\n },\n shortLabel: {\n \"id\": \"filter.materialCompositionClassName.shortLabel\",\n \"defaultMessage\": \"Class\"\n }\n })\n },\n materialCompositionGenericName: {\n field: 'materials_common:materialCompositionGroupList.materialCompositionGenericName.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialCompositionGenericName.label\",\n \"defaultMessage\": \"Generic name\"\n },\n shortLabel: {\n \"id\": \"filter.materialCompositionGenericName.shortLabel\",\n \"defaultMessage\": \"Generic\"\n }\n })\n },\n typicalUses: {\n field: 'materials_common:typicalUses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.typicalUses.label\",\n \"defaultMessage\": \"Typical use\"\n }\n })\n },\n commonForm: {\n field: 'materials_common:commonForm.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.commonForm.label\",\n \"defaultMessage\": \"Common form\"\n }\n })\n },\n formType: {\n field: 'materials_common:formTypeGroupList.formType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.formType.label\",\n \"defaultMessage\": \"Form type\"\n }\n })\n },\n acousticalPropertyType: {\n field: 'materials_common:acousticalPropertyGroupList.acousticalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.acousticalPropertyType.label\",\n \"defaultMessage\": \"Acoustical property\"\n },\n shortLabel: {\n \"id\": \"filter.acousticalPropertyType.shortLabel\",\n \"defaultMessage\": \"Acoustical\"\n }\n })\n },\n durabilityPropertyType: {\n field: 'materials_common:durabilityPropertyGroupList.durabilityPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.durabilityPropertyType.label\",\n \"defaultMessage\": \"Durability property\"\n },\n shortLabel: {\n \"id\": \"filter.durabilityPropertyType.shortLabel\",\n \"defaultMessage\": \"Durability\"\n }\n })\n },\n electricalPropertyType: {\n field: 'materials_common:electricalPropertyGroupList.electricalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.electricalPropertyType.label\",\n \"defaultMessage\": \"Electrical property\"\n },\n shortLabel: {\n \"id\": \"filter.electricalPropertyType.shortLabel\",\n \"defaultMessage\": \"Electrical\"\n }\n })\n },\n hygrothermalPropertyType: {\n field: 'materials_common:hygrothermalPropertyGroupList.hygrothermalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.hygrothermalPropertyType.label\",\n \"defaultMessage\": \"Hygrothermal property\"\n },\n shortLabel: {\n \"id\": \"filter.hygrothermalPropertyType.shortLabel\",\n \"defaultMessage\": \"Hygrothermal\"\n }\n })\n },\n mechanicalPropertyType: {\n field: 'materials_common:mechanicalPropertyGroupList.mechanicalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.mechanicalPropertyType.label\",\n \"defaultMessage\": \"Mechanical property\"\n },\n shortLabel: {\n \"id\": \"filter.mechanicalPropertyType.shortLabel\",\n \"defaultMessage\": \"Mechanical\"\n }\n })\n },\n opticalPropertyType: {\n field: 'materials_common:opticalPropertyGroupList.opticalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.opticalPropertyType.label\",\n \"defaultMessage\": \"Optical property\"\n },\n shortLabel: {\n \"id\": \"filter.opticalPropertyType.shortLabel\",\n \"defaultMessage\": \"Optical\"\n }\n })\n },\n sensorialPropertyType: {\n field: 'materials_common:sensorialPropertyGroupList.sensorialPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.sensorialPropertyType.label\",\n \"defaultMessage\": \"Sensorial property\"\n },\n shortLabel: {\n \"id\": \"filter.sensorialPropertyType.shortLabel\",\n \"defaultMessage\": \"Sensorial\"\n }\n })\n },\n smartMaterialPropertyType: {\n field: 'materials_common:smartMaterialPropertyGroupList.smartMaterialPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.smartMaterialPropertyType.label\",\n \"defaultMessage\": \"Smart material property\"\n },\n shortLabel: {\n \"id\": \"filter.smartMaterialPropertyType.shortLabel\",\n \"defaultMessage\": \"Smart material\"\n }\n })\n },\n additionalPropertyType: {\n field: 'materials_common:additionalPropertyGroupList.additionalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.additionalPropertyType.label\",\n \"defaultMessage\": \"Additional property\"\n }\n })\n },\n recycledContentQualifier: {\n field: 'materials_common:recycledContentGroupList.recycledContentQualifier.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.recycledContentQualifier.label\",\n \"defaultMessage\": \"Recycled content\"\n },\n shortLabel: {\n \"id\": \"filter.recycledContentQualifier.shortLabel\",\n \"defaultMessage\": \"Recycled\"\n }\n })\n },\n lifecycleComponent: {\n field: 'materials_common:lifecycleComponentGroupList.lifecycleComponent.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.lifecycleComponent.label\",\n \"defaultMessage\": \"Lifecycle component\"\n },\n shortLabel: {\n \"id\": \"filter.lifecycleComponent.shortLabel\",\n \"defaultMessage\": \"Lifecycle\"\n }\n })\n },\n certificationProgram: {\n field: 'materials_common:certificationCreditGroupList.certificationProgram.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.certificationProgram.label\",\n \"defaultMessage\": \"Certification program\"\n },\n shortLabel: {\n \"id\": \"filter.certificationProgram.shortLabel\",\n \"defaultMessage\": \"Certification\"\n }\n })\n },\n castingProcesses: {\n field: 'materials_common:castingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.castingProcesses.label\",\n \"defaultMessage\": \"Casting process\"\n },\n shortLabel: {\n \"id\": \"filter.castingProcesses.shortLabel\",\n \"defaultMessage\": \"Casting\"\n }\n })\n },\n deformingProcesses: {\n field: 'materials_common:deformingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.deformingProcesses.label\",\n \"defaultMessage\": \"Deforming process\"\n },\n shortLabel: {\n \"id\": \"filter.deformingProcesses.shortLabel\",\n \"defaultMessage\": \"Deforming\"\n }\n })\n },\n joiningProcesses: {\n field: 'materials_common:joiningProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.joiningProcesses.label\",\n \"defaultMessage\": \"Joining process\"\n },\n shortLabel: {\n \"id\": \"filter.joiningProcesses.shortLabel\",\n \"defaultMessage\": \"Joining\"\n }\n })\n },\n machiningProcesses: {\n field: 'materials_common:machiningProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.machiningProcesses.label\",\n \"defaultMessage\": \"Machining process\"\n },\n shortLabel: {\n \"id\": \"filter.machiningProcesses.shortLabel\",\n \"defaultMessage\": \"Machining\"\n }\n })\n },\n moldingProcesses: {\n field: 'materials_common:moldingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.moldingProcesses.label\",\n \"defaultMessage\": \"Molding process\"\n },\n shortLabel: {\n \"id\": \"filter.moldingProcesses.shortLabel\",\n \"defaultMessage\": \"Molding\"\n }\n })\n },\n rapidPrototypingProcesses: {\n field: 'materials_common:rapidPrototypingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.rapidPrototypingProcesses.label\",\n \"defaultMessage\": \"Rapid prototyping process\"\n },\n shortLabel: {\n \"id\": \"filter.rapidPrototypingProcesses.shortLabel\",\n \"defaultMessage\": \"Rapid prototyping\"\n }\n })\n },\n surfacingProcesses: {\n field: 'materials_common:surfacingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.surfacingProcesses.label\",\n \"defaultMessage\": \"Surfacing process\"\n },\n shortLabel: {\n \"id\": \"filter.surfacingProcesses.shortLabel\",\n \"defaultMessage\": \"Surfacing\"\n }\n })\n },\n additionalProcess: {\n field: 'materials_common:additionalProcessGroupList.additionalProcess.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.additionalProcess.label\",\n \"defaultMessage\": \"Additional process\"\n }\n })\n }\n },\n groups: {\n group_institution: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_institution.label\",\n \"defaultMessage\": \"Holding Institution\"\n }\n }),\n fields: ['materialTermAttributionContributingOrganization']\n },\n group_composition: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_composition.label\",\n \"defaultMessage\": \"Composition\"\n }\n }),\n fields: ['materialCompositionFamilyName', 'materialCompositionClassName', 'materialCompositionGenericName']\n },\n group_use: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_use.label\",\n \"defaultMessage\": \"Use\"\n }\n }),\n fields: ['typicalUses']\n },\n group_form: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_form.label\",\n \"defaultMessage\": \"Form\"\n }\n }),\n fields: ['commonForm', 'formType']\n },\n group_properties: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_properties.label\",\n \"defaultMessage\": \"Properties\"\n }\n }),\n fields: ['acousticalPropertyType', 'durabilityPropertyType', 'electricalPropertyType', 'hygrothermalPropertyType', 'mechanicalPropertyType', 'opticalPropertyType', 'sensorialPropertyType', 'smartMaterialPropertyType', 'additionalPropertyType']\n },\n group_ecology: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_ecology.label\",\n \"defaultMessage\": \"Material Ecology\"\n }\n }),\n fields: ['recycledContentQualifier', 'lifecycleComponent', 'certificationProgram']\n },\n group_processing: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_processing.label\",\n \"defaultMessage\": \"Processing\"\n }\n }),\n fields: ['castingProcesses', 'deformingProcesses', 'joiningProcesses', 'machiningProcesses', 'moldingProcesses', 'rapidPrototypingProcesses', 'surfacingProcesses', 'additionalProcess']\n }\n },\n layout: {\n filters1: ['group_institution', 'group_composition', 'group_use', 'group_form', 'group_properties', 'group_ecology', 'group_processing']\n }\n },\n detailFields: {\n fields: {\n material: {\n field: 'collectionobjects_common:materialGroupList'\n },\n featuredCollectionGroupList: {\n field: 'materials_common:featuredCollectionGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'featuredCollection',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n materialCompositionGroupList: {\n field: 'materials_common:materialCompositionGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)(composition)\n },\n typicalUses: {\n field: 'materials_common:typicalUses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n featuredApplicationGroupList: {\n field: 'materials_common:featuredApplicationGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'featuredApplication',\n noteFieldName: 'featuredApplicationNote'\n }))\n },\n materialProductionOrganizationGroupList: {\n label: 'Company',\n field: 'materials_common:materialProductionOrganizationGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'materialProductionOrganization',\n roleFieldName: 'materialProductionOrganizationRole',\n linkName: false\n }))\n },\n materialProductionPersonGroupList: {\n label: 'Person',\n field: 'materials_common:materialProductionPersonGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'materialProductionPerson',\n roleFieldName: 'materialProductionPersonRole',\n linkName: false\n }))\n },\n materialProductionPlaceGroupList: {\n label: 'Place',\n field: 'materials_common:materialProductionPlaceGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'materialProductionPlace',\n roleFieldName: 'materialProductionPlaceRole',\n linkName: false\n }))\n },\n productionDate: {\n label: 'Date',\n field: 'materials_common:productionDate',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'dateDisplayDate'\n })\n },\n discontinued: {\n label: 'Discontinued',\n field: 'materials_common:discontinued'\n },\n productionNote: {\n label: 'Production Note',\n field: 'materials_common:productionNote'\n },\n externalUrlGroupList: {\n field: 'materials_common:externalUrlGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.linkText)({\n urlFieldName: 'externalUrl',\n textFieldName: 'externalUrlNote',\n type: 'external'\n }))\n },\n additionalResourceGroupList: {\n field: 'materials_common:additionalResourceGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'additionalResource',\n noteFieldName: 'additionalResourceNote'\n }))\n },\n commonForm: {\n label: 'Common form',\n field: 'materials_common:commonForm',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n })\n },\n formTypeGroupList: {\n label: 'Form type',\n field: 'materials_common:formTypeGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'formType',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n })\n }))\n },\n acousticalPropertyGroupList: {\n label: 'Acoustical',\n field: 'materials_common:acousticalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'acousticalPropertyType',\n noteFieldName: 'acousticalPropertyNote'\n }))\n },\n durabilityPropertyGroupList: {\n label: 'Durability',\n field: 'materials_common:durabilityPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'durabilityPropertyType',\n noteFieldName: 'durabilityPropertyNote'\n }))\n },\n electricalPropertyGroupList: {\n label: 'Electrical',\n field: 'materials_common:electricalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'electricalPropertyType',\n noteFieldName: 'electricalPropertyNote'\n }))\n },\n hygrothermalPropertyGroupList: {\n label: 'Hygro-thermal',\n field: 'materials_common:hygrothermalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'hygrothermalPropertyType',\n noteFieldName: 'hygrothermalPropertyNote'\n }))\n },\n mechanicalPropertyGroupList: {\n label: 'Mechanical',\n field: 'materials_common:mechanicalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'mechanicalPropertyType',\n noteFieldName: 'mechanicalPropertyNote'\n }))\n },\n opticalPropertyGroupList: {\n label: 'Optical',\n field: 'materials_common:opticalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'opticalPropertyType',\n noteFieldName: 'opticalPropertyNote'\n }))\n },\n sensorialPropertyGroupList: {\n label: 'Sensorial',\n field: 'materials_common:sensorialPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'sensorialPropertyType',\n noteFieldName: 'sensorialPropertyNote'\n }))\n },\n smartMaterialPropertyGroupList: {\n label: 'Smart material',\n field: 'materials_common:smartMaterialPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'smartMaterialPropertyType',\n noteFieldName: 'smartMaterialPropertyNote'\n }))\n },\n additionalPropertyGroupList: {\n label: 'Additional',\n field: 'materials_common:additionalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'additionalPropertyType',\n noteFieldName: 'additionalPropertyNote'\n }))\n },\n propertyNote: {\n label: 'Property note',\n field: 'materials_common:propertyNote'\n },\n recycledContentGroupList: {\n label: 'Recycled content',\n field: 'materials_common:recycledContentGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.numericRange)({\n lowFieldName: 'recycledContent',\n highFieldName: 'recycledContentHigh',\n unit: '%',\n qualifierFieldName: 'recycledContentQualifier',\n linkQualifier: true\n }))\n },\n lifecycleComponentGroupList: {\n label: 'Lifecycle component',\n field: 'materials_common:lifecycleComponentGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'lifecycleComponent',\n noteFieldName: 'lifecycleComponentNote',\n noteLabel: '',\n separator: ' - '\n }))\n },\n embodiedEnergyGroupList: {\n label: 'Embodied energy',\n field: 'materials_common:embodiedEnergyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.numericRange)({\n lowFieldName: 'embodiedEnergyValue',\n highFieldName: 'embodiedEnergyValueHigh',\n unitFieldName: 'embodiedEnergyUnit',\n qualifierFieldName: 'embodiedEnergyNote',\n qualifierSeparator: ' - '\n }))\n },\n certificationCreditGroupList: {\n label: 'Certification credit',\n field: 'materials_common:certificationCreditGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'certificationProgram',\n noteFieldName: 'certificationCreditNote',\n noteLabel: '',\n separator: ' - '\n }))\n },\n ecologyNote: {\n label: 'Material ecology note',\n field: 'materials_common:ecologyNote'\n },\n castingProcesses: {\n label: 'Casting',\n field: 'materials_common:castingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n joiningProcesses: {\n label: 'Joining',\n field: 'materials_common:joiningProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n moldingProcesses: {\n label: 'Molding',\n field: 'materials_common:moldingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n surfacingProcesses: {\n label: 'Surfacing',\n field: 'materials_common:surfacingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n deformingProcesses: {\n label: 'Deforming',\n field: 'materials_common:deformingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n machiningProcesses: {\n label: 'Machining',\n field: 'materials_common:machiningProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n rapidPrototypingProcesses: {\n label: 'Rapid prototyping',\n field: 'materials_common:rapidPrototypingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n additionalProcessGroupList: {\n label: 'Additional process',\n field: 'materials_common:additionalProcessGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'additionalProcess',\n noteFieldName: 'additionalProcessNote'\n }))\n },\n processNote: {\n label: 'Process note',\n field: 'materials_common:processNote'\n }\n },\n groups: {\n group_featured_collection: {\n label: 'Featured collection',\n fields: ['featuredCollectionGroupList']\n },\n group_composition: {\n label: 'Composition',\n fields: ['materialCompositionGroupList']\n },\n group_use: {\n label: 'Typical use',\n fields: ['typicalUses']\n },\n group_application: {\n label: 'Featured application',\n fields: ['featuredApplicationGroupList']\n },\n group_production: {\n label: 'Production',\n fields: ['materialProductionOrganizationGroupList', 'materialProductionPersonGroupList', 'materialProductionPlaceGroupList', 'productionDate', 'discontinued', 'productionNote']\n },\n group_link: {\n label: 'External links',\n fields: ['externalUrlGroupList']\n },\n group_standard: {\n label: 'External standard',\n fields: ['additionalResourceGroupList']\n },\n group_form: {\n label: 'Form',\n fields: ['commonForm', 'formTypeGroupList']\n },\n group_property: {\n label: 'Properties',\n fields: ['acousticalPropertyGroupList', 'durabilityPropertyGroupList', 'electricalPropertyGroupList', 'hygrothermalPropertyGroupList', 'mechanicalPropertyGroupList', 'opticalPropertyGroupList', 'sensorialPropertyGroupList', 'smartMaterialPropertyGroupList', 'additionalPropertyGroupList', 'propertyNote']\n },\n group_ecology: {\n label: 'Material ecology',\n fields: ['recycledContentGroupList', 'lifecycleComponentGroupList', 'embodiedEnergyGroupList', 'certificationCreditGroupList', 'ecologyNote']\n },\n group_process: {\n label: 'Processes',\n fields: ['castingProcesses', 'joiningProcesses', 'moldingProcesses', 'surfacingProcesses', 'deformingProcesses', 'machiningProcesses', 'rapidPrototypingProcesses', 'additionalProcessGroupList', 'processNote']\n }\n },\n layout: {\n fields1: ['group_featured_collection', 'group_composition', 'group_use', 'group_application', 'group_production', 'group_link', 'group_standard', 'group_form', 'group_property'],\n fields2: ['group_ecology', 'group_process']\n }\n },\n institutionHoldings: {\n query: data => {\n const {\n 'collectionspace_core:refName': refName\n } = data;\n const shortId = (0,cspace_refname__WEBPACK_IMPORTED_MODULE_0__.getItemShortID)(refName);\n return {\n term: {\n 'collectionobjects_common:materialGroupList.material.shortid': shortId\n }\n };\n },\n sortField: 'collectionobjects_common:objectNumber',\n title: {\n name: 'collectionobjects_common:otherNumberList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.pickFromList)({\n condition: {\n path: 'numberType',\n value: 'callnumber'\n },\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'numberValue'\n })\n })\n },\n detailFields: {\n fields: {\n otherNumberList: {\n label: 'Call number',\n field: 'collectionobjects_common:otherNumberList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.pickAllFromList)({\n condition: {\n path: 'numberType',\n value: 'callnumber'\n },\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'numberValue'\n })\n }),\n className: 'title'\n },\n collection: {\n label: 'Collection',\n field: 'collectionobjects_common:collection',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n },\n namedCollection: {\n label: 'Named collection',\n field: 'collectionobjects_common:namedCollections',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)(_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName)\n },\n computedCurrentLocation: {\n label: 'Current location',\n field: 'collectionobjects_common:computedCurrentLocation',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n },\n materialPhysicalDescriptions: {\n label: 'Physical description',\n field: 'collectionobjects_materials:materialPhysicalDescriptions',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.paragraphs\n },\n materialContainerGroupList: {\n label: 'Container',\n field: 'collectionobjects_materials:materialContainerGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'container',\n noteFieldName: 'containerNote',\n linkValue: false\n }))\n },\n materialConditionGroupList: {\n label: 'Condition',\n field: 'collectionobjects_materials:materialConditionGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'condition',\n noteFieldName: 'conditionNote',\n linkValue: false\n }))\n },\n materialHandlingGroupList: {\n label: 'Handling',\n field: 'collectionobjects_materials:materialHandlingGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'handling',\n noteFieldName: 'handlingNote',\n linkValue: false\n }))\n },\n colors: {\n label: 'Color',\n field: 'collectionobjects_common:colors',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineList\n },\n materialGenericColors: {\n label: 'Generic color',\n field: 'collectionobjects_materials:materialGenericColors',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)(_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName)\n },\n materialFinishGroupList: {\n label: 'Finish',\n field: 'collectionobjects_materials:materialFinishGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'finish',\n noteFieldName: 'finishNote',\n linkValue: false\n }))\n },\n numberOfObjects: {\n label: 'Holdings',\n field: 'collectionobjects_common:numberOfObjects'\n },\n objectStatusList: {\n label: 'Type',\n field: 'collectionobjects_common:objectStatusList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)(_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.objectTypeValue)\n },\n briefDescriptions: {\n label: 'Production description',\n field: 'collectionobjects_common:briefDescriptions',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.paragraphs\n },\n measuredPartGroupList: {\n label: 'Size',\n field: 'collectionobjects_common:measuredPartGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'dimensionSummary'\n }))\n },\n objectNumber: {\n label: 'System number',\n field: 'collectionobjects_common:objectNumber'\n }\n },\n groups: {\n group_sample_otherNumberList: {\n fields: ['otherNumberList']\n },\n group_sample_collection: {\n fields: ['collection']\n },\n group_sample_namedCollection: {\n fields: ['namedCollection']\n },\n group_sample_computedCurrentLocation: {\n fields: ['computedCurrentLocation']\n },\n group_sample_materialPhysicalDescriptions: {\n fields: ['materialPhysicalDescriptions']\n },\n group_sample_condition: {\n fields: ['materialContainerGroupList', 'materialConditionGroupList', 'materialHandlingGroupList']\n },\n group_sample_description: {\n fields: ['colors', 'materialGenericColors', 'materialFinishGroupList']\n },\n group_sample_holdings: {\n fields: ['numberOfObjects', 'objectStatusList'],\n className: 'inline'\n },\n group_sample_briefDescriptions: {\n fields: ['briefDescriptions']\n },\n group_sample_measuredPartGroupList: {\n fields: ['measuredPartGroupList']\n },\n group_sample_system: {\n fields: ['objectNumber']\n }\n },\n layout: {\n 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']\n }\n }\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/config/materials.js?");
|
|
777
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_intl__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-intl */ \"./node_modules/react-intl/lib/index.js\");\n/* harmony import */ var cspace_refname__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! cspace-refname */ \"./node_modules/cspace-refname/lib/index.js\");\n/* harmony import */ var _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/formatHelpers */ \"./src/helpers/formatHelpers.jsx\");\n\n\n\nconst composition = data => {\n const parts = ['materialCompositionFamilyName', 'materialCompositionClassName', 'materialCompositionGenericName'].map(fieldName => (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.renderFilterLink)(fieldName, (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName)(data[fieldName])));\n return (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.renderJoined)(parts, ' - ');\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({\n messages: {\n 'rootPage.title': 'Material Order',\n 'searchQueryInput.label': 'Search materials',\n 'searchQueryInput.placeholder': 'Search materials',\n 'searchResultStats.count': '{count, plural, one {# material} other {# materials}} found',\n 'institutionIndex.label': 'Samples at {title}'\n },\n gatewayUrl: 'http://localhost:8180/gateway/materials',\n detailPath: 'material',\n imageLoadDelay: 4000,\n pageLoadDelay: 1500,\n pageAutoLoadLimit: 40,\n defaultQuery: {\n term: {\n 'ecm:primaryType': 'Materialitem'\n }\n },\n includeFields: ['ecm:name', 'ecm:primaryType', 'collectionspace_denorm:holdingInstitutions', 'collectionspace_denorm:mediaCsid', 'collectionspace_denorm:title', 'materials_common:shortIdentifier'],\n referenceField: 'materials_common:shortIdentifier',\n storageKey: 'mo',\n searchResultImageDerivative: 'OriginalJpeg',\n detailImageDerivative: 'OriginalJpeg',\n detailTitle: data => {\n const {\n 'materials_common:materialTermGroupList': materialTermGroups\n } = data;\n if (materialTermGroups && materialTermGroups.length > 0) {\n const {\n termDisplayName,\n historicalStatus\n } = materialTermGroups[0];\n const title = termDisplayName + (historicalStatus === 'historical' ? ' (formerly known as)' : '');\n return title;\n }\n return undefined;\n },\n detailSubtitle: data => {\n const {\n 'materials_common:materialTermGroupList': materialTermGroups\n } = data;\n if (materialTermGroups && materialTermGroups.length > 1) {\n const displayNames = materialTermGroups.slice(1).map(termGroup => {\n const {\n termDisplayName,\n historicalStatus\n } = termGroup;\n return termDisplayName + (historicalStatus === 'historical' ? ' (formerly known as)' : '');\n });\n return (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.renderJoined)(displayNames, '\\n');\n }\n return undefined;\n },\n detailDescription: data => {\n const {\n 'materials_common:description': description\n } = data;\n return description;\n },\n filters: {\n fields: {\n material: {\n field: 'collectionobjects_common:materialGroupList.material'\n },\n materialTermAttributionContributingOrganization: {\n field: 'collectionspace_denorm:holdingInstitutions.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialTermAttributionContributingOrganization.label\",\n \"defaultMessage\": \"Institution\"\n }\n })\n },\n materialCompositionFamilyName: {\n field: 'materials_common:materialCompositionGroupList.materialCompositionFamilyName.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialCompositionFamilyName.label\",\n \"defaultMessage\": \"Family name\"\n },\n shortLabel: {\n \"id\": \"filter.materialCompositionFamilyName.shortLabel\",\n \"defaultMessage\": \"Family\"\n }\n })\n },\n materialCompositionClassName: {\n field: 'materials_common:materialCompositionGroupList.materialCompositionClassName.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialCompositionClassName.label\",\n \"defaultMessage\": \"Class name\"\n },\n shortLabel: {\n \"id\": \"filter.materialCompositionClassName.shortLabel\",\n \"defaultMessage\": \"Class\"\n }\n })\n },\n materialCompositionGenericName: {\n field: 'materials_common:materialCompositionGroupList.materialCompositionGenericName.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.materialCompositionGenericName.label\",\n \"defaultMessage\": \"Generic name\"\n },\n shortLabel: {\n \"id\": \"filter.materialCompositionGenericName.shortLabel\",\n \"defaultMessage\": \"Generic\"\n }\n })\n },\n typicalUses: {\n field: 'materials_common:typicalUses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.typicalUses.label\",\n \"defaultMessage\": \"Typical use\"\n }\n })\n },\n commonForm: {\n field: 'materials_common:commonForm.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.commonForm.label\",\n \"defaultMessage\": \"Common form\"\n }\n })\n },\n formType: {\n field: 'materials_common:formTypeGroupList.formType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.formType.label\",\n \"defaultMessage\": \"Form type\"\n }\n })\n },\n acousticalPropertyType: {\n field: 'materials_common:acousticalPropertyGroupList.acousticalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.acousticalPropertyType.label\",\n \"defaultMessage\": \"Acoustical property\"\n },\n shortLabel: {\n \"id\": \"filter.acousticalPropertyType.shortLabel\",\n \"defaultMessage\": \"Acoustical\"\n }\n })\n },\n durabilityPropertyType: {\n field: 'materials_common:durabilityPropertyGroupList.durabilityPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.durabilityPropertyType.label\",\n \"defaultMessage\": \"Durability property\"\n },\n shortLabel: {\n \"id\": \"filter.durabilityPropertyType.shortLabel\",\n \"defaultMessage\": \"Durability\"\n }\n })\n },\n electricalPropertyType: {\n field: 'materials_common:electricalPropertyGroupList.electricalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.electricalPropertyType.label\",\n \"defaultMessage\": \"Electrical property\"\n },\n shortLabel: {\n \"id\": \"filter.electricalPropertyType.shortLabel\",\n \"defaultMessage\": \"Electrical\"\n }\n })\n },\n hygrothermalPropertyType: {\n field: 'materials_common:hygrothermalPropertyGroupList.hygrothermalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.hygrothermalPropertyType.label\",\n \"defaultMessage\": \"Hygrothermal property\"\n },\n shortLabel: {\n \"id\": \"filter.hygrothermalPropertyType.shortLabel\",\n \"defaultMessage\": \"Hygrothermal\"\n }\n })\n },\n mechanicalPropertyType: {\n field: 'materials_common:mechanicalPropertyGroupList.mechanicalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.mechanicalPropertyType.label\",\n \"defaultMessage\": \"Mechanical property\"\n },\n shortLabel: {\n \"id\": \"filter.mechanicalPropertyType.shortLabel\",\n \"defaultMessage\": \"Mechanical\"\n }\n })\n },\n opticalPropertyType: {\n field: 'materials_common:opticalPropertyGroupList.opticalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.opticalPropertyType.label\",\n \"defaultMessage\": \"Optical property\"\n },\n shortLabel: {\n \"id\": \"filter.opticalPropertyType.shortLabel\",\n \"defaultMessage\": \"Optical\"\n }\n })\n },\n sensorialPropertyType: {\n field: 'materials_common:sensorialPropertyGroupList.sensorialPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.sensorialPropertyType.label\",\n \"defaultMessage\": \"Sensorial property\"\n },\n shortLabel: {\n \"id\": \"filter.sensorialPropertyType.shortLabel\",\n \"defaultMessage\": \"Sensorial\"\n }\n })\n },\n smartMaterialPropertyType: {\n field: 'materials_common:smartMaterialPropertyGroupList.smartMaterialPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.smartMaterialPropertyType.label\",\n \"defaultMessage\": \"Smart material property\"\n },\n shortLabel: {\n \"id\": \"filter.smartMaterialPropertyType.shortLabel\",\n \"defaultMessage\": \"Smart material\"\n }\n })\n },\n additionalPropertyType: {\n field: 'materials_common:additionalPropertyGroupList.additionalPropertyType.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.additionalPropertyType.label\",\n \"defaultMessage\": \"Additional property\"\n }\n })\n },\n recycledContentQualifier: {\n field: 'materials_common:recycledContentGroupList.recycledContentQualifier.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.recycledContentQualifier.label\",\n \"defaultMessage\": \"Recycled content\"\n },\n shortLabel: {\n \"id\": \"filter.recycledContentQualifier.shortLabel\",\n \"defaultMessage\": \"Recycled\"\n }\n })\n },\n lifecycleComponent: {\n field: 'materials_common:lifecycleComponentGroupList.lifecycleComponent.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.lifecycleComponent.label\",\n \"defaultMessage\": \"Lifecycle component\"\n },\n shortLabel: {\n \"id\": \"filter.lifecycleComponent.shortLabel\",\n \"defaultMessage\": \"Lifecycle\"\n }\n })\n },\n certificationProgram: {\n field: 'materials_common:certificationCreditGroupList.certificationProgram.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.certificationProgram.label\",\n \"defaultMessage\": \"Certification program\"\n },\n shortLabel: {\n \"id\": \"filter.certificationProgram.shortLabel\",\n \"defaultMessage\": \"Certification\"\n }\n })\n },\n castingProcesses: {\n field: 'materials_common:castingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.castingProcesses.label\",\n \"defaultMessage\": \"Casting process\"\n },\n shortLabel: {\n \"id\": \"filter.castingProcesses.shortLabel\",\n \"defaultMessage\": \"Casting\"\n }\n })\n },\n deformingProcesses: {\n field: 'materials_common:deformingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.deformingProcesses.label\",\n \"defaultMessage\": \"Deforming process\"\n },\n shortLabel: {\n \"id\": \"filter.deformingProcesses.shortLabel\",\n \"defaultMessage\": \"Deforming\"\n }\n })\n },\n joiningProcesses: {\n field: 'materials_common:joiningProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.joiningProcesses.label\",\n \"defaultMessage\": \"Joining process\"\n },\n shortLabel: {\n \"id\": \"filter.joiningProcesses.shortLabel\",\n \"defaultMessage\": \"Joining\"\n }\n })\n },\n machiningProcesses: {\n field: 'materials_common:machiningProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.machiningProcesses.label\",\n \"defaultMessage\": \"Machining process\"\n },\n shortLabel: {\n \"id\": \"filter.machiningProcesses.shortLabel\",\n \"defaultMessage\": \"Machining\"\n }\n })\n },\n moldingProcesses: {\n field: 'materials_common:moldingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.moldingProcesses.label\",\n \"defaultMessage\": \"Molding process\"\n },\n shortLabel: {\n \"id\": \"filter.moldingProcesses.shortLabel\",\n \"defaultMessage\": \"Molding\"\n }\n })\n },\n rapidPrototypingProcesses: {\n field: 'materials_common:rapidPrototypingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.rapidPrototypingProcesses.label\",\n \"defaultMessage\": \"Rapid prototyping process\"\n },\n shortLabel: {\n \"id\": \"filter.rapidPrototypingProcesses.shortLabel\",\n \"defaultMessage\": \"Rapid prototyping\"\n }\n })\n },\n surfacingProcesses: {\n field: 'materials_common:surfacingProcesses.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.surfacingProcesses.label\",\n \"defaultMessage\": \"Surfacing process\"\n },\n shortLabel: {\n \"id\": \"filter.surfacingProcesses.shortLabel\",\n \"defaultMessage\": \"Surfacing\"\n }\n })\n },\n additionalProcess: {\n field: 'materials_common:additionalProcessGroupList.additionalProcess.displayName',\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filter.additionalProcess.label\",\n \"defaultMessage\": \"Additional process\"\n }\n })\n }\n },\n groups: {\n group_institution: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_institution.label\",\n \"defaultMessage\": \"Holding Institution\"\n }\n }),\n fields: ['materialTermAttributionContributingOrganization']\n },\n group_composition: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_composition.label\",\n \"defaultMessage\": \"Composition\"\n }\n }),\n fields: ['materialCompositionFamilyName', 'materialCompositionClassName', 'materialCompositionGenericName']\n },\n group_use: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_use.label\",\n \"defaultMessage\": \"Use\"\n }\n }),\n fields: ['typicalUses']\n },\n group_form: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_form.label\",\n \"defaultMessage\": \"Form\"\n }\n }),\n fields: ['commonForm', 'formType']\n },\n group_properties: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_properties.label\",\n \"defaultMessage\": \"Properties\"\n }\n }),\n fields: ['acousticalPropertyType', 'durabilityPropertyType', 'electricalPropertyType', 'hygrothermalPropertyType', 'mechanicalPropertyType', 'opticalPropertyType', 'sensorialPropertyType', 'smartMaterialPropertyType', 'additionalPropertyType']\n },\n group_ecology: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_ecology.label\",\n \"defaultMessage\": \"Material Ecology\"\n }\n }),\n fields: ['recycledContentQualifier', 'lifecycleComponent', 'certificationProgram']\n },\n group_processing: {\n messages: (0,react_intl__WEBPACK_IMPORTED_MODULE_2__.defineMessages)({\n label: {\n \"id\": \"filterGroup.group_processing.label\",\n \"defaultMessage\": \"Processing\"\n }\n }),\n fields: ['castingProcesses', 'deformingProcesses', 'joiningProcesses', 'machiningProcesses', 'moldingProcesses', 'rapidPrototypingProcesses', 'surfacingProcesses', 'additionalProcess']\n }\n },\n layout: {\n filters1: ['group_institution', 'group_composition', 'group_use', 'group_form', 'group_properties', 'group_ecology', 'group_processing']\n }\n },\n detailFields: {\n fields: {\n material: {\n field: 'collectionobjects_common:materialGroupList'\n },\n featuredCollectionGroupList: {\n field: 'materials_common:featuredCollectionGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'featuredCollection',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n materialCompositionGroupList: {\n field: 'materials_common:materialCompositionGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)(composition)\n },\n typicalUses: {\n field: 'materials_common:typicalUses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n featuredApplicationGroupList: {\n field: 'materials_common:featuredApplicationGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'featuredApplication',\n noteFieldName: 'featuredApplicationNote'\n }))\n },\n materialProductionOrganizationGroupList: {\n label: 'Company',\n field: 'materials_common:materialProductionOrganizationGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'materialProductionOrganization',\n roleFieldName: 'materialProductionOrganizationRole',\n linkName: false\n }))\n },\n materialProductionPersonGroupList: {\n label: 'Person',\n field: 'materials_common:materialProductionPersonGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'materialProductionPerson',\n roleFieldName: 'materialProductionPersonRole',\n linkName: false\n }))\n },\n materialProductionPlaceGroupList: {\n label: 'Place',\n field: 'materials_common:materialProductionPlaceGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.nameRole)({\n nameFieldName: 'materialProductionPlace',\n roleFieldName: 'materialProductionPlaceRole',\n linkName: false\n }))\n },\n productionDate: {\n label: 'Date',\n field: 'materials_common:productionDate',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'dateDisplayDate'\n })\n },\n discontinued: {\n label: 'Discontinued',\n field: 'materials_common:discontinued'\n },\n productionNote: {\n label: 'Production Note',\n field: 'materials_common:productionNote'\n },\n externalUrlGroupList: {\n field: 'materials_common:externalUrlGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.linkText)({\n urlFieldName: 'externalUrl',\n textFieldName: 'externalUrlNote',\n type: 'external'\n }))\n },\n additionalResourceGroupList: {\n field: 'materials_common:additionalResourceGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'additionalResource',\n noteFieldName: 'additionalResourceNote'\n }))\n },\n commonForm: {\n label: 'Common form',\n field: 'materials_common:commonForm',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n })\n },\n formTypeGroupList: {\n label: 'Form type',\n field: 'materials_common:formTypeGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'formType',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n })\n }))\n },\n acousticalPropertyGroupList: {\n label: 'Acoustical',\n field: 'materials_common:acousticalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'acousticalPropertyType',\n noteFieldName: 'acousticalPropertyNote'\n }))\n },\n durabilityPropertyGroupList: {\n label: 'Durability',\n field: 'materials_common:durabilityPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'durabilityPropertyType',\n noteFieldName: 'durabilityPropertyNote'\n }))\n },\n electricalPropertyGroupList: {\n label: 'Electrical',\n field: 'materials_common:electricalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'electricalPropertyType',\n noteFieldName: 'electricalPropertyNote'\n }))\n },\n hygrothermalPropertyGroupList: {\n label: 'Hygro-thermal',\n field: 'materials_common:hygrothermalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'hygrothermalPropertyType',\n noteFieldName: 'hygrothermalPropertyNote'\n }))\n },\n mechanicalPropertyGroupList: {\n label: 'Mechanical',\n field: 'materials_common:mechanicalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'mechanicalPropertyType',\n noteFieldName: 'mechanicalPropertyNote'\n }))\n },\n opticalPropertyGroupList: {\n label: 'Optical',\n field: 'materials_common:opticalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'opticalPropertyType',\n noteFieldName: 'opticalPropertyNote'\n }))\n },\n sensorialPropertyGroupList: {\n label: 'Sensorial',\n field: 'materials_common:sensorialPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'sensorialPropertyType',\n noteFieldName: 'sensorialPropertyNote'\n }))\n },\n smartMaterialPropertyGroupList: {\n label: 'Smart material',\n field: 'materials_common:smartMaterialPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'smartMaterialPropertyType',\n noteFieldName: 'smartMaterialPropertyNote'\n }))\n },\n additionalPropertyGroupList: {\n label: 'Additional',\n field: 'materials_common:additionalPropertyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'additionalPropertyType',\n noteFieldName: 'additionalPropertyNote'\n }))\n },\n propertyNote: {\n label: 'Property note',\n field: 'materials_common:propertyNote'\n },\n recycledContentGroupList: {\n label: 'Recycled content',\n field: 'materials_common:recycledContentGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.numericRange)({\n lowFieldName: 'recycledContent',\n highFieldName: 'recycledContentHigh',\n unit: '%',\n qualifierFieldName: 'recycledContentQualifier',\n linkQualifier: true\n }))\n },\n lifecycleComponentGroupList: {\n label: 'Lifecycle component',\n field: 'materials_common:lifecycleComponentGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'lifecycleComponent',\n noteFieldName: 'lifecycleComponentNote',\n noteLabel: '',\n separator: ' - '\n }))\n },\n embodiedEnergyGroupList: {\n label: 'Embodied energy',\n field: 'materials_common:embodiedEnergyGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.numericRange)({\n lowFieldName: 'embodiedEnergyValue',\n highFieldName: 'embodiedEnergyValueHigh',\n unitFieldName: 'embodiedEnergyUnit',\n qualifierFieldName: 'embodiedEnergyNote',\n qualifierSeparator: ' - '\n }))\n },\n certificationCreditGroupList: {\n label: 'Certification credit',\n field: 'materials_common:certificationCreditGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'certificationProgram',\n noteFieldName: 'certificationCreditNote',\n noteLabel: '',\n separator: ' - '\n }))\n },\n ecologyNote: {\n label: 'Material ecology note',\n field: 'materials_common:ecologyNote'\n },\n castingProcesses: {\n label: 'Casting',\n field: 'materials_common:castingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n joiningProcesses: {\n label: 'Joining',\n field: 'materials_common:joiningProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n moldingProcesses: {\n label: 'Molding',\n field: 'materials_common:moldingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n surfacingProcesses: {\n label: 'Surfacing',\n field: 'materials_common:surfacingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n deformingProcesses: {\n label: 'Deforming',\n field: 'materials_common:deformingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n machiningProcesses: {\n label: 'Machining',\n field: 'materials_common:machiningProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n rapidPrototypingProcesses: {\n label: 'Rapid prototyping',\n field: 'materials_common:rapidPrototypingProcesses',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.filterLink)({\n filterValueFormat: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n }))\n },\n additionalProcessGroupList: {\n label: 'Additional process',\n field: 'materials_common:additionalProcessGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'additionalProcess',\n noteFieldName: 'additionalProcessNote'\n }))\n },\n processNote: {\n label: 'Process note',\n field: 'materials_common:processNote'\n }\n },\n groups: {\n group_featured_collection: {\n label: 'Featured collection',\n fields: ['featuredCollectionGroupList']\n },\n group_composition: {\n label: 'Composition',\n fields: ['materialCompositionGroupList']\n },\n group_use: {\n label: 'Typical use',\n fields: ['typicalUses']\n },\n group_application: {\n label: 'Featured application',\n fields: ['featuredApplicationGroupList']\n },\n group_production: {\n label: 'Production',\n fields: ['materialProductionOrganizationGroupList', 'materialProductionPersonGroupList', 'materialProductionPlaceGroupList', 'productionDate', 'discontinued', 'productionNote']\n },\n group_link: {\n label: 'External links',\n fields: ['externalUrlGroupList']\n },\n group_standard: {\n label: 'External standard',\n fields: ['additionalResourceGroupList']\n },\n group_form: {\n label: 'Form',\n fields: ['commonForm', 'formTypeGroupList']\n },\n group_property: {\n label: 'Properties',\n fields: ['acousticalPropertyGroupList', 'durabilityPropertyGroupList', 'electricalPropertyGroupList', 'hygrothermalPropertyGroupList', 'mechanicalPropertyGroupList', 'opticalPropertyGroupList', 'sensorialPropertyGroupList', 'smartMaterialPropertyGroupList', 'additionalPropertyGroupList', 'propertyNote']\n },\n group_ecology: {\n label: 'Material ecology',\n fields: ['recycledContentGroupList', 'lifecycleComponentGroupList', 'embodiedEnergyGroupList', 'certificationCreditGroupList', 'ecologyNote']\n },\n group_process: {\n label: 'Processes',\n fields: ['castingProcesses', 'joiningProcesses', 'moldingProcesses', 'surfacingProcesses', 'deformingProcesses', 'machiningProcesses', 'rapidPrototypingProcesses', 'additionalProcessGroupList', 'processNote']\n }\n },\n layout: {\n fields1: ['group_featured_collection', 'group_composition', 'group_use', 'group_application', 'group_production', 'group_link', 'group_standard', 'group_form', 'group_property'],\n fields2: ['group_ecology', 'group_process']\n }\n },\n institutionHoldings: {\n query: data => {\n const {\n 'collectionspace_core:refName': refName\n } = data;\n const shortId = (0,cspace_refname__WEBPACK_IMPORTED_MODULE_0__.getItemShortID)(refName);\n return {\n term: {\n 'collectionobjects_common:materialGroupList.material.shortid': shortId\n }\n };\n },\n sortField: 'collectionobjects_common:objectNumber',\n title: {\n name: 'collectionobjects_common:otherNumberList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.pickFromList)({\n condition: {\n path: 'numberType',\n value: 'callnumber'\n },\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'numberValue'\n })\n })\n },\n detailFields: {\n fields: {\n otherNumberList: {\n label: 'Call number',\n field: 'collectionobjects_common:otherNumberList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.pickAllFromList)({\n condition: {\n path: 'numberType',\n value: 'callnumber'\n },\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'numberValue'\n })\n }),\n className: 'title'\n },\n collection: {\n label: 'Collection',\n field: 'collectionobjects_common:collection',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n },\n namedCollection: {\n label: 'Named collection',\n field: 'collectionobjects_common:namedCollections',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)(_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName)\n },\n computedCurrentLocation: {\n label: 'Current location',\n field: 'collectionobjects_common:computedCurrentLocation',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName\n },\n materialPhysicalDescriptions: {\n label: 'Physical description',\n field: 'collectionobjects_materials:materialPhysicalDescriptions',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.paragraphs\n },\n materialContainerGroupList: {\n label: 'Container',\n field: 'collectionobjects_materials:materialContainerGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'container',\n noteFieldName: 'containerNote',\n linkValue: false\n }))\n },\n materialConditionGroupList: {\n label: 'Condition',\n field: 'collectionobjects_materials:materialConditionGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'condition',\n noteFieldName: 'conditionNote',\n linkValue: false\n }))\n },\n materialHandlingGroupList: {\n label: 'Handling',\n field: 'collectionobjects_materials:materialHandlingGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'handling',\n noteFieldName: 'handlingNote',\n linkValue: false\n }))\n },\n colors: {\n label: 'Color',\n field: 'collectionobjects_common:colors',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineList\n },\n materialGenericColors: {\n label: 'Generic color',\n field: 'collectionobjects_materials:materialGenericColors',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)(_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.displayName)\n },\n materialFinishGroupList: {\n label: 'Finish',\n field: 'collectionobjects_materials:materialFinishGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueWithNote)({\n valueFieldName: 'finish',\n noteFieldName: 'finishNote',\n linkValue: false\n }))\n },\n objectCount: {\n label: 'Holdings',\n field: 'collectionobjects_common:objectCountGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.head)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'objectCount'\n }))\n },\n objectStatusList: {\n label: 'Type',\n field: 'collectionobjects_common:objectStatusList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.inlineListOf)(_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.objectTypeValue)\n },\n briefDescriptions: {\n label: 'Production description',\n field: 'collectionobjects_common:briefDescriptions',\n format: _helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.paragraphs\n },\n measuredPartGroupList: {\n label: 'Size',\n field: 'collectionobjects_common:measuredPartGroupList',\n format: (0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.listOf)((0,_helpers_formatHelpers__WEBPACK_IMPORTED_MODULE_1__.valueAt)({\n path: 'dimensionSummary'\n }))\n },\n objectNumber: {\n label: 'System number',\n field: 'collectionobjects_common:objectNumber'\n }\n },\n groups: {\n group_sample_otherNumberList: {\n fields: ['otherNumberList']\n },\n group_sample_collection: {\n fields: ['collection']\n },\n group_sample_namedCollection: {\n fields: ['namedCollection']\n },\n group_sample_computedCurrentLocation: {\n fields: ['computedCurrentLocation']\n },\n group_sample_materialPhysicalDescriptions: {\n fields: ['materialPhysicalDescriptions']\n },\n group_sample_condition: {\n fields: ['materialContainerGroupList', 'materialConditionGroupList', 'materialHandlingGroupList']\n },\n group_sample_description: {\n fields: ['colors', 'materialGenericColors', 'materialFinishGroupList']\n },\n group_sample_holdings: {\n fields: ['objectCount', 'objectStatusList'],\n className: 'inline'\n },\n group_sample_briefDescriptions: {\n fields: ['briefDescriptions']\n },\n group_sample_measuredPartGroupList: {\n fields: ['measuredPartGroupList']\n },\n group_sample_system: {\n fields: ['objectNumber']\n }\n },\n layout: {\n 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']\n }\n }\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/config/materials.js?");
|
|
778
778
|
|
|
779
779
|
/***/ }),
|
|
780
780
|
|
|
@@ -840,7 +840,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
|
|
840
840
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
841
841
|
|
|
842
842
|
"use strict";
|
|
843
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ boolean: () => (/* binding */ boolean),\n/* harmony export */ collectionValue: () => (/* binding */ collectionValue),\n/* harmony export */ decade: () => (/* binding */ decade),\n/* harmony export */ displayName: () => (/* binding */ displayName),\n/* harmony export */ displayNameFrom: () => (/* binding */ displayNameFrom),\n/* harmony export */ filterLink: () => (/* binding */ filterLink),\n/* harmony export */ html: () => (/* binding */ html),\n/* harmony export */ inlineList: () => (/* binding */ inlineList),\n/* harmony export */ inlineListOf: () => (/* binding */ inlineListOf),\n/* harmony export */ lines: () => (/* binding */ lines),\n/* harmony export */ linkNote: () => (/* binding */ linkNote),\n/* harmony export */ linkText: () => (/* binding */ linkText),\n/* harmony export */ linkedDisplayName: () => (/* binding */ linkedDisplayName),\n/* harmony export */ list: () => (/* binding */ list),\n/* harmony export */ listOf: () => (/* binding */ listOf),\n/* harmony export */ literal: () => (/* binding */ literal),\n/* harmony export */ nameRole: () => (/* binding */ nameRole),\n/* harmony export */ nameValue: () => (/* binding */ nameValue),\n/* harmony export */ numericRange: () => (/* binding */ numericRange),\n/* harmony export */ objectTypeValue: () => (/* binding */ objectTypeValue),\n/* harmony export */ paragraphs: () => (/* binding */ paragraphs),\n/* harmony export */ pickAllFromList: () => (/* binding */ pickAllFromList),\n/* harmony export */ pickFromList: () => (/* binding */ pickFromList),\n/* harmony export */ property: () => (/* binding */ property),\n/* harmony export */ renderFilterLink: () => (/* binding */ renderFilterLink),\n/* harmony export */ renderJoined: () => (/* binding */ renderJoined),\n/* harmony export */ renderLink: () => (/* binding */ renderLink),\n/* harmony export */ unformatted: () => (/* binding */ unformatted),\n/* harmony export */ unqualifiedFieldName: () => (/* binding */ unqualifiedFieldName),\n/* harmony export */ valueAt: () => (/* binding */ valueAt),\n/* harmony export */ valueWithNote: () => (/* binding */ valueWithNote)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/esm/react-router-dom.js\");\n/* harmony import */ var cspace_refname__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! cspace-refname */ \"./node_modules/cspace-refname/lib/index.js\");\n/* harmony import */ var _components_detail_FieldValueList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/detail/FieldValueList */ \"./src/components/detail/FieldValueList.jsx\");\n/* harmony import */ var _styles_cspace_Link_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../styles/cspace/Link.css */ \"./styles/cspace/Link.css\");\n\n\n\n\n\n\n\nconst renderLink = (url, text, type) => {\n if (!url) {\n return text;\n }\n if (type === 'external') {\n const fullUrl = !url.startsWith('http') ? `http://${url}` : url;\n const content = text || url;\n\n // Make sure urls with no spaces are able to wrap anywhere.\n\n const inlineStyle = content.startsWith('http') ? {\n overflowWrap: 'anywhere'\n } : undefined;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"a\", {\n className: _styles_cspace_Link_css__WEBPACK_IMPORTED_MODULE_4__[\"default\"][type],\n href: fullUrl,\n rel: \"noopener noreferrer\",\n style: inlineStyle,\n target: \"_blank\"\n }, content);\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Link, {\n className: type && _styles_cspace_Link_css__WEBPACK_IMPORTED_MODULE_4__[\"default\"][type],\n to: url\n }, text || url);\n};\nconst renderFilterLink = (filterId, filterValue, linkText) => {\n if (!filterValue) {\n return null;\n }\n const values = [filterValue];\n const query = qs__WEBPACK_IMPORTED_MODULE_6___default().stringify({\n [filterId]: JSON.stringify(values)\n });\n return renderLink(`/search?${query}`, typeof linkText === 'undefined' ? filterValue : linkText);\n};\nconst renderJoined = (parts, separator = '') => {\n const nonEmptyParts = parts.filter(part => typeof part !== 'undefined' && part !== null && part !== '');\n if (nonEmptyParts.length === 0) {\n return null;\n }\n const separatorElement = separator === '\\n' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"br\", null) : separator;\n return nonEmptyParts.reduce((joinedParts, nextPart) =>\n /*#__PURE__*/\n // eslint-disable-next-line react/jsx-one-expression-per-line\n react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"span\", null, joinedParts, separatorElement, nextPart));\n};\nconst renderList = (values, inline = false) => {\n if (Array.isArray(values)) {\n if (values.length > 1) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_detail_FieldValueList__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n inline: inline\n }, values.map((value, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"li\", {\n key: index\n }, value)));\n }\n return values[0];\n }\n return values;\n};\nconst unformatted = data => data;\nconst boolean = value => {\n switch (value) {\n case 0:\n return 'No';\n case 1:\n return 'Yes';\n default:\n return value;\n }\n};\nconst literal = value => () => value;\nconst collectionValue = value => value.replace('_', '-');\nconst objectTypeValue = value => value.replace('_', '-');\nconst lines = values => values && values.join('\\n');\nconst list = values => renderList(values);\nconst inlineList = values => renderJoined(values, ', ');\nconst listOf = format => (array, fieldName) => renderList(array.map(value => format(value, fieldName)));\nconst inlineListOf = format => (array, fieldName) => renderJoined(array.map(value => format(value, fieldName)), ', ');\nconst displayName = value => (0,cspace_refname__WEBPACK_IMPORTED_MODULE_2__.getDisplayName)(value) || value;\nconst displayNameFrom = name => data => displayName(data[name]);\nconst unqualifiedFieldName = (data, fieldName) => {\n const parts = fieldName.split(':');\n return parts.length > 1 ? parts[1] : parts[0];\n};\nconst filterLink = config => (data, fieldName) => {\n const {\n filterIdFormat = unqualifiedFieldName,\n filterValueFormat = unformatted,\n linkTextFormat\n } = config;\n const formattedFilterId = filterIdFormat(data, fieldName);\n const formattedFilterValue = filterValueFormat(data, fieldName);\n const formattedLinkText = linkTextFormat ? linkTextFormat(data, fieldName) : formattedFilterValue;\n return renderFilterLink(formattedFilterId, formattedFilterValue, formattedLinkText);\n};\nconst linkNote = (urlField, noteField, separator = ' - ') => object => {\n const {\n [noteField]: note,\n [urlField]: url\n } = object;\n const link = renderLink(url);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, link, link && note && separator, note);\n};\nconst linkedDisplayName = filterId => data => renderFilterLink(filterId, displayName(data));\nconst linkText = config => data => {\n const {\n urlFieldName,\n textFieldName,\n type\n } = config;\n return renderLink(data[urlFieldName], data[textFieldName], type);\n};\nconst nameValue = config => (data, fieldName) => {\n const {\n nameFormat,\n valueFormat,\n separator = ': '\n } = config;\n const formattedName = nameFormat(data, fieldName);\n const formattedValue = valueFormat(data, fieldName);\n const parts = [formattedName, formattedValue];\n return renderJoined(parts, separator);\n};\nconst property = config => data => {\n const {\n nameFieldName,\n valueFieldName,\n separator = ': '\n } = config;\n const parts = [renderFilterLink(nameFieldName, displayName(data[nameFieldName])), data[valueFieldName]];\n return renderJoined(parts, separator);\n};\nconst nameRole = config => data => {\n const {\n nameFieldName,\n roleFieldName,\n linkName = true,\n separator = ' '\n } = config;\n const name = displayName(data[nameFieldName]);\n let role = displayName(data[roleFieldName]);\n if (role) {\n role = `(${role})`;\n }\n const parts = [linkName ? renderFilterLink(nameFieldName, name) : name, role];\n return renderJoined(parts, separator);\n};\nconst valueWithNote = config => data => {\n const {\n valueFieldName,\n noteFieldName,\n linkValue = true,\n separator = '\\n',\n noteLabel = 'Note: '\n } = config;\n const value = displayName(data[valueFieldName]);\n let note = data[noteFieldName];\n if (note) {\n note = `${noteLabel}${note}`;\n }\n const parts = [linkValue ? renderFilterLink(valueFieldName, value) : value, note];\n return renderJoined(parts, separator);\n};\nconst numericRange = config => data => {\n const {\n linkQualifier,\n lowFieldName,\n highFieldName,\n unitFieldName,\n qualifierFieldName,\n qualifierSeparator = ' '\n } = config;\n let {\n unit\n } = config;\n const low = data[lowFieldName];\n const high = data[highFieldName];\n const range = [low, high].filter(part => !!part).join('-');\n if (range) {\n unit = unit || displayName(data[unitFieldName]);\n } else {\n unit = null;\n }\n const qualifier = displayName(data[qualifierFieldName]);\n const rangeUnit = renderJoined([range, unit], ' ');\n return renderJoined([rangeUnit, linkQualifier ? renderFilterLink(qualifierFieldName, qualifier) : qualifier], qualifierSeparator);\n};\nconst paragraphs = array =>\n// eslint-disable-next-line react/no-array-index-key\narray && array.length > 0 && array.map((value, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"p\", {\n key: index\n}, value));\nconst valueAt = config => data => {\n const {\n path,\n format = unformatted\n } = config;\n const value = lodash_get__WEBPACK_IMPORTED_MODULE_1___default()(data, path);\n const fieldName = Array.isArray(path) ? path[path.length - 1] : path;\n return format(value, fieldName);\n};\nconst pickFromList = config => array => {\n const {\n condition,\n format\n } = config;\n const {\n path,\n value: targetValue\n } = condition;\n const value = array.find(candidateItem => {\n const candidateValue = path ? lodash_get__WEBPACK_IMPORTED_MODULE_1___default()(candidateItem, path) : candidateItem;\n return candidateValue === targetValue;\n });\n return format ? format(value) : value;\n};\nconst pickAllFromList = config => array => {\n const {\n condition,\n format\n } = config;\n const {\n path,\n value: targetValue\n } = condition;\n const values = array.filter(candidateItem => {\n const candidateValue = path ? lodash_get__WEBPACK_IMPORTED_MODULE_1___default()(candidateItem, path) : candidateItem;\n return candidateValue === targetValue;\n });\n return renderJoined(format ? values.map(format) : values, '\\n');\n};\nconst decade = startYear => {\n const endYear = startYear + 9;\n return `${startYear}–${endYear}`;\n};\n\n// eslint-disable-next-line react/no-danger\nconst html = value => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n dangerouslySetInnerHTML: {\n __html: value\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/helpers/formatHelpers.jsx?");
|
|
843
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ boolean: () => (/* binding */ boolean),\n/* harmony export */ collectionValue: () => (/* binding */ collectionValue),\n/* harmony export */ decade: () => (/* binding */ decade),\n/* harmony export */ displayName: () => (/* binding */ displayName),\n/* harmony export */ displayNameFrom: () => (/* binding */ displayNameFrom),\n/* harmony export */ filterLink: () => (/* binding */ filterLink),\n/* harmony export */ head: () => (/* binding */ head),\n/* harmony export */ html: () => (/* binding */ html),\n/* harmony export */ inlineList: () => (/* binding */ inlineList),\n/* harmony export */ inlineListOf: () => (/* binding */ inlineListOf),\n/* harmony export */ lines: () => (/* binding */ lines),\n/* harmony export */ linkNote: () => (/* binding */ linkNote),\n/* harmony export */ linkText: () => (/* binding */ linkText),\n/* harmony export */ linkedDisplayName: () => (/* binding */ linkedDisplayName),\n/* harmony export */ list: () => (/* binding */ list),\n/* harmony export */ listOf: () => (/* binding */ listOf),\n/* harmony export */ literal: () => (/* binding */ literal),\n/* harmony export */ nameRole: () => (/* binding */ nameRole),\n/* harmony export */ nameValue: () => (/* binding */ nameValue),\n/* harmony export */ numericRange: () => (/* binding */ numericRange),\n/* harmony export */ objectTypeValue: () => (/* binding */ objectTypeValue),\n/* harmony export */ paragraphs: () => (/* binding */ paragraphs),\n/* harmony export */ pickAllFromList: () => (/* binding */ pickAllFromList),\n/* harmony export */ pickFromList: () => (/* binding */ pickFromList),\n/* harmony export */ property: () => (/* binding */ property),\n/* harmony export */ renderFilterLink: () => (/* binding */ renderFilterLink),\n/* harmony export */ renderJoined: () => (/* binding */ renderJoined),\n/* harmony export */ renderLink: () => (/* binding */ renderLink),\n/* harmony export */ unformatted: () => (/* binding */ unformatted),\n/* harmony export */ unqualifiedFieldName: () => (/* binding */ unqualifiedFieldName),\n/* harmony export */ valueAt: () => (/* binding */ valueAt),\n/* harmony export */ valueWithNote: () => (/* binding */ valueWithNote)\n/* harmony export */ });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/get */ \"./node_modules/lodash/get.js\");\n/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ \"./node_modules/react-router-dom/esm/react-router-dom.js\");\n/* harmony import */ var cspace_refname__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! cspace-refname */ \"./node_modules/cspace-refname/lib/index.js\");\n/* harmony import */ var _components_detail_FieldValueList__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/detail/FieldValueList */ \"./src/components/detail/FieldValueList.jsx\");\n/* harmony import */ var _styles_cspace_Link_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../styles/cspace/Link.css */ \"./styles/cspace/Link.css\");\n\n\n\n\n\n\n\nconst renderLink = (url, text, type) => {\n if (!url) {\n return text;\n }\n if (type === 'external') {\n const fullUrl = !url.startsWith('http') ? `http://${url}` : url;\n const content = text || url;\n\n // Make sure urls with no spaces are able to wrap anywhere.\n\n const inlineStyle = content.startsWith('http') ? {\n overflowWrap: 'anywhere'\n } : undefined;\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"a\", {\n className: _styles_cspace_Link_css__WEBPACK_IMPORTED_MODULE_4__[\"default\"][type],\n href: fullUrl,\n rel: \"noopener noreferrer\",\n style: inlineStyle,\n target: \"_blank\"\n }, content);\n }\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Link, {\n className: type && _styles_cspace_Link_css__WEBPACK_IMPORTED_MODULE_4__[\"default\"][type],\n to: url\n }, text || url);\n};\nconst renderFilterLink = (filterId, filterValue, linkText) => {\n if (!filterValue) {\n return null;\n }\n const values = [filterValue];\n const query = qs__WEBPACK_IMPORTED_MODULE_6___default().stringify({\n [filterId]: JSON.stringify(values)\n });\n return renderLink(`/search?${query}`, typeof linkText === 'undefined' ? filterValue : linkText);\n};\nconst renderJoined = (parts, separator = '') => {\n const nonEmptyParts = parts.filter(part => typeof part !== 'undefined' && part !== null && part !== '');\n if (nonEmptyParts.length === 0) {\n return null;\n }\n const separatorElement = separator === '\\n' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"br\", null) : separator;\n return nonEmptyParts.reduce((joinedParts, nextPart) =>\n /*#__PURE__*/\n // eslint-disable-next-line react/jsx-one-expression-per-line\n react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"span\", null, joinedParts, separatorElement, nextPart));\n};\nconst renderList = (values, inline = false) => {\n if (Array.isArray(values)) {\n if (values.length > 1) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_detail_FieldValueList__WEBPACK_IMPORTED_MODULE_3__[\"default\"], {\n inline: inline\n }, values.map((value, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"li\", {\n key: index\n }, value)));\n }\n return values[0];\n }\n return values;\n};\nconst unformatted = data => data;\nconst boolean = value => {\n switch (value) {\n case 0:\n return 'No';\n case 1:\n return 'Yes';\n default:\n return value;\n }\n};\nconst literal = value => () => value;\nconst collectionValue = value => value.replace('_', '-');\nconst objectTypeValue = value => value.replace('_', '-');\nconst lines = values => values && values.join('\\n');\nconst list = values => renderList(values);\nconst inlineList = values => renderJoined(values, ', ');\nconst listOf = format => (array, fieldName) => renderList(array.map(value => format(value, fieldName)));\nconst inlineListOf = format => (array, fieldName) => renderJoined(array.map(value => format(value, fieldName)), ', ');\nconst displayName = value => (0,cspace_refname__WEBPACK_IMPORTED_MODULE_2__.getDisplayName)(value) || value;\nconst displayNameFrom = name => data => displayName(data[name]);\nconst unqualifiedFieldName = (data, fieldName) => {\n const parts = fieldName.split(':');\n return parts.length > 1 ? parts[1] : parts[0];\n};\nconst filterLink = config => (data, fieldName) => {\n const {\n filterIdFormat = unqualifiedFieldName,\n filterValueFormat = unformatted,\n linkTextFormat\n } = config;\n const formattedFilterId = filterIdFormat(data, fieldName);\n const formattedFilterValue = filterValueFormat(data, fieldName);\n const formattedLinkText = linkTextFormat ? linkTextFormat(data, fieldName) : formattedFilterValue;\n return renderFilterLink(formattedFilterId, formattedFilterValue, formattedLinkText);\n};\nconst linkNote = (urlField, noteField, separator = ' - ') => object => {\n const {\n [noteField]: note,\n [urlField]: url\n } = object;\n const link = renderLink(url);\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, link, link && note && separator, note);\n};\nconst linkedDisplayName = filterId => data => renderFilterLink(filterId, displayName(data));\nconst linkText = config => data => {\n const {\n urlFieldName,\n textFieldName,\n type\n } = config;\n return renderLink(data[urlFieldName], data[textFieldName], type);\n};\nconst nameValue = config => (data, fieldName) => {\n const {\n nameFormat,\n valueFormat,\n separator = ': '\n } = config;\n const formattedName = nameFormat(data, fieldName);\n const formattedValue = valueFormat(data, fieldName);\n const parts = [formattedName, formattedValue];\n return renderJoined(parts, separator);\n};\nconst property = config => data => {\n const {\n nameFieldName,\n valueFieldName,\n separator = ': '\n } = config;\n const parts = [renderFilterLink(nameFieldName, displayName(data[nameFieldName])), data[valueFieldName]];\n return renderJoined(parts, separator);\n};\nconst nameRole = config => data => {\n const {\n nameFieldName,\n roleFieldName,\n linkName = true,\n separator = ' '\n } = config;\n const name = displayName(data[nameFieldName]);\n let role = displayName(data[roleFieldName]);\n if (role) {\n role = `(${role})`;\n }\n const parts = [linkName ? renderFilterLink(nameFieldName, name) : name, role];\n return renderJoined(parts, separator);\n};\nconst valueWithNote = config => data => {\n const {\n valueFieldName,\n noteFieldName,\n linkValue = true,\n separator = '\\n',\n noteLabel = 'Note: '\n } = config;\n const value = displayName(data[valueFieldName]);\n let note = data[noteFieldName];\n if (note) {\n note = `${noteLabel}${note}`;\n }\n const parts = [linkValue ? renderFilterLink(valueFieldName, value) : value, note];\n return renderJoined(parts, separator);\n};\nconst numericRange = config => data => {\n const {\n linkQualifier,\n lowFieldName,\n highFieldName,\n unitFieldName,\n qualifierFieldName,\n qualifierSeparator = ' '\n } = config;\n let {\n unit\n } = config;\n const low = data[lowFieldName];\n const high = data[highFieldName];\n const range = [low, high].filter(part => !!part).join('-');\n if (range) {\n unit = unit || displayName(data[unitFieldName]);\n } else {\n unit = null;\n }\n const qualifier = displayName(data[qualifierFieldName]);\n const rangeUnit = renderJoined([range, unit], ' ');\n return renderJoined([rangeUnit, linkQualifier ? renderFilterLink(qualifierFieldName, qualifier) : qualifier], qualifierSeparator);\n};\nconst paragraphs = array =>\n// eslint-disable-next-line react/no-array-index-key\narray && array.length > 0 && array.map((value, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"p\", {\n key: index\n}, value));\nconst head = format => (array, fieldName) => Array.isArray(array) && array.length > 0 ? format(array[0], fieldName) : null;\nconst valueAt = config => data => {\n const {\n path,\n format = unformatted\n } = config;\n const value = lodash_get__WEBPACK_IMPORTED_MODULE_1___default()(data, path);\n const fieldName = Array.isArray(path) ? path[path.length - 1] : path;\n return format(value, fieldName);\n};\nconst pickFromList = config => array => {\n const {\n condition,\n format\n } = config;\n const {\n path,\n value: targetValue\n } = condition;\n const value = array.find(candidateItem => {\n const candidateValue = path ? lodash_get__WEBPACK_IMPORTED_MODULE_1___default()(candidateItem, path) : candidateItem;\n return candidateValue === targetValue;\n });\n return format ? format(value) : value;\n};\nconst pickAllFromList = config => array => {\n const {\n condition,\n format\n } = config;\n const {\n path,\n value: targetValue\n } = condition;\n const values = array.filter(candidateItem => {\n const candidateValue = path ? lodash_get__WEBPACK_IMPORTED_MODULE_1___default()(candidateItem, path) : candidateItem;\n return candidateValue === targetValue;\n });\n return renderJoined(format ? values.map(format) : values, '\\n');\n};\nconst decade = startYear => {\n const endYear = startYear + 9;\n return `${startYear}–${endYear}`;\n};\n\n// eslint-disable-next-line react/no-danger\nconst html = value => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(\"div\", {\n dangerouslySetInnerHTML: {\n __html: value\n }\n});\n\n//# sourceURL=webpack://cspacePublicBrowser/./src/helpers/formatHelpers.jsx?");
|
|
844
844
|
|
|
845
845
|
/***/ }),
|
|
846
846
|
|