Changeset 6047 for trunk/gli/src
- Timestamp:
- 2003-11-28T17:53:00+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/GreenstoneArchiveParser.java
r5880 r6047 131 131 // If we successfully retrieved an element (and we should have) we can continue. 132 132 // WARNING!! There is one known exception - MARC records. Adding the extracted elements is all good, but adding the extracted metadata causes the whole thing to collapse in a pile of unhappy. 133 if(element != null && !file_path.endsWith(StaticStrings.MARC_EXTENSION) ) {133 if(element != null && !file_path.endsWith(StaticStrings.MARC_EXTENSION) && (element.getNamespace().equals("") || element.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE))) { 134 134 // Retrieve the metadata for the current file 135 135 File target_file = new File(file_path); 136 136 ArrayList metadatum = Gatherer.c_man.getCollection().gdm.getMetadata(target_file); 137 // If no metadata exists for the current element, add it137 // Remove any existing metadata for this element 138 138 boolean found = false; 139 139 for(int k = 0; !found && k < metadatum.size(); k++) { 140 140 Metadata sibling = (Metadata) metadatum.get(k); 141 found = element.equals(sibling.getElement()); 141 if(element.equals(sibling.getElement())) { 142 Gatherer.c_man.getCollection().gdm.metadataChanged(new MSMEvent(this, System.currentTimeMillis(), target_file, sibling, null)); 143 } 142 144 } 143 145 metadatum = null;
Note:
See TracChangeset
for help on using the changeset viewer.