anchor.diff:    # Number of projects added to the page when the user clicks on 'load more projects'
     PROJECTS_PER_PAGE = 16
   
  +
  +
  +  ### PUBLIC SCOPE ###
  +
  +  ## Fab-manager's instance ID in the openLab network
     $scope.openlabAppId = Fablab.openlabAppId
   
  -  ### PUBLIC SCOPE ###
  -  $scope.search = { q: ($location.$$search.q || ""), from: ($location.$$search.from || undefined), machine_id: (parseInt($location.$$search.machine_id) || undefined), component_id: (parseInt($location.$$search.component_id) || undefined), theme_id: (parseInt($location.$$search.theme_id) || undefined) }
  +  ## Is openLab enabled on the instance?
  +  $scope.openlab =
  +    projectsActive: Fablab.openlabProjectsActive
  +    searchOverWholeNetwork: false
  +
  +  ## default search parameters
  +  $scope.search =
  +    q: ($location.$$search.q || "")
  +    from: ($location.$$search.from || undefined)
  +    machine_id: (parseInt($location.$$search.machine_id) || undefined)
  +    component_id: (parseInt($location.$$search.component_id) || undefined)
  +    theme_id: (parseInt($location.$$search.theme_id) || undefined)
   
     ## list of projects to display
     $scope.projects = []
  
positive.code:       return true
      else
        $state.go('app.public.projects_show', {id: project.slug})
  
    ##
    # function to set all url query search parameters from search object
  
negative.code:     updateUrlParam('component_id', search.component_id)
      updateUrlParam('machine_id', search.machine_id)
  
  
  
    ### PRIVATE SCOPE ###
  
    ##
    # Kind of constructor: these actions will be realized first when the controller is loaded
    ##
    initialize = ->
      if $location.$$search.whole_network is 'f'
        $scope.openlab.searchOverWholeNetwork = false
      else
        $scope.openlab.searchOverWholeNetwork = $scope.openlab.projectsActive || false
      $scope.triggerSearch()
  
  
    ##
    # function to update url query param, little hack to turn off reloadOnSearch and re-enable it after setting the params
    # params example: 'q' , 'presse-purée'
  