Changeset 11595
- Timestamp:
- 2006-04-06T14:18:42+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java
r11388 r11595 372 372 File source_file = source_node.getFile(); 373 373 374 // If we're deleting a metadata.xml file we must unload it 375 boolean metadata_xml_file = source_file.getName().equals(StaticStrings.METADATA_XML); 376 if (metadata_xml_file) { 377 MetadataXMLFileManager.unloadMetadataXMLFile(source_file); 378 } 379 // Otherwise remove any metadata assigned directly to the file 380 else { 381 ArrayList assigned_metadata = MetadataXMLFileManager.getMetadataAssignedDirectlyToFile(source_file); 382 MetadataXMLFileManager.removeMetadata((CollectionTreeNode) source_node, assigned_metadata); 374 // Almost all files will be deleted from the collection tree (exception: files in "Downloaded Files") 375 if (source_node instanceof CollectionTreeNode) { 376 // If we're deleting a metadata.xml file we must unload it 377 boolean metadata_xml_file = source_file.getName().equals(StaticStrings.METADATA_XML); 378 if (metadata_xml_file) { 379 MetadataXMLFileManager.unloadMetadataXMLFile(source_file); 380 } 381 // Otherwise remove any metadata assigned directly to the file 382 else { 383 ArrayList assigned_metadata = MetadataXMLFileManager.getMetadataAssignedDirectlyToFile(source_file); 384 MetadataXMLFileManager.removeMetadata((CollectionTreeNode) source_node, assigned_metadata); 385 } 383 386 } 384 387
Note:
See TracChangeset
for help on using the changeset viewer.