diff --git a/frontend/app/views/archival_objects/_show_inline.html.erb b/frontend/app/views/archival_objects/_show_inline.html.erb index 3796f2f23..2f0847c27 100644 --- a/frontend/app/views/archival_objects/_show_inline.html.erb +++ b/frontend/app/views/archival_objects/_show_inline.html.erb @@ -33,6 +33,10 @@ <%= render :partial => "linked_agents/show", :locals => { :linked_agents => @archival_object.linked_agents, :section_id => "archival_object_linked_agents_" } %> <% end %> + <% if @archival_object.notes.length > 0 %> + <%= render :partial => "notes/show", :locals => { :notes => @archival_object.notes, :context => readonly } %> + <% end %> + <% if @archival_object.extents.length > 0 %> <%= render :partial => "extents/show", :locals => { :extents => @archival_object.extents, :section_id => "archival_object_extents_" } %> <% end %> diff --git a/frontend/app/views/archival_objects/_sidebar.html.erb b/frontend/app/views/archival_objects/_sidebar.html.erb index 7140a0767..db79d5348 100644 --- a/frontend/app/views/archival_objects/_sidebar.html.erb +++ b/frontend/app/views/archival_objects/_sidebar.html.erb @@ -5,6 +5,10 @@ <% if controller.action_name != "show" || @archival_object.linked_agents.length > 0 %>
  • Agent Links
  • <% end %> + + <% if not controller.action_name === "show" or @archival_object.notes.length > 0 %> +
  • Notes
  • + <% end %> <% if controller.action_name != "show" || @archival_object.extents.length > 0 %>
  • Extents
  • diff --git a/frontend/app/views/digital_object_components/_show_inline.html.erb b/frontend/app/views/digital_object_components/_show_inline.html.erb index c63f01948..019c88fb9 100644 --- a/frontend/app/views/digital_object_components/_show_inline.html.erb +++ b/frontend/app/views/digital_object_components/_show_inline.html.erb @@ -33,6 +33,10 @@ <% if @digital_object_component.linked_agents.length > 0 %> <%= render :partial => "linked_agents/show", :locals => { :linked_agents => @digital_object_component.linked_agents, :section_id => "digital_object_component_linked_agents_" } %> <% end %> + + <% if @digital_object_component.notes.length > 0 %> + <%= render :partial => "notes/show", :locals => { :notes => @digital_object_component.notes, :context => readonly } %> + <% end %> <% if @digital_object_component.extents.length > 0 %> <%= render :partial => "extents/show", :locals => { :extents => @digital_object_component.extents, :section_id => "digital_object_component_extents_" } %> diff --git a/frontend/app/views/digital_object_components/_sidebar.html.erb b/frontend/app/views/digital_object_components/_sidebar.html.erb index a2aab4d71..5da9502ea 100644 --- a/frontend/app/views/digital_object_components/_sidebar.html.erb +++ b/frontend/app/views/digital_object_components/_sidebar.html.erb @@ -5,6 +5,10 @@ <% if controller.action_name != "show" || @digital_object_component.linked_agents.length > 0 %>
  • Agent Links
  • <% end %> + + <% if not controller.action_name === "show" or @digital_object_component.notes.length > 0 %> +
  • Notes
  • + <% end %> <% if controller.action_name != "show" || @digital_object_component.extents.length > 0 %>
  • Extents