Sample, Examples and formats
Creating a list of recent articles from include feed using a person id
What you need to know to get started
- Know your Caltech Library person ID, we’ll be using Newman-D-K in our example below
- Find your feed on https://feeds.library.caltech.edu/people
- E.g. for Newman-D-K the URL would be https://feeds.library.caltech.edu/people/Newman-D-K
- Decide which feed you want to include in your webpage
- Articles, e.g. https://feeds.library.caltech.edu/people/Newman-D-K/article.html
- Combined Publications, e.g. https://feeds.library.caltech.edu/people/Newman-D-K/combined.html
- Recent Articles, e.g. https://feeds.library.caltech.edu/people/Newman-D-K/recent/article.html
- Recent Combined Publications, e.g. https://feeds.library.caltech.edu/people/Newman-D-K/recent/combined.html
- In your web page include the JavaScript library https://feeds.library.caltech.edu/scripts/CL.js
- Adjust the example SCRIPT element to reflect your ORCID ID, feed type and formatting you’d like in your web page.
Example for Newman-D-K
Below is a HTML fragment that you could include in a web page to include recent articles titles for Newman-D-K.
<div id="recent-articles">
Recent Article go here if JavaScript worked!
</div>
<script src="https://feeds.library.caltech.edu/scripts/CL.js"></script>
<script>
let article_list = document.getElementById('recent-articles');
CL.getPeopleInclude("Newman-D-K", "recent/article", function(src, err) {
if (err != "") {
console.log("ERROR", err);
return;
}
article_list.innerHTML = src;
});
</script>Now we can see the resulting bibliography below–
Recent Article go here if JavaScript worked!