Changeset 4639


Ignore:
Timestamp:
2003-06-13T12:17:39+12:00 (21 years ago)
Author:
kjdon
Message:

used to ignore the Source metadata - now we show that to teh user as well

Location:
trunk/gli/src/org/greenstone/gatherer/msm
Files:
2 edited

Legend:

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

    r4563 r4639  
    5858    private GShell shell;
    5959
    60     static final String ignore_list[] = {"assocfilepath", "gsdl", "Source", "Identifier","URL"};
     60    static final String ignore_list[] = {"assocfilepath", "gsdl",  "Identifier","URL"}; //"Source",
    6161
    6262    public GreenstoneArchiveParser(GShellProgressMonitor progress, GShell shell) {
     
    6464    if(Gatherer.c_man.msm.getSet("") != null) {
    6565        this.shell = shell;
    66                 // Determine the collection archive directory.
     66        // Determine the collection archive directory.
    6767        File archive_directory = new File(Gatherer.c_man.getCollectionArchive());
    68                 // For each of the hash coded directories within.
     68        // For each of the hash coded directories within.
    6969        File document_directories[] = archive_directory.listFiles();
    7070        for(int i = 0; i < document_directories.length; i++) {
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java

    r4629 r4639  
    306306    for(int i = elements.size(); i != 0; i--) {
    307307        ElementWrapper element = (ElementWrapper) elements.get(i - 1);
    308         if(element.getOccurances() == 0 && element.getNamespace().length() > 0 && !element.toString().equals("Source")) {
     308        if(element.getOccurances() == 0 && element.getNamespace().length() > 0 ) { //&& !element.toString().equals("Source")) {
    309309        elements.remove(element);
    310310        }
     
    337337        for(int i = 0; i < set_elements.getLength(); i++) {
    338338            ElementWrapper element = new ElementWrapper((Element)set_elements.item(i));
    339             if(!element.toString().equals("Source")) {
    340             all_elements.add(element);
    341             }
     339            // if(!element.toString().equals("Source")) {
     340            all_elements.add(element);
     341            // }
    342342        }
    343343        }
Note: See TracChangeset for help on using the changeset viewer.