- Timestamp:
- 2003-09-01T09:30:53+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Retrieve.java
r5189 r5380 202 202 Element cl = (Element)classifiers.item(i); 203 203 Element new_cl = (Element)this.doc.importNode(cl, false); // just import this node, not the children 204 204 String content = cl.getAttribute(GSXML.CLASSIFIER_CONTENT_ATT); 205 205 cl_list.appendChild(new_cl); 206 206 String text = GSXML.getDisplayText(cl, … … 211 211 // for now this looks in the class properties file 212 212 // this needs to use a general metadata thing instead 213 text = getMetadataNameText(cl.getAttribute(GSXML.CLASSIFIER_CONTENT_ATT)+".buttonname", lang); 213 text = getMetadataNameText(content+".buttonname", lang); 214 } 215 if (text == null) { 216 text = content; 214 217 } 215 218 … … 218 221 219 222 // description 220 String []meta_name = {getMetadataNameText(cl.getAttribute(GSXML.CLASSIFIER_CONTENT_ATT), lang)}; 221 String description = getTextString("ClassifierBrowse.classifier_help", meta_name, lang); 223 224 String meta_name = getMetadataNameText(content, lang); 225 if (meta_name==null) { 226 meta_name = content; 227 } 228 String [] array = {meta_name}; 229 String description = getTextString("ClassifierBrowse.classifier_help", array, lang); 222 230 Element cl_desc = GSXML.createDisplayTextElement(this.doc, GSXML.DISPLAY_TEXT_DESCRIPTION, description); 223 231 new_cl.appendChild(cl_desc);
Note:
See TracChangeset
for help on using the changeset viewer.