Changeset 6678


Ignore:
Timestamp:
2004-02-02T11:27:49+13:00 (20 years ago)
Author:
nzdl
Message:

when determining what metadata is needed to retrieve, now uses constsnts from GSConstants instead of hard coded ' and _

File:
1 edited

Legend:

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

    r6248 r6678  
    7878        String sep = elem.getAttribute("separator");
    7979        if (all.equals("true")) {
    80         metadata.append("all_");
     80        metadata.append("all");
     81        metadata.append(GSConstants.META_RELATION_SEP);
    8182        }
    8283        if (!select.equals("")) {
    8384        metadata.append(select);
    84         metadata.append("_");
     85        metadata.append(GSConstants.META_RELATION_SEP);
    8586        }
    8687        if (!sep.equals("")) {
    87         metadata.append("'");
     88        metadata.append(GSConstants.META_SEPARATOR_SEP);
    8889        metadata.append(sep);
    89         metadata.append("'");
    90         metadata.append("_");
     90        metadata.append(GSConstants.META_SEPARATOR_SEP);
     91        metadata.append(GSConstants.META_RELATION_SEP);
    9192        }
    9293
     
    100101        meta_names.add(name);
    101102    }
    102     nodes = format.getElementsByTagName("gsf:switch");
     103    /*nodes = format.getElementsByTagName("gsf:switch");
    103104        for (int i=0; i<nodes.getLength(); i++) {
    104105        String name = ((Element)nodes.item(i)).getAttribute("metadata");
    105106        meta_names.add(name);
    106     }
     107        }*/
    107108   
    108109    }
Note: See TracChangeset for help on using the changeset viewer.