Sha256: 24a0064e985bfe9afa81bd28625d2ae55ddb8a4b848557617651a7d89184e2c3

Contents?: true

Size: 1.26 KB

Versions: 25

Compression:

Stored size: 1.26 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? %>
  <li id="<%= base_id %>">
    <span class="contributor_role">
      <%= get_values_from_datastream(@document_fedora,"descMetadata", [{:organization => organization_counter}, :role, :text]) %>
    </span>
    <%= get_values_from_datastream(@document_fedora,"descMetadata", [{:organization => organization_counter}, :namePart]).first %>

    <% if (params[:action] == "edit" && !organization_name.empty?) %>
        <a class="destructive destroy_contributor" href="<%= asset_contributor_path(@document_fedora.pid, "organization", organization_counter) %>" title="Delete '<%= organization_name %>">Delete</a>
    <% end %>
</li>
<% end %>

Version data entries

25 entries across 25 versions & 1 rubygems

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