Skip to content

Commit

Permalink
fix: turn off subject browse in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
niquerio committed May 2, 2023
1 parent 62fd8f7 commit 7fa3dc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/layout/search_box.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<%
fields = YAML.load_file("./config/search_dropdown.yml")
active_browse_option = 'browse_by_' + request.path_info[1..-1]
if ENV.fetch("AUTHOR_ON") == "false"
if ENV.fetch("SUBJECT_ON") == "false"
browse_by = fields.find{|x| x[:label] == "Browse by [BETA]"}
browse_by_author = browse_by[:options].find{|x| x[:label] == "Browse by author"}
browse_by_author[:label] = "Browse by author (coming soon)"
browse_by_author[:disabled] = "disabled"
browse_by_subject = browse_by[:options].find{|x| x[:label] == "Browse by subject"}
browse_by_subject[:label] = "Browse by subject (coming soon)"
browse_by_subject[:disabled] = "disabled"
end
%>

Expand Down

0 comments on commit 7fa3dc4

Please sign in to comment.