Sha256: 4d8906d89ddad4a844fcc9d27c3bd460ea6485405518f0cbc9d3ae20030f46ea

Contents?: true

Size: 528 Bytes

Versions: 14

Compression:

Stored size: 528 Bytes

Contents

class Dataset < ActiveFedora::Base

  include Hydra::ModelMixins::CommonMetadata
  include Hydra::ModelMethods

  has_metadata :name => "descMetadata", :type => ModsDescMetadata

  delegate :title, :to=>'descMetadata', :at => [:mods, :titleInfo, :title], :unique=>true
  delegate :author, :to=>'descMetadata', :at => [:name, :namePart], :unique=>true
  delegate :url, :to=>'descMetadata', :at => [:relatedItem, :location, :url], :unique=>true
  delegate :description, :to=>'descMetadata', :at => [:abstract], :unique=>true

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hydra-tutorial-0.2.1 old_tutorial/templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.2.0 old_tutorial/templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.1.3 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.1.2 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.1.0 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.9 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.8 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.7 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.6 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.5 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.4 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.3 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.2 templates/application/dataset_hydra_mods_om.rb
hydra-tutorial-0.0.1 templates/application/dataset_hydra_mods_om.rb