Skip to content

Commit

Permalink
Remove part_of metadata property
Browse files Browse the repository at this point in the history
It collides with the AdminSet association which also uses `DC.isPartOf`.
The part_of association was not exposed in the UI.
  • Loading branch information
jcoyne committed May 22, 2017
1 parent 57d81b4 commit 9b3b7c6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/models/concerns/hyrax/basic_metadata.rb
Expand Up @@ -11,8 +11,6 @@ module BasicMetadata
property :relative_path, predicate: ::RDF::URI.new('http://scholarsphere.psu.edu/ns#relativePath'), multiple: false

property :import_url, predicate: ::RDF::URI.new('http://scholarsphere.psu.edu/ns#importUrl'), multiple: false

property :part_of, predicate: ::RDF::Vocab::DC.isPartOf
property :resource_type, predicate: ::RDF::Vocab::DC.type
property :creator, predicate: ::RDF::Vocab::DC11.creator
property :contributor, predicate: ::RDF::Vocab::DC11.contributor
Expand Down
2 changes: 0 additions & 2 deletions spec/indexers/hyrax/file_set_indexer_spec.rb
Expand Up @@ -6,7 +6,6 @@
let(:file_set) do
FileSet.new(
id: 'foo123',
part_of: ['Arabiana'],
contributor: ['Mohammad'],
creator: ['Allah'],
title: ['The Work'],
Expand Down Expand Up @@ -60,7 +59,6 @@
it 'has fields' do
expect(subject[Solrizer.solr_name('hasRelatedMediaFragment', :symbol)]).to eq 'foo123'
expect(subject[Solrizer.solr_name('hasRelatedImage', :symbol)]).to eq 'foo123'
expect(subject[Solrizer.solr_name('part_of')]).to be_nil
expect(subject[Solrizer.solr_name('date_uploaded')]).to be_nil
expect(subject[Solrizer.solr_name('date_modified')]).to be_nil
expect(subject[Solrizer.solr_name('date_uploaded', :stored_sortable, type: :date)]).to eq '2011-01-01T00:00:00Z'
Expand Down
1 change: 0 additions & 1 deletion spec/models/file_set_spec.rb
Expand Up @@ -81,7 +81,6 @@
expect(subject).to respond_to(:depositor)
expect(subject).to respond_to(:related_url)
expect(subject).to respond_to(:based_near)
expect(subject).to respond_to(:part_of)
expect(subject).to respond_to(:contributor)
expect(subject).to respond_to(:creator)
expect(subject).to respond_to(:title)
Expand Down
1 change: 0 additions & 1 deletion spec/models/generic_work_spec.rb
Expand Up @@ -132,7 +132,6 @@
expect(subject).to respond_to(:depositor)
expect(subject).to respond_to(:related_url)
expect(subject).to respond_to(:based_near)
expect(subject).to respond_to(:part_of)
expect(subject).to respond_to(:contributor)
expect(subject).to respond_to(:creator)
expect(subject).to respond_to(:title)
Expand Down

0 comments on commit 9b3b7c6

Please sign in to comment.