Changeset 31056

Show
Ignore:
Timestamp:
03.11.2016 18:42:03 (3 years ago)
Author:
ak19
Message:

Got the metadata names in the Browse classifier of the backdrop tutorial collection appearing correctly again. There was some hard-to-find inconsistency between the original functions in ServiceCluster? and the version that was ported to the new DisplayItemUtil? class.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/collection/ServiceCluster.java

    r30839 r31056  
    655655            if (param_list == null) 
    656656            { 
    657               Element di_list = result_doc.createElement(GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER); 
    658               description.appendChild(di_list); 
    659               DisplayItemUtil.addLanguageSpecificDisplayItems(di_list, this.display_item_list, lang, DEFAULT_LANG, this.class_loader); 
     657                //Element di_list = result_doc.createElement(GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER); 
     658                //description.appendChild(di_list); 
     659              DisplayItemUtil.addLanguageSpecificDisplayItems(description, this.display_item_list, lang, DEFAULT_LANG, this.class_loader); 
    660660                description.appendChild(result_doc.importNode(this.service_list, true)); 
    661661                description.appendChild(result_doc.importNode(this.metadata_list, true)); 
     
    686686                    else if (info.equals(GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER)) 
    687687                    { 
    688                       Element di_list = result_doc.createElement(GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER); 
    689                       description.appendChild(di_list); 
    690                       DisplayItemUtil.addLanguageSpecificDisplayItems(di_list, this.display_item_list, lang, DEFAULT_LANG, this.class_loader); 
     688                        //Element di_list = result_doc.createElement(GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER); 
     689                        //description.appendChild(di_list); 
     690                      DisplayItemUtil.addLanguageSpecificDisplayItems(description, this.display_item_list, lang, DEFAULT_LANG, this.class_loader); 
    691691 
    692692                    }