mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -04:00
support subsources in wolfram alpha
This commit is contained in:
parent
23fc15fccf
commit
16e5db0a75
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ function createWolframPage(context, pod, query, sources){
|
||||||
for(const r of pod.refs){
|
for(const r of pod.refs){
|
||||||
let src = getWolframSource(r, sources)
|
let src = getWolframSource(r, sources)
|
||||||
if(src.url) res.embeds[0].description += citation(r, src.url, src.title)
|
if(src.url) res.embeds[0].description += citation(r, src.url, src.title)
|
||||||
|
if(src.sources) res.embeds[0].description += citation(r, src.sources[0].url, src.title + ' | ' + src.sources[0].text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(pod.image) res.embeds[0].image = { url: pod.image };
|
if(pod.image) res.embeds[0].image = { url: pod.image };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue