Commit 3197b3e2175f48959b289b7ba1e3572f4a3c8adc
1 parent
13ad9448
Exists in
master
and in
112 other branches
globalStart, Global stop to description added in AmdaAction; error in H format
Showing
2 changed files
with
18 additions
and
21 deletions
Show diff stats
js/app/models/InteractiveNode.js
... | ... | @@ -483,7 +483,7 @@ Ext.define('amdaModel.InteractiveNode', { |
483 | 483 | var stopDate = new Date(stopString.replace(/\-/g,'\/').replace(/[T|Z]/g,' ')); |
484 | 484 | if (stopDate - startDate > 86400000 ) { |
485 | 485 | var startTime = Ext.Date.add(stopDate, Ext.Date.DAY, -1); |
486 | - var timeObj = {start: Ext.Date.format(startTime, 'Y/m/d h:i:s'), stop: Ext.Date.format(stopDate, 'Y/m/d h:i:s')}; | |
486 | + var timeObj = {start: Ext.Date.format(startTime, 'Y/m/d H:i:s'), stop: Ext.Date.format(stopDate, 'Y/m/d H:i:s')}; | |
487 | 487 | } |
488 | 488 | else { |
489 | 489 | var timeObj = {start: node.get('globalStart'), stop: node.get('globalStop')}; |
... | ... |
php/classes/AmdaAction.php
... | ... | @@ -208,27 +208,24 @@ class AmdaAction { |
208 | 208 | $isSpectra = false; |
209 | 209 | $isStack = false; |
210 | 210 | |
211 | - if ($child->hasAttribute('desc')) $info = $child->getAttribute('desc'); | |
212 | - | |
213 | - if ($child->hasAttribute('sampling')) | |
214 | - { | |
215 | - $info = "Sampling: ".$child->getAttribute('sampling')."<br/>"; | |
216 | - if ($child->getAttribute('dataStart') == 'depending on mission') | |
217 | - { | |
218 | - $info .= "Time Range: ".$child->getAttribute('dataStart')."<br/>"; | |
219 | - } | |
220 | - else | |
221 | - { | |
222 | - $info .= "Time Range: ".$child->getAttribute('dataStart')."-".$child->getAttribute('dataStop')."<br/>"; | |
223 | - } | |
224 | - | |
225 | - if ($child->getAttribute('restriction') > 1) { | |
226 | - $restricted = $child->getAttribute('restriction'); | |
227 | - $info .= "<b>Time Restriction</b>: -$restricted days<br/>"; | |
228 | - } | |
211 | + if ($child->hasAttribute('desc')) { | |
212 | + | |
213 | + $info = $child->getAttribute('desc'); | |
214 | + | |
215 | + if ($child->hasAttribute('dataStart') && $child->hasAttribute('dataStop')) { | |
216 | + $info .= "<br/>Time Range: ".$child->getAttribute('dataStart')."-".$child->getAttribute('dataStop'); | |
217 | + } | |
218 | + | |
219 | + if ($child->getAttribute('dataStart') == 'depending on mission'){ | |
220 | + $info .= "<br/>Time Range: ".$child->getAttribute('dataStart'); | |
221 | + } | |
222 | + | |
223 | + if ($child->getAttribute('restriction') > 1) { | |
224 | + $restricted = $child->getAttribute('restriction'); | |
225 | + $info .= "<br/><b>Time Restriction</b>: -$restricted days"; | |
226 | + } | |
227 | + } | |
229 | 228 | |
230 | - $info .= "Source: ".$child->getAttribute('dataSource'); | |
231 | - } | |
232 | 229 | |
233 | 230 | if ($child->hasAttribute('units')) $info = $child->getAttribute('units'); |
234 | 231 | |
... | ... |