Changeset 23050
- Timestamp:
- 2010-10-06T15:01:25+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java
r22306 r23050 38 38 /** Partially implements a generic classifier service 39 39 * 40 * @author <a href="mailto:kjdon@cs.waikato.ac.nz">Katherine Don</a>41 40 */ 42 41 public abstract class AbstractBrowse … … 268 267 // name); 269 268 //now use the position to get the node - CL1 270 int position = Integer.parseInt(name.substring(2)); 269 // assumes the same number of classifiers in collectionCOnfig as in buildConfig 270 // int position = Integer.parseInt(name.substring(2)); 271 271 272 Element node_extra = null; 272 273 NodeList cls = config_browse.getElementsByTagName(GSXML.CLASSIFIER_ELEM); 273 if (position >0 && position <= cls.getLength()) { 274 node_extra = (Element) cls.item((position -1)); 274 //if (position >0 && position <= cls.getLength()) { 275 // node_extra = (Element) cls.item((position -1)); 276 //} 277 if (i<cls.getLength()) { 278 node_extra = (Element) cls.item(i); 275 279 } 276 280
Note:
See TracChangeset
for help on using the changeset viewer.