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

Index displayed date, hide date created from manifest #989

Merged
merged 1 commit into from
Feb 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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