       if partyFilter
         $scope.query = searchParties($scope.query)
 
+      if volumeFilter
+        $scope.query = searchVolumes($scope.query)
+
       # Party search?
 
 

    # Perform a new search for people or volumes only... NOTE: does not do anything yet
    # TODO Either make this do something useful or remove the search part of it
    $scope.partyVolBoxClick_temp = (t) ->
      if t.includes($scope.volumeDisplayStr) || t.includes($scope.partyDisplayStr)
        $scope.query = $scope.originalQuery
        $scope.search()
      console.log(t, $scope.filterDisplay)

    $scope.partyVolBoxClick = ->
      console.log($scope.selectedType, $scope.selectedType.join(" "))
      if $scope.selectedType.join(" ").includes($scope.volumeDisplayStr) || $scope.selectedType.join(" ").includes($scope.partyDisplayStr)
        $scope.query = $scope.originalQuery
        $scope.search()
      console.log($scope.selectedType, $scope.filterDisplay)

    # Action to do something when a filter option is clicked

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

    searchVolumes = (query) ->
      return addArgToQuery(query, "content_type", "volume")

    searchParty = (query) ->
      return addArgToQuery(query, "content_type", "party")

    searchParties = (query) ->
      filterName = $scope.selectedFilter
      console.log("Filtering parties by", filterName)
      if filterName? and filterName.length > 0
        if filterName.join(" ").includes("All")
          # Select all parties
          query = searchParty(query)
        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")
      else
        query = searchParty(query)
      return query

    searchVolume = (volume, query) ->
