Ignore:
Timestamp:
2023-09-05T10:32:59+12:00 (9 months ago)
Author:
kjdon
Message:

removing the bit where the buttonname for a classifier is used for a dictionary lookup. THis is not transparent, and hard to work out what is going on. So now, button name will be used as is. If you want dictionary lookups, use <displayItem name='name' key='Title.buttonname'/> instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractBrowse.java

    r34215 r38019  
    246246                  // no display element was specified, use the metadata name
    247247                  if (!content.equals("")) {
    248                    
    249                     text = getTextString(content + ".buttonname", lang, "metadata_names");
    250                     if (text == null) {
     248                    text = content;
     249                                    // text = getTextString(content + ".buttonname", lang, "metadata_names");
     250                    //if (text == null) {
    251251                     
    252                       text = content;
    253                     }
     252                                    //text = content;
     253                    //}
    254254                  }
    255255                 
     
    263263                // description
    264264
    265                 String meta_name = getTextString(content, lang, "metadata_names");
    266                 if (meta_name == null)
    267                 {
    268                     meta_name = content;
    269                 }
    270                 String[] array = { meta_name };
     265                //String meta_name = getTextString(content, lang, "metadata_names");
     266                //if (meta_name == null)
     267                //{
     268                //  meta_name = content;
     269                //}
     270                               
     271                //String[] array = { meta_name };
     272                                String [] array = { text };
    271273                String description = getTextString("ClassifierBrowse.classifier_help", lang, array);
    272274                Element cl_desc = GSXML.createDisplayTextElement(doc, GSXML.DISPLAY_TEXT_DESCRIPTION, description);
Note: See TracChangeset for help on using the changeset viewer.