Changeset 24993 for main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.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/core/TransformingReceptionist.java
r24884 r24993 763 763 //Transformation of the XML message from the receptionist to HTML with doctype 764 764 765 if (inlineTemplate != null)765 if (inlineTemplate != null) 766 766 { 767 767 try … … 770 770 GSXSLT.mergeStylesheets(skinAndLibraryDoc, inlineTemplateDoc.getDocumentElement()); 771 771 } 772 catch (Exception ex)772 catch (Exception ex) 773 773 { 774 774 ex.printStackTrace(); 775 775 } 776 776 } 777 777 778 778 if (skinAndLibraryDoc.getElementsByTagName("gsf:metadata").getLength() > 0) 779 779 { 780 secondConfigFormatPass(collection, skinAndLibraryDoc, doc, request.getAttribute("lang"), request.getAttribute("uid"));780 secondConfigFormatPass(collection, skinAndLibraryDoc, doc, new UserContext(request)); 781 781 } 782 782 … … 795 795 } 796 796 797 protected void secondConfigFormatPass(String collection, Document skinAndLibraryDoc, Document doc, String lang, String uid)797 protected void secondConfigFormatPass(String collection, Document skinAndLibraryDoc, Document doc, UserContext userContext) 798 798 { 799 799 String to = GSPath.appendLink(collection, "DocumentMetadataRetrieve"); // Hard-wired? 800 800 Element metaMessage = this.doc.createElement(GSXML.MESSAGE_ELEM); 801 Element metaRequest = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);801 Element metaRequest = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext); 802 802 Element paramList = this.doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 803 803 Element docNodeList = this.doc.createElement(GSXML.DOC_NODE_ELEM + GSXML.LIST_MODIFIER);
Note:
See TracChangeset
for help on using the changeset viewer.