This small JavaScript generates a reference list from a PubMed query directly.
<div id="LitList"></div>
<script type="application/javascript"> $(document).ready(function() { getEntries('LitList','(Medical Faculty Mannheim[AD])') ;});</script>
The structure of the code is quite simple
- Fetch PubMed online by a 'normal' query against the RESTful API of the eUtils
- Get a list of IDs in JSON format
- Compute a new query for each ID
- Get a record with details of this publication
- Render this publication details in HTML and add a new entry on-the-fly to DOM
See https://pubmed.ncbi.nlm.nih.gov/help/#search-tags for details.