Revision 3306
Added by barteau over 17 years ago
lib/style/skins/knp/SaeonLogin.jspx | ||
---|---|---|
106 | 106 |
|
107 | 107 |
metacatClient.setSessValue("updateFeedback", "Press the 'Delete' or 'Update' button to perform task to the selected document.", request); |
108 | 108 |
} else if (action.equals("Delete")) { |
109 |
docId = metacatClient.getSessValue("docId", request); |
|
110 |
try { |
|
111 |
updateFeedback = metacatClient.delete(docId); |
|
112 |
} catch (MetacatException ex) { |
|
113 |
System.out.println("*** SaeonLogin.jspx ***\n" + ex); |
|
114 |
} |
|
115 |
updateFeedback += metacatClient.removeDataDocIdFromFGDC(request); |
|
116 |
metacatClient.setSessValue("updateFeedback", updateFeedback, request); |
|
109 |
metacatClient.clientDeleteRequest(request); |
|
117 | 110 |
allDocIds = metacatClient.getSelectQueryMap(request); |
118 | 111 |
allDocIdsSelect = metacatClient.mapToHtmlSelect(allDocIds, "documentIDs", "width: 240", 10); |
119 | 112 |
metacatClient.setSessValue("allDocIdsSelect", allDocIdsSelect, request); |
Also available in: Unified diff
Moved delete code out JSP and into MetacatClient.java