Ignore:
Timestamp:
2004-10-13T14:48:20+13:00 (20 years ago)
Author:
mdewsnip
Message:

Finally committing the (many) changes to the GLI to use the new metadata code... I hope this doesn't have too many bugs in it and committing it now doesn't stuff anyone up! (Katherine said I could commit it, so blame her if anything goes wrong).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/shell/GShell.java

    r8250 r8313  
    5353import org.greenstone.gatherer.cdm.CollectionMetaManager;
    5454import org.greenstone.gatherer.cdm.CollectionMeta;
    55 import org.greenstone.gatherer.msm.GreenstoneArchiveParser;
     55import org.greenstone.gatherer.metadata.DocXMLFileManager;
    5656import org.greenstone.gatherer.util.StaticStrings;
    5757import org.greenstone.gatherer.util.Utility;
     
    542542        }
    543543
    544         // extract any new metadata from the archive directory.
     544        // Refresh the DocXMLFileManager
    545545        fireMessage(type, typeAsString(type) + "> " + Dictionary.get("GShell.Parsing_Metadata_Start"), status, null);
    546         new GreenstoneArchiveParser(progress, this);
     546        DocXMLFileManager.clearDocXMLFiles();
     547        DocXMLFileManager.loadDocXMLFiles(new File(Gatherer.c_man.getCollectionArchive()));
    547548        fireMessage(type, typeAsString(type) + "> " + Dictionary.get("GShell.Parsing_Metadata_Complete"), status, null);
    548549        }
    549550
    550         else if(type == BUILD) {
     551//      else if(type == BUILD) {
    551552       
    552         // download the building directory (if gsdl server is remote)           
    553         if (Gatherer.isGsdlRemote) {
    554             if (progress!=null) {
    555             progress.messageOnProgressBar("Downloading index data from server");
    556             }
    557 
    558             Utility.delete(Gatherer.c_man.getCollectionBuild()); // remove current build dir
    559             GathererApplet.download_url_zip(col_name,"building");
    560             Utility.unzip(col_name);
    561 
    562             if (progress!=null) {
    563             progress.messageOnProgressBar("");
    564             }
    565 
    566         }
    567 
    568         }
     553//      // download the building directory (if gsdl server is remote)           
     554//      if (Gatherer.isGsdlRemote) {
     555//          if (progress!=null) {
     556//          progress.messageOnProgressBar("Downloading index data from server");
     557//          }
     558
     559//          Utility.delete(Gatherer.c_man.getCollectionBuild()); // remove current build dir
     560//          GathererApplet.download_url_zip(col_name,"building");
     561//          Utility.unzip(col_name);
     562
     563//          if (progress!=null) {
     564//          progress.messageOnProgressBar("");
     565//          }
     566
     567//      }
     568
     569//      }
    569570    }
    570571
Note: See TracChangeset for help on using the changeset viewer.