Changeset 1483


Ignore:
Timestamp:
08/18/11 14:03:15 (13 years ago)
Author:
gaba
Message:

pazpar server version

Location:
MDService2/trunk/MDService2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/WebContent/scripts/mdservice_model.js

    r1478 r1483  
    810810               
    811811                var reptype = workspace.getRepositoryType(this.repository);
    812                
     812                /*
    813813                if (reptype=="pazpar"){
    814814                        //pazpar handling this
     
    816816                        return;
    817817                }
    818                
     818                */
    819819                if (reptype=="md" ){
    820820                        uri = link('recordset',this.format, this.query_uri());
     
    823823                                uri = link('sru', this.format, this.sruquery_uri());
    824824                        } else {
    825                                 /*
     825                               
    826826                                if (reptype=="pazpar"){
    827827                                        uri = link('pazpar', this.format, this.query_uri());
    828828                                } else {
    829                                 */
     829                               
    830830                                        return;
    831                                 //}
     831                                }
    832832                        }
    833833                }
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/Pz2ProxyAction.java

    r1481 r1483  
    138138        @Override
    139139        public InputStream getSourceStream() throws IOException {
    140                 if (getCommand().equals("")){
     140                if (getCommand() == null){
    141141                        try {
    142142                                return getSourcePz2();
     
    196196                setCommand("search");
    197197                setSessionID(sessionID);
     198                setQuery(this.getSquery());
    198199                String ok = getDocumentData(this.getSourceStream(),"//search/status");
    199200               
    200201                String activeclients = "1";
    201202                setCommand("show");
     203                setSort("relevance");
     204                setBlock("1");
    202205                while (Integer.parseInt(activeclients) > 0){
     206                        activeclients = getDocumentData(this.getSourceStream(), "//show/activeclients");
    203207                        is = this.getSourceStream();
    204                         activeclients = getDocumentData(is, "//show/activeclients");
    205208                       
    206209                }
Note: See TracChangeset for help on using the changeset viewer.