<%= _('DSpace Community') %>

<%= required_fields_message %> <%= required f.text_field('name', :size => '64', :maxlength => 150) %> <%= hidden_field_tag 'article[parent_id]', @article.parent_id %> <% dspace_server_url = @article.parent.server_url %> <% dspace_client = Dspace::Client.new(dspace_server_url) %> <% communities = dspace_client.get_communities.map { |community| item = [_(community.name), community.id] } %> <%= labelled_form_field(_('Communities:'), select(:article, :dspace_community_id, options_for_select_with_title(communities))) %>