diff --git a/app/models/solr_document.rb b/app/models/solr_document.rb index 8b3a4b45..194eedb3 100644 --- a/app/models/solr_document.rb +++ b/app/models/solr_document.rb @@ -13,13 +13,6 @@ class SolrDocument # SMS uses the semantic field mappings below to generate the body of an SMS email. SolrDocument.use_extension(Blacklight::Document::Sms) - # DublinCore uses the semantic field mappings below to assemble an OAI-compliant Dublin Core document - # Semantic mappings of solr stored fields. Fields may be multi or - # single valued. See Blacklight::Document::SemanticFields#field_semantics - # and Blacklight::Document::SemanticFields#to_semantic_values - # Recommendation: Use field names from Dublin Core - use_extension(Blacklight::Document::DublinCore) - class << self def find(id, params = {}) solr_response = index.find(id, params) diff --git a/spec/models/solr_document_spec.rb b/spec/models/solr_document_spec.rb index 48ea5105..d66c3854 100644 --- a/spec/models/solr_document_spec.rb +++ b/spec/models/solr_document_spec.rb @@ -12,4 +12,9 @@ expect(solr_document.to_param).to eq "123" end end + describe "#export_formats" do + it "does not provide dublin core formats" do + expect(solr_document.export_formats).not_to include(:oai_dc_xml, :dc_xml) + end + end end