This commit is contained in:
Shan Carter
2017-01-19 12:59:40 -08:00
3 changed files with 19 additions and 19 deletions
+5 -9
View File
@@ -2,13 +2,9 @@
export default function(data) {
if (data.published == undefined) {
//console.warn("Can't generate XML for post ", data.title, "with data", data);
//return "";
data.published = new Date("invalid");
}
var date = data.published;
var date = data.publishedDate;
var batch_timestamp = Math.floor(Date.now() / 1000);
var batch_id = data.authors.length ? data.authors[0].lastName.toLowerCase().slice(0,20) : "Anonymous";
batch_id += "_" + date.getFullYear();
@@ -28,10 +24,10 @@ export default function(data) {
{doi_batch_id: batch_id},
{timestamp: batch_timestamp},
{depositor: [
{depositor_name: data.journal.depositorName},
{email_address: data.journal.email},
{depositor_name: data.journal.publisherName},
{email_address: data.journal.publisherEmail},
]},
{registrant: "Distill"},
{registrant: data.journal.publisherName},
]},
{body: [
+13 -9
View File
@@ -282,6 +282,8 @@ function Type$2(tag, options) {
var type = Type$2;
/*eslint-disable max-len*/
var common$4 = common$1;
var YAMLException$3 = exception;
var Type$1 = type;
@@ -893,6 +895,8 @@ function createCommonjsModule(fn, module) {
return module = { exports: {} }, fn(module, module.exports), module.exports;
}
/*eslint-disable no-bitwise*/
var NodeBuffer;
try {
@@ -1350,6 +1354,8 @@ var default_full = Schema$6.DEFAULT = new Schema$6({
]
});
/*eslint-disable max-len,no-use-before-define*/
var common = common$1;
var YAMLException$1 = exception;
var Mark = mark;
@@ -2941,6 +2947,8 @@ var loader$1 = {
safeLoad: safeLoad_1
};
/*eslint-disable no-use-before-define*/
var common$7 = common$1;
var YAMLException$5 = exception;
var DEFAULT_FULL_SCHEMA$2 = default_full;
@@ -8298,13 +8306,9 @@ var hoverBox = function(dom) {
var generateCrossref = function(data) {
if (data.published == undefined) {
//console.warn("Can't generate XML for post ", data.title, "with data", data);
//return "";
data.published = new Date("invalid");
}
var date = data.published;
var date = data.publishedDate;
var batch_timestamp = Math.floor(Date.now() / 1000);
var batch_id = data.authors.length ? data.authors[0].lastName.toLowerCase().slice(0,20) : "Anonymous";
batch_id += "_" + date.getFullYear();
@@ -8324,9 +8328,9 @@ var generateCrossref = function(data) {
{doi_batch_id: batch_id},
{timestamp: batch_timestamp},
{depositor: [
{depositor_name: data.journal.depositorName},
{email_address: data.journal.email} ]},
{registrant: "Distill"} ]},
{depositor_name: data.journal.publisherName},
{email_address: data.journal.publisherEmail} ]},
{registrant: data.journal.publisherName} ]},
{body: [
{journal: [
+1 -1
View File
File diff suppressed because one or more lines are too long