Changeset 4019


Ignore:
Timestamp:
2003-03-27T16:05:28+12:00 (21 years ago)
Author:
kjdon
Message:

changed div to span, fixed a display bug

File:
1 edited

Legend:

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

    r4018 r4019  
    169169
    170170    if (name.equals(ANNOTATION_TYPE_PARAM)) {
    171         int len = annotation_types_.length;
    172         String[] annotation_type_names = new String[len];
    173         for (int i = 0; i < len; i++) {
    174         annotation_type_names[i] = getTextString("param." + name + "." + annotation_types_[i], lang);
    175         }
    176 
    177171        if (display) {
     172        int len = annotation_types_.length;
     173        String[] annotation_type_names = new String[len];
     174        for (int i = 0; i < len; i++) {
     175            annotation_type_names[i] = getTextString("param." + name + "." + annotation_types_[i], lang);
     176        }
     177       
    178178        param = GSXML.createParameterDisplay(doc_, name, getTextString("param." + name, lang), annotation_types_, annotation_type_names);
    179179        }
     
    182182        }
    183183    }
    184 
     184   
    185185    // Add the parameter to the list
    186186    if (param != null) {
     
    288288        String annotationType = (String) setIterator.next();
    289289        result = result.replaceAll("<" + annotationType + ">",
    290                        "<div class=\"" + annotationType + "\">");
     290                       "<span class=\"" + annotationType + "\">");
    291291        result = result.replaceAll("</" + annotationType + ">",
    292                        "</div class=\"" + annotationType + "\">");
     292                       "</span>");
    293293        }
    294294
Note: See TracChangeset for help on using the changeset viewer.