Ignore:
Timestamp:
2004-10-15T14:46:31+13:00 (20 years ago)
Author:
kjdon
Message:

added view stuff back in. A collection may be built with views - these are not predefined but are just subdirs in the import folder. the applet now has a menu for views, if they are available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/greenstone3-extensions/vishnu/src/vishnu/testvis/object/DataManager.java

    r8284 r8344  
    2020    private CacheManager cache = null;
    2121    public Vector collections;
    22     public Collection currentCollection;
    23 
     22    public Collection currentCollection = null;
     23    public String currentView = null;
    2424    /** Labels for the clusters needed by tree map,
    2525     *  generated in this class */
     
    294294    //GSDLEngine theEngine = new GSDLEngine(displayFrame);
    295295    System.out.println("Searching for " + queryStr);
    296 
    297     DataBlock db =  theEngine.getData(queryStr, currentCollection.dir);
     296    DataBlock db =  theEngine.getData(queryStr, currentCollection.dir, currentView);
    298297
    299298        if( db == null ) return 0;
     
    351350    theEngine.setDisplay(displayFrame);
    352351    //GSDLEngine engine = new GSDLEngine(displayFrame);
    353     Vector document = theEngine.getDocument(Long.toString(docNum),currentCollection.dir);
     352    Vector document = theEngine.getDocument(Long.toString(docNum),currentCollection.dir, currentView);
    354353   
    355354    // Fetch theFetch = new Fetch(displayFrame);
Note: See TracChangeset for help on using the changeset viewer.