- Timestamp:
- 11/02/10 20:52:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Cache.java
r774 r832 143 143 e.setAttribute("maximumRecords", ""); 144 144 } 145 146 if (key_array.length > 6){ 147 e.setAttribute("repository", key_array[6]); 148 }else{ 149 e.setAttribute("repository", ""); 150 } 151 if (key_array.length > 7){ 152 e.setAttribute("maxDepth", key_array[7]); 153 }else{ 154 e.setAttribute("maxDepth", ""); 155 } 156 if (key_array.length > 8){ 157 e.setAttribute("lang", key_array[8]); 158 }else{ 159 e.setAttribute("lang", ""); 160 } 161 145 162 DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd:hh-mm-ss"); 146 163 e.setAttribute("date", dateFormat.format(new Date()).toString()); … … 218 235 219 236 if(key_array.length > 1){ 220 //Admin.notifyUser("formPATH- querystring:" + key_array[1]);237 Admin.notifyUser("formPATH- querystring:" + key_array[1]); 221 238 if (key_array[0].equals("recordset")){ 222 239 query_str = this.transformQuery(key_array[1]); … … 248 265 } 249 266 if (key_array.length > 5){ 250 xpath_expr = xpath_expr + "and @maximumRecords='"+key_array[5]+"']"; 251 }else{ 252 xpath_expr = xpath_expr + " and @maximumRecords='']"; 267 xpath_expr = xpath_expr + "and @maximumRecords='"+key_array[5]+"'"; 268 }else{ 269 xpath_expr = xpath_expr + " and @maximumRecords=''"; 270 } 271 272 if (key_array.length > 6){ 273 xpath_expr = xpath_expr + "and @repository='"+key_array[6]+"'"; 274 }else{ 275 xpath_expr = xpath_expr + " and @repository=''"; 276 } 277 if (key_array.length > 7){ 278 xpath_expr = xpath_expr + "and @maxDepth='"+key_array[7]+"'"; 279 }else{ 280 xpath_expr = xpath_expr + " and @maxDepth=''"; 281 } 282 if (key_array.length > 8){ 283 xpath_expr = xpath_expr + "and @lang='"+key_array[8]+"']"; 284 }else{ 285 xpath_expr = xpath_expr + " and @lang='']"; 253 286 } 254 287
Note: See TracChangeset
for help on using the changeset viewer.