Skip to content

Commit

Permalink
don't show crossref dois in search. datacite/levriero#56
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 13, 2019
1 parent bf16492 commit 7fc79d2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
10 changes: 9 additions & 1 deletion app/controllers/members_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,15 @@ def index
elsif params[:ids].present?
response = Provider.find_by_id(params[:ids], page: page, sort: sort)
else
response = Provider.query(params[:query], exclude_registration_agencies: true, year: params[:year], region: params[:region], organization_type: params[:organization_type], focus_area: params[:focus_area], fields: params[:fields], page: page, sort: sort)
response = Provider.query(params[:query],
exclude_registration_agencies: true,
year: params[:year],
region: params[:region],
organization_type: params[:organization_type],
focus_area: params[:focus_area],
fields: params[:fields],
page: page,
sort: sort)
end

begin
Expand Down
10 changes: 9 additions & 1 deletion app/controllers/providers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ def index
elsif params[:ids].present?
response = Provider.find_by_id(params[:ids], page: page, sort: sort)
else
response = Provider.query(params[:query], year: params[:year], region: params[:region], member_type: params[:member_type], organization_type: params[:organization_type], focus_area: params[:focus_area], page: page, sort: sort)
response = Provider.query(params[:query],
exclude_registration_agencies: params[:exclude_registration_agencies],
year: params[:year],
region: params[:region],
member_type: params[:member_type],
organization_type: params[:organization_type],
focus_area: params[:focus_area],
page: page,
sort: sort)
end

begin
Expand Down
1 change: 1 addition & 0 deletions app/controllers/works_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def index
response = Doi.find_by_id(params[:ids], page: page, sort: sort)
else
response = Doi.query(params[:query],
exclude_registration_agencies: true,
state: "findable",
created: params[:created],
registered: params[:registered],
Expand Down

0 comments on commit 7fc79d2

Please sign in to comment.