- Timestamp:
- 08/22/11 20:19:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/WebContent/scripts/mdservice_model.js
r1487 r1493 117 117 return reptype; 118 118 }; 119 120 Workspace.prototype.getOption = function(opt_key){ 121 var value = ""; 122 123 value = workspace.server_json["WorkspaceProfile"]["Options"][opt_key]; 124 125 return value; 126 } 119 127 120 128 Workspace.prototype.removeelement = function(type, id1, id2){ … … 237 245 } ); 238 246 }; 239 Query.prototype.pazpar2show = function(data ){247 Query.prototype.pazpar2show = function(data, activeClients){ 240 248 //this.container.find('.result').html(data); 241 249 … … 261 269 262 270 263 if (Number( $(data).find(".activeclients").text() ) == 0) {264 //if (data.activeclients == 0){271 //if (Number( $(data).find(".activeclients").text() ) == 0) { 272 if (activeClients == 0){ 265 273 // update link-hrefs 266 274 var qid = $(res).closest('.query_wrapper').attr("id"); … … 831 839 var reptype = workspace.getRepositoryType(this.repository); 832 840 841 // USE CLIENT PAZPAR 833 842 if (reptype=="pazpar"){ 834 843 //pazpar handling this … … 843 852 uri = link('sru', this.format, this.sruquery_uri()); 844 853 } else { 845 854 // USE SERVER PAZPAR 846 855 //if (reptype=="pazpar"){ 847 856 // uri = link('pazpar', this.format, this.query_uri());
Note: See TracChangeset
for help on using the changeset viewer.