Changeset 7598


Ignore:
Timestamp:
2004-06-16T16:44:16+12:00 (20 years ago)
Author:
kjdon
Message:

write out format statements with ex.metadata still intact

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java

    r7590 r7598  
    495495            // Anything else we write to file, but only if it has been assigned, the exception being the Indexes element which just get commented if unassigned (a side effect of MG && MGPP compatibility)
    496496            else if(!command_element.getAttribute(ASSIGNED_ATTRIBUTE).equals(FALSE_STR) || command_element.getNodeName().equals(INDEXES_ELEMENT) || command_element.getNodeName().equals(INDEX_DEFAULT_ELEMENT) || command_element.getNodeName().equals(LEVELS_ELEMENT)){
    497                 String command = toString(command_element, false);
     497                String command;
     498                // format statements we write out with ex. still present
     499                if (command_element.getNodeName().equals(FORMAT_ELEMENT)) {
     500                command = toString(command_element, true);
     501                } else {
     502                command = toString(command_element, false);
     503                }
    498504                if(command != null && command.length() > 0) {
    499505                write(buffered_writer, command);
Note: See TracChangeset for help on using the changeset viewer.