Changeset 9701


Ignore:
Timestamp:
2005-04-18T12:52:46+12:00 (19 years ago)
Author:
mdewsnip
Message:

Prevented the "Could not understand gsdlsourcefilename" warning for odd gsdlsourcefilename's consisting of the Greenstone "tmp" directory. This is true for source files from zip files processed by ZIPPlug for example. It is not possible to view the extracted metadata for these files (because they are not visible on the Enrich pane).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/metadata/DocXMLFile.java

    r8669 r9701  
    244244            ((ArrayList) source_file_name_to_description_elements_mapping.get(gsdlsourcefilename_value)).add(new Integer(description_element_start));
    245245            }
    246             else {
     246
     247            // Warn about an odd gsdlsourcefilename, except if it is the Greenstone "tmp" directory
     248            // This is true when the source files come from a zip file processed by ZIPPlug, for example
     249            else if (gsdlsourcefilename_value.indexOf("tmp") == -1) {
    247250            // We don't really know what is going on...
    248251            System.err.println("Warning: Could not understand gsdlsourcefilename " + gsdlsourcefilename_value);
Note: See TracChangeset for help on using the changeset viewer.