Changeset 8016
- Timestamp:
- 2004-08-20T14:41:43+12:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 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). -
trunk/gli/src/org/greenstone/gatherer/valuetree/GValueNode.java
r7529 r8016 50 50 import java.util.*; 51 51 import javax.swing.tree.*; 52 import org.greenstone.gatherer.Gatherer;53 import org.greenstone.gatherer.msm.MSMUtils;54 52 import org.greenstone.gatherer.util.Codec; 55 53 import org.greenstone.gatherer.util.StaticStrings; 56 import org.greenstone.gatherer.util. Utility;54 import org.greenstone.gatherer.util.XMLTools; 57 55 import org.w3c.dom.*; 58 56 … … 87 85 return toString().compareTo(sibling.toString()); 88 86 } 89 90 /** Determine if this tree node contains a child with a matching value.91 * @param value The value we are attempting to match, as a <strong>String</strong>.92 * @return <i>true</i> if there is a matching child node, <i>false</i> otherwise.93 */94 /* private boolean containsValue(String value) {95 if(default_value != null) {96 return false;97 }98 return getValue(value) != null;99 } */100 87 101 88 /** Returns an enumeration of the child nodes. … … 323 310 String result = null; 324 311 if(name.equals("Subject")) { 325 result = MSMUtils.getValue(element);312 result = XMLTools.getValue(element); 326 313 ///ystem.err.print(result); 327 314 switch(decode_type) {
Note:
See TracChangeset
for help on using the changeset viewer.