Commit c1ab4fa7 authored by Maxime Chaillet's avatar Maxime Chaillet

Clean the code. It fixes #36

parent 74bbeecf
Pipeline #2357 failed with stages
...@@ -2,7 +2,7 @@ function Author() { ...@@ -2,7 +2,7 @@ function Author() {
} }
/** /**
* Set the first name as recived from Json * Set the first name as received from Json
*/ */
Author.prototype.setFirstName = function(firstName) { Author.prototype.setFirstName = function(firstName) {
this.firstName = firstName; this.firstName = firstName;
......
...@@ -209,9 +209,9 @@ DOIController.prototype.createCitation = function(data) { ...@@ -209,9 +209,9 @@ DOIController.prototype.createCitation = function(data) {
} }
}, []); }, []);
var authorString = _.join(authorList, ', '); var authorInCitation = _.join(authorList, ', ');
var citation = authorString + ' (' + var citation = authorInCitation + ' (' +
new Date(data.date_registered).getFullYear() + new Date(data.date_registered).getFullYear() +
'). ' + '). ' +
data.title + '. ' + data.title + '. ' +
......
Markdown is supported
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