- Timestamp:
- 2003-07-02T16:36:06+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/QueryAction.java
r4696 r4857 11 11 12 12 import java.util.HashMap; 13 import java.util.HashSet; 13 14 import java.util.Vector; 14 15 import java.util.Map; … … 85 86 } 86 87 88 HashSet metadata_names = new HashSet(); 89 // add in the default elements 90 metadata_names.add("Title"); 87 91 // add in the format info to the stylesheet if there is any 88 92 Element format_elem = (Element)GSXML.getChildByTagName(format_response, GSXML.FORMAT_ELEM); 89 93 if (format_elem != null) { 90 System.out.println("QueryAction: found a format element, adding it to the page response");94 ///ystem.out.println("QueryAction: found a format element, adding it to the page response"); 91 95 // set teh format type 92 96 format_elem.setAttribute(GSXML.TYPE_ATT, "search"); 93 97 // for now just add to the response 94 98 page_response.appendChild(doc_.importNode(format_elem, true)); 99 extractMetadataNames(format_elem, metadata_names); 95 100 } 96 101 97 102 98 103 // do the query … … 146 151 // just get all for now - the receptionist should perhaps pass in some 147 152 // metadata that it wants, and QueryAction should look through the format stuff to see if there is any other? 148 Element dm_param_list = doc_.createElement(GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER); 149 Element param = doc_.createElement(GSXML.PARAM_ELEM); 150 dm_param_list.appendChild(param); 151 param.setAttribute(GSXML.NAME_ATT, "metadata"); 152 param.setAttribute(GSXML.VALUE_ATT, "all"); 153 154 Element dm_param_list = createMetadataParamList(metadata_names); 155 153 156 mr_metadata_request.appendChild(dm_param_list); 154 157
Note:
See TracChangeset
for help on using the changeset viewer.