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

pazpar server version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.