Changeset 32070 for main/trunk
- Timestamp:
- 2017-11-14T14:38:11+13:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/DocumentAction.java
r32069 r32070 150 150 } 151 151 152 String document_type = (String) params.get(GSParams.DOCUMENT_TYPE); 153 if (document_type != null && document_type.equals("")) 154 { 155 //document_type = "hierarchy"; 156 document_type = null; // we'll get it later if not already specified 157 } 158 // what if it is null here?? Anu to check... 152 159 153 160 boolean editing_document = false; … … 186 193 187 194 Element doc_elem = doc.createElement(GSXML.DOCUMENT_ELEM); 195 doc_elem.setAttribute(GSXML.DOC_TYPE_ATT, document_type); 188 196 page_response.appendChild(doc_elem); 189 197 section.setAttribute(GSXML.NODE_ID_ATT, document_id); … … 195 203 } 196 204 197 String document_type = (String) params.get(GSParams.DOCUMENT_TYPE);198 if (document_type != null && document_type.equals(""))199 {200 //document_type = "hierarchy";201 document_type = null; // we'll get it later if not already specified202 }203 205 //whether to retrieve siblings or not 204 206 boolean get_siblings = false;
Note:
See TracChangeset
for help on using the changeset viewer.