diff --git a/app/jobs/affiliation_job.rb b/app/jobs/affiliation_job.rb index b3a0aedc8..fcf5afa2d 100644 --- a/app/jobs/affiliation_job.rb +++ b/app/jobs/affiliation_job.rb @@ -17,7 +17,7 @@ def perform(doi_id) doi.__elasticsearch__.index_document else - Rails.logger.error "[Affiliation] Error updaing DOI " + doi_id + ": not found" + Rails.logger.error "[Affiliation] Error updating DOI " + doi_id + ": not found" end end end diff --git a/app/models/event.rb b/app/models/event.rb index b9ba26abc..421527d74 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -134,7 +134,7 @@ class Event < ActiveRecord::Base cache_key: { type: :keyword } } indexes :source_id, type: :keyword - indexes :doi_id, type: :keyword + # indexes :doi_id, type: :keyword indexes :source_token, type: :keyword indexes :message_action, type: :keyword indexes :relation_type_id, type: :keyword @@ -171,7 +171,7 @@ def as_indexed_json(options = {}) "subtype" => subtype, "citation_type" => citation_type, "source_id" => source_id, - "doi_id" => doi_id, + # "doi_id" => doi_id, "source_token" => source_token, "message_action" => message_action, "relation_type_id" => relation_type_id, @@ -592,7 +592,7 @@ def set_defaults self.obj = obj.to_h.merge("id" => self.obj_id) # set doi_id for views and downloads - self.doi_id = doi_from_url(obj_id) if source_id == "datacite-usage" + # self.doi_id = doi_from_url(obj_id) if source_id == "datacite-usage" self.total = 1 if total.blank? self.relation_type_id = "references" if relation_type_id.blank?