Changeset 3973


Ignore:
Timestamp:
2003-03-25T10:02:28+12:00 (21 years ago)
Author:
kjdon
Message:

tidied up print statements, and from att in response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/PhindPhraseBrowse.java

    r3946 r3973  
    9797    Element display = doc_.createElement(GSXML.DISPLAY_ELEM);
    9898    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)));
    102100
    103101    return display;
     
    131129    // the result element
    132130    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);
    135132    result.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_QUERY);
    136133
     
    197194    }
    198195   
    199     System.out.println("record="+record);
    200196    // parse the record - its in gordons cryptic form
    201197    // ":word:tf:ef:df:el:dl:lf:ll"
     
    237233    addDocumentList(phind_data, documents, word, df, first_d, last_d);
    238234    if (!lf.equals("0")) {
    239         System.out.println("adding thesaurus stuff");
    240235        addThesaurusList(phind_data, linklist, word, lf, first_l, last_l);
    241236    }
     
    349344   
    350345    if (record ==null || record.equals("")) return null;
    351     System.out.println("doc record:"+record);
    352346   
    353347    // ignore everything up to and including first \t
     
    377371    thesaurus_list.setAttribute("end", Long.toString(last));
    378372   
    379     System.out.println("record for thesaurus="+record);
    380 
    381373    // get the list of type,dest,dest
    382374    String [] links = record.split(";");
     
    437429    // use 2 so that we only split on the first occurrance. trailing empty strings should be included
    438430    String [] result = phrase.split(word, 2);
    439     if (result.length !=2) {
    440         System.out.println("didn't get two substrings!!");
    441     }
    442431    return result;
    443432   
Note: See TracChangeset for help on using the changeset viewer.