Revision 3625
Added by barteau about 17 years ago
src/edu/ucsb/nceas/metacat/clientview/ClientViewHelper.java | ||
---|---|---|
488 | 488 |
//*** Get the qformat. |
489 | 489 |
qFrmt = (String) paramsMap.get("qformat"); |
490 | 490 |
clientViewBean.setQformat(qFrmt); |
491 |
|
|
491 |
|
|
492 | 492 |
fNm = fileName.toString(); |
493 | 493 |
|
494 | 494 |
try { |
... | ... | |
1114 | 1114 |
String result = ""; |
1115 | 1115 |
Text textNode; |
1116 | 1116 |
|
1117 |
textNode = (Text) getNode(xPath, "text()", elementNode); |
|
1117 |
if (elementNode.getNodeType() != Node.TEXT_NODE) |
|
1118 |
textNode = (Text) getNode(xPath, "text()", elementNode); |
|
1119 |
else |
|
1120 |
textNode = (Text) elementNode; |
|
1118 | 1121 |
if (textNode != null) |
1119 | 1122 |
result = textNode.getNodeValue(); |
1120 | 1123 |
return(result); |
Also available in: Unified diff
Fixed a couple of bugs: 1) Threw an error when updating a packages public access (lost the data files doc id's) and 2) returns a message after access is changed.
Both were fixed by not attempting to get a child text node from a text node.