Ignore:
Timestamp:
11/02/10 20:52:49 (14 years ago)
Author:
gaba
Message:

QUERY(xml,htmlpage,link) - created; cache properties added - repository,lang,maxDepth

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Cache.java

    r774 r832  
    143143                        e.setAttribute("maximumRecords", "");
    144144                }
     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               
    145162                DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd:hh-mm-ss");
    146163                e.setAttribute("date", dateFormat.format(new Date()).toString());
     
    218235               
    219236                if(key_array.length > 1){
    220                         //Admin.notifyUser("formPATH- querystring:" + key_array[1]);
     237                        Admin.notifyUser("formPATH- querystring:" + key_array[1]);
    221238                        if (key_array[0].equals("recordset")){
    222239                                query_str = this.transformQuery(key_array[1]); 
     
    248265                }
    249266                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='']";
    253286                }
    254287               
Note: See TracChangeset for help on using the changeset viewer.