- Timestamp:
- 2011-08-12T09:57:26+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2Browse.java
r24254 r24393 175 175 176 176 } 177 /** returns a list of the mdoffset values in order for the children, null is178 * returned if there are no children or if the mdoffset field is empty */179 protected ArrayList getOffsetsForChildrenIds(String node_id) {180 DBInfo info = this.coll_db.getInfo(node_id);181 if (info == null) {182 return null;183 }184 185 ArrayList childrenOffsets = new ArrayList();186 187 String offset = info.getInfo("mdoffset").trim();188 if(offset.equals("")) {189 return null;190 }191 StringTokenizer st = new StringTokenizer(offset, ";");192 while (st.hasMoreTokens()) {193 String val = st.nextToken().trim();194 childrenOffsets.add(Integer.valueOf(val));195 }196 return childrenOffsets;197 }198 199 177 /** returns the node id of the parent node, null if no parent */ 200 178 protected String getParentId(String node_id){
Note:
See TracChangeset
for help on using the changeset viewer.