diff --git a/app/models/doi.rb b/app/models/doi.rb index 21f056923..42d02f914 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -2325,12 +2325,6 @@ def self.add_index_type(options={}) Doi.where(id: from_id..until_id).where('type' => nil).find_each(batch_size: 500) do |doi| begin - if doi.agency.blank? || doi.agency.casecmp?("datacite") - type = "DataciteDoi" - else - type = "OtherDoi" - end - agency = doi.agency if agency.blank? || agency.casecmp?("datacite")