Skip to content

Commit 5e7abbf

Browse files
committed
first draft of customized dataset details view
1 parent ba638c1 commit 5e7abbf

File tree

1 file changed

+129
-68
lines changed

1 file changed

+129
-68
lines changed

src/config/frontend.config.json

Lines changed: 129 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
},
141141
{
142142
"name": "pid",
143-
"order": 1,
143+
"order": 7,
144144
"type": "standard",
145145
"enabled": true
146146
},
@@ -158,12 +158,18 @@
158158
},
159159
{
160160
"name": "sourceFolder",
161-
"order": 4,
161+
"order": 13,
162162
"type": "standard",
163163
"enabled": true
164164
},
165165
{
166166
"name": "size",
167+
"order": 4,
168+
"type": "standard",
169+
"enabled": true
170+
},
171+
{
172+
"name": "numberOfFiles",
167173
"order": 5,
168174
"type": "standard",
169175
"enabled": true
@@ -176,25 +182,25 @@
176182
},
177183
{
178184
"name": "type",
179-
"order": 7,
185+
"order": 8,
180186
"type": "standard",
181187
"enabled": true
182188
},
183189
{
184190
"name": "image",
185-
"order": 8,
191+
"order": 9,
186192
"type": "standard",
187-
"enabled": true
193+
"enabled": false
188194
},
189195
{
190196
"name": "metadata",
191-
"order": 9,
197+
"order": 10,
192198
"type": "standard",
193199
"enabled": false
194200
},
195201
{
196202
"name": "proposalId",
197-
"order": 10,
203+
"order": 1,
198204
"type": "standard",
199205
"enabled": true
200206
},
@@ -223,18 +229,41 @@
223229
"conditions": []
224230
},
225231
"labelsLocalization": {
226-
"datasetDefault": {},
227-
"datasetCustom": {
228-
"pid": "PID",
232+
"dataset": {
233+
"pid": "Dataset Id",
234+
"Pid": "Dataset Id",
235+
"datasetName": "Dataset Name",
229236
"description": "Description",
230-
"principalInvestigator": "Principal Investigator",
237+
"type" : "Dataset Record Type",
238+
"Type" : "Dataset Record Type",
231239
"keywords": "Keywords",
240+
"runNumber": "Run Number",
241+
"sourceFolder": "Source Folder",
242+
"size": "Dataset Size",
243+
"creationTime": "Record Creation Time",
244+
"image": "Thumbnail",
245+
"proposalId" : "Proposal Id",
246+
"metadata" : "Metadata",
247+
"ownerGroup" : "Permission: Owner Group",
248+
"dataStatus" : "Dataset Status",
249+
"principalInvestigator": "Principal Investigator",
232250
"creationTime": "Creation Time",
233251
"scientificMetadata": "Scientific Metadata",
234252
"metadataJsonView": "Metadata JsonView",
235253
"datasetName": "Dataset Name",
236254
"scientificMetadata.run_number.value": "Run Number",
237-
"scientificMetadata.start_time": "Start Time"
255+
"scientificMetadata.start_time": "Start Time",
256+
"startTime": "Start Time",
257+
"endTime": "End Time",
258+
"numberOfFiles": "Number of Files",
259+
"proposalIds": "Proposal Ids",
260+
"instrumentIds": "Instrument Ids",
261+
"inputDatasets": "Parent Datasets",
262+
"creationLocation": "Creation Location",
263+
"sampleIds": "Sample Ids",
264+
"contactEmail": "Contact Email",
265+
"ownerGroup": "Owner Group",
266+
"accessGroups": "Access Groups"
238267
},
239268
"proposalDefault": {
240269
"General Information": "Proposal Information",
@@ -253,28 +282,28 @@
253282
},
254283
"dateFormat": "yyyy-MM-dd HH:mm",
255284
"datasetDetailComponent": {
256-
"enableCustomizedComponent": false,
285+
"enableCustomizedComponent": true,
257286
"customization": [
258287
{
259288
"type": "regular",
260-
"label": "General Information",
289+
"label": "Summary",
261290
"order": 0,
262291
"row": 1,
263-
"col": 8,
292+
"col": 4,
264293
"fields": [
265294
{
266295
"element": "text",
267-
"source": "scientificMetadata.start_time",
296+
"source": "proposalId",
268297
"order": 0
269298
},
270299
{
271-
"element": "copy",
272-
"source": "scientificMetadata.run_number.value",
300+
"element": "text",
301+
"source": "runNumber",
273302
"order": 1
274303
},
275304
{
276305
"element": "text",
277-
"source": "creationTime",
306+
"source": "datasetName",
278307
"order": 2
279308
},
280309
{
@@ -288,28 +317,73 @@
288317
"order": 4
289318
},
290319
{
291-
"element": "tag",
292-
"source": "keywords",
320+
"element": "text",
321+
"source": "principalInvestigator",
293322
"order": 5
294323
}
295324
]
296325
},
297326
{
298327
"type": "attachments",
299-
"label": "Gallery",
328+
"label": "Attachements",
300329
"order": 1,
301-
"col": 2,
302-
"row": 2,
330+
"col": 4,
331+
"row": 1,
303332
"options": {
304333
"limit": 5,
305334
"size": "medium"
306335
}
307336
},
308337
{
309338
"type": "regular",
310-
"label": "Contact Information",
339+
"label": "Dataset Information",
311340
"order": 2,
312-
"col": 2,
341+
"col": 8,
342+
"row": 1,
343+
"fields": [
344+
{
345+
"element": "copy",
346+
"source": "pid",
347+
"order": 0
348+
},
349+
{
350+
"element": "text",
351+
"source": "datasetName",
352+
"order": 0
353+
},
354+
{
355+
"element": "text",
356+
"source": "description",
357+
"order": 0
358+
},
359+
{
360+
"element": "text",
361+
"source": "type",
362+
"order": 0
363+
},
364+
{
365+
"element": "date",
366+
"source": "startTime",
367+
"order": 0
368+
},
369+
{
370+
"element": "date",
371+
"source": "endTime",
372+
"order": 0
373+
},
374+
{
375+
"element": "tag",
376+
"source": "keywords",
377+
"order": 1
378+
}
379+
]
380+
},
381+
382+
{
383+
"type": "regular",
384+
"label": "Contact Information",
385+
"order": 3,
386+
"col": 4,
313387
"row": 1,
314388
"fields": [
315389
{
@@ -327,13 +401,13 @@
327401
{
328402
"type": "regular",
329403
"label": "Files Information",
330-
"order": 3,
331-
"col": 2,
404+
"order": 4,
405+
"col": 4,
332406
"row": 1,
333407
"fields": [
334408
{
335409
"element": "text",
336-
"source": "scientificMetadata.runnumber",
410+
"source": "sourceFolder",
337411
"order": 0
338412
},
339413
{
@@ -350,24 +424,14 @@
350424
"element": "text",
351425
"source": "size",
352426
"order": 3
353-
},
354-
{
355-
"element": "text",
356-
"source": "numberOfFilesArchived",
357-
"order": 4
358-
},
359-
{
360-
"element": "text",
361-
"source": "packedSize",
362-
"order": 5
363427
}
364428
]
365429
},
366430
{
367431
"type": "regular",
368432
"label": "Related Documents",
369-
"order": 4,
370-
"col": 4,
433+
"order": 5,
434+
"col": 8,
371435
"row": 1,
372436
"fields": [
373437
{
@@ -381,12 +445,12 @@
381445
"order": 1
382446
},
383447
{
384-
"element": "tag",
448+
"element": "internalLinks",
385449
"source": "sampleIds",
386450
"order": 2
387451
},
388452
{
389-
"element": "tag",
453+
"element": "internalLinks",
390454
"source": "inputDatasets",
391455
"order": 3
392456
},
@@ -397,43 +461,40 @@
397461
}
398462
]
399463
},
400-
{
401-
"type": "attachments",
402-
"label": "Gallery",
403-
"order": 5,
404-
"col": 1,
405-
"row": 1,
406-
"options": {
407-
"limit": 2,
408-
"size": "small"
409-
}
410-
},
411464
{
412465
"type": "scientificMetadata",
413466
"label": "Scientific Metadata Table",
414467
"viewMode": "table",
415468
"order": 6,
416-
"col": 9,
417-
"row": 1
469+
"col": 8,
470+
"row": 3
418471
},
419472
{
420473
"type": "scientificMetadata",
421474
"label": "Scientific Metadata JSON",
422475
"viewMode": "json",
423-
"order": 6
424-
},
425-
{
426-
"type": "scientificMetadata",
427-
"label": "Scientific Metadata Tree",
428-
"viewMode": "tree",
429-
"order": 6
476+
"order": 7,
477+
"col": 8,
478+
"row": 1
430479
},
431480
{
432-
"type": "datasetJsonView",
433-
"label": "Dataset JsonView",
434-
"order": 7,
435-
"col": 10,
436-
"row": 2
481+
"type": "regular",
482+
"label": "Authorization / Permissions",
483+
"order": 9,
484+
"col": 8,
485+
"row": 1,
486+
"fields": [
487+
{
488+
"element": "tag",
489+
"source": "ownerGroup",
490+
"order": 0
491+
},
492+
{
493+
"element": "tag",
494+
"source": "accessGroups",
495+
"order": 1
496+
}
497+
]
437498
}
438499
]
439500
},

0 commit comments

Comments
 (0)