Changeset 25300
- Timestamp:
- 2012-03-27T15:15:07+13:00 (12 years ago)
- Location:
- main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSParams.java
r25262 r25300 25 25 { 26 26 27 // cgi parameter names 27 28 public static final String ACTION = "a"; // the major type of action- eg query or browse or process 28 29 public static final String SUBACTION = "sa"; // subtype of action if we want different processing than the default … … 30 31 public static final String RESPONSE_ONLY = "ro"; // if == 1 do the request and pass back the response xml - no page formatting 31 32 public static final String OUTPUT = "o"; // if processing is to be done, what type of output - html/xml/other?? 32 public static final String HTTPHEADERFIELDS = "hhf";33 33 public static final String SERVICE = "s"; // the name of the service 34 34 35 public static final String CLUSTER = "c"; // these two are the same 35 public static final String SYSTEM = "s";36 public static final String CONFIGURE = "c";37 36 public static final String COLLECTION = "c"; 37 public static final String COLLECTION_TYPE = "ct"; // collection type - mg, mgpp, lucene etc 38 38 39 public static final String LANGUAGE = "l"; 39 40 public static final String DOCUMENT = "d"; 40 41 public static final String DOCUMENT_TYPE = "dt"; 41 public static final String RESOURCE = "r"; 42 public static final String HREF = "href"; // url. might be an external url, or a relative one that needs translating 43 public static final String RELATIVE_LINK = "rl"; // whether the href url is relative to the collection or not. 44 public static final String EXTERNAL_LINK_TYPE = "el"; // for an external link, go direct to the page or frame it in the collection 42 45 public static final String PROCESS_ID = "pid"; // if a request wasn't completed, this identifies the request - used when asking for a status update 43 public static final String COLLECTION_TYPE = "ct";44 46 45 public static final String SIBLING = "sib"; // this should not be in here 47 48 public static final String HTTPHEADERFIELDS = "hhf"; 49 46 50 // internal configure args 47 51 public static final String SYSTEM_SUBSET = "ss"; … … 49 53 public static final String SYSTEM_MODULE_NAME = "sn"; 50 54 public static final String SYSTEM_MODULE_TYPE = "st"; 51 52 public static final String EXPAND_DOCUMENT = "ed";53 public static final String EXPAND_CONTENTS = "ec";54 public static final String REALISTIC_BOOK = "book";55 55 56 56 // used for filtering out a piece of the final page … … 68 68 public static final String S_OLD_PASSWORD = "s1.oldPassword"; 69 69 70 // some standard arg values 71 public static final String SYSTEM_ACTION = "s"; 72 73 public static final String EXTERNAL_LINK_TYPE_DIRECT = "direct"; 74 public static final String EXTERNAL_LINK_TYPE_FRAMED = "frame"; 75 70 76 protected HashMap param_map = null; 71 77 … … 79 85 addParameter(REQUEST_TYPE, false); 80 86 addParameter(RESPONSE_ONLY, false); 81 addParameter(CLUSTER, false); // we don't want to save collection 82 //addParameter(COLLECTION); 87 addParameter(CLUSTER, false); // we don't want to save cluster/collection 83 88 addParameter(LANGUAGE, true); 84 89 addParameter(DOCUMENT, true); 85 addParameter(RESOURCE, true); 90 addParameter(DOCUMENT_TYPE, true); 91 // should the following two just be in doc action?? 92 addParameter(HREF, false); 93 addParameter(RELATIVE_LINK, false); 86 94 addParameter(OUTPUT, false); 87 95 addParameter(SERVICE, false); … … 91 99 addParameter(SYSTEM_MODULE_NAME, false); 92 100 addParameter(SYSTEM_MODULE_TYPE, false); 93 addParameter(SIBLING, false);94 addParameter(DOCUMENT_TYPE, true);95 addParameter(EXPAND_DOCUMENT, false);96 addParameter(EXPAND_CONTENTS, false);97 addParameter(REALISTIC_BOOK, false);98 101 addParameter(INLINE_TEMPLATE, false); 99 102 addParameter(DISPLAY_METADATA, false); … … 103 106 addParameter(S_OLD_PASSWORD, false); 104 107 105 //addParameter(); 106 // ugly hack so we don't save the extlink param 107 addParameter("s0.ext", false); 108 addParameter(COLLECTION_TYPE, true); // collection type - mg or mgpp 109 108 addParameter(COLLECTION_TYPE, true); 109 addParameter(EXTERNAL_LINK_TYPE, false); 110 110 // filtering args must be specified each time 111 111 addParameter(EXCERPT_ID, false); … … 141 141 public boolean shouldSave(String name) 142 142 { 143 // p. is used to store previous settings 143 144 if (name.startsWith("p.")) 144 145 return false; -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSXML.java
r25266 r25300 49 49 static Logger logger = Logger.getLogger(org.greenstone.gsdl3.util.GSXML.class.getName()); 50 50 51 // greenstone xml elements51 // greenstone message xml elements 52 52 public static final String MESSAGE_ELEM = "message"; 53 53 public static final String REQUEST_ELEM = "request"; … … 92 92 public static final String DISPLAY_ELEM = "display"; 93 93 public static final String LEVEL_ELEM = "level"; 94 public static final String REPLACE_ELEM = "replace"; 94 95 95 96 public static final String DBINFO_ELEM = "dbInfo"; … … 122 123 // add on to another elem type to get a list of that type 123 124 public static final String LIST_MODIFIER = "List"; 124 125 // used to refer back to another element type 126 public static final String REF_MODIFIER = "Ref"; 125 127 // greenstone xml attributes 126 128 public static final String COLLECTION_ATT = "collection"; … … 156 158 public static final String NODE_STRUCTURE_ELEM = "nodeStructure"; 157 159 public static final String NODE_ID_ATT = "nodeID"; 160 public static final String HREF_ID_ATT = "hrefId"; // for ids that need translating 161 public static final String ID_MOD_ATT = "idMod"; // might hold .rt etc for hrefIds 158 162 public static final String NODE_OID = "oid"; 159 163 public static final String NODE_NAME_ATT = "nodeName"; -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/MacroResolver.java
r14533 r25300 78 78 79 79 public void addMacros(Element replace_list_elem) { 80 NodeList replaces = replace_list_elem.getElementsByTagName( "replace");80 NodeList replaces = replace_list_elem.getElementsByTagName(GSXML.REPLACE_ELEM); 81 81 for (int i=0; i<replaces.getLength(); i++) { 82 82 Element e = (Element)replaces.item(i);
Note:
See TracChangeset
for help on using the changeset viewer.