Repository: marmotta Updated Branches: refs/heads/develop d5241ed9f -> 49f30d8fa
allowing bnodes navigation from data views Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/49f30d8f Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/49f30d8f Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/49f30d8f Branch: refs/heads/develop Commit: 49f30d8faea3b0ace5c958a28dbdb7a3360b436b Parents: d5241ed Author: Sergio Fernández <[email protected]> Authored: Fri Aug 1 09:17:39 2014 +0200 Committer: Sergio Fernández <[email protected]> Committed: Fri Aug 1 09:17:39 2014 +0200 ---------------------------------------------------------------------- platform/marmotta-core/src/main/resources/web/admin/dataview.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/marmotta/blob/49f30d8f/platform/marmotta-core/src/main/resources/web/admin/dataview.html ---------------------------------------------------------------------- diff --git a/platform/marmotta-core/src/main/resources/web/admin/dataview.html b/platform/marmotta-core/src/main/resources/web/admin/dataview.html index 9476880..46facb9 100644 --- a/platform/marmotta-core/src/main/resources/web/admin/dataview.html +++ b/platform/marmotta-core/src/main/resources/web/admin/dataview.html @@ -249,9 +249,10 @@ if(d.a.value!=current) { x = 0; current = d.a.value; + param = (current.indexOf("http://") == 0 ? "uri" : "genid"); table = $("<table />", {'class':'resource', 'style':'margin-bottom:10px'}) .append($("<th/>", {'style':"background-color:"+color+" !important", 'colspan':'2'}) - .append($("<a/>", {'target':'_blank', 'href':_SERVER_URL+"resource?uri="+encodeURIComponent(d.a.value), 'text':d.a.value}))); + .append($("<a/>", {'target':'_blank', 'href':_SERVER_URL+"resource?"+param+"="+encodeURIComponent(current), 'text':current}))); res.append(table); } var style = x%2==0 ? "white" : "#efefef";
