Revision 3458
Added by barteau about 17 years ago
src/edu/ucsb/nceas/metacat/clientview/ClientFgdcHelper.java | ||
---|---|---|
87 | 87 |
//*** Remove Doc Id from any parent metadata document. |
88 | 88 |
revisedDocId = removeDataDocIdFromFGDC(docId, parentDocId, clientViewHelper); |
89 | 89 |
clientViewBean.setDocId(revisedDocId); |
90 |
//*** Set the new Metadata Doc Id in the bean. |
|
91 |
clientViewBean.setMetaFileDocId(revisedDocId); |
|
90 | 92 |
} else { |
91 | 93 |
clientViewHelper.setMetadataDoc(docId); |
92 | 94 |
//*** This is a metadata document, so remove all of the sub-docId's. |
... | ... | |
94 | 96 |
for(int i = 0; i < nodeLst.getLength(); i++) { |
95 | 97 |
node = nodeLst.item(i); |
96 | 98 |
subDocId = node.getNodeValue(); |
97 |
|
|
98 | 99 |
//*** Remove the sub-document. |
99 | 100 |
try { |
100 | 101 |
clientViewHelper.getMetacatClient().delete(subDocId); |
... | ... | |
102 | 103 |
ex.printStackTrace(); |
103 | 104 |
} |
104 | 105 |
} |
106 |
//*** We're deleting the Meta data doc, so clear it from the bean. |
|
107 |
clientViewBean.setMetaFileDocId(null); |
|
105 | 108 |
} |
106 | 109 |
//*** Remove the document. |
107 | 110 |
result = clientViewHelper.getMetacatClient().delete(docId); |
... | ... | |
117 | 120 |
String pathToDigform, revision = "", xPathQuery, tmp; |
118 | 121 |
Document doc; |
119 | 122 |
InputStream response; |
120 |
BufferedReader buffy; |
|
121 | 123 |
Properties prop; |
122 | 124 |
Node node; |
123 | 125 |
NodeList nodeLst; |
... | ... | |
342 | 344 |
ClientViewHelper.updateNodeText(root, xpath, pathToResdesc, fileName); |
343 | 345 |
} |
344 | 346 |
} |
347 |
|
|
345 | 348 |
} |
Also available in: Unified diff
Modified the "clientDeleteRequest" method to handle meta-file deletes.