- Timestamp:
- 2008-08-26T19:08:52+12:00 (16 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer/metadata
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/metadata/DocGAFile.java
r17011 r17014 41 41 public DocGAFile(String doc_xml_file_path) 42 42 { 43 super(doc_xml_file_path); 44 MetadataWrap = "Description"; 45 MetadataItem = "Metadata"; 43 super(doc_xml_file_path, "Description", "Metadata"); // metadataWrap and metadataItem 46 44 } 47 45 } -
gli/trunk/src/org/greenstone/gatherer/metadata/DocMetsXMLFile.java
r17011 r17014 40 40 public DocMetsXMLFile(String doc_xml_file_path) 41 41 { 42 super(doc_xml_file_path); 43 MetadataWrap = "mets:xmlData"; 44 MetadataItem = "ex:metadata"; 45 42 super(doc_xml_file_path, "mets:xmlData", "ex:metadata"); // metadataWrap, metadataItem 46 43 } 47 44 } -
gli/trunk/src/org/greenstone/gatherer/metadata/DocXMLFile.java
r17009 r17014 41 41 protected HashMap source_file_name_to_description_elements_mapping = new HashMap(); 42 42 43 protected static String MetadataWrap = null;44 protected static String MetadataItem = null;45 46 public DocXMLFile(String doc_xml_file_path )43 protected final String MetadataWrap; 44 protected final String MetadataItem; 45 46 public DocXMLFile(String doc_xml_file_path, String metaWrap, String metaItem) 47 47 { 48 48 super(doc_xml_file_path); 49 this.MetadataWrap = metaWrap; 50 this.MetadataItem = metaItem; 49 51 } 50 52 … … 260 262 261 263 // Warn about an odd gsdlsourcefilename, except if it is the Greenstone "tmp" directory 264 // or (as in the case of using FLI) if it is the etc/collect.cfg file 262 265 // This is true when the source files come from a zip file processed by ZIPPlug, for example 263 else if (gsdlsourcefilename_value.indexOf("tmp") == -1 ) {266 else if (gsdlsourcefilename_value.indexOf("tmp") == -1 && !gsdlsourcefilename_value.endsWith("collect.cfg")) { 264 267 // We don't really know what is going on... 265 268 System.err.println("Warning: Could not understand gsdlsourcefilename " + gsdlsourcefilename_value);
Note:
See TracChangeset
for help on using the changeset viewer.