Changeset 1523 for MDService2


Ignore:
Timestamp:
09/06/11 21:09:07 (13 years ago)
Author:
gaba
Message:
 
Location:
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/GenericAction.java

    r1522 r1523  
    2929import eu.clarin.cmdi.mdservice.internal.MDTransformer;
    3030import eu.clarin.cmdi.mdservice.internal.NoStylesheetException;
     31import eu.clarin.cmdi.mdservice.model.Diagnostic;
    3132import eu.clarin.cmdi.mdservice.model.Diagnostics;
    3233import eu.clarin.cmdi.mdservice.proxy.ProxyInterface;
     
    253254                        sarr[0] = getQ();
    254255                        params.put("q", sarr);         
    255                 }               
     256                }       
     257                if (!params.containsKey("repository")){
     258                        String[] sarr = new String[1];
     259                        sarr[0] = getRepository();
     260                        params.put("repository", sarr);
     261                }
    256262                String[] sarr2 = new String[1];
    257263                sarr2[0] =getFullFormat();
    258264                params.put("fullformat", sarr2);
    259265        }
    260 
     266   
     267       
    261268        public Map<String,String[]> getParams() {               
    262269                return params;
     
    352359        Map<String, String> aMap = new HashMap<String,String>();
    353360        aMap.put("fullformat","format");
    354         aMap.put("format","fullformat");
     361        //aMap.put("format","fullformat");
    355362        aMap.put("columns", "cols");
    356363        aMap.put("maximumItems","maximumItems");
  • MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/action/RepoAction.java

    r1522 r1523  
    7575        private String sort;   
    7676        private int maxdepth;   
    77         private String format="xml"; // default no transformation
     77        //private String format="xml"; // default no transformation
    7878        private String options;
    7979
     
    8181        protected URL base_url ;
    8282
    83        
     83        @Override
     84        public String getFullFormat() {         
     85                return actionkey + "2" + getParam("format");
     86        }
    8487        /**
    8588         * Based on the repository type - we create a typed Proxy, that will do the work.
     
    145148                this.maxdepth = maxdepth;
    146149        }
    147 
     150/*
    148151        public String getFormat() {
    149152                return format;
     
    153156                this.format = format;
    154157        }
    155 
     158*/
    156159        public String getOptions() {
    157160                return options;
Note: See TracChangeset for help on using the changeset viewer.