Changeset 29062 for main


Ignore:
Timestamp:
2014-05-19T13:17:46+12:00 (10 years ago)
Author:
kjdon
Message:

added Identifier field into the DBInfo. Useful for OAI, cna just get Identifier metadata out of the info instead of making it a special case. Will this muck anything up anywhere else??

File:
1 edited

Legend:

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

    r28968 r29062  
    113113    public DBInfo getInfo(String main_key)
    114114    {
    115         //   logger.warn("All the entries of the db are:");
    116         //   this.coll_db.displayAllEntries();
     115      //logger.warn("All the entries of the db are:");
     116      //this.coll_db.displayAllEntries();
    117117
    118118        if (this.coll_db == null)
     
    130130       
    131131        DBInfo info = new DBInfo();
    132 
     132        // add in the Identifier field // hack for OAI. useful for other things? or not???
     133        info.addInfo("Identifier", main_key);
    133134        String[] lines = StringUtils.split(key_info, "\n");
    134135        String key;
Note: See TracChangeset for help on using the changeset viewer.