Ignore:
Timestamp:
2016-12-13T20:36:01+13:00 (7 years ago)
Author:
ak19
Message:

Commit for GS3 server side part of OAI deletion police implementation. Still to implement the GS2 server side part. The earlier commits implemented the PERL side, the oai-inf db implementation. I think I've now got the GS3 server side working, but have yet to try validating against the OAI validator. (I need to test that on a machine that is publicly accessible).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSFile.java

    r30833 r31230  
    372372    return site_home + File.separatorChar + "collect" + File.separatorChar + collection_name + File.separatorChar + "index" + File.separatorChar + "text" + File.separatorChar + index_stem + db_ext;
    373373    }
     374   
     375    /** the oai-inf database file in the collection's etc folder */
     376    static public String OAIInfoDatabaseFile(String site_home, String collection_name, String db_tailname, String database_type)
     377    {
     378    String db_ext = DBHelper.getDBExtFromDBType(database_type);
     379    if (null == db_ext || db_ext.equals("")) {
     380        logger.warn("Could not recognise database type \"" + database_type + "\", defaulting to GDBM and extension \".gdb\"");
     381        // assume gdbm
     382        db_ext = ".gdb";
     383    }
     384    return site_home + File.separatorChar + "collect" + File.separatorChar + collection_name + File.separatorChar + "etc" + File.separatorChar + db_tailname + db_ext; // db tailname should be oai-inf
     385    }
     386
    374387
    375388    /** the archives database file - */
Note: See TracChangeset for help on using the changeset viewer.