forked from EOEPCA/open-science-catalog-stac-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfields.config.js
More file actions
23 lines (18 loc) · 785 Bytes
/
fields.config.js
File metadata and controls
23 lines (18 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Registry, Helper } from '@radiantearth/stac-fields';
// Please consult https://github.com/radiantearth/stac-browser/blob/main/README.md#additional-metadata-fields for details.
// Registry.addExtension('radiant', 'Radiant Earth');
// Registry.addMetadataField('radiant:public_access', {
// label: "Data Access",
// formatter: value => value ? "Public" : "Private"
// });
Registry.addExtension('osc', 'Open Science Catalog');
Registry.addMetadataField('themes', {
label: "Themes",
ext: "osc",
formatter: value => Helper.toList(value.find(v => v.scheme === "OSC:SCHEME:THEMES").concepts, true, (i) => i.id, false)
// check in value if thema is correct (themes)
});
Registry.addMetadataField('contacts', {
label: "Contacts",
ext: "osc",
});