<% pr = JSONModel.parse_reference(@collection_management.linked_records[0]['ref']) many_lr = @collection_management.linked_records.length > 1 ? true : false rt = I18n.t("#{pr[:type]}._frontend.#{many_lr ? 'plural' : 'singular'}") title = "#{rt}: #{JSONModel(pr[:type].intern).find(pr[:id]).title}#{many_lr ? ' ...' : ''}" %> <%= setup_context(:object => @collection_management, :controller => :collection_management_records, :title => title) %>
<%= render_aspace_partial :partial => "sidebar" %>
<%= render_aspace_partial :partial => "toolbar" %>
<%= readonly_context :collection_management, @collection_management do |readonly| %>

<%= I18n.t("collection_management_record._frontend.title_prefix") %> <%= title %> <%= I18n.t("collection_management_record._singular") %>

<%= render_aspace_partial :partial => "shared/flash_messages" %>

<%= I18n.t("collection_management_record._frontend.section.basic_information") %>

Id
<%= @collection_management.id %>
<%= I18n.t("collection_management.processing_hours_per_foot_estimate") %>
<%= @collection_management.processing_hours_per_foot_estimate %>
<%= I18n.t("collection_management.processing_total_extent") %>
<%= @collection_management.processing_total_extent %>
<%= I18n.t("collection_management.processing_total_extent_type") %>
<%= I18n.t("collection_management.processing_total_extent_type_#{@collection_management.processing_total_extent_type}") %>
<%= I18n.t("collection_management.processing_hours_total") %>
<%= @collection_management.processing_hours_total %>
<%= I18n.t("collection_management.processing_plan") %>
<%= @collection_management.processing_plan %>
<%= I18n.t("collection_management.processing_priority") %>
<%= I18n.t("enumerations.collection_management_processing_priority.#{@collection_management.processing_priority}", :default => @collection_management.processing_priority) %>
<%= I18n.t("collection_management.processors") %>
<%= @collection_management.processors %>
<%= I18n.t("collection_management.rights_determined") %>
<%= @collection_management.rights_determined ? I18n.t("collection_management.rights_determined_true") : I18n.t("collection_management.rights_determined_false") %>

<%= I18n.t("linked_record._plural") %>

<% if @collection_management.linked_records.length > 1 %> <%= I18n.t("linked_record.ref_plural") %> <% else %> <%= I18n.t("linked_record.ref") %> <% end %>
<% @collection_management.linked_records.each do | ref | %> <%= render_token :object => ref, :label => ref["_resolved"]["title"], :type => ref["_resolved"]["jsonmodel_type"], :uri => ref["ref"] %> <% end %>
<% end %>