Changeset 30770 for main

Show
Ignore:
Timestamp:
01.09.2016 10:14:14 (3 years ago)
Author:
kjdon
Message:

when getting all the strings with a specified prefix, we actually want the prefix to be xxx. not xxx as that may match other unnecessary stuff

Files:
1 modified

Legend:

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

    r30542 r30770  
    755755    public static String getInterfaceStringsAsJavascript(String interface_name, String lang, String prefix, String prependToPrefix) 
    756756    { 
     757      String prefixwithdot = prefix+"."; 
    757758        // 1. Generating Javascript of the form: 
    758759        // if(!gs.text) { gs.text = new Array(); } 
     
    783784            { 
    784785                String key = (String) keys.nextElement(); 
    785                 if (key.startsWith(prefix)) 
     786                if (key.startsWith(prefixwithdot)) 
    786787                { 
    787788                    String value = getInterfaceText(interface_name, dictName, lang, key, null);