Changeset 4552


Ignore:
Timestamp:
2003-06-11T13:35:09+12:00 (21 years ago)
Author:
kjdon
Message:

removed hardcoded strings and lengths for ex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Index.java

    r4540 r4552  
    133133    for(int i = 0; i < sources.size(); i++) {
    134134        String source = sources.get(i).toString();
    135         if (source.startsWith("ex.")) {
     135        if (source.startsWith(Utility.EXTRACTED_METADATA_NAMESPACE + MSMUtils.NS_SEP)) {
    136136        // remove the ex. bit
    137         source = source.substring(3);
     137        source = source.substring(source.indexOf(MSMUtils.NS_SEP)+1);
    138138        }
    139139        result = result + source;
Note: See TracChangeset for help on using the changeset viewer.