- Timestamp:
- 2003-04-15T10:50:26+12:00 (21 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/AppletAction.java
r3996 r4144 77 77 Element page = doc_.createElement(GSXML.PAGE_ELEM); 78 78 page.setAttribute(GSXML.LANG_ATT, lang); 79 // add the lang stuff from message 80 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.DISPLAY_ELEM), true)); 81 // add the config stuff from message 82 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true)); 79 // add the page extra stuff from message 80 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.PAGE_EXTRA_ELEM), true)); 83 81 84 82 // add in the page Request -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/BrowseAction.java
r4080 r4144 33 33 Element page = doc_.createElement(GSXML.PAGE_ELEM); 34 34 page.setAttribute(GSXML.LANG_ATT, request.getAttribute(GSXML.LANG_ATT)); 35 // add the lang stuff from message 36 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.DISPLAY_ELEM), true)); 37 // add the system stuff from message 38 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true)); 35 // add the page extra stuff from message 36 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.PAGE_EXTRA_ELEM), true)); 39 37 40 38 return classifierBrowse(page, request); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/DocumentAction.java
r4036 r4144 87 87 page.setAttribute(GSXML.LANG_ATT, lang); 88 88 89 // Add the display element, config stuff, and original request from the message 90 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.DISPLAY_ELEM), true)); 91 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true)); 89 // Add the page extra element, and original request from the message 90 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.PAGE_EXTRA_ELEM), true)); 92 91 Element page_request = GSXML.duplicateWithNewName(doc_, request, GSXML.PAGE_REQUEST_ELEM, true); 93 92 page.appendChild(page_request); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/PageAction.java
r3987 r4144 30 30 Element page = doc_.createElement(GSXML.PAGE_ELEM); 31 31 page.setAttribute(GSXML.LANG_ATT, request.getAttribute(GSXML.LANG_ATT)); 32 // add the lang stuff from message 33 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.DISPLAY_ELEM), true)); 34 // add the system stuff from message 35 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true)); 32 // add the page extra stuff from message 33 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.PAGE_EXTRA_ELEM), true)); 36 34 // add the cgi args request 37 35 Element page_request = GSXML.duplicateWithNewName(doc_, request, "pageRequest", true); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/ProcessAction.java
r4001 r4144 107 107 } 108 108 109 // add the lang stuff from message 110 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.DISPLAY_ELEM), true)); 111 // add the system stuff from message 112 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true)); 113 109 // add the page extra stuff from message 110 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.PAGE_EXTRA_ELEM), true)); 114 111 115 112 // another part of the page is the service description -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/QueryAction.java
r4093 r4144 29 29 Element page = doc_.createElement(GSXML.PAGE_ELEM); 30 30 page.setAttribute(GSXML.LANG_ATT, request.getAttribute(GSXML.LANG_ATT)); 31 // add the lang stuff from message 32 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.DISPLAY_ELEM), true)); 33 // add the system stuff from message 34 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true)); 31 // add the page extra stuff from message 32 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.PAGE_EXTRA_ELEM), true)); 35 33 36 34 // part of the data for the page is the cgi-params … … 77 75 String to = GSPath.appendLink(collection, service_name); 78 76 79 //create t eh pageREsponse77 //create the pageResponse 80 78 Element page_response = doc_.createElement(GSXML.PAGE_RESPONSE_ELEM); 81 79 page.appendChild(page_response); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/action/SystemAction.java
r4106 r4144 30 30 page.setAttribute(GSXML.LANG_ATT, lang); 31 31 32 // add the lang stuff from message 33 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.DISPLAY_ELEM), true)); 34 // add the system stuff from message 35 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.CONFIGURATION_ELEM), true)); 32 // add the page extra stuff from message 33 page.appendChild(doc_.importNode(GSXML.getChildByTagName(message, GSXML.PAGE_EXTRA_ELEM), true)); 36 34 37 35 String coll = (String)params.get(GSCGI.COLLECTION_ARG); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/core/Receptionist.java
r4095 r4144 189 189 } 190 190 191 // add in the system stuff - display and config 191 // add in the system stuff - display and config - this all goes into 192 // a pageExtra element 192 193 Document message_doc = message.getOwnerDocument(); 194 Element page_extra = message_doc.createElement(GSXML.PAGE_EXTRA_ELEM); 195 message.appendChild(page_extra); 193 196 String lang = request.getAttribute(GSXML.LANG_ATT); 194 197 Element display = getDisplayElement(lang); 195 message.appendChild(message_doc.importNode(display, true));196 message.appendChild(message_doc.importNode(config_.config_xml_, true));198 page_extra.appendChild(message_doc.importNode(display, true)); 199 page_extra.appendChild(message_doc.importNode(config_.config_xml_, true)); 197 200 198 201 Element page = a.process(message);
Note:
See TracChangeset
for help on using the changeset viewer.