Skip to content

Commit

Permalink
Corrected default namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lomilar committed Sep 9, 2019
1 parent b4cf0ed commit 0fb527b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mapping.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h1>
if (t[key] != null)
h.append("<td/>").children().last().text(join(t[key]));
else
h.append("<td/>").children().last().append("<small/>").children().last().text("unspecified");
h.append("<td/>");
h.append("<td/>").children().last().text(key).css("font-weight","bold");
for (var i = 0;i < d[key].length;i++)
h.append("<td/>").children().last().text(d[key][i]);
Expand All @@ -120,11 +120,9 @@ <h1>
if (typeof val !== 'object') continue;
if (key.indexOf(":") == -1 && s["@vocab"] != null && s["@vocab"].indexOf("cass") != -1)
key = "cass:"+key;
if (key.indexOf(":") == -1 && s["@vocab"] != null && s["@vocab"].indexOf("case") != -1)
if (key.indexOf(":") == -1 && s["@vocab"] != null && s["@vocab"].indexOf("http://schema.eduworks.com/ims/case/v1p0/") != -1)
key = "case:"+key;
if (key.indexOf(":") == -1)
key = "cass:"+key;
key = key.replace("cass3","cass");
key = key.replace("cass3","cass");

if (key.indexOf(":") == -1)
continue;
Expand Down

0 comments on commit 0fb527b

Please sign in to comment.