Skip to content

Commit

Permalink
Fixed display of paper institution
Browse files Browse the repository at this point in the history
  • Loading branch information
abagh0703 committed Jan 25, 2016
1 parent aae994e commit f0c5a7b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/paper.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
var searchAuthor = {
"query": info[i],
"searchType": "id"
}
};
$.ajax({
url: '/getUser',
type: 'POST',
Expand All @@ -100,6 +100,10 @@
dataType: 'json',
success: function(doc) {
var fullName = doc.firstname + ' ' + doc.lastname;
var inst = pdata.institution;
if (inst === ''){
inst = 'None';
}
var userId = doc._id;
var userPage = "user.html?id=" + userId;
if (firstAuthor == true)
Expand All @@ -115,7 +119,7 @@
<div class="paper">\
<h3>' + pdata.title + '</h3>' + authors + '</div>\
<div class="school">\
<p>' + doc.school + ', ' + pdata.institution + '</p>\
<p>School: ' + doc.school + ', Outside institution: ' + inst + '</p>\
</div>\
<div class="date">\
<p>' + pdata.date + '</p>\
Expand Down

0 comments on commit f0c5a7b

Please sign in to comment.