Commit 66df72d0d4058772a07cd1e63ccaadac86afd4c2
Exists in
master
and in
95 other branches
Merge branch 'master' into expression-parser-bre
Showing
22 changed files
with
143 additions
and
59 deletions
Show diff stats
generic_data/rank.json
1 | -{"Mercury": 1, "Venus": 2, "Heliosphere.NearEarth": 3, "Heliosphere.Remote1AU": 4, | |
2 | -"Earth.Magnetosheath": 5, "Earth.Magnetosphere": 5, "Earth": 5, "Earth.Surface": 6, | |
3 | -"Mars": 7, "Jupiter": 8, "Ganymede" : 8, "Saturn": 9, "Uranus" : 10, "Neptune" : 11, "Comet" : 93, | |
1 | +{"Sun" : 1, "Mercury": 2, "Venus": 3, "Heliosphere.NearEarth": 4, "Heliosphere.Remote1AU": 5, | |
2 | +"Earth.Magnetosheath": 6, "Earth.Magnetosphere": 6, "Earth": 6, "Earth.Surface": 7, | |
3 | +"Mars": 8, "Jupiter": 9, "Ganymede" : 9, "Saturn": 91, "Uranus" : 92, "Neptune" : 93, "Comet" : 94, | |
4 | 4 | "Heliosphere" : 99 } |
5 | 5 | \ No newline at end of file |
... | ... |
200 KB
137 KB
85.6 KB
56.1 KB
94.4 KB
103 KB
js/app/models/LocalParamNode.js
... | ... | @@ -28,9 +28,9 @@ Ext.define('amdaModel.LocalParamNode', |
28 | 28 | {name: 'rank', type: 'integer', persist: false, defaultValue: null} |
29 | 29 | ], |
30 | 30 | |
31 | - icons : {'1' : 'icon-mercury','2' : 'icon-venus','3' : 'icon-sw','4' : 'icon-sw','5' : 'icon-earth','6' : 'icon-earth', | |
32 | - '7' : 'icon-mars','8' : 'icon-jupiter','9' : 'icon-saturn','10' : 'icon-uranus','11' : 'icon-neptune', | |
33 | - '93' :'icon-comet', '99' :'icon-solarsystem', '999' :'icon-solarsystem' | |
31 | + icons : {'1' : 'icon-sun', '2' : 'icon-mercury','3' : 'icon-venus','4' : 'icon-sw','5' : 'icon-sw','6' : 'icon-earth','7' : 'icon-earth', | |
32 | + '8' : 'icon-mars','9' : 'icon-jupiter','91' : 'icon-saturn','92' : 'icon-uranus','93' : 'icon-neptune', | |
33 | + '94' :'icon-comet', '99' :'icon-solarsystem', '999' :'icon-solarsystem' | |
34 | 34 | }, |
35 | 35 | |
36 | 36 | constructor : function(config) |
... | ... |
js/app/models/PlotObjects/PlotLayoutAutoObject.js
... | ... | @@ -14,18 +14,41 @@ |
14 | 14 | |
15 | 15 | |
16 | 16 | Ext.define('amdaPlotObj.PlotLayoutAutoObject', { |
17 | - extend: 'Ext.data.Model', | |
17 | + extend: 'Ext.data.Model', | |
18 | 18 | |
19 | - requires: [ | |
20 | - 'amdaPlotObj.PlotObjectConfig' | |
21 | - ], | |
19 | + requires: [ | |
20 | + 'amdaPlotObj.PlotObjectConfig' | |
21 | + ], | |
22 | 22 | |
23 | - fields : [ | |
24 | - {name: 'layout-panel-height', type: 'float', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelHeight}, | |
25 | - {name: 'layout-panel-spacing', type: 'float', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelSpacing}, | |
26 | - {name: 'layout-expand', type: 'boolean', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.expand}, | |
27 | - {name: 'layout-timeaxes-legend-lowerone', type: 'boolean', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.timeAxesLegend} | |
23 | + fields : [ | |
24 | + {name: 'layout-panel-height', type: 'float'}, | |
25 | + {name: 'layout-panel-spacing', type: 'float'}, | |
26 | + {name: 'layout-expand', type: 'boolean'}, | |
27 | + {name: 'layout-timeaxes-legend-lowerone', type: 'boolean'} | |
28 | 28 | ], |
29 | + | |
30 | + constructor: function() | |
31 | + { | |
32 | + var me = this; | |
33 | + me.callParent(arguments); | |
34 | + if ((arguments.length > 0) && arguments[0]) | |
35 | + { | |
36 | + } | |
37 | + else | |
38 | + { | |
39 | + //new object, set default fields values | |
40 | + me.setDefaultValues(); | |
41 | + } | |
42 | + this.dirty = false; | |
43 | + }, | |
44 | + | |
45 | + setDefaultValues: function() | |
46 | + { | |
47 | + this.set('layout-panel-height', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelHeight); | |
48 | + this.set('layout-panel-spacing', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelSpacing); | |
49 | + this.set('layout-expand', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.expand); | |
50 | + this.set('layout-timeaxes-legend-lowerone', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.timeAxesLegend); | |
51 | + }, | |
29 | 52 | |
30 | 53 | getJsonValues : function() |
31 | 54 | { |
... | ... |
js/app/models/PlotObjects/PlotLayoutVerticalObject.js
... | ... | @@ -14,23 +14,45 @@ |
14 | 14 | |
15 | 15 | |
16 | 16 | Ext.define('amdaPlotObj.PlotLayoutVerticalObject', { |
17 | - extend: 'Ext.data.Model', | |
17 | + extend: 'Ext.data.Model', | |
18 | 18 | |
19 | - requires: [ | |
20 | - 'amdaPlotObj.PlotObjectConfig' | |
21 | - ], | |
19 | + requires: [ | |
20 | + 'amdaPlotObj.PlotObjectConfig' | |
21 | + ], | |
22 | 22 | |
23 | - fields : [ | |
24 | - {name: 'layout-panel-height', type: 'float', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelHeight}, | |
25 | - {name: 'layout-panel-spacing', type: 'float', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelSpacing}, | |
26 | - {name: 'layout-expand', type: 'boolean', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.expand}, | |
27 | - {name: 'layout-timeaxes-legend-lowerone', type: 'boolean', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.timeAxesLegend}, | |
28 | - //{name: 'layout-timeplot-width', type: 'float', useNull:true}, | |
29 | - {name: 'layout-timeplot-height', type: 'float', useNull:true}, | |
30 | - {name: 'layout-xyplot-width', type: 'float', useNull:true}, | |
31 | - {name: 'layout-xyplot-height', type: 'float', useNull:true} | |
23 | + fields : [ | |
24 | + {name: 'layout-panel-height', type: 'float'}, | |
25 | + {name: 'layout-panel-spacing', type: 'float'}, | |
26 | + {name: 'layout-expand', type: 'boolean'}, | |
27 | + {name: 'layout-timeaxes-legend-lowerone', type: 'boolean'}, | |
28 | + //{name: 'layout-timeplot-width', type: 'float', useNull:true}, | |
29 | + {name: 'layout-timeplot-height', type: 'float', useNull:true}, | |
30 | + {name: 'layout-xyplot-width', type: 'float', useNull:true}, | |
31 | + {name: 'layout-xyplot-height', type: 'float', useNull:true} | |
32 | 32 | ], |
33 | - | |
33 | + | |
34 | + constructor: function() | |
35 | + { | |
36 | + var me = this; | |
37 | + me.callParent(arguments); | |
38 | + if ((arguments.length > 0) && arguments[0]) | |
39 | + { | |
40 | + } | |
41 | + else { | |
42 | + //new object, set default fields values | |
43 | + me.setDefaultValues(); | |
44 | + } | |
45 | + this.dirty = false; | |
46 | + }, | |
47 | + | |
48 | + setDefaultValues: function() | |
49 | + { | |
50 | + this.set('layout-panel-height', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelHeight); | |
51 | + this.set('layout-panel-spacing', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.panelSpacing); | |
52 | + this.set('layout-expand', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.expand); | |
53 | + this.set('layout-timeaxes-legend-lowerone', amdaPlotObj.PlotObjectConfig.defaultValues.page.layout.timeAxesLegend); | |
54 | + }, | |
55 | + | |
34 | 56 | getJsonValues : function() |
35 | 57 | { |
36 | 58 | var layoutValues = new Object(); |
... | ... |
js/app/models/PlotObjects/PlotLegendSeriesObject.js
... | ... | @@ -14,32 +14,46 @@ |
14 | 14 | |
15 | 15 | |
16 | 16 | Ext.define('amdaPlotObj.PlotLegendSeriesObject', { |
17 | - extend: 'Ext.data.Model', | |
17 | + extend: 'Ext.data.Model', | |
18 | 18 | |
19 | - requires: [ | |
20 | - 'amdaPlotObj.PlotObjectConfig' | |
21 | - ], | |
19 | + requires: [ | |
20 | + 'amdaPlotObj.PlotObjectConfig' | |
21 | + ], | |
22 | 22 | |
23 | - fields : [ | |
24 | - {name: 'legend-series-activated', type: 'boolean', defaultValue: false}, | |
25 | - {name: 'legend-series-type', type: 'string', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.type}, | |
26 | - {name: 'legend-series-position', type: 'string', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.position}, | |
27 | - {name: 'legend-series-showparaminfo', type: 'boolean', defaultValue: true}, | |
28 | - {name: 'legend-series-defaulttextcolor', type: 'string', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.text.color}, | |
29 | - {name: 'legend-series-border-activated', type: 'boolean', defaultValue: false}, | |
30 | - {name: 'legend-series-border-color', type: 'string', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.border.color}, | |
31 | - {name: 'legend-series-intervalinfo-activated', type: 'boolean', defaultValue: false}, | |
32 | - {name: 'legend-series-intervalinfo-type', type: 'string', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.intervalinfo.type}, | |
33 | - {name: 'legend-series-font-activated', type: 'boolean', defaultValue: false}, | |
34 | - {name: 'legend-series-font-name', type: 'string', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.font.name}, | |
35 | - {name: 'legend-series-font-size', type: 'int', defaultValue: amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.font.size}, | |
36 | - {name: 'legend-series-font-bold', type: 'boolean', defaultValue: false}, | |
37 | - {name: 'legend-series-font-italic', type: 'boolean', defaultValue: false} | |
23 | + fields : [ | |
24 | + {name: 'legend-series-activated', type: 'boolean'}, | |
25 | + {name: 'legend-series-type', type: 'string'}, | |
26 | + {name: 'legend-series-position', type: 'string'}, | |
27 | + {name: 'legend-series-showparaminfo', type: 'boolean'}, | |
28 | + {name: 'legend-series-defaulttextcolor', type: 'string'}, | |
29 | + {name: 'legend-series-border-activated', type: 'boolean'}, | |
30 | + {name: 'legend-series-border-color', type: 'string'}, | |
31 | + {name: 'legend-series-intervalinfo-activated', type: 'boolean'}, | |
32 | + {name: 'legend-series-intervalinfo-type', type: 'string'}, | |
33 | + {name: 'legend-series-font-activated', type: 'boolean'}, | |
34 | + {name: 'legend-series-font-name', type: 'string'}, | |
35 | + {name: 'legend-series-font-size', type: 'int'}, | |
36 | + {name: 'legend-series-font-bold', type: 'boolean'}, | |
37 | + {name: 'legend-series-font-italic', type: 'boolean'} | |
38 | 38 | ], |
39 | + | |
40 | + constructor: function() | |
41 | + { | |
42 | + var me = this; | |
43 | + me.callParent(arguments); | |
44 | + if ((arguments.length > 0) && arguments[0]) | |
45 | + { | |
46 | + } | |
47 | + else { | |
48 | + //new object, set default fields values | |
49 | + me.setDefaultValues(); | |
50 | + } | |
51 | + this.dirty = false; | |
52 | + }, | |
39 | 53 | |
40 | 54 | setDefaultValues: function() |
41 | 55 | { |
42 | - /*this.set('legend-series-activated', false); | |
56 | + this.set('legend-series-activated', false); | |
43 | 57 | this.set('legend-series-type', amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.type); |
44 | 58 | this.set('legend-series-position', amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.position); |
45 | 59 | this.set('legend-series-showparaminfo', true); |
... | ... | @@ -52,7 +66,7 @@ Ext.define('amdaPlotObj.PlotLegendSeriesObject', { |
52 | 66 | this.set('legend-series-font-name', amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.font.name); |
53 | 67 | this.set('legend-series-font-size', amdaPlotObj.PlotObjectConfig.defaultValues.legends.series.font.size); |
54 | 68 | this.set('legend-series-font-bold', false); |
55 | - this.set('legend-series-font-italic', false);*/ | |
69 | + this.set('legend-series-font-italic', false); | |
56 | 70 | }, |
57 | 71 | |
58 | 72 | getShortInfo : function() |
... | ... | @@ -86,4 +100,4 @@ Ext.define('amdaPlotObj.PlotLegendSeriesObject', { |
86 | 100 | |
87 | 101 | return legendValues; |
88 | 102 | } |
89 | -}); | |
90 | 103 | \ No newline at end of file |
104 | +}); | |
... | ... |
js/app/views/ExplorerUI.js
... | ... | @@ -232,7 +232,7 @@ Ext.define('amdaUI.ExplorerUI', { |
232 | 232 | toggleGroup: 'sorting', |
233 | 233 | handler: function(){ |
234 | 234 | var tree = Ext.getCmp(amdaUI.ExplorerUI.RESRC_TAB.TREE_ID); |
235 | - tree.getStore().sort([{ property : 'rank' }]); | |
235 | + tree.getStore().sort('rank'); | |
236 | 236 | this.updateFilter(); |
237 | 237 | } |
238 | 238 | }] |
... | ... |
js/resources/css/amda.css
... | ... | @@ -354,6 +354,12 @@ background-image: url(../images/16x16/error.png) !important; |
354 | 354 | opacity:0.5 !important; |
355 | 355 | } |
356 | 356 | |
357 | +.icon-sun { | |
358 | + background-image:url(../images/icons/sun.png) !important; | |
359 | + background-position: center; | |
360 | + background-repeat: no-repeat; | |
361 | +} | |
362 | + | |
357 | 363 | .icon-mercury { |
358 | 364 | background-image:url(../images/icons/mercury.png) !important; |
359 | 365 | background-position: center; |
... | ... |
php/classes/RequestMgr.php
... | ... | @@ -284,7 +284,7 @@ class RequestMgr extends AmdaObjectMgr |
284 | 284 | { |
285 | 285 | $argsTab['param'] = array_unique($params); |
286 | 286 | $argsTab['startTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->startDate; |
287 | - $argsTab['stopTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->stopDate; | |
287 | + $argsTab['stopTime'] = $tab->{'multi-plot-linked'} ? $obj->stopDate : $tab->stopDate; | |
288 | 288 | } |
289 | 289 | } |
290 | 290 | if (count($argsTab) > 0) $args[] = $argsTab; |
... | ... | @@ -314,8 +314,8 @@ class RequestMgr extends AmdaObjectMgr |
314 | 314 | { |
315 | 315 | // tab is not defined, iterate over $obj->tabs? |
316 | 316 | $argsTab['param'] = array_unique($params); |
317 | - $argsTab['startTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->startDate; | |
318 | - $argsTab['stopTime'] = $tab->{'multi-plot-linked'} ? $obj->startDate : $tab->stopDate; | |
317 | + $argsTab['startTime'] = $obj->startDate; | |
318 | + $argsTab['stopTime'] = $obj->stopDate; | |
319 | 319 | } |
320 | 320 | if (count($argsTab) > 0) $args[] = $argsTab; |
321 | 321 | |
... | ... |
php/classes/TimeTableMgr.php
... | ... | @@ -452,10 +452,11 @@ class TimeTableMgr extends AmdaObjectMgr |
452 | 452 | $attributesToReturn['folderId'] = $folderId; |
453 | 453 | |
454 | 454 | if (!$onlyDescription) { |
455 | - $intNodes = $dom->getElementsByTagName('intervals'); | |
455 | + $xpath = new DOMXPath($dom); | |
456 | 456 | |
457 | - /** @var DOMElement $intNode */ | |
458 | - foreach ($intNodes as $intNode) { | |
457 | + $intervals = $xpath->query('//intervals'); | |
458 | + | |
459 | + foreach ($intervals as $intNode) { | |
459 | 460 | $startNodes = $intNode->getElementsByTagName('start'); |
460 | 461 | if ($startNodes->length <= 0) { |
461 | 462 | return ['error' => 'Error detected in result file']; |
... | ... |
php/config.php
... | ... | @@ -63,7 +63,7 @@ define('EPNTAP_APIS', 'http://voparis-tap.obspm.fr/__system__/tap/run/tap/sync') |
63 | 63 | define('EPNTAP_AMDA', 'http://cdpp-epntap.irap.omp.eu/__system__/tap/run/tap/sync'); |
64 | 64 | |
65 | 65 | // PHP run-time settings |
66 | -ini_set('memory_limit',128000000); | |
66 | +ini_set('memory_limit',256000000); | |
67 | 67 | ini_set('max_execution_time',600); // max PHP execution |
68 | 68 | |
69 | 69 | ini_set('default_socket_timeout', 600); //TODO if this is needed ? IMPEX LONG DURATION WEBSERVICES |
... | ... |