The ORKG Widget is a simple tool that can be used to display links to research papers on the ORKG website on your website based on the value of DOI. This article will provide you with step-by-step instructions on how to use the ORKG Widget on your website or Open Journal Systems (OJS) instance .
Step 1: Add the following code to your HTML page where you want to display the widget.
<div class="orkg-widget" data-doi="10.1007/s00799-015-0158-y"></div>
<script>
(function (w, d, s, o, f, js, fjs) {
w['ORKG-Widget'] = o;
w[o] =
w[o] ||
function () {
(w[o].q = w[o].q || []).push(arguments);
};
(js = d.createElement(s)), (fjs = d.getElementsByTagName(s)[0]);
js.id = o;
js.src = f;
js.async = 1;
fjs.parentNode.insertBefore(js, fjs);
})(window, document, 'script', 'orkgw', '//orkg.org/widget.js');
orkgw('paper', { language: 'en' });
</script>
Step 2: Specify the DOI of the research paper that you want to link to in the value of the attribute data-doi by replacing 10.1007/s00799-015-0158-y
Step 3: Save the changes to your HTML page and refresh it. The ORKG Widget will now display a link to the ORKG system page of the research paper that you specified.
More details about the orkg widget are available on the following link: https://gitlab.com/TIBHannover/orkg/orkg-frontend/-/blob/master/widget/README.md
If you are using Open Journal Systems (OJS), you can also use the ORKG Widget by installing the ORKG Widget plugin for OJS. The plugin can be downloaded from the following link: https://github.com/TIBHannover/ojsOrkgWidget/.
To install the plugin, follow these steps:
Step 1: Download the ORKG Widget plugin for OJS from the link provided above.
Step 2: Extract the downloaded ZIP file and copy the contents to your OJS plugin directory or use the upload option
Step 3: Activate the ORKG Widget plugin from the OJS plugin settings.
After activating the plugin, enable the position of the widget in Website -> Appearance -> Setup -> Sidebar and it will display links to research papers on the ORKG website on your OJS articles based on the value of DOI. If the paper exists on ORKG, the widget displays a link to its ORKG page, and if it doesn't exist, it will display a shortcut link to 'Add paper to ORKG'. By integrating the ORKG Widget into your OJS installation, you can easily link to your articles on the ORKG platform.