Changeset 20292 for greenstone3
- Timestamp:
- 2009-08-17T10:23:59+12:00 (15 years ago)
- Location:
- greenstone3/trunk/src/java/org/greenstone/gsdl3/action
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/gsdl3/action/Action.java
r19984 r20292 37 37 this.converter = new XMLConverter(); 38 38 this.doc = this.converter.newDOM(); 39 System.err.println("action doc: " + doc );40 39 } 41 40 /** the config variables must be set before configure is called */ -
greenstone3/trunk/src/java/org/greenstone/gsdl3/action/DocumentAction.java
r19984 r20292 826 826 if (last_wrote < highlight_start) { 827 827 String preceding_text = new String(content_characters, last_wrote, (highlight_start - last_wrote)); 828 // System.err.print(preceding_text);829 828 content_element.appendChild(this.doc.createTextNode(preceding_text)); 830 829 } … … 833 832 if (highlight_end > last_wrote) { 834 833 String highlight_text = new String(content_characters, highlight_start, (highlight_end - highlight_start)); 835 // System.err.print("|" + highlight_text + "|");836 834 Element annotation_element = GSXML.createTextElement(this.doc, "annotation", highlight_text); 837 835 annotation_element.setAttribute("type", "query_term"); … … 844 842 if (last_wrote < content_characters.length) { 845 843 String remaining_text = new String(content_characters, last_wrote, (content_characters.length - last_wrote)); 846 // System.err.print(remaining_text);847 844 content_element.appendChild(this.doc.createTextNode(remaining_text)); 848 845 } -
greenstone3/trunk/src/java/org/greenstone/gsdl3/action/GeneralAction.java
r19984 r20292 38 38 } 39 39 addSiteMetadata(result, lang, uid); 40 System.err.println("a");41 40 return result; 42 41 } … … 94 93 // just send the reponse as is 95 94 addSiteMetadata(result_response, lang, uid); 96 System.err.println("b");97 95 return result_response; 98 96 } … … 123 121 124 122 addSiteMetadata(page_response, lang, uid); 125 System.err.println("c");126 123 return result; 127 124 } -
greenstone3/trunk/src/java/org/greenstone/gsdl3/action/QueryAction.java
r19984 r20292 87 87 if (request_type.indexOf("r") == -1) { 88 88 // just a display request, no actual processing to do 89 System.err.println("just a display request, no actual processing to do");90 89 //append site metadata 91 90 addSiteMetadata( page_response, lang, uid);
Note:
See TracChangeset
for help on using the changeset viewer.