Changeset 7743


Ignore:
Timestamp:
2004-07-16T13:59:35+12:00 (20 years ago)
Author:
davidb
Message:

GA format changed so full pathname no longer used, but name local to
collection. This aids portability between Greenstone sites (as needed
when GLI is run as an applet). Parsing of GA files, therefore, now
need to add prefix back in to reconstruct full pathname of this
installation of Greenstone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/msm/GreenstoneArchiveParser.java

    r7292 r7743  
    160160    if (name.equals("gsdlsourcefilename")) {
    161161        file_path = MSMUtils.getValue(metadata_element);
     162        if (!file_path.startsWith(File.separator)) {
     163        String collection_dir = Utility.getCollectionDir();
     164        file_path = collection_dir + file_path;
     165        }
     166
    162167        return false;
    163168    }
Note: See TracChangeset for help on using the changeset viewer.