Skip to content

Commit 0b1c130

Browse files
committed
put in x_constant so we know to insert a column
1 parent b9589f6 commit 0b1c130

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

HapiServerBase/src/org/hapiserver/source/tap/CsaInfoCatalogSource.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public static String getInfo(String id) throws IOException {
239239
String sdata= c.getTextContent();
240240
constantData[i]= sdata;
241241
String[] ss= constantData[i].trim().split("\\s+");
242-
if ( ss.length>1 ) {
242+
if ( ss.length>1 ) { // ytags vs constant like time_width.
243243
JSONObject data= new JSONObject();
244244
data.put( "name", name );
245245
JSONArray ja= new JSONArray();
@@ -325,6 +325,13 @@ public static String getInfo(String id) throws IOException {
325325
String nodeName= c.getNodeName();
326326
String nodeValue= c.getTextContent();
327327
switch (c.getNodeName()) {
328+
case "DATA":
329+
String sdata= c.getTextContent();
330+
String[] ss= sdata.trim().split("\\s+");
331+
if ( ss.length==1 ) { // ytags vs constant like time_width.
332+
parameter.put("x_constant", ss[0] );
333+
}
334+
break;
328335
case "PARAMETER_ID":
329336
if ( popLabel ) {
330337
nodeValue= nodeValue.substring(0,nodeValue.length()-2-id.length());

0 commit comments

Comments
 (0)