Changeset 455

Show
Ignore:
Timestamp:
06/03/09 14:59:29 (9 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/vendor/plugins/active_rdf/lib/active_rdf/federation/federation_manager.rb

    r287 r455  
    4848        #verifies if the repository was enabled by the Explorator's user. 
    4949        begin 
    50           if !(Thread.current[:disablerepositories].include? source.title)  
     50          if Thread.current[:disablerepositories] != nil && !(Thread.current[:disablerepositories].include? source.title)  
    5151            next 
    5252          end 
    5353        rescue     
    54         
     54           
    5555          #outside the Explorator. 
    56       end 
    57        # puts source.title 
     56        end 
     57        #Forces skip INTERNAL repository searches for users's queries, or not system' queries. 
     58        if source.title == "INTERNAL" && !q.to_s.include?('http://www.tecweb.inf.puc-rio.br') 
     59          next 
     60        end 
     61        # puts source.title 
    5862        q.limit(source.limit) if source.limit != nil 
    5963        source_results = source.query(q)