Ignore:
Timestamp:
2008-05-01T13:59:09+12:00 (16 years ago)
Author:
kjdon
Message:

added support for JDBM (or other) in place of GDBM: use SimpleCollectionDatabase instead of GDBMWrapper. new Element in buildConfig file: databaseType, set to gdbm or jdbm. If not present, assume gdbm. Also may be some small style changes to some files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java

    r14526 r15326  
    725725     */
    726726    abstract protected String getStructureInfo(String node_id, String info_type);   
    727 //      /** needs to get info from gdbm database - if the calling code gets it already it may pay to pass it in instead */
    728 //     protected String resolveTextMacros(String doc_content, String doc_id, String lang)
    729 //     {
    730 //  DBInfo info = null;
    731 //  if (doc_content.indexOf("_httpdocimg_")!=-1) {
    732 //      String top_doc_id = OID.getTop(doc_id);
    733 //      info = this.gdbm_src.getInfo(top_doc_id);
    734 //      if (info == null) {
    735 //      // perhaps we had per.iods in the ids - just try the current id
    736 //      top_doc_id = doc_id;
    737 //      info = this.gdbm_src.getInfo(top_doc_id);
    738 //      }
    739 //      if (info != null) {
    740 //      String archivedir = info.getInfo("archivedir");
    741 //      String image_dir  = this.site_http_address + "/collect/"+this.cluster_name+"/index/assoc/"+archivedir;
    742        
    743 //      // Resolve all "_httpdocimg_"s
    744 //      doc_content = doc_content.replaceAll("_httpdocimg_", image_dir);
    745 //      }
    746 //  }
    747 //  // resolve any collection specific macros
    748 //  doc_content = macro_resolver.resolve(doc_content, lang, GS2MacroResolver.SCOPE_TEXT, doc_id, info);
    749 //  return doc_content;
    750 //     }
    751 
    752727   
    753728}   
Note: See TracChangeset for help on using the changeset viewer.