source: main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/CrossCollectionSearch.java@ 30958

Last change on this file since 30958 was 30958, checked in by kjdon, 8 years ago

in DocumentMetadataRetrieve, this was creating a paramlist with metadata=Title as the only parameter./Greenstone-3.08-candidate-2016.10.25-linux-x64 we need to use the param list from the original request so that we can get all metadata that is asked for.

  • Property svn:keywords set to Author Date Id Revision
File size: 20.5 KB
Line 
1/*
2 * CrossCollectionSearch.java
3 * Copyright (C) 2002 New Zealand Digital Library, http://www.nzdl.org
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19package org.greenstone.gsdl3.service;
20
21import java.util.ArrayList;
22import java.util.HashMap;
23import java.util.Iterator;
24import java.util.Map;
25import java.util.Set;
26
27import org.apache.log4j.Logger;
28import org.greenstone.gsdl3.util.GSPath;
29import org.greenstone.gsdl3.util.GSXML;
30import org.greenstone.gsdl3.util.UserContext;
31import org.greenstone.gsdl3.util.XMLConverter;
32
33import org.w3c.dom.Document;
34import org.w3c.dom.Element;
35import org.w3c.dom.Node;
36import org.w3c.dom.NodeList;
37
38/**
39 * This ServiceRack gets specified in siteConfig.xml. So it is loaded by the MessaegRouter, and two services get activated: TextQuery, DocumentMetadataRetrieve.
40These are located at MR level, not inside a collection. QueryAction will send messages to "TextQuery", rather than eg "mgppdemo/TextQuery".
41These two services will requery the MR for search results/document metadata based on collections or documents listed.
42 */
43
44public class CrossCollectionSearch extends ServiceRack
45{
46
47 static Logger logger = Logger.getLogger(org.greenstone.gsdl3.service.CrossCollectionSearch.class.getName());
48 protected static final String QUERY_PARAM = "query";
49 protected static final String COLLECTION_PARAM = "collection";
50 protected static final String MAXDOCS_PARAM = "maxDocs"; // matches standard maxDocs, but in this case, means max docs per collection
51 protected static final String HITS_PER_PAGE_PARAM = "hitsPerPage";
52 protected static final String MAXDOCS_DEFAULT = "20";
53 // the services on offer - these proxy the actual collection ones
54 protected static final String TEXT_QUERY_SERVICE = "TextQuery";
55 protected static final String DOCUMENT_METADATA_RETRIEVE_SERVICE = "DocumentMetadataRetrieve";
56
57 protected String[] coll_ids_list = null;
58 protected String[] coll_ids_list_no_all = null;
59 // maps lang to coll names list
60 protected HashMap<String, String[]> coll_names_map = null;
61
62 //protected String[] coll_names_list = null;
63
64 /** constructor */
65 public CrossCollectionSearch()
66 {
67 }
68
69 public boolean configure(Element info, Element extra_info)
70 {
71 // any parameters? colls to include??
72 logger.info("Configuring CrossCollectionSearch...");
73 // query service
74 Element ccs_service = this.desc_doc.createElement(GSXML.SERVICE_ELEM);
75 ccs_service.setAttribute(GSXML.TYPE_ATT, GSXML.SERVICE_TYPE_QUERY);
76 ccs_service.setAttribute(GSXML.NAME_ATT, TEXT_QUERY_SERVICE);
77 this.short_service_info.appendChild(ccs_service);
78
79 // metadata service
80 Element dmr_service = this.desc_doc.createElement(GSXML.SERVICE_ELEM);
81 dmr_service.setAttribute(GSXML.TYPE_ATT, GSXML.SERVICE_TYPE_RETRIEVE);
82 dmr_service.setAttribute(GSXML.NAME_ATT, DOCUMENT_METADATA_RETRIEVE_SERVICE);
83 this.short_service_info.appendChild(dmr_service);
84
85 // get any format info
86 Element format_info = (Element) GSXML.getChildByTagName(info, GSXML.FORMAT_ELEM);
87 if (format_info != null)
88 {
89 this.format_info_map.put(TEXT_QUERY_SERVICE, this.desc_doc.importNode(format_info, true));
90 }
91 else
92 {
93 // add in a default format statement
94 //"xmlns:gsf='" + GSXML.GSF_NAMESPACE + "' xmlns:xsl='" + GSXML.XSL_NAMESPACE + "
95 String format_string = "<format "+GSXML.STD_NAMESPACES_ATTS + "><gsf:template match='documentNode'><td><a><xsl:attribute name='href'>?a=d&amp;c=<xsl:value-of select='@collection'/>&amp;d=<xsl:value-of select='@nodeID'/><xsl:if test=\"@nodeType='leaf'\">&amp;sib=1</xsl:if>&amp;dt=<xsl:value-of select='@docType'/>&amp;p.a=q&amp;p.s=" + TEXT_QUERY_SERVICE + "&amp;p.c=";
96 if (this.cluster_name != null)
97 {
98 format_string += this.cluster_name;
99 }
100 format_string += "</xsl:attribute><gsf:icon/></a></td><td><gsf:metadata name='Title'/> (<xsl:value-of select='@collection'/>) </td></gsf:template></format>";
101 this.format_info_map.put(TEXT_QUERY_SERVICE, this.desc_doc.importNode(this.converter.getDOM(format_string).getDocumentElement(), true));
102 }
103 return true;
104 }
105
106 protected Element getServiceDescription(Document doc, String service, String lang, String subset)
107 {
108 if (service.equals(TEXT_QUERY_SERVICE))
109 {
110
111 Element ccs_service = doc.createElement(GSXML.SERVICE_ELEM);
112 ccs_service.setAttribute(GSXML.TYPE_ATT, GSXML.SERVICE_TYPE_QUERY);
113 ccs_service.setAttribute(GSXML.NAME_ATT, TEXT_QUERY_SERVICE);
114
115 // display info
116 if (subset == null || subset.equals(GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER))
117 {
118 ccs_service.appendChild(GSXML.createDisplayTextElement(doc, GSXML.DISPLAY_TEXT_NAME, getTextString(TEXT_QUERY_SERVICE + ".name", lang)));
119 ccs_service.appendChild(GSXML.createDisplayTextElement(doc, GSXML.DISPLAY_TEXT_SUBMIT, getTextString(TEXT_QUERY_SERVICE + ".submit", lang)));
120 ccs_service.appendChild(GSXML.createDisplayTextElement(doc, GSXML.DISPLAY_TEXT_DESCRIPTION, getTextString(TEXT_QUERY_SERVICE + ".description", lang)));
121 }
122 // param info
123 if (subset == null || subset.equals(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER))
124 {
125 Element param_list = doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);
126 // collection list
127 if (coll_ids_list == null)
128 {
129 initCollectionList(lang);
130 }
131 if (!coll_names_map.containsKey(lang))
132 {
133 addCollectionNames(lang);
134 }
135 Element param = GSXML.createParameterDescription(doc, COLLECTION_PARAM, getTextString("param." + COLLECTION_PARAM, lang), GSXML.PARAM_TYPE_ENUM_MULTI, "all", coll_ids_list, coll_names_map.get(lang));
136 param_list.appendChild(param);
137 // max docs param
138 param = GSXML.createParameterDescription(doc, MAXDOCS_PARAM, getTextString("param." + MAXDOCS_PARAM, lang), GSXML.PARAM_TYPE_INTEGER, MAXDOCS_DEFAULT, null, null);
139 param_list.appendChild(param);
140 // query param
141 param = GSXML.createParameterDescription(doc, QUERY_PARAM, getTextString("param." + QUERY_PARAM, lang), GSXML.PARAM_TYPE_STRING, null, null, null);
142 param_list.appendChild(param);
143 ccs_service.appendChild(param_list);
144 }
145
146 logger.debug("service description=" + this.converter.getPrettyString(ccs_service));
147 return ccs_service;
148 }
149 // these ones are probably never called, but put them here just in case
150 Element service_elem = doc.createElement(GSXML.SERVICE_ELEM);
151 service_elem.setAttribute(GSXML.TYPE_ATT, GSXML.SERVICE_TYPE_RETRIEVE);
152 service_elem.setAttribute(GSXML.NAME_ATT, service);
153 return service_elem;
154
155 }
156
157 protected Element processTextQuery(Element request)
158 {
159 // Create a new (empty) result message
160 Document result_doc = XMLConverter.newDOM();
161 Element result = result_doc.createElement(GSXML.RESPONSE_ELEM);
162 result.setAttribute(GSXML.FROM_ATT, TEXT_QUERY_SERVICE);
163 result.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_PROCESS);
164
165 UserContext userContext = new UserContext(request);
166
167 // Get the parameters of the request
168 Element param_list = (Element) GSXML.getChildByTagName(request, GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);
169 if (param_list == null)
170 {
171 logger.error("TextQuery request had no paramList.");
172 return result; // Return the empty result
173 }
174
175 // get the collection list
176 String[] colls_list = coll_ids_list_no_all;
177 Element coll_param = GSXML.getNamedElement(param_list, GSXML.PARAM_ELEM, GSXML.NAME_ATT, COLLECTION_PARAM);
178 if (coll_param != null)
179 {
180 String coll_list = GSXML.getValue(coll_param);
181 if (!coll_list.equals("all") && !coll_list.equals(""))
182 {
183 colls_list = coll_list.split(",");
184 }
185 }
186
187 String maxdocs = MAXDOCS_DEFAULT;
188 Element maxdocs_param = GSXML.getNamedElement(param_list, GSXML.PARAM_ELEM, GSXML.NAME_ATT, MAXDOCS_PARAM);
189 if (maxdocs_param != null) {
190 maxdocs = GSXML.getValue(maxdocs_param);
191 }
192
193 Document msg_doc = XMLConverter.newDOM();
194 Element query_message = msg_doc.createElement(GSXML.MESSAGE_ELEM);
195 // we are sending the same request to each collection - build up the to
196 // attribute for the request
197 StringBuffer to_att = new StringBuffer();
198 for (int i = 0; i < colls_list.length; i++)
199 {
200 if (i > 0)
201 {
202 to_att.append(",");
203 }
204 to_att.append(GSPath.appendLink(colls_list[i], "TextQuery"));
205
206 }
207 // send the query to all colls
208 Element query_request = GSXML.createBasicRequest(msg_doc, GSXML.REQUEST_TYPE_PROCESS, to_att.toString(), userContext);
209 query_message.appendChild(query_request);
210 // should we add params individually?
211 Element new_param_list = msg_doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);
212 query_request.appendChild(new_param_list);
213 new_param_list.appendChild(msg_doc.importNode(GSXML.getNamedElement(param_list, GSXML.PARAM_ELEM, GSXML.NAME_ATT, QUERY_PARAM), true));
214
215 // for cross coll search, we only want maxdocs from each collection
216 // some colls use maxdocs, some use hits per page so lets send both
217 new_param_list.appendChild(GSXML.createParameter(msg_doc, MAXDOCS_PARAM, maxdocs));
218 new_param_list.appendChild(GSXML.createParameter(msg_doc, HITS_PER_PAGE_PARAM, maxdocs));
219 Element query_result = (Element) this.router.process(query_message);
220
221 // create the doc list for the response
222 Element doc_node_list = result_doc.createElement(GSXML.DOC_NODE_ELEM + GSXML.LIST_MODIFIER);
223 result.appendChild(doc_node_list);
224
225 NodeList responses = query_result.getElementsByTagName(GSXML.RESPONSE_ELEM);
226 int num_docs = 0;
227 for (int k = 0; k < responses.getLength(); k++)
228 {
229 String coll_name = GSPath.removeLastLink(((Element) responses.item(k)).getAttribute(GSXML.FROM_ATT));
230 NodeList nodes = ((Element) responses.item(k)).getElementsByTagName(GSXML.DOC_NODE_ELEM);
231 if (nodes == null || nodes.getLength() == 0)
232 continue;
233 num_docs += nodes.getLength();
234 Element last_node = null;
235 Element this_node = null;
236 for (int n = 0; n < nodes.getLength(); n++)
237 {
238 this_node = (Element) nodes.item(n);
239 this_node.setAttribute("collection", coll_name);
240 if (k == 0)
241 {
242
243 doc_node_list.appendChild(result_doc.importNode(this_node, true));
244 }
245 else
246 {
247 if (last_node == null)
248 {
249 last_node = (Element) GSXML.getChildByTagName(doc_node_list, GSXML.DOC_NODE_ELEM);
250 }
251 last_node = GSXML.insertIntoOrderedList(doc_node_list, GSXML.DOC_NODE_ELEM, last_node, this_node, "rank", true);
252 }
253
254 }
255 }
256 // just send back num docs returned. Too hard to work out number of matches etc as each index type
257 // does it differently
258 Element metadata_list = result_doc.createElement(GSXML.METADATA_ELEM + GSXML.LIST_MODIFIER);
259 result.appendChild(metadata_list);
260 GSXML.addMetadata(metadata_list, "numDocsReturned", "" + num_docs);
261 return result;
262 }
263
264 // protected Element processAdvTextQuery(Element request)
265 // {
266
267 // }
268 protected boolean initCollectionList(String lang)
269 {
270 UserContext userContext = new UserContext();
271 userContext.setLanguage(lang);
272 userContext.setUserID("");
273
274 // first, get the message router info
275 Document msg_doc = XMLConverter.newDOM();
276 Element coll_list_message = msg_doc.createElement(GSXML.MESSAGE_ELEM);
277 Element coll_list_request = GSXML.createBasicRequest(msg_doc, GSXML.REQUEST_TYPE_DESCRIBE, "", userContext); // uid
278 coll_list_message.appendChild(coll_list_request);
279 logger.debug("coll list request = " + this.converter.getPrettyString(coll_list_request));
280 Element coll_list_response = (Element) this.router.process(coll_list_message);
281 if (coll_list_response == null)
282 {
283 logger.error("couldn't query the message router!");
284 return false;
285 }
286 logger.debug("coll list response = " + this.converter.getPrettyString(coll_list_response));
287 // second, get some info from each collection. we want the coll name
288 // and whether its got a text query service
289
290 NodeList colls = coll_list_response.getElementsByTagName(GSXML.COLLECTION_ELEM);
291 // we can send the same request to multiple collections at once by using a comma separated list
292 Element metadata_message = msg_doc.createElement(GSXML.MESSAGE_ELEM);
293 StringBuffer colls_sb = new StringBuffer();
294 for (int i = 0; i < colls.getLength(); i++)
295 {
296 Element c = (Element) colls.item(i);
297 String name = c.getAttribute(GSXML.NAME_ATT);
298 if (i != 0)
299 {
300 colls_sb.append(",");
301 }
302 colls_sb.append(name);
303 //Element metadata_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_DESCRIBE, name, userContext);
304 //metadata_message.appendChild(metadata_request);
305 }
306
307 Element metadata_request = GSXML.createBasicRequest(msg_doc, GSXML.REQUEST_TYPE_DESCRIBE, colls_sb.toString(), userContext);
308 metadata_message.appendChild(metadata_request);
309 logger.debug("metadata request = " + this.converter.getPrettyString(metadata_message));
310 Element metadata_response = (Element) this.router.process(metadata_message);
311 logger.debug("metadata response = " + this.converter.getPrettyString(metadata_response));
312 NodeList coll_responses = metadata_response.getElementsByTagName(GSXML.RESPONSE_ELEM);
313 ArrayList<String> valid_colls = new ArrayList<String>();
314 ArrayList<String> valid_coll_names = new ArrayList<String>();
315 for (int i = 0; i < coll_responses.getLength(); i++)
316 {
317 Element response = (Element) coll_responses.item(i);
318 Element coll = (Element) GSXML.getChildByTagName(response, GSXML.COLLECTION_ELEM);
319 Element service_list = (Element) GSXML.getChildByTagName(coll, GSXML.SERVICE_ELEM + GSXML.LIST_MODIFIER);
320 if (service_list == null)
321 continue;
322 Element query_service = GSXML.getNamedElement(service_list, GSXML.SERVICE_ELEM, GSXML.NAME_ATT, TEXT_QUERY_SERVICE); // should be AbstractTextSearch.TEXT_QUERY_SERVICE
323 if (query_service == null)
324 continue;
325 // use the name of the response in case we are talking to a remote collection, not the name of the collection.
326 String coll_id = response.getAttribute(GSXML.FROM_ATT);
327 String coll_name = getDisplayText(coll, GSXML.DISPLAY_TEXT_NAME, lang, "en");
328 valid_colls.add(coll_id);
329 valid_coll_names.add(coll_name);
330 }
331
332 this.coll_names_map = new HashMap<String, String[]>();
333
334 // ids no all has the list without 'all' option.
335 this.coll_ids_list_no_all = new String[1];
336 this.coll_ids_list_no_all = valid_colls.toArray(coll_ids_list_no_all);
337
338 valid_colls.add(0, "all");
339 valid_coll_names.add(0, getTextString("param." + COLLECTION_PARAM + ".all", lang));
340
341 this.coll_ids_list = new String[1];
342 this.coll_ids_list = valid_colls.toArray(coll_ids_list);
343
344 String[] coll_names_list = new String[1];
345 coll_names_list = valid_coll_names.toArray(coll_names_list);
346 this.coll_names_map.put(lang, coll_names_list);
347 return true;
348 }
349
350 protected void addCollectionNames(String lang)
351 {
352
353 UserContext userContext = new UserContext();
354 userContext.setLanguage(lang);
355 userContext.setUserID("");
356
357 ArrayList<String> coll_names = new ArrayList<String>();
358 coll_names.add(getTextString("param." + COLLECTION_PARAM + ".all", lang));
359
360 // need to request MR for collection descriptions
361 Document msg_doc = XMLConverter.newDOM();
362 Element metadata_message = msg_doc.createElement(GSXML.MESSAGE_ELEM);
363
364 // get a comma separated list of coll ids to send to MR
365 // the first item is the place holder for 'all'
366 StringBuffer colls_sb = new StringBuffer();
367 for (int i = 1; i < coll_ids_list.length; i++)
368 {
369 if (i != 1)
370 {
371 colls_sb.append(",");
372 }
373 colls_sb.append(coll_ids_list[i]);
374 }
375 Element metadata_request = GSXML.createBasicRequest(msg_doc, GSXML.REQUEST_TYPE_DESCRIBE, colls_sb.toString(), userContext);
376 // param_list to request just displayTextList
377 Element param_list = msg_doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);
378 Element param = GSXML.createParameter(msg_doc, GSXML.SUBSET_PARAM, GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER);
379 param_list.appendChild(param);
380 metadata_request.appendChild(param_list);
381 metadata_message.appendChild(metadata_request);
382 logger.debug("coll names metadata request = " + this.converter.getPrettyString(metadata_message));
383 Element metadata_response = (Element) this.router.process(metadata_message);
384 logger.debug("coll names metadata response = " + this.converter.getPrettyString(metadata_response));
385 NodeList coll_responses = metadata_response.getElementsByTagName(GSXML.RESPONSE_ELEM);
386 for (int i = 0; i < coll_responses.getLength(); i++)
387 {
388 Element response = (Element) coll_responses.item(i);
389 Element coll = (Element) GSXML.getChildByTagName(response, GSXML.COLLECTION_ELEM);
390 String coll_name = getDisplayText(coll, GSXML.DISPLAY_TEXT_NAME, lang, "en");
391 coll_names.add(coll_name);
392 }
393
394 String[] coll_names_list = new String[1];
395 coll_names_list = coll_names.toArray(coll_names_list);
396 this.coll_names_map.put(lang, coll_names_list);
397
398 }
399
400 protected Element processDocumentMetadataRetrieve(Element request)
401 {
402 // Create a new (empty) result message
403 Document result_doc = XMLConverter.newDOM();
404 Element result = result_doc.createElement(GSXML.RESPONSE_ELEM);
405 result.setAttribute(GSXML.FROM_ATT, DOCUMENT_METADATA_RETRIEVE_SERVICE);
406 result.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_PROCESS);
407
408 UserContext userContext = new UserContext(request);
409 // Get the parameters of the request
410 Element param_list = (Element) GSXML.getChildByTagName(request, GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);
411 if (param_list == null)
412 {
413 logger.error("DocumentMetadataRetrieve request had no paramList.");
414 return result; // Return the empty result
415 }
416
417 NodeList query_doc_list = request.getElementsByTagName(GSXML.DOC_NODE_ELEM);
418 if (query_doc_list.getLength() == 0)
419 {
420 logger.error("DocumentMetadataRetrieve request had no documentNodes.");
421 return result; // Return the empty result
422 }
423
424 // the resulting doc node list
425 Element result_node_list = result_doc.createElement(GSXML.DOC_NODE_ELEM + GSXML.LIST_MODIFIER);
426 result.appendChild(result_node_list);
427
428
429 // organise the nodes into collection lists
430 HashMap<String, Node> coll_map = new HashMap<String, Node>();
431
432 for (int i = 0; i < query_doc_list.getLength(); i++)
433 {
434 Element doc_node = (Element) query_doc_list.item(i);
435 String coll_name = doc_node.getAttribute("collection");
436 Element coll_items = (Element) coll_map.get(coll_name);
437 if (coll_items == null)
438 {
439 coll_items = result_doc.createElement(GSXML.DOC_NODE_ELEM + GSXML.LIST_MODIFIER);
440 coll_map.put(coll_name, coll_items);
441 }
442 coll_items.appendChild(result_doc.importNode(doc_node, true));
443 }
444
445 // create teh individual requests
446 Document msg_doc = XMLConverter.newDOM();
447 Element meta_request_message = msg_doc.createElement(GSXML.MESSAGE_ELEM);
448
449 Set mapping_set = coll_map.entrySet();
450 Iterator iter = mapping_set.iterator();
451
452 while (iter.hasNext())
453 {
454 Map.Entry e = (Map.Entry) iter.next();
455 String cname = (String) e.getKey();
456 Element doc_nodes = (Element) e.getValue();
457 Element meta_request = GSXML.createBasicRequest(msg_doc, GSXML.REQUEST_TYPE_PROCESS, GSPath.appendLink(cname, DOCUMENT_METADATA_RETRIEVE_SERVICE), userContext);
458 meta_request.appendChild(msg_doc.importNode(doc_nodes, true));
459 meta_request.appendChild(msg_doc.importNode(param_list, true));
460 meta_request_message.appendChild(meta_request);
461
462 }
463
464 Node meta_result_node = this.router.process(meta_request_message);
465 Element meta_result = GSXML.nodeToElement(meta_result_node);
466
467 // now need to put the doc nodes back in the right order
468 // go through the original list again. keep an element pointer to
469 // the next element in each collections list
470 NodeList meta_responses = meta_result.getElementsByTagName(GSXML.RESPONSE_ELEM);
471 for (int i = 0; i < meta_responses.getLength(); i++)
472 {
473 String collname = GSPath.removeLastLink(((Element) meta_responses.item(i)).getAttribute(GSXML.FROM_ATT));
474 Element first_elem = (Element) GSXML.getNodeByPath(meta_responses.item(i), "documentNodeList/documentNode");
475 coll_map.put(collname, first_elem);
476 }
477
478 for (int i = 0; i < query_doc_list.getLength(); i++)
479 {
480 Element doc_node = (Element) query_doc_list.item(i);
481 Element new_node = (Element) result_doc.importNode(doc_node, false);
482 result_node_list.appendChild(new_node);
483 String coll_name = doc_node.getAttribute("collection");
484
485 Element meta_elem = (Element) coll_map.get(coll_name);
486 GSXML.mergeMetadataLists(new_node, meta_elem);
487 coll_map.put(coll_name, meta_elem.getNextSibling());
488 }
489 return result;
490 }
491}
Note: See TracBrowser for help on using the repository browser.