Ignore:
Timestamp:
09/28/10 18:35:06 (10 years ago)
Author:
ak19
Message:
  1. Undoing commit of 22934 where decode_commas was called on stem and fold comma separated list: previously separated due to url-encoding of commas. Now that the problem has been fixed at the source, the decode_commas hack is no longer necessary. 2. Commas in stem and fold are no longer url-encoded because the multiple_value field of the continuously-reused struct arg_ainfo is always set back to the default false after ever being set to true. So it no longer subtly stays at true to affect Greenstone functioning in unforeseen ways (such as suddenly and unnecessarily URL-encoding commas where this is not wanted).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/documentaction.cpp

    r22671 r22984  
    4444  arg_ainfo.longname = "action";
    4545  arg_ainfo.multiplechar = true;
     46  arg_ainfo.multiplevalue = false;
    4647  arg_ainfo.defaultstatus = cgiarginfo::weak;
    4748  arg_ainfo.argdefault = "p";
     
    5253  arg_ainfo.longname = "document OID";
    5354  arg_ainfo.multiplechar = true;
     55  arg_ainfo.multiplevalue = false;
    5456  arg_ainfo.defaultstatus = cgiarginfo::none;
    5557  arg_ainfo.argdefault = g_EmptyText;
     
    6264  arg_ainfo.longname = "internal link preference";
    6365  arg_ainfo.multiplechar = false;
     66  arg_ainfo.multiplevalue = false;
    6467  arg_ainfo.defaultstatus = cgiarginfo::weak;
    6568  arg_ainfo.argdefault = "l";
     
    7073  arg_ainfo.longname = "classification OID";
    7174  arg_ainfo.multiplechar = true;
     75  arg_ainfo.multiplevalue = false;
    7276  arg_ainfo.defaultstatus = cgiarginfo::none;
    7377  arg_ainfo.argdefault = g_EmptyText;
     
    8084  arg_ainfo.longname = "expand contents";
    8185  arg_ainfo.multiplechar = false;
     86  arg_ainfo.multiplevalue = false;
    8287  arg_ainfo.defaultstatus = cgiarginfo::weak;
    8388  arg_ainfo.argdefault = "0";
     
    9297  arg_ainfo.longname = "expand text";
    9398  arg_ainfo.multiplechar = false;
     99  arg_ainfo.multiplevalue = false;
    94100  arg_ainfo.defaultstatus = cgiarginfo::weak;
    95101  arg_ainfo.argdefault = "0";
     
    102108  arg_ainfo.longname = "go to page";
    103109  arg_ainfo.multiplechar = true;
     110  arg_ainfo.multiplevalue = false;
    104111  arg_ainfo.defaultstatus = cgiarginfo::none;
    105112  arg_ainfo.argdefault = g_EmptyText;
     
    115122  arg_ainfo.longname = "highlighting on/off";
    116123  arg_ainfo.multiplechar = false;
     124  arg_ainfo.multiplevalue = false;
    117125  arg_ainfo.defaultstatus = cgiarginfo::weak;
    118126  arg_ainfo.argdefault = "1";
     
    125133  arg_ainfo.longname = "detached page";
    126134  arg_ainfo.multiplechar = false;
     135  arg_ainfo.multiplevalue = false;
    127136  arg_ainfo.defaultstatus = cgiarginfo::weak;
    128137  arg_ainfo.argdefault = "0";
     
    134143  arg_ainfo.longname = "detach all doc pages";
    135144  arg_ainfo.multiplechar = false;
     145  arg_ainfo.multiplevalue = false;
    136146  arg_ainfo.defaultstatus = cgiarginfo::weak;
    137147  arg_ainfo.argdefault = "0";
     
    145155  arg_ainfo.longname = "frame";
    146156  arg_ainfo.multiplechar = false;
     157  arg_ainfo.multiplevalue = false;
    147158  arg_ainfo.defaultstatus = cgiarginfo::weak;
    148159  arg_ainfo.argdefault = "0";
     
    155166  arg_ainfo.longname = "include search bar";
    156167  arg_ainfo.multiplechar = false;
     168  arg_ainfo.multiplevalue = false;
    157169  arg_ainfo.defaultstatus = cgiarginfo::weak;
    158170  arg_ainfo.argdefault = "1";
     
    165177  arg_ainfo.longname = "include relevant documents";
    166178  arg_ainfo.multiplechar = false;
     179  arg_ainfo.multiplevalue = false;
    167180  arg_ainfo.defaultstatus = cgiarginfo::weak;
    168181  arg_ainfo.argdefault = "0";
     
    174187  arg_ainfo.longname = "date metadata";
    175188  arg_ainfo.multiplechar = true;
     189  arg_ainfo.multiplevalue = false;
    176190  arg_ainfo.defaultstatus = cgiarginfo::weak;
    177191  arg_ainfo.argdefault = g_EmptyText;
Note: See TracChangeset for help on using the changeset viewer.