I would like to use Europe PMC RESTful API to transforms "search" responses to source/external-id lists, with one-line per record text.
Any suggestions / examples (in JavaScript)?
I would like to use Europe PMC RESTful API to transforms "search" responses to source/external-id lists, with one-line per record text.
Any suggestions / examples (in JavaScript)?
Copyright © 2021 Jogjafile Inc.
You can use XSLT to transform the response you get from the Europe PMC RESTful API.
You can find an example written in Vue.js on JSBin, where you can find the example XSL file, and how to transform the XML response to an ID list in JavaScript as below:
Example XSL
HTML
Vue.js
When you run this example in a browser, you will see the output:
You can change the query to see the output being updated, and you can also download it to a file as shown above.