- Timestamp:
- 2004-05-04T17:06:09+12:00 (20 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/Build.java
r6866 r7269 59 59 } 60 60 61 if (site ==null) {61 if (site == null) { 62 62 System.err.println("you must specify the site name"); 63 63 System.exit(0); -
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/CollectionManager.java
r7186 r7269 71 71 List fields; 72 72 String sort; 73 74 public CollectionClassifier(URL parentURL, String type, Node node) 73 String className; 74 75 public CollectionClassifier(URL parentURL, String type, String className, Node node) 75 76 { this.type = type; 77 this.className = className; 76 78 this.fields = new ArrayList(); 77 79 … … 113 115 114 116 public ClassifierInterface getClassifier() 115 { 117 { ClassifierInterface classifier = null; 118 116 119 if (this.type == null) { 117 120 return null; … … 119 122 System.out.println(this.type.toLowerCase()); 120 123 if (this.type.toLowerCase().equals("hierarchy")) { 121 return new HierarchyClassifier(this.file, this.fields, this.sort);124 classifier = new HierarchyClassifier(this.className, this.file, this.fields, this.sort); 122 125 } 123 126 else if (this.type.toLowerCase().equals("azlist")) { 124 returnnew AZListClassifier(this.fields);125 } 126 127 return null;127 classifier = new AZListClassifier(this.fields); 128 } 129 130 return classifier; 128 131 } 129 132 } … … 216 219 217 220 if (name.equals(GSXML.CLASSIFIER_ELEM)) 218 { 219 NamedNodeMap atts = children.item(c).getAttributes(); 221 { NamedNodeMap atts = children.item(c).getAttributes(); 222 223 // get the type attribute 220 224 Node attribute = atts.getNamedItem(GSXML.TYPE_ATT); 221 225 if (attribute == null) { 222 226 continue; 223 227 } 224 225 228 String type = attribute.getNodeValue(); 226 classifier = new CollectionClassifier(etcURL, type, children.item(c)); 229 230 // get the type attribute 231 attribute = atts.getNamedItem(GSXML.NAME_ATT); 232 if (attribute == null) { 233 continue; 234 } 235 String className = attribute.getNodeValue(); 236 237 classifier = new CollectionClassifier(etcURL, type, className, children.item(c)); 227 238 228 239 System.out.println("Found classifier " + type);
Note:
See TracChangeset
for help on using the changeset viewer.