mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 13:13:55 +01:00
Rename publitask to publiPromise to respect the name used in JavaScript
This commit is contained in:
parent
f836086f07
commit
e476f04011
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user