Changeset 5380 for trunk


Ignore:
Timestamp:
2003-09-01T09:30:53+12:00 (21 years ago)
Author:
kjdon
Message:

a few changes in the text strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Retrieve.java

    r5189 r5380  
    202202        Element cl = (Element)classifiers.item(i);
    203203        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);
    205205        cl_list.appendChild(new_cl);
    206206        String text = GSXML.getDisplayText(cl,
     
    211211            // for now this looks in the class properties file
    212212            // 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;
    214217        }
    215218       
     
    218221
    219222        // 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);
    222230        Element cl_desc = GSXML.createDisplayTextElement(this.doc, GSXML.DISPLAY_TEXT_DESCRIPTION, description);
    223231        new_cl.appendChild(cl_desc);
Note: See TracChangeset for help on using the changeset viewer.