diff --git a/app/components/citation_index_table_component.rb b/app/components/citation_index_table_component.rb index 5bd50aa..d38d8c3 100644 --- a/app/components/citation_index_table_component.rb +++ b/app/components/citation_index_table_component.rb @@ -20,4 +20,10 @@ class CitationIndexTableComponent < BaseComponent def doctrine_annotations_path(doctrine_id) doctrine_annotations_path(doctrine_id: doctrine_id) end + + def citator_path + return document_path(search_result.document.id, is_citator_tab: true) if search_result.document.present? + + document_path(search_result.id, is_citator_tab: true) + end end diff --git a/app/components/citation_index_table_component/citation_index_table_component.html.erb b/app/components/citation_index_table_component/citation_index_table_component.html.erb index 41cfee9..cf59c5b 100644 --- a/app/components/citation_index_table_component/citation_index_table_component.html.erb +++ b/app/components/citation_index_table_component/citation_index_table_component.html.erb @@ -1,4 +1,6 @@ -