Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Updating SearchBuilder to not filter out ScannedResources that are pa…
Browse files Browse the repository at this point in the history
…rt of MultiVolumeWorks when loading a resource for bulk editing
  • Loading branch information
escowles committed Dec 17, 2015
1 parent 1ffa1e8 commit d2533d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/search_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def self.show_actions
end

def hide_parented_resources(solr_params)
return if show_action?
return if show_action? || bulk_edit?
solr_params[:fq] ||= []
solr_params[:fq] << "!#{ActiveFedora::SolrQueryBuilder.solr_name('ordered_by', :symbol)}:['' TO *]"
end
Expand All @@ -19,4 +19,8 @@ def join_from_parent(solr_params)
def show_action?
self.class.show_actions.include? blacklight_params["action"].to_sym
end

def bulk_edit?
blacklight_params["action"].to_sym == :bulk_edit
end
end

0 comments on commit d2533d7

Please sign in to comment.