<% read_only = false if read_only.blank? hierarchy_rules = { :resource => { :can_add_child => { :type => :archival_object, :action_label => I18n.t("resource._frontend.action.add_child"), :record_label => I18n.t("archival_object._singular") }, :rapid_data_entry => { :type => :archival_object, :action_label => I18n.t("resource._frontend.action.rapid_data_entry") }, :can_accept_paste_from_clipboard => :archival_object }, :archival_object => { :can_add_child => { :type => :archival_object, :action_label => I18n.t("archival_object._frontend.action.add_child"), :record_label => I18n.t("archival_object._singular") }, :can_add_sibling => { :type => :archival_object, :action_label => I18n.t("archival_object._frontend.action.add_sibling"), :record_label => I18n.t("archival_object._singular") }, :can_move => true, :can_transfer => :resource, :rapid_data_entry => { :type => :archival_object, :action_label => I18n.t("resource._frontend.action.rapid_data_entry") }, :can_accept_paste_from_clipboard => :archival_object, :can_cut_to_clipboard => :archival_object }, :digital_object => { :can_add_child => { :type => :digital_object_component, :action_label => I18n.t("digital_object._frontend.action.add_child"), :record_label => I18n.t("digital_object_component._singular") }, :rapid_data_entry => { :type => :digital_object_component, :action_label => I18n.t("digital_object._frontend.action.rapid_data_entry") }, :can_accept_paste_from_clipboard => :archival_object }, :digital_object_component => { :can_add_child => { :type => :digital_object_component, :action_label => I18n.t("digital_object_component._frontend.action.add_child"), :record_label => I18n.t("digital_object_component._singular") }, :can_add_sibling => { :type => :digital_object_component, :action_label => I18n.t("digital_object_component._frontend.action.add_sibling"), :record_label => I18n.t("digital_object_component._singular") }, :rapid_data_entry => { :type => :digital_object_component, :action_label => I18n.t("digital_object._frontend.action.rapid_data_entry") }, :can_move => true, :can_accept_paste_from_clipboard => :archival_object, :can_cut_to_clipboard => :archival_object }, :classification => { :can_add_child => { :type => :classification_term, :action_label => I18n.t("classification._frontend.action.add_child"), :record_label => I18n.t("classification_term._singular") }, :can_accept_paste_from_clipboard => :classification_term }, :classification_term => { :can_add_child => { :type => :classification_term, :action_label => I18n.t("classification_term._frontend.action.add_child"), :record_label => I18n.t("classification_term._singular") }, :can_add_sibling => { :type => :classification_term, :action_label => I18n.t("classification_term._frontend.action.add_sibling"), :record_label => I18n.t("classification_term._singular") }, :can_move => true, :can_accept_paste_from_clipboard => :classification_term, :can_cut_to_clipboard => :classification_term } } %>
<%= image_tag "jstree/throbber.gif" %> Loading the tree...
<% if not read_only %>
<% end %>