Skip to content

Commit

Permalink
Remove Dublin Core export formats
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Nov 27, 2018
1 parent a9b5fd3 commit 452e019
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/models/solr_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions spec/models/solr_document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 452e019

Please sign in to comment.