Changeset 31872

Show
Ignore:
Timestamp:
10.08.2017 14:24:48 (2 years ago)
Author:
kjdon
Message:

changed variable name as its a list of paramLists

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/PageAction.java

    r31166 r31872  
    270270        } 
    271271 
    272         NodeList paramList = request.getElementsByTagName(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 
    273         if (paramList.getLength() != 0) 
    274         { 
    275             for (int i = 0; i < paramList.getLength(); i++) 
    276             { 
    277                 Element e = (Element) paramList.item(i); 
     272        // adding a ct param to paramlist. only needed for gs2 interface, not default 
     273        NodeList paramList_list = request.getElementsByTagName(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 
     274        if (paramList_list.getLength() != 0) 
     275        { 
     276            for (int i = 0; i < paramList_list.getLength(); i++) 
     277            { 
     278                Element e = (Element) paramList_list.item(i); 
    278279                Element ct = GSXML.createParameter(request.getOwnerDocument(), GSParams.COLLECTION_TYPE, col_type.equalsIgnoreCase("mg") ? "0" : "1"); 
    279280                e.appendChild(ct);