Changeset 33278

Show
Ignore:
Timestamp:
02.07.2019 14:00:20 (2 weeks ago)
Author:
kjdon
Message:

added a basic getGenericText where you can specify the dictionary name. Have only implemented the most basic version so far. will do the rest as/if needed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java

    r33215 r33278  
    463463    } 
    464464 
     465  public static String getGenericText(String dictionary_name, String lang, String key) { 
     466 
     467    Dictionary dict = new Dictionary(dictionary_name, lang); 
     468    String result = dict.get(key); 
     469    if (result == null) { 
     470      return "_"+dictionary_name+"_"+key+"_"; 
     471    } 
     472    return result; 
     473  } 
    465474    public static boolean isImage(String mimetype) 
    466475    {