Skip to content

Commit

Permalink
Merge pull request #93 from projectblacklight/unicode-norm
Browse files Browse the repository at this point in the history
Use String#unicode_normalize instead of the deprecated/removed ActiveSupport equivalent
  • Loading branch information
jcoyne authored Aug 17, 2021
2 parents a6e751a + 60d03ed commit db85fe3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/concerns/blacklight/solr/document/marc_export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ def export_as_refworks_marc_txt
# As of 11 May 2010, Refworks has a problem with UTF-8 if it's decomposed,
# it seems to want C form normalization, although RefWorks support
# couldn't tell me that. -jrochkind
text = ActiveSupport::Multibyte::Unicode.normalize(text, :c)

return text
text.unicode_normalize(:nfc)
end

# Endnote Import Format. See the EndNote User Guide at:
Expand Down

0 comments on commit db85fe3

Please sign in to comment.