Cross Reference: logic_viewhelper.rb
xref
: /
ontohub
/
app
/
controllers
/
ontology_search_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
logic_viewhelper.rb revision ca86423fdf0e95c5ef6eb00c155991f8e3964533
10139
N/A
class
LogicViewhelper
10139
N/A
10139
N/A
attr_reader
:
available_tabs
, :
available_tab_links
12219
N/A
10139
N/A
def
initialize
(
resource
)
10139
N/A
@
resource
=
resource
10139
N/A
initialize_data
10139
N/A
end
10139
N/A
10139
N/A
private
10139
N/A
def
initialize_data
10139
N/A
@
available_tabs
= [
10139
N/A
[
'Mappings'
, :
mappings
],
10615
N/A
[
'Supports'
, :
supports
],
11829
N/A
[
Settings.OMS.pluralize.capitalize
,
12988
N/A
:
ontologies
, @
resource.ontologies.size
],
10139
N/A
[
'Homogeneous distributed '
+
Settings.OMS.pluralize
, :
distributed
,
10139
N/A
Ontology.distributed
_in
(@
resource
)
.
size
],
10139
N/A
[
'Heterogeneous distributed '
+
Settings.OMS.pluralize
,
10139
N/A
:
heterogeneous_distributed
,
12571
N/A
Ontology.also
_distributed_in
(@
resource
)
.
size
],
10794
N/A
]
10139
N/A
@
available_tab_links
= [
10794
N/A
[
'Graph'
,
12773
N/A
:
graphs
]
12773
N/A
]
12773
N/A
fetcher
=
GraphDataFetcher.new
(
center
: @
resource
)
10794
N/A
if
fetcher.query
_cost
>
500
10139
N/A
@
available_tab_links
= []
10640
N/A
end
10139
N/A
end
10640
N/A
10139
N/A
end
10820
N/A