Changeset 24993 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/XMLDocumentAction.java
- Timestamp:
- 2012-01-26T11:50:17+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/XMLDocumentAction.java
r24992 r24993 52 52 return result; 53 53 } 54 String lang = request.getAttribute(GSXML.LANG_ATT); 55 String uid = request.getAttribute(GSXML.USER_ID_ATT); 54 UserContext userContext = new UserContext(request); 56 55 57 56 // subaction used to decide if we are returning content or structure … … 74 73 Element mr_message = this.doc.createElement(GSXML.MESSAGE_ELEM); 75 74 76 Element ret_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);75 Element ret_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext); 77 76 mr_message.appendChild(ret_request); 78 77 … … 85 84 // also add in a request for the Title metadata 86 85 to = GSPath.appendLink(collection, "DocumentMetadataRetrieve"); 87 Element meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);86 Element meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext); 88 87 // copy the doc list 89 88 meta_request.appendChild(doc_list.cloneNode(true));
Note:
See TracChangeset
for help on using the changeset viewer.