9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/isodoc/presentation_function/concepts.rb', line 9
def concept1(node)
node.ancestors("definition, termsource, related").empty? or return
xref = node&.at(ns("./semx/fmt-xref/@target"))&.text or
return concept_render(node, ital: "true", ref: "true", bold: "false",
linkref: "true", linkmention: "false")
if @definition_ids[xref]
concept_render(node, ital: "false", ref: "false", bold: "false",
linkref: "true", linkmention: "false")
else concept_render(node, ital: "true", ref: "true", bold: "false",
linkref: "true", linkmention: "false")
end
end
|