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

pazpar timeout clientside

File:
1 edited

Legend:

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

    r1487 r1493  
    117117        return reptype;
    118118};
     119
     120Workspace.prototype.getOption = function(opt_key){
     121        var value = "";
     122       
     123        value = workspace.server_json["WorkspaceProfile"]["Options"][opt_key];
     124       
     125        return value;
     126}
    119127
    120128Workspace.prototype.removeelement = function(type, id1, id2){
     
    237245        } );
    238246};
    239 Query.prototype.pazpar2show = function(data){
     247Query.prototype.pazpar2show = function(data, activeClients){
    240248        //this.container.find('.result').html(data);
    241249       
     
    261269       
    262270       
    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){
    265273                // update link-hrefs
    266274                var qid = $(res).closest('.query_wrapper').attr("id");
     
    831839                var reptype = workspace.getRepositoryType(this.repository);
    832840               
     841                // USE CLIENT PAZPAR
    833842                if (reptype=="pazpar"){
    834843                        //pazpar handling this
     
    843852                                uri = link('sru', this.format, this.sruquery_uri());
    844853                        } else {
    845                                
     854                                // USE SERVER PAZPAR
    846855                                //if (reptype=="pazpar"){
    847856                                //      uri = link('pazpar', this.format, this.query_uri());
Note: See TracChangeset for help on using the changeset viewer.