Sha256: da6c25e1b5a9aa0920b5743ef5b1cc2742f2dfcb898aaab00857d62b4d7ff8be
Contents?: true
Size: 1.76 KB
Versions: 3
Compression:
Stored size: 1.76 KB
Contents
<% organization = show_organization %> <% organization_counter = show_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 %> <% unless get_values_from_datastream(@document_fedora,"descMetadata", [{:organization => organization_counter}, :namePart]).first.empty? %> <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> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems