")
.click(function() {
- search(data.author.ismi_id, true);
+ search(data.author.label, true);
}));
for (var key in data.attrs) {
+ if (key[0] === "_") continue;
var val = data.attrs[key];
if (key === "link") {
val = "" + val + "";
@@ -179,7 +180,7 @@
$("#graph .ismi-"+text.ismi_id).each(function(){this.classList.add("marked")});
});
if (!keep_detail_view) {
- // show first title
+ // show first title in detail view
showText(data[0].text.ismi_id);
}
}, "json");
diff -r cccbcc845d54 -r a6b2a09ea413 ismi-python-neo4jrestclient/static/commentaries_authors2.html
--- a/ismi-python-neo4jrestclient/static/commentaries_authors2.html Fri Dec 11 13:03:04 2015 -0500
+++ b/ismi-python-neo4jrestclient/static/commentaries_authors2.html Fri Dec 11 17:06:26 2015 -0500
@@ -16,7 +16,7 @@
-
+
@@ -124,8 +124,9 @@
if (!data) return;
$("#title").text("Title: "+data.title);
var $list = $("#info").empty();
- $list.append($("
author: " + data.author + "
"));
+ $list.append($("
author: " + data.author.label + "
"));
for (var key in data.attrs) {
+ if (key[0] === "_") continue;
var val = data.attrs[key];
if (key === "link") {
val = "" + val + "";
@@ -158,6 +159,7 @@
if (!data || data.length == 0) return;
// clear all marks
$("#graph .marked").each(function(){this.classList.remove("marked")});
+ // fill list of texts
data.forEach(function (row) {
var text = row.text;
var author = row.author;
@@ -170,6 +172,7 @@
// set mark
$("#graph .ismi-"+text.ismi_id).each(function(){this.classList.add("marked")});
});
+ // show details of the first text
showText(data[0].text.ismi_id);
}, "json");
return false;