- Timestamp:
- 09/21/10 21:24:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Cache.java
r704 r713 129 129 } 130 130 131 if (key_array.length > 3){ 132 e.setAttribute("startRecord", key_array[3]); 133 }else{ 134 e.setAttribute("startRecord", ""); 135 } 136 if (key_array.length > 4){ 137 e.setAttribute("maximumRecords", key_array[4]); 138 }else{ 139 e.setAttribute("maximumRecords", ""); 140 } 131 141 DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd:hh-mm-ss"); 132 142 e.setAttribute("date", dateFormat.format(new Date()).toString()); … … 218 228 219 229 if (key_array.length > 2){ 220 xpath_expr = xpath_expr + "and @collection='"+key_array[2]+"']"; 221 }else{ 222 xpath_expr = xpath_expr + " and @collection='']"; 230 xpath_expr = xpath_expr + "and @collection='"+key_array[2]+"'"; 231 }else{ 232 xpath_expr = xpath_expr + " and @collection=''"; 233 } 234 if (key_array.length > 3){ 235 xpath_expr = xpath_expr + "and @startRecord='"+key_array[3]+"'"; 236 }else{ 237 xpath_expr = xpath_expr + " and @startRecord=''"; 238 } 239 if (key_array.length > 4){ 240 xpath_expr = xpath_expr + "and @maximumRecords='"+key_array[4]+"']"; 241 }else{ 242 xpath_expr = xpath_expr + " and @maximumRecords='']"; 223 243 } 224 244
Note: See TracChangeset
for help on using the changeset viewer.