Ignore:
Timestamp:
2008-05-29T13:29:54+12:00 (16 years ago)
Author:
oranfry
Message:

updating from trunk: brought in trunk changes from r15191 to r15785

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/branches/customizingGreenstone3/src/java/org/greenstone/gsdl3/service/AbstractGS2FieldSearch.java

    r15191 r15787  
    7575
    7676    protected static final String DEFAULT_LEVEL_ELEM = "defaultLevel";
    77     protected static final String DEFAULT_GDBM_LEVEL_ELEM = "defaultGDBMLevel";
     77    protected static final String DEFAULT_DB_LEVEL_ELEM = "defaultDBLevel";
    7878    protected static final String LEVEL_ELEM = "level";
    7979    protected static final String FIELD_ATT = "field";
     
    9090   // the default level for searching
    9191    protected String default_level=null;
    92     // default level for gdbm db
    93     protected String default_gdbm_level = null;
     92    // default level for collection db
     93    protected String default_db_level = null;
    9494    // which search services will we offer??
    9595    protected boolean plain_search = false;
     
    162162    }
    163163
    164     // Get the default GDBM level
    165     def = (Element) GSXML.getChildByTagName(info, DEFAULT_GDBM_LEVEL_ELEM);
     164    // Get the default DB level
     165    def = (Element) GSXML.getChildByTagName(info, DEFAULT_DB_LEVEL_ELEM);
    166166    if (def != null) {
    167         this.default_gdbm_level = def.getAttribute(GSXML.SHORTNAME_ATT);
    168     }
    169     if (this.default_gdbm_level == null || this.default_gdbm_level.equals("")) {
    170         logger.error("default gdbm level not specified!, assuming Sec");
    171         this.default_gdbm_level = "Sec";
     167        this.default_db_level = def.getAttribute(GSXML.SHORTNAME_ATT);
     168    }
     169    if (this.default_db_level == null || this.default_db_level.equals("")) {
     170        logger.error("default database level (defaultDBLevel) not specified!, assuming Sec");
     171        this.default_db_level = "Sec";
    172172    }
    173173   
Note: See TracChangeset for help on using the changeset viewer.