10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 22:03:49 +01:00

Rename publitask to publiPromise to respect the name used in JavaScript

This commit is contained in:
Mickaël Véril 2019-09-09 09:15:55 +02:00
parent f836086f07
commit e476f04011

View File

@ -24,7 +24,7 @@
async function applyData(dat) { async function applyData(dat) {
const Cite = require('citation-js'); const Cite = require('citation-js');
// Start an async task to get publi data // Start an async task to get publi data
let publitask = Cite.async(dat.doi.string) let publiPromise = Cite.async(dat.doi.string)
const LatexInline=['\\(','\\)'] const LatexInline=['\\(','\\)']
var par=document.getElementById("data_par") var par=document.getElementById("data_par")
par.innerHTML=''; par.innerHTML='';
@ -59,7 +59,7 @@
var lnkdoi = document.createElement("a"); var lnkdoi = document.createElement("a");
// Wait for the value of publi when required // Wait for the value of publi when required
let publi=await publitask; let publi=await publiPromise;
let output = publi.format('bibliography', { let output = publi.format('bibliography', {
format: 'html', format: 'html',
template: 'apa', template: 'apa',