- Timestamp:
- 2004-08-20T14:41:43+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java
r7998 r8016 39 39 import org.greenstone.gatherer.gui.LongProgressBar; 40 40 import org.greenstone.gatherer.gui.tree.DragTree; 41 import org.greenstone.gatherer.msm.MetadataXMLFileManager;42 41 import org.greenstone.gatherer.undo.UndoManager; 43 42 import org.greenstone.gatherer.util.ArrayTools; … … 445 444 if (job.source.toString().equals("Collection")) { 446 445 ///ystem.err.println("Move within collection..."); 447 MetadataXMLFileManager gdm = Gatherer.c_man.getCollection().gdm;448 446 // we just retrieve the metadata attached to the origin node... 449 ArrayList existing_metadata = gdm.getMetadataOnly(source_file);447 ArrayList existing_metadata = Gatherer.c_man.getCollection().gdm.getMetadataOnly(source_file); 450 448 ///atherer.println("Existing metadata for " + origin_node + ": " + gdm.toString(existing_metadata)); 451 449 // then assign this remainder to the new folder. 452 450 ///ystem.err.println("New metadata: " + gdm.toString(existing_metadata)); 453 gdm.addMetadata(new_node, existing_metadata);451 Gatherer.c_man.getCollection().gdm.addMetadata(new_node, existing_metadata); 454 452 existing_metadata = null; 455 gdm = null;456 453 } 457 454 // If it came from the recycle bin retrieve the metadata from there, once again remembering to account for inherited metadata 458 455 else if (job.source.toString().equals("Undo")) { 459 MetadataXMLFileManager gdm = Gatherer.c_man.getCollection().gdm;460 456 // Retrieve metadata from the recycle bin 461 457 ArrayList existing_metadata = Gatherer.c_man.undo.getMetadata(source_file); 462 458 // then assign this remainder to the new folder. 463 gdm.addMetadata(new_node, existing_metadata);459 Gatherer.c_man.getCollection().gdm.addMetadata(new_node, existing_metadata); 464 460 existing_metadata = null; 465 gdm = null;466 461 } 467 462 // Otherwise if it came from the workspace use the MSMs parsers to search for folder level metadata (such as metadata.xml or marc records).
Note:
See TracChangeset
for help on using the changeset viewer.