Ignore:
Timestamp:
04/03/11 21:08:07 (13 years ago)
Author:
gaba
Message:
 
File:
1 edited

Legend:

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

    r1190 r1191  
    267267                        this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "operation");
    268268                        //return -1;
    269                 }
    270                 if (!operation.equals("searchRetrieve")) {
    271                         this.Diagnostics().Add(Diagnostic.UNSUPPOERTED_OPERATION, "Only searchRetrieve supported.");
    272                         //return -1;
     269                } else {
     270                        if (!operation.equals("searchRetrieve")) {
     271                                this.Diagnostics().Add(Diagnostic.UNSUPPOERTED_OPERATION, "Only searchRetrieve supported.");
     272                                //return -1;
     273                        }
    273274                }
    274275                mdrepoproxyaction.setActionkey(hash_operations.get(this.getOperation()));
     
    277278                        this.Diagnostics().Add(Diagnostic.MANDATORY_NOTSUPPLIED, "version");
    278279                        //return -1;
    279                 }
    280                 if (!version.equals("1.2")) {
    281                         this.Diagnostics().Add(Diagnostic.UNSUPPORTED_VERSION, "Version 1.2 supported.");
    282                         //return -1;
     280                } else {
     281                        if (!version.equals("1.2")) {
     282                                this.Diagnostics().Add(Diagnostic.UNSUPPORTED_VERSION, "Version 1.2 supported.");
     283                                //return -1;
     284                        }
    283285                }
    284286                //query
Note: See TracChangeset for help on using the changeset viewer.