Changeset 29062

Show
Ignore:
Timestamp:
19.05.2014 13:17:46 (6 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??

Files:
1 modified

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;