Changeset 121

Show
Ignore:
Timestamp:
10/21/08 15:16:10 (5 years ago)
Author:
samuraraujo
Message:
 
Location:
Explorator/trunk/app/controllers
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/app/controllers/explorator_controller.rb

    r115 r121  
    9696  #The refresh method return a determined ResourceSet from the SetsPool 
    9797  #This method is called by the Execute method, being passed as a parameter by the interface. 
    98   def refresh(uri,view=:subject_view)    
     98  def refresh(uri,view=:subject_view, filter='')    
    9999    @resourceset= session[:application].get(uri).setWithOffset(0)     
    100100     @filter=filter 
  • Explorator/trunk/app/controllers/facets_controller.rb

    r116 r121  
    4646  def facet (id)   
    4747    #gets a ResourceSet instance in the pool. 
    48     @resourceset= Application.get(id)         
     48    @resourceset= session[:application].get(id)         
    4949    #Gets a facet defined by the user in the repository. 
    5050    # FACETO::FacetGroup belong to the ActiveRDF model and the vocabulary FACETO::FacetGroup was defined by the Explorator. 
     
    6363  def infer   (id)       
    6464    #gets a ResourceSet instance in the pool. 
    65     @resourceset= Application.get(id)   
     65    @resourceset= session[:application].get(id)   
    6666    @groups=FACETO::FacetGroup.find_by_faceto::type(RDFS::Resource.new('http://www.semanticnavigation.org/2008/faceto#userdefined')) 
    6767     
  • Explorator/trunk/app/controllers/viewer_controller.rb

    r22 r121  
    1111    view = params[:value]     
    1212    #Gets the first resource in the set and sets the new view for it. 
    13     resource = Application.get(params[:setid]).resources[0]   
     13    resource = session[:application].get(params[:setid]).resources[0]   
    1414    #it will add a triple in the repository where the subject will be the resource uri, the predicate 
    1515    #will be  explorator:view and the object will be the view script.    
     
    2323    @setid = params[:setid] 
    2424    #returns the resource view. Notes that it was passed a set as parameter and not a resource itself. 
    25     @view = Application.get(params[:setid]).resources[0].explorator::view 
     25    @view = session[:application].get(params[:setid]).resources[0].explorator::view 
    2626   end 
    2727end