dnbo / ORCID.js

Very simple javascript library for including ORCID information. Built using fetch().

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ORCID.js

##Client Side ORCID Generator

This library creates a simple way to include ORCID profile information. It (currently) works using the javascript fetch() method.

Currently implemented features are:

  • List of Publications
  • List of Funding

##Hello World Example

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>ORCID DEMO</title>
    <script src="orcid.js"></script>
</head>

<body>
<h1>Publications</h1>
<div id="myPublications"></div>

<h1>Funding</h1>
<div id="myFunding"></div>
</body>

<script>
    createORCIDProfile("0000-0002-9563-0691","myPublications");
    createORCIDFundingProfile("0000-0002-9563-0691", "myFunding");
</script>

</html>

##Compatibility

There are some compatibility issues with using this library as it relies on fetch() instead of XMLHttpRequest.

##Licence

About

Very simple javascript library for including ORCID information. Built using fetch().


Languages

Language:JavaScript 92.7%Language:HTML 7.3%