Ignore:
Timestamp:
2003-07-16T13:51:31+12:00 (21 years ago)
Author:
kjdon
Message:

when get back the coll descriptions, want all the contents now, not just the metadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/action/PageAction.java

    r4257 r4943  
    3838
    3939    result.appendChild(doc_.importNode(response, true));
     40    ///ystem.out.println("page action result: "+converter_.getPrettyString(result));
    4041    return result;
    4142    }
     
    8182        Element c2 = (Element)coll_responses.item(i);
    8283        if (c1.getAttribute(GSXML.NAME_ATT).equals(c2.getAttribute(GSXML.FROM_ATT))) {
    83             // add the metadata to the original response   
    84             GSXML.mergeMetadataLists(c1, GSXML.getChildByTagName(c2, GSXML.COLLECTION_ELEM)); 
     84            //add the collection data into the original response
     85            GSXML.mergeElements(c1, (Element)GSXML.getChildByTagName(c2, GSXML.COLLECTION_ELEM));
    8586        } else {
    8687            System.err.println("PageAction Error: response does not correspond to request!");
     
    8990        }
    9091    }
    91 
     92   
    9293    //now the full response message is in coll_list_response
    9394    // return the response element
Note: See TracChangeset for help on using the changeset viewer.