Changeset 31872 for main/trunk


Ignore:
Timestamp:
08/10/17 14:24:48 (3 years ago)
Author:
kjdon
Message:

changed variable name as its a list of paramLists

File:
1 edited

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);
Note: See TracChangeset for help on using the changeset viewer.