https://github.com/orcid/workidlinkjs
Javascript library that creates links from work identifiers.
https://github.com/orcid/workidlinkjs
Last synced: about 1 month ago
JSON representation
Javascript library that creates links from work identifiers.
- Host: GitHub
- URL: https://github.com/orcid/workidlinkjs
- Owner: ORCID
- License: other
- Created: 2013-09-13T16:01:07.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-06-16T15:26:08.000Z (about 10 years ago)
- Last Synced: 2024-04-26T00:42:23.313Z (about 2 years ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
workIdLink.js
============================
Javascript library that creates links from work identifiers.
## Functions
* getLink(id, type) - takes an id and an abbreviated type and if the type and id can
be matched returns a http url, otherwise returns a null.
* getTypes() - returns a space delimited list of abbreviated types.
## Supported types
arxiv asin bibcode doi isbn jfm jstor lccn mr oclc ol osti pmc pmid rfc ssrn zbl
## Using in a browser
Include workIdLink.js and call ``workIdLinkJs.getLink('10.1038/news070508-7', 'doi')``.
## Using in [Node.js](http://nodejs.org/)
Install ```npm install work-id-link-js```, require the module
``var workIdLink = require('work-id-link-js');`` and call
``workIdLink.getLink('10.1038/news070508-7', 'doi')``.
## Contributing
Contributions are welcome. Please make sure the unit test(runTest.js) reflects the
changes and completes successfully.