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

Commit

Permalink
Merge ce12ee4 into 04e9e72
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Apr 23, 2019
2 parents 04e9e72 + ce12ee4 commit 15e9126
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 38 deletions.
1 change: 0 additions & 1 deletion lib/dor-services.rb
Expand Up @@ -83,7 +83,6 @@ def logger
autoload :Governable
autoload :Publishable
autoload :Embargoable
autoload :Geoable
autoload :Releaseable
end

Expand Down
14 changes: 0 additions & 14 deletions lib/dor/models/concerns/geoable.rb

This file was deleted.

15 changes: 12 additions & 3 deletions lib/dor/models/item.rb
Expand Up @@ -4,7 +4,6 @@ module Dor
class Item < Dor::Abstract
include Embargoable
include Publishable
include Geoable
include Releaseable

has_object_type 'item'
Expand All @@ -18,7 +17,17 @@ class Item < Dor::Abstract
WorkflowsIndexer
)

has_metadata name: 'technicalMetadata', type: TechnicalMetadataDS, label: 'Technical Metadata', control_group: 'M'
has_metadata name: 'contentMetadata', type: Dor::ContentMetadataDS, label: 'Content Metadata', control_group: 'M'
has_metadata name: 'technicalMetadata',
type: TechnicalMetadataDS,
label: 'Technical Metadata',
control_group: 'M'
has_metadata name: 'contentMetadata',
type: Dor::ContentMetadataDS,
label: 'Content Metadata',
control_group: 'M'
has_metadata name: 'geoMetadata',
type: Dor::GeoMetadataDS,
label: 'Geographic Information Metadata in ISO 19139',
control_group: 'M'
end
end
20 changes: 0 additions & 20 deletions spec/models/concerns/geoable_spec.rb

This file was deleted.

8 changes: 8 additions & 0 deletions spec/models/item_spec.rb
Expand Up @@ -48,6 +48,14 @@
it { is_expected.to include 'active_fedora_model_ssi' => 'Dor::Item' }
end

describe '#geoMetadata' do
let(:item) { described_class.new(pid: 'foo:123') }

it 'has a geoMetadata datastream' do
expect(item.geoMetadata).to be_a(Dor::GeoMetadataDS)
end
end

describe '#descMetadata' do
let(:item) { described_class.new(pid: 'foo:123') }

Expand Down

0 comments on commit 15e9126

Please sign in to comment.