improve rendering of concept maps with multiple targets
This commit is contained in:
parent
b214e99930
commit
af6df3e798
|
@ -240,7 +240,22 @@ public class ConceptMapRenderer extends TerminologyRenderer {
|
||||||
else
|
else
|
||||||
td.addText(grp.getSource()+" / "+ccl.getCode());
|
td.addText(grp.getSource()+" / "+ccl.getCode());
|
||||||
display = getDisplayForConcept(grp.getSource(), ccl.getCode());
|
display = getDisplayForConcept(grp.getSource(), ccl.getCode());
|
||||||
tr.td().style("border-left-width: 0px").tx(display == null ? "" : display);
|
td = tr.td();
|
||||||
|
if (!first)
|
||||||
|
td.style("border-left-width: 0px; border-top-style: none");
|
||||||
|
else if (!last)
|
||||||
|
td.style("border-left-width: 0px; border-bottom-style: none");
|
||||||
|
else
|
||||||
|
td.style("border-left-width: 0px");
|
||||||
|
td.tx(display == null ? "" : display);
|
||||||
|
} else {
|
||||||
|
td = tr.td(); // for display
|
||||||
|
if (!first)
|
||||||
|
td.style("border-left-width: 0px; border-top-style: none");
|
||||||
|
else if (!last)
|
||||||
|
td.style("border-left-width: 0px; border-bottom-style: none");
|
||||||
|
else
|
||||||
|
td.style("border-left-width: 0px");
|
||||||
}
|
}
|
||||||
for (String s : sources.keySet()) {
|
for (String s : sources.keySet()) {
|
||||||
if (!s.equals("code")) {
|
if (!s.equals("code")) {
|
||||||
|
@ -307,7 +322,7 @@ public class ConceptMapRenderer extends TerminologyRenderer {
|
||||||
} else if ("source-is-narrower-than-target".equals(code)) {
|
} else if ("source-is-narrower-than-target".equals(code)) {
|
||||||
return "maps to wider concept";
|
return "maps to wider concept";
|
||||||
} else if ("source-is-broader-than-target".equals(code)) {
|
} else if ("source-is-broader-than-target".equals(code)) {
|
||||||
return "maps to source-is-broader-than-target concept";
|
return "maps to narrower target";
|
||||||
} else if ("not-related-to".equals(code)) {
|
} else if ("not-related-to".equals(code)) {
|
||||||
return "is not related to";
|
return "is not related to";
|
||||||
} else {
|
} else {
|
||||||
|
@ -327,7 +342,7 @@ public class ConceptMapRenderer extends TerminologyRenderer {
|
||||||
} else if ("subsumes".equals(code)) {
|
} else if ("subsumes".equals(code)) {
|
||||||
return "is subsumed by";
|
return "is subsumed by";
|
||||||
} else if ("source-is-broader-than-target".equals(code)) {
|
} else if ("source-is-broader-than-target".equals(code)) {
|
||||||
return "maps to source-is-broader-than-target concept";
|
return "maps to narrower concept";
|
||||||
} else if ("specializes".equals(code)) {
|
} else if ("specializes".equals(code)) {
|
||||||
return "has specialization";
|
return "has specialization";
|
||||||
} else if ("inexact".equals(code)) {
|
} else if ("inexact".equals(code)) {
|
||||||
|
|
Loading…
Reference in New Issue