Changeset 5880


Ignore:
Timestamp:
2003-11-18T16:28:13+13:00 (20 years ago)
Author:
jmt12
Message:

Added a test to prevent metadata values from being extracted for Marc records - note that the elements are still extracted and added

File:
1 edited

Legend:

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

    r5593 r5880  
    5252import org.greenstone.gatherer.shell.GShell;
    5353import org.greenstone.gatherer.shell.GShellProgressMonitor;
     54import org.greenstone.gatherer.util.StaticStrings;
    5455import org.greenstone.gatherer.util.Utility;
    5556import org.greenstone.gatherer.valuetree.GValueModel;
     
    129130                }
    130131                // If we successfully retrieved an element (and we should have) we can continue.
    131                 if(element != null) {
     132                // WARNING!! There is one known exception - MARC records. Adding the extracted elements is all good, but adding the extracted metadata causes the whole thing to collapse in a pile of unhappy.
     133                if(element != null && !file_path.endsWith(StaticStrings.MARC_EXTENSION)) {
    132134                // Retrieve the metadata for the current file
    133135                File target_file = new File(file_path);
Note: See TracChangeset for help on using the changeset viewer.