Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Index displayed date, hide date created from manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Feb 2, 2017
1 parent f0f1c38 commit bf09327
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/schemas/plum_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class PlumSchema < ActiveTriples::Schema

# Generated from Context
property :coverage, predicate: RDF::Vocab::DC11.coverage
property :display_date, predicate: RDF::Vocab::DC11.date
property :format, predicate: RDF::Vocab::DC11.format
property :source, predicate: RDF::Vocab::DC11.source
property :extent, predicate: RDF::Vocab::DC.extent
Expand Down
2 changes: 1 addition & 1 deletion app/services/manifest_builder/metadata_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def metadata_objects
end

def metadata_fields
PlumSchema.display_fields + [:exhibit_id, :collection] - [:has_model]
PlumSchema.display_fields + [:exhibit_id, :collection] - [:has_model, :date_created]
end

class MetadataObject
Expand Down
4 changes: 0 additions & 4 deletions spec/services/polymorphic_manifest_builder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,6 @@ def build_file_set(id)
record.ocr_language = ["test"]
expect(result.metadata.first).to be_nil
end
it "has a date created" do
record.date_created = ["1981-01-31"]
expect(result.metadata).not_to be_empty
end
end
describe "a record in a collection" do
let(:resource) { FactoryGirl.create(:scanned_resource_in_collection) }
Expand Down

0 comments on commit bf09327

Please sign in to comment.