Sha256: 43541f5235b0449686d0bb4ed2a7c69031a545a50fd003303c46f8f39086ee13
Contents?: true
Size: 618 Bytes
Versions: 6
Compression:
Stored size: 618 Bytes
Contents
module Ddr module Models module HasStructMetadata extend ActiveSupport::Concern included do has_file_datastream name: Ddr::Datastreams::STRUCT_METADATA, type: Ddr::Datastreams::StructuralMetadataDatastream end def structure if datastreams[Ddr::Datastreams::STRUCT_METADATA].has_content? Ddr::Models::Structure.new(Nokogiri::XML(datastreams[Ddr::Datastreams::STRUCT_METADATA].content)) end end def multires_image_file_paths ::SolrDocument.find(pid).multires_image_file_paths end end end end
Version data entries
6 entries across 6 versions & 1 rubygems