Skip to content

Commit

Permalink
Merge pull request #4905 from sul-dlss/stop-making-mods
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo authored Apr 19, 2024
2 parents 66d3346 + 1148517 commit 3f9b125
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/services/publish/metadata_transfer_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def transfer_metadata(public_cocina)
thumbnail_service: @thumbnail_service)
transfer_to_document_store(public_cocina.to_json, 'cocina.json')
transfer_to_document_store(public_nokogiri.to_xml, 'public')
transfer_to_document_store(PublicDescMetadataService.new(public_cocina).to_xml, 'mods')
end

# Clear out the document cache for this item
Expand Down
3 changes: 0 additions & 3 deletions spec/services/publish/metadata_transfer_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
before do
expect_any_instance_of(described_class).to receive(:transfer_to_document_store).with(/{"cocinaVersion"/, 'cocina.json')
expect_any_instance_of(described_class).to receive(:transfer_to_document_store).with(/<publicObject/, 'public')
expect_any_instance_of(described_class).to receive(:transfer_to_document_store).with(/<mods:mods/, 'mods')
expect_any_instance_of(described_class).to receive(:publish_notify_on_success).with(cocina_object)
end

Expand All @@ -121,7 +120,6 @@
it 'identityMetadata, contentMetadata, rightsMetadata, generated dublin core, and public xml' do
service.publish
expect(Publish::PublicXmlService).to have_received(:new).with(public_cocina: Cocina::Models::DRO, thumbnail_service:)
expect(Publish::PublicDescMetadataService).to have_received(:new).with(Cocina::Models::DRO)
end
end

Expand All @@ -135,7 +133,6 @@
before do
expect_any_instance_of(described_class).to receive(:transfer_to_document_store).with(/{"cocinaVersion"/, 'cocina.json')
expect_any_instance_of(described_class).to receive(:transfer_to_document_store).with(/<publicObject/, 'public')
expect_any_instance_of(described_class).to receive(:transfer_to_document_store).with(/<mods:mods/, 'mods')
expect_any_instance_of(described_class).to receive(:publish_notify_on_success).with(cocina_object)
expect_any_instance_of(described_class).to receive(:republish_members!).with(no_args)
end
Expand Down

0 comments on commit 3f9b125

Please sign in to comment.