         else
           $scope.query = searchAge($scope.query, ageRangeMin, ageRangeMax)
 
+      if sessionFilter
+        $scope.query = searchSession($scope.query)
+
+      if highlightFilter
+        $scope.query = searchHighlight($scope.query)
+
+      if partyFilter
+        $scope.query = searchParties($scope.query)
+
+      # Party search?
+
+
       # Send the search
       promise = page.router.http(page.router.controllers.postSearch,
         {"query" : $scope.query, "offset" : $scope.offset, "limit" : $scope.limit})


    ageRangeMin = 0
    ageRangeMax = 0

    #


      console.log("VOLUME TIME", volumes, volumeModels)
      console.log("RECORD TIME", slots, recordModels)
      return { parties: partyModels, volumes: volumeModels, records: recordModels }

    searchAffiliation = (query) ->
      return addArgToQuery(query, "party_affiliation_s", $scope.selectedFilter)

    # Now we want to rerun the search but only return vols w/ highlights
    searchHighlight = (query) ->
      $scope.requireHighlight = true
      return addArgToQuery(query,"volume_has_excerpt_b", "true")

    searchSession = (query) ->
      $scope.requireSession = true
      return addArgToQuery(query, "volume_has_sessions_b", "true")

    searchParties = (query) ->
      filterName = $scope.selectedFilter
      console.log("Filtering parties by", filterName)
      if filterName.join(" ").includes("All")
        # Select all parties
        query = query # TODO should this do something else?
      else if filterName.join(" ").includes("Institution")
        # Select institutions
        query = addArgToQuery(query, "party_is_institution_b", "true")
      else if filterName.join(" ").includes("Authorized")
        # Select authorized users only
        query = addArgToQuery(query, "party_is_authorized_b", "true")
      return query

    searchVolume = (volume, query) ->
      arg = "|arg=volume_id_i:#{ volume.id }"
