Commit 6399c490 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

publication list generation improved

parent b39d69f4
......@@ -65,7 +65,7 @@ PublicationListDialog.prototype._dataTableAjaxCall = function(data, callback) {
var out = [];
var allElements = [];
for (var i = 0; i < publicationList.data.length; i++) {
var publication = publicationList.data[i].publication;
var publication = publicationList.data[i].publication.article;
var elements = publicationList.data[i].elements;
var row = [];
......
......@@ -200,7 +200,6 @@ describe('ElementExportPanel', function() {
return exportObject.createResponseString();
}).then(function(result) {
// protein id
logger.debug (result)
assert.equal(result.indexOf("[object Object]"), -1);
assert.ok(result.indexOf("329156") >= 0);
});
......
{"totalSize":1,"data":[{"elements":[{"modelId":15781,"id":153508,"type":"REACTION"}],"publication":{"title":"The importance of an innervated and intact antrum and pylorus in preventing postoperative duodenogastric reflux and gastritis.","authors":["Keighley MR"," Asquith P"," Edwards JA"," Alexander-Williams J."],"journal":"The British journal of surgery","year":1975,"link":"http://www.ncbi.nlm.nih.gov/pubmed/123","id":"123","citationCount":10}}],"start":0,"length":1}
\ No newline at end of file
{"totalSize":1,"data":[{"elements":[{"modelId":15781,"id":153508,"type":"REACTION"}],"publication":{"resource":"123","link":"http://www.ncbi.nlm.nih.gov/pubmed/123","id":860355,"type":"PUBMED","article":{"title":"The importance of an innervated and intact antrum and pylorus in preventing postoperative duodenogastric reflux and gastritis.","authors":["Keighley MR"," Asquith P"," Edwards JA"," Alexander-Williams J."],"journal":"The British journal of surgery","year":1975,"link":"http://www.ncbi.nlm.nih.gov/pubmed/123","id":"123","citationCount":12,"stringAuthors":"Keighley MR, Asquith P, Edwards JA, Alexander-Williams J."}}}],"start":0,"length":1}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment