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

Commit

Permalink
Merge 4974c22 into 27d0828
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Dec 21, 2018
2 parents 27d0828 + 4974c22 commit 26b8f1f
Show file tree
Hide file tree
Showing 4 changed files with 267 additions and 257 deletions.
1 change: 1 addition & 0 deletions lib/dor/models/concerns/publishable.rb
Expand Up @@ -58,6 +58,7 @@ def public_relationships
def public_xml
PublicXmlService.new(self).to_xml
end
deprecation_deprecate public_xml: 'Use PublicXmlService#to_xml instead'

# Copies this object's public_xml to the Purl document cache if it is world discoverable
# otherwise, it prunes the object's metadata from the document cache
Expand Down
2 changes: 1 addition & 1 deletion lib/dor/services/publish_metadata_service.rb
Expand Up @@ -30,7 +30,7 @@ def transfer_metadata
%w(identityMetadata contentMetadata rightsMetadata).each do |stream|
transfer_to_document_store(item.datastreams[stream].content.to_s, stream) if item.datastreams[stream]
end
transfer_to_document_store(item.public_xml, 'public')
transfer_to_document_store(PublicXmlService.new(item).to_xml, 'public')
transfer_to_document_store(PublicDescMetadataService.new(self).to_xml, 'mods')
end

Expand Down

0 comments on commit 26b8f1f

Please sign in to comment.