Changeset 6158


Ignore:
Timestamp:
2003-12-08T14:35:02+13:00 (20 years ago)
Author:
jmt12
Message:

Removed a debug comment that had escaped me

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/msm/GDMDocument.java

    r6092 r6158  
    8181    }
    8282
    83     /** Add this metadata to the named file. There is one tricky thing to consider. Whenever a metadata entry is added it is taken to be accumulating except if it is the first added, in which case it overwrites! Actually this gets worse, as we could have been told to append this metadata to a document which already inherits metadata. Thus we need a new argument to determine whether this add was triggered by an append or a replace. */
    84     public void addMetadata(String filename, Metadata metadata, boolean force_accumulate) {
    85     Gatherer.println("Add '" + metadata + "' to " + (filename != null ? filename : "directory."));
     83    /** Add this metadata to the named file. There is one tricky thing to consider. Whenever a metadata entry is added it is taken to be accumulating except if it is the first added, in which case it overwrites! Actually this gets worse, as we could have been told to append this metadata to a document which already inherits metadata. Thus we need a new argument to determine whether this add was triggered by an append or a replace. */
     84    public void addMetadata(String filename, Metadata metadata, boolean force_accumulate) {
     85    ///atherer.println("Add '" + metadata + "' to " + (filename != null ? filename : "directory."));
    8686    try {
    87         // Retrieve the document element.
    88         Element directorymetadata_element = base_document.getDocumentElement();
    89         // Iterate through the filesets looking for one that matches the given filename.
    90         Element fileset_element = null;
    91         boolean found = false;
    92         NodeList fileset_elements = directorymetadata_element.getElementsByTagName(FILESET_ELEMENT);
     87        // Retrieve the document element.
     88        Element directorymetadata_element = base_document.getDocumentElement();
     89        // Iterate through the filesets looking for one that matches the given filename.
     90        Element fileset_element = null;
     91        boolean found = false;
     92        NodeList fileset_elements = directorymetadata_element.getElementsByTagName(FILESET_ELEMENT);
    9393        for(int i = 0; !found && i < fileset_elements.getLength(); i++) {
    9494        fileset_element = (Element) fileset_elements.item(i);
Note: See TracChangeset for help on using the changeset viewer.