This commit is contained in:
figureslibres
2019-07-03 15:47:13 +02:00
commit 9e4c3d8b59
16 changed files with 10169 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
const axios = require('axios')
module.exports = function (api) {
api.loadSource(async store => {
const { data } = await axios.get('http://api.archives-ouvertes.fr/search/?q=docid:2172000&fl=*')
const contentType = store.addContentType({
typeName: 'article',
})
let item = data.response.docs[0];
contentType.addNode({
id: item.docid,
title: item.title_s[0],
path:"article",
})
})
}