Closed ebenenglish closed 2 years ago
Updated on staging and production using this script:
rb = Bpldc::Authority.new({ code: 'rbmscv', base_url: 'http://id.loc.gov/vocabulary/rbmscv', name: 'Controlled Vocabulary for Rare Materials Cataloging', genres: true })
rb.save!
%w(rbbin rbgenr rbpap rbpri rbprov rbpub rbtyp).each do |dep|
auth = Bpldc::Authority.find_by(code: dep)
auth.destroy!
end
Add
Bpldc::Authority
:Remove
Bpldc::Authority
wherecode ==
:Make sure to update
db/seeds.rb
as well.More info: https://trac.bpl.org/Repository/ticket/1481