% 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) %>