Ignore:
Timestamp:
09/26/11 20:22:46 (13 years ago)
Author:
gaba
Message:

use javascript version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_model.js

    r1496 r1558  
    232232       
    233233        //pazpar
     234       
    234235        this.pz2 = new md_pz2( { "onshow": this.pazpar2show,
    235236        "showtime": 500,            //each timer (show, stat, term, bytarget) can be specified this way
     
    244245        //"onrecord": my_onrecord
    245246        } );
     247       
    246248};
    247249Query.prototype.pazpar2show = function(data, activeClients){
     
    439441Query.prototype.query_uri = function () {
    440442        var params = "?";
    441         if (this.query != null) {
    442                 params = params + "q=" + escape(this.query) + "&";
    443         }
     443        //if (this.query != null) {
     444        //      params = params + "q=" + escape(this.query) + "&";
     445        //}
    444446        if (this.squery != null) {
    445447                escaped_sq =escape(this.squery).replace(/%20/g,"%2520").replace(/\%2[27]/g,"%2522") ;
    446448                escaped_sq = escaped_sq.replace(/%7C/g,"%257C").replace(/\+/g,"%2B");
    447                 params = params + "squery=" + escaped_sq + "&";
    448         }
    449         params = params + "collection=" + this.getcollectiontext("index") + "&columns=" + this.getcolumnstext() + "&startItem=" + this.startItem + "&maximumItems=" + this.maximumItems + "&repository=" + this.repository;
     449                //params = params + "squery=" + escaped_sq + "&";
     450                params = params + "query=" + escaped_sq + "&";
     451        }
     452        params = params + "collection=" + this.getcollectiontext("index") + "&columns=" + this.getcolumnstext() + "&startRecord=" + this.startItem + "&maximumRecords=" + this.maximumItems + "&repository=" + this.repository;
    450453        if  (this.options != null) {
    451454                params = params + "&options=withSummary";
     
    807810                 //      uri = link('sru',this.sruquery_uri());
    808811                 //} else {
    809                          uri = link('recordset',type, this.query_uri());
     812                         uri = link('search', type, this.query_uri());
    810813                // }           
    811814         }
     
    849852                // ALL types  = query uri,
    850853                // pazpar server usage
    851                 uri = link('recordset',this.format, this.query_uri());
     854                uri = link('search',this.format, this.query_uri());
    852855               
    853856                /*
     
    903906        }
    904907        if (reptype=="md" ){
    905                 uri = link('recordset',this.format, this.query_uri());
     908                uri = link('search',this.format, this.query_uri());
    906909        } else {
    907910                if (reptype=="sru"){
Note: See TracChangeset for help on using the changeset viewer.