Skip to content

Commit

Permalink
Wording Updates (#4691)
Browse files Browse the repository at this point in the history
* Update per issue #4688.

* Updates collection descriptions statement per #4687.

* Update wording on suggest a correction. Per #4690

* Remove report harmful language feature, asssociated wording, and specs. For #4689.
  • Loading branch information
kevinreiss authored Jan 10, 2025
1 parent 53c1717 commit 7497a7d
Show file tree
Hide file tree
Showing 24 changed files with 19 additions and 403 deletions.
2 changes: 0 additions & 2 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ Layout/LineContinuationSpacing:
- 'app/helpers/blacklight_helper.rb'
- 'spec/forms/ask_a_question_form_spec.rb'
- 'spec/forms/feedback_form_spec.rb'
- 'spec/forms/report_harmful_language_form_spec.rb'
- 'spec/forms/suggest_correction_form_spec.rb'
- 'spec/models/email_spec.rb'
- 'spec/models/feedback_form_submission_spec.rb'
Expand All @@ -119,7 +118,6 @@ Layout/LineEndStringConcatenationIndentation:
- 'spec/features/requests/form_spec.rb'
- 'spec/forms/ask_a_question_form_spec.rb'
- 'spec/forms/feedback_form_spec.rb'
- 'spec/forms/report_harmful_language_form_spec.rb'
- 'spec/forms/suggest_correction_form_spec.rb'
- 'spec/models/feedback_form_submission_spec.rb'
- 'spec/models/illiad_patron_client_spec.rb'
Expand Down
15 changes: 0 additions & 15 deletions app/controllers/contact_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ def suggestion
end
end

def report_harmful_language
@form = ReportHarmfulLanguageForm.new(report_harmful_language_params)
if @form.valid? && @form.submit
flash[:success] = 'Your report has been submitted'

render "report_harmful_language_success"
else
render partial: "catalog/report_harmful_language_form", locals: { form: @form }
end
end

def report_biased_results
@form = ReportBiasedResultsForm.new(report_biased_results_params)
if @form.valid? && @form.submit
Expand All @@ -54,10 +43,6 @@ def suggestion_params
params[:suggest_correction_form].permit!
end

def report_harmful_language_params
params[:report_harmful_language_form].permit!
end

def report_biased_results_params
params[:report_biased_results_form].permit!
end
Expand Down
14 changes: 0 additions & 14 deletions app/controllers/feedback_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class FeedbackController < ApplicationController
before_action :build_feedback_form, only: [:create]
before_action :build_ask_a_question_form, only: [:ask_a_question]
before_action :build_suggest_correction_form, only: [:suggest_correction]
before_action :build_report_harmful_language_form, only: [:report_harmful_language]
before_action :build_report_biased_results_form, only: [:report_biased_results]

def new
Expand All @@ -30,8 +29,6 @@ def ask_a_question; end

def suggest_correction; end

def report_harmful_language; end

def report_biased_results; end

protected
Expand Down Expand Up @@ -68,17 +65,6 @@ def suggest_correction_form_params
params.require(:suggest_correction_form).permit(:id, :title)
end

def build_report_harmful_language_form
@harmful_language_form = ReportHarmfulLanguageForm.new(
context: page_url(harmful_language_params),
title: harmful_language_params['title']
)
end

def harmful_language_params
params.require(:report_harmful_language_form).permit(:id, :title)
end

def build_report_biased_results_form
@biased_results_form = ReportBiasedResultsForm.new(
biased_results_params
Expand Down
35 changes: 0 additions & 35 deletions app/forms/report_harmful_language_form.rb

This file was deleted.

6 changes: 3 additions & 3 deletions app/views/catalog/_home_text.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
<span class="icon-language-statement" aria-hidden="true"></span>
</div>
<div class="language-statement-text">
<%= link_to "https://library.princeton.edu/about/languagestatement", 'aria-label': "Read more about Statement on language in description" do %>
<h3>Statement on language in description</h3>
<%= link_to "https://library.princeton.edu/about/responsible-collection-description", 'aria-label': "Read more about the statement on responsible collection description" do %>
<h3>Statement on Responsible Collection Description</h3>
<% end %>
<p>Princeton University Library aims to describe library materials in a manner that is respectful to the individuals and communities who create, use, and are represented in the collections we manage. <a href="https://library.princeton.edu/about/languagestatement" aria-label="Read more about Statement on language in description" class='underlined-link'>Read more...</a></p>
<p>Princeton University Library (PUL) stewards diverse historical and contemporary collections that document a wide range of human experiences. As an academic and cultural heritage institution, we preserve materials in their original form to maintain historical accuracy and support scholarly research. This includes retaining content that may reflect perspectives which some users may find offensive or otherwise problematic. <a href="https://library.princeton.edu/about/responsible-collection-description" aria-label="Read more about the statement on responsible collection description" class='underlined-link'>Read more...</a></p>
</div>
</div>

Expand Down
41 changes: 0 additions & 41 deletions app/views/catalog/_report_harmful_language_form.html.erb

This file was deleted.

14 changes: 0 additions & 14 deletions app/views/catalog/_show_harmful_content_feedback.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,4 @@
class: "suggest-correction",
data: { blacklight_modal: 'trigger' }
) %>
<%= link_to(
'Report Harmful Language',
{
controller: "feedback",
action: "report_harmful_language",
report_harmful_language_form: {
id: @document,
title: @document['title_display']
}
},
title: "Report Harmful Language",
class: "report-harmful-language",
data: { blacklight_modal: 'trigger' }
) %>
</nav>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<dt>Statement on language in description</dt>
<dd>Princeton University Library aims to describe library materials in a manner that is respectful to the individuals and communities who create, use, and are represented in the collections we manage.
<a href="https://library.princeton.edu/about/languagestatement" target="_blank"
aria-label="Read more about Statement on language in description (opens in new tab)">Read more...</a></dd>
<dt>Statement on responsible collection description</dt>
<dd>Princeton University Library aims to describe library materials in a manner that is respectful to the individuals and communities who create, use, and are represented in the collections we manage. <a href="https://library.princeton.edu/about/responsible-collection-description" target="_blank"
aria-label="Read more about Statement responsible collection description (opens in new tab)">Read more...</a></dd>
2 changes: 1 addition & 1 deletion app/views/catalog/_suggest_correction_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
) do |f|
%>
<div class="modal-body">
<p>Please use this area to report errors or omissions that appear in the description of this record.</p>
<p>Please use this form to report errors, omissions, or problematic language that appear in the description of this record.</p>
<%= f.label :name %><br>
<%= f.input_field :name %><br>
<%= f.label :email %><br>
Expand Down
2 changes: 1 addition & 1 deletion app/views/contact/report_biased_results_success.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<%= render Blacklight::System::ModalComponent.new do |component| %>
<% component.with_title { t('blacklight.report_harmful_language.form.title') } %>
<% component.with_title { t('blacklight.report_biased_results.form.title') } %>

<%= render partial: '/shared/flash_msg' %>
<p>Thank you for helping us identify an instance of bias in our Catalog Search Results.
Expand Down
9 changes: 0 additions & 9 deletions app/views/contact/report_harmful_language_success.html.erb

This file was deleted.

8 changes: 0 additions & 8 deletions app/views/feedback/report_harmful_language.html.erb

This file was deleted.

3 changes: 0 additions & 3 deletions config/locales/blacklight.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ en:
suggest_correction:
form:
title: 'Suggest a Correction'
report_harmful_language:
form:
title: 'Report Harmful Language'
report_biased_results:
form:
title: 'Report Biased Results'
Expand Down
6 changes: 0 additions & 6 deletions config/orangelight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ defaults: &defaults
queue_id: <%= ENV['ASK_A_QUESTION_QUEUE_ID'] %>
suggest_correction_form:
queue_id: <%= ENV['SUGGEST_CORRECTION_QUEUE_ID'] %>
report_harmful_language_form:
queue_id: <%= ENV['REPORT_HARMFUL_LANGUAGE_QUEUE_ID'] %>
report_biased_results_form:
to: <%= ENV['OL_BIASED_RESULTS_TO'] %>
redis:
Expand All @@ -35,8 +33,6 @@ development:
db: 'orangelight_dev'
suggest_correction_form:
queue_id: <%= ENV['SUGGEST_CORRECTION_QUEUE_ID'] %>
report_harmful_language_form:
queue_id: <%= ENV['REPORT_HARMFUL_LANGUAGE_QUEUE_ID'] %>
report_biased_results_form:
to: '[email protected]'
test:
Expand All @@ -51,8 +47,6 @@ test:
db: 'orangelight_test'
suggest_correction_form:
queue_id: 3456
report_harmful_language_form:
queue_id: 9012
report_biased_results_form:
to: '[email protected]'
libanswers:
Expand Down
2 changes: 1 addition & 1 deletion docs/viewer_warning.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ In order to view the content a user would have to press the button 'View Content
* Notice type: Harmful Content,
Displayed message:
* Content Warning,
This collection includes materials and images that are harmful (in that they are racist, transphobic, or otherwise demeaning). For more information on harmful content please see the [PUL statement on Harmful Content](https://library.princeton.edu/statement-harmful-content)
This collection includes materials and images that may reflect perspectives which some users could find offensive or otherwise problematic. For more information, please see the [PUL statement on Responsible Collection Description](https://library.princeton.edu/about/responsible-collection-description).

View Content

Expand Down
8 changes: 0 additions & 8 deletions spec/controllers/feedback_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
end
end

describe "#report_harmful_language" do
it "routes to the Report Harmful Language form" do
get :report_harmful_language, params: { report_harmful_language_form: { id: '123', title: 'My cool title' } }

expect(response).to be_successful
end
end

describe "#report_biased_results" do
it "routes to the Report Biased Results form" do
get :report_biased_results, params: {
Expand Down
18 changes: 0 additions & 18 deletions spec/features/report_harmful_language_spec.rb

This file was deleted.

Loading

0 comments on commit 7497a7d

Please sign in to comment.