Changeset 13525


Ignore:
Timestamp:
2006-12-20T11:19:54+13:00 (17 years ago)
Author:
shaoqun
Message:

fixed the bug that failed to get collection details from the remote site

File:
1 edited

Legend:

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

    r13270 r13525  
    7171    // elements but for now, we'll just get it all
    7272    Element collection_list = (Element)GSXML.getChildByTagName(info_response, GSXML.COLLECTION_ELEM+GSXML.LIST_MODIFIER);
    73     if (collection_list != null) {
     73    logger.info(GSXML.xmlNodeToString(collection_list));
     74        if (collection_list != null) {
    7475        NodeList colls = GSXML.getChildrenByTagName(collection_list, GSXML.COLLECTION_ELEM);
    7576        if (colls.getLength()>0) {
     
    205206        Element c1 = (Element)items.item(i);
    206207        Element c2 = (Element)GSXML.getChildByTagName((Element)responses.item(i), c1.getTagName());
    207         if (c1.getAttribute(GSXML.NAME_ATT).equals(c2.getAttribute(GSXML.NAME_ATT))) {
     208            if (c1.getAttribute(GSXML.NAME_ATT).endsWith(c2.getAttribute(GSXML.NAME_ATT))) {
    208209        //add the new data into the original element
    209210        GSXML.mergeElements(c1, c2);
Note: See TracChangeset for help on using the changeset viewer.