From 0fb527b5ccb5b9f967af22f4f84ca59c16eaffa9 Mon Sep 17 00:00:00 2001 From: Fritz Ray Date: Mon, 9 Sep 2019 15:08:45 -0700 Subject: [PATCH] Corrected default namespaces. --- mapping.html | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mapping.html b/mapping.html index c758159..62367ef 100644 --- a/mapping.html +++ b/mapping.html @@ -104,7 +104,7 @@

if (t[key] != null) h.append("").children().last().text(join(t[key])); else - h.append("").children().last().append("").children().last().text("unspecified"); + h.append(""); h.append("").children().last().text(key).css("font-weight","bold"); for (var i = 0;i < d[key].length;i++) h.append("").children().last().text(d[key][i]); @@ -120,11 +120,9 @@

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;