Sha256: 3b2b0737971f4452cfbc5ea79032397d0e1ff8d4fc42ed1d73cff4c832915ae2

Contents?: true

Size: 1.62 KB

Versions: 28

Compression:

Stored size: 1.62 KB

Contents

<% organization = edit_organization %>
<% organization_counter = edit_organization_counter %>
<% organization_name = get_values_from_datastream(@document_fedora,'descMetadata', [{:organization=>organization_counter}, :namePart]).first %>
<% base_id = "organization_#{organization_counter}" %>
<% if @document_fedora.class.respond_to?(:organization_relator_terms) %>
  <% choices = @document_fedora.class.organization_relator_terms %>
<% else %>
  <% choices = Hydra::ModsArticle.organization_relator_terms %>
<% end %>

<dl class="organization contributor" id="<%= base_id %>">
  <dd class="multi_inline organization">
    <ul>
      <li>
        <%= fedora_field_label("descMetadata", [{:organization => organization_counter}, :role, :text], "Organization's Role:").html_safe %>
        <%= fedora_select(@document_fedora,"descMetadata", [{:organization => organization_counter}, :role, :text], :choices=>choices.values.sort).html_safe %>
      </li>
      <li>
        <%= fedora_field_label("descMetadata", [{:organization => organization_counter}, :namePart], "Organization").html_safe %>
        <%= fedora_text_field(@document_fedora,"descMetadata", [{:organization => organization_counter}, :namePart], :multiple=>false).html_safe %>
      </li>
    </ul>
    <% if (params[:action] == "edit" && !organization_name.empty?) %>
      <%= field_selectors_for("descMetadata", [{:person=>organization_counter}]).html_safe %>
      <a class="destructive destroy_contributor" href="<%= asset_contributor_path(@document_fedora.pid, "organization", organization_counter) %>" title="Delete '<%= organization_name %>"> Delete</a>
    <% end %>
  </dd>
</dl>

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hydra-head-3.3.0 app/views/contributors/_edit_organization.html.erb
hydra-head-3.2.2 app/views/contributors/_edit_organization.html.erb
hydra-head-3.2.1 app/views/contributors/_edit_organization.html.erb
hydra-head-3.2.0 app/views/contributors/_edit_organization.html.erb
hydra-head-3.2.0.pre3 app/views/contributors/_edit_organization.html.erb
hydra-head-3.2.0.pre2 app/views/contributors/_edit_organization.html.erb
hydra-head-3.2.0.pre1 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.5 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.4 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.3 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.2 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.1 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.0 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.0.rc2 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.0.rc1 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.0.pre5 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.0.pre4 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.0.pre3 app/views/contributors/_edit_organization.html.erb
hydra-head-3.0.1 app/views/contributors/_edit_organization.html.erb
hydra-head-3.1.0.pre2 app/views/contributors/_edit_organization.html.erb