communityy.rb 615 Bytes
class DspacePlugin::Communityy < Folder

  settings_items :dspace_community_id, :type => :string

  attr_accessible :dspace_community_id

  def self.icon_name(article = nil)
    'dspace-community'
  end

  def self.short_description
    _("DSpace community")
  end

  def self.description
    _("Defines a DSpace community")
  end

  def to_html(options = {})
    dspace_content = self
    proc do
      render :file => 'content_viewer/dspace_content', :locals => { :dspace_content => dspace_content }
    end
  end

  def collections(dspace_server, community_id)
    DspacePlugin::Collection.find(:all)
  end

end