Changeset 24993 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/GS2BrowseAction.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/GS2BrowseAction.java
r24990 r24993 58 58 } 59 59 60 String lang = request.getAttribute(GSXML.LANG_ATT); 61 String uid = request.getAttribute(GSXML.USER_ID_ATT); 60 UserContext userContext = new UserContext(request); 62 61 String to = GSPath.appendLink(collection, service_name); 63 62 … … 67 66 68 67 Element info_message = this.doc.createElement(GSXML.MESSAGE_ELEM); 69 Element info_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, lang, uid);68 Element info_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, userContext); 70 69 info_message.appendChild(info_request); 71 70 72 71 // also get the format stuff now if there is some 73 Element format_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_FORMAT, to, lang, uid);72 Element format_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_FORMAT, to, userContext); 74 73 info_message.appendChild(format_request); 75 74 // process the requests … … 86 85 87 86 //append site metadata 88 addSiteMetadata(page_response, lang, uid);87 addSiteMetadata(page_response, userContext); 89 88 90 89 // if rt=d, then we are just displaying the service … … 154 153 // get the browse structure for the selected node 155 154 Element classify_message = this.doc.createElement(GSXML.MESSAGE_ELEM); 156 Element classify_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);155 Element classify_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext); 157 156 classify_message.appendChild(classify_request); 158 157 … … 252 251 { 253 252 did_classifier = true; 254 Element cl_meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to + "MetadataRetrieve", lang, uid);253 Element cl_meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to + "MetadataRetrieve", userContext); 255 254 metadata_message.appendChild(cl_meta_request); 256 255 … … 281 280 { 282 281 did_documents = true; 283 Element doc_meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, GSPath.appendLink(collection, "DocumentMetadataRetrieve"), lang, uid);282 Element doc_meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, GSPath.appendLink(collection, "DocumentMetadataRetrieve"), userContext); 284 283 metadata_message.appendChild(doc_meta_request); 285 284
Note:
See TracChangeset
for help on using the changeset viewer.