Skip to content

Commit

Permalink
Corrected typos in problem report view
Browse files Browse the repository at this point in the history
  • Loading branch information
triplingual committed Jul 28, 2021
1 parent 53c10bb commit 9cdd618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/views/shared/_report_problem.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ adding "u" to the mix for URL encoding.
base = "https://web.library.yale.edu/form/archivesspace-pui-suggest-correction"
context = request.original_url
title = ['archival_object'].include?(@result['primary_type']) ? u(@result['json']['display_string'].to_s) : u(@result['json']['title'].to_s)
+repo = u(@result['json']['repository']['_resolved']['name'].to_s) if @result['json']['repository']
+callno = u(@result.identifier) if @result.identifier
repo = u(@result['json']['repository']['_resolved']['name'].to_s) if @result['json']['repository']
callno = u(@result.identifier) if @result.identifier
@container = Array.new
@result.container_titles_and_uris.each do |item|
@container << u(item['title'])
Expand Down

0 comments on commit 9cdd618

Please sign in to comment.