- Timestamp:
- 09/26/11 20:22:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/branches/MDService_simple3/WebContent/scripts/mdservice_model.js
r1496 r1558 232 232 233 233 //pazpar 234 234 235 this.pz2 = new md_pz2( { "onshow": this.pazpar2show, 235 236 "showtime": 500, //each timer (show, stat, term, bytarget) can be specified this way … … 244 245 //"onrecord": my_onrecord 245 246 } ); 247 246 248 }; 247 249 Query.prototype.pazpar2show = function(data, activeClients){ … … 439 441 Query.prototype.query_uri = function () { 440 442 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 //} 444 446 if (this.squery != null) { 445 447 escaped_sq =escape(this.squery).replace(/%20/g,"%2520").replace(/\%2[27]/g,"%2522") ; 446 448 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; 450 453 if (this.options != null) { 451 454 params = params + "&options=withSummary"; … … 807 810 // uri = link('sru',this.sruquery_uri()); 808 811 //} else { 809 uri = link(' recordset',type, this.query_uri());812 uri = link('search', type, this.query_uri()); 810 813 // } 811 814 } … … 849 852 // ALL types = query uri, 850 853 // pazpar server usage 851 uri = link(' recordset',this.format, this.query_uri());854 uri = link('search',this.format, this.query_uri()); 852 855 853 856 /* … … 903 906 } 904 907 if (reptype=="md" ){ 905 uri = link(' recordset',this.format, this.query_uri());908 uri = link('search',this.format, this.query_uri()); 906 909 } else { 907 910 if (reptype=="sru"){
Note: See TracChangeset
for help on using the changeset viewer.