Skip to content

Commit

Permalink
Merge pull request #899 from datacite/doi-enrichment-patch
Browse files Browse the repository at this point in the history
Add missing method for subject assignment used by the RepositoriesController
  • Loading branch information
digitaldogsbody authored Jan 20, 2023
2 parents 3a169b4 + 44ed701 commit fc6e5a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ def re3data=(value)
write_attribute(:re3data_id, attr)
end

def subjects=(value)
write_attribute(:subjects, Array.wrap(value))
end

def opendoar=(value)
attr = value.present? ? value[38..-1] : nil
write_attribute(:opendoar_id, attr)
Expand Down

0 comments on commit fc6e5a7

Please sign in to comment.