Changeset 3973
- Timestamp:
- 2003-03-25T10:02:28+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/PhindPhraseBrowse.java
r3946 r3973 97 97 Element display = doc_.createElement(GSXML.DISPLAY_ELEM); 98 98 display.appendChild(GSXML.createTextElement(doc_, GSXML.DISPLAY_NAME_ELEM, getTextString(service+".name", lang))); 99 display.appendChild(GSXML.createTextElement(doc_, GSXML.DISPLAY_SUBMIT_ELEM, getTextString(service+".submit", lang))); 100 101 Element param; 99 //display.appendChild(GSXML.createTextElement(doc_, GSXML.DISPLAY_SUBMIT_ELEM, getTextString(service+".submit", lang))); 102 100 103 101 return display; … … 131 129 // the result element 132 130 Element result = doc_.createElement(GSXML.RESPONSE_ELEM); 133 String from = GSPath.appendLink(cluster_name_, "PhindApplet"); 134 result.setAttribute(GSXML.FROM_ATT, from); 131 result.setAttribute(GSXML.FROM_ATT, PHIND_SERVICE); 135 132 result.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_QUERY); 136 133 … … 197 194 } 198 195 199 System.out.println("record="+record);200 196 // parse the record - its in gordons cryptic form 201 197 // ":word:tf:ef:df:el:dl:lf:ll" … … 237 233 addDocumentList(phind_data, documents, word, df, first_d, last_d); 238 234 if (!lf.equals("0")) { 239 System.out.println("adding thesaurus stuff");240 235 addThesaurusList(phind_data, linklist, word, lf, first_l, last_l); 241 236 } … … 349 344 350 345 if (record ==null || record.equals("")) return null; 351 System.out.println("doc record:"+record);352 346 353 347 // ignore everything up to and including first \t … … 377 371 thesaurus_list.setAttribute("end", Long.toString(last)); 378 372 379 System.out.println("record for thesaurus="+record);380 381 373 // get the list of type,dest,dest 382 374 String [] links = record.split(";"); … … 437 429 // use 2 so that we only split on the first occurrance. trailing empty strings should be included 438 430 String [] result = phrase.split(word, 2); 439 if (result.length !=2) {440 System.out.println("didn't get two substrings!!");441 }442 431 return result; 443 432
Note:
See TracChangeset
for help on using the changeset viewer.