Ignore:
Timestamp:
2003-08-22T14:55:47+12:00 (21 years ago)
Author:
kjdon
Message:

removed unnecessary print statements

File:
1 edited

Legend:

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

    r5258 r5264  
    283283   
    284284    protected Element getSection(Element doc_elem, String node_id) {
    285     System.out.println("in get scetion, id="+node_id);
    286285    String [] bits = node_id.split("\\.");
    287286    if (bits.length > 4) {
     
    303302        }
    304303    }
    305     System.out.println("old scope="+scope);
    306304    scope = translateScope(scope);
    307     System.out.println("new scope="+scope);
    308305    Element top=null;
    309306    if (!scope.equals("")) {
     
    319316    NodeList elements = top.getElementsByTagName(tagname);
    320317    if (elements.getLength() == 0) {
    321         System.out.println("no elems of name"+tagname);
    322318        return null;
    323319    }
    324320    // no id, just return the first one
    325321    if (id.equals("")) {
    326         System.out.println("no id, returning the first elem");
    327322        return (Element)elements.item(0);
    328323    }
    329324    // have an id, need to check and find the right one.
    330325    for (int i=0; i<elements.getLength();i++) {
    331         System.out.println("checking ids");
    332326        Element e = (Element)elements.item(i);
    333327        if (e.getAttribute("gs3:id").equals(id)) {
     
    335329        }
    336330    }
    337     System.out.println("havent found a section");
    338331    return null;
    339332   
Note: See TracChangeset for help on using the changeset viewer.