app/models/bplmodels/object.rb
#A collection can have another collection as a member, or an image
A collection can have another collection as a member, or an image
A collection can have another collection as a member or an image
def insert_member(fedora_object)
      if (fedora_object.instance_of?(Bplmodels::ImageFile))
        members.insert_member(:member_id=>fedora_object.pid, :member_title=>fedora_object.titleSet_display, :member_type=>fedora_object.fedora_name)
        fedora_object.object << self
        self.image_files << fedora_object
      end
      fedora_object.save!
      self.save!
    end
def insert_member ( fedora_object ) if ( fedora_object . instance_of? ( Bplmodels :: ImageFile ) ) members . insert_member ( :member_id => fedora_object . pid , :member_title => fedora_object . titleSet_display , :member_type => fedora_object . fedora_name ) fedora_object . object << self self . image_files << fedora_object end fedora_object . save! self . save! end
A collection can have another collection as a member, or an image
A collection can have another collection as a member or an image
#add to the members ds #add to the rels-ext ds
fedora_object