Sha256: 632783b3b6b68e0e63ba7b14756c23b099774b9be72ede3b332f2bb5e3dcdbfc

Contents?: true

Size: 730 Bytes

Versions: 12

Compression:

Stored size: 730 Bytes

Contents

module Sufia
  module PropertiesDatastreamBehavior
    extend ActiveSupport::Concern

    included do
      set_terminology do |t|
        t.root(path: "fields")
        # This is where we put the user id of the object depositor -- impacts permissions/access controls
        t.depositor index_as: [:symbol, :stored_searchable]
        # This is where we put the relative path of the file if submitted as a folder
        t.relative_path
        t.import_url path: 'importUrl', index_as: :symbol
      end
    end

    module ClassMethods
      def xml_template
        builder = Nokogiri::XML::Builder.new do |xml|
          xml.fields
        end
        builder.doc
      end
    end

    def prefix
      ""
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
sufia-4.0.1 sufia-models/app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-models-4.0.1 app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-models-4.0.0 app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-4.0.0 sufia-models/app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-4.0.0.rc2 sufia-models/app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-models-4.0.0.rc2 app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-4.0.0.rc1 sufia-models/app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-models-4.0.0.rc1 app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-4.0.0.beta4 sufia-models/app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-models-4.0.0.beta4 app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-models-4.0.0.beta3 app/models/concerns/sufia/properties_datastream_behavior.rb
sufia-4.0.0.beta3 sufia-models/app/models/concerns/sufia/properties_datastream_behavior.rb