-
Notifications
You must be signed in to change notification settings - Fork 4
/
UploaderConfig_example.json
103 lines (99 loc) · 3.23 KB
/
UploaderConfig_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"dataRoot": "/srv/Data",
"target": "/srv/Target",
"timeout": "1",
"statusServer": "http://status.local/view/",
"policyServer": "http://policyserver:8181",
"ingestServer": "http://ingest:8066",
"timezone": "",
"use_celery": "True",
"theming": {
"theme_name": "datahub",
"site_name": "Data Hub",
"site_slogan": "Data Management for Science",
"archive_repository_name": "Pithos Archive",
"upload_data_source_name": "a Data Hub Instrument",
"uploader_page_name": "Instrument Data Uploader"
},
"auth": {},
"metadata": [
{
"metaID": "logon",
"sourceTable": "users",
"destinationTable": "Transactions.submitter",
"value": "",
"displayType": "logged_on",
"displayTitle": "Currently Logged On",
"valueField": "_id",
"queryFields": [ "first_name", "last_name", "_id"],
"queryDependency": { "network_id": "logon" },
"diplayFormat": "%(first_name)s %(last_name)s"
},
{
"metaID": "instrumentByID",
"sourceTable": "instruments",
"destinationTable": "Transactions.instrument",
"displayType": "select",
"displayTitle": "Instrument",
"value": "34075",
"valueField": "_id",
"queryDependency": { "_id": "instrumentByID" },
"queryFields": ["_id", "name_short", "display_name" ],
"diplayFormat": "%(_id)s %(name_short)s - %(display_name)s"
},
{
"sourceTable": "instruments",
"metaID": "instrumentDirectory",
"displayType": "directoryTree",
"directoryOrder": 1,
"diplayFormat": "%(name_short)s",
"valueField": "_id",
"queryDependency": { "_id": "instrumentByID" },
"queryFields": ["_id", "name_short"]
},
{
"sourceTable": "proposals",
"metaID": "ProposalByInstrument",
"value": "",
"destinationTable": "Transactions.proposal",
"displayTitle": "Proposal",
"displayType": "select",
"queryDependency": { "instrument_id": "instrumentByID" },
"valueField": "_id",
"queryFields": [ "_id", "title" ],
"diplayFormat": "%(_id)s %(title)s"
},
{
"sourceTable": "proposals",
"metaID": "ProposalDirectory",
"value": "",
"displayType": "directoryTree",
"diplayFormat": "Proposal %(_id)s",
"directoryOrder": 0,
"queryDependency": { "_id": "ProposalByInstrument" },
"valueField": "_id",
"queryFields": [ "_id"]
},
{
"sourceTable": "users",
"metaID": "EmslUserOfRecord",
"destinationTable": "TransactionKeyValue",
"displayTitle": "Person of Record",
"displayType": "select",
"key": "User of Record",
"value": "",
"queryDependency": { "proposal_id": "ProposalByInstrument" },
"valueField": "_id",
"queryFields": [ "first_name", "last_name", "_id"],
"diplayFormat": "%(first_name)s %(last_name)s"
},
{
"destinationTable": "TransactionKeyValue",
"metaID": "tag1",
"key": "Tag",
"value": "",
"displayTitle": "Tag",
"displayType": "enter"
}
]
}