Ignore:
Timestamp:
2014-06-05T13:35:39+12:00 (10 years ago)
Author:
kjdon
Message:

added a method to retrieve a piece of metadata for the doc node. Used by AbstractBrowse to get mdoffset info

File:
1 edited

Legend:

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

    r28965 r29089  
    255255  }
    256256
     257  public String getMetadata(String node_id, String meta_name) {
     258    DBInfo info = this.coll_db.getInfo(node_id);
     259    if (info == null)
     260      {
     261    return null;
     262      }
     263    return info.getInfo(meta_name);
     264  }
     265       
    257266    /** returns true if the node has a parent */
    258267    public boolean hasParent(String node_id){
Note: See TracChangeset for help on using the changeset viewer.