diff --git a/doc/sphinx-guides/source/admin/integrations.rst b/doc/sphinx-guides/source/admin/integrations.rst index 4f7ac050066..abadaea8891 100644 --- a/doc/sphinx-guides/source/admin/integrations.rst +++ b/doc/sphinx-guides/source/admin/integrations.rst @@ -41,6 +41,17 @@ As of this writing only OJS 2.x is supported and instructions for getting starte If you are interested in OJS 3.x supporting deposit from Dataverse, please leave a comment on https://github.com/pkp/pkp-lib/issues/1822 +Embedding Data on Websites +-------------------------- + +OpenScholar ++++++++++++ + +`OpenScholar `_ is oriented toward hosting websites for academic institutions and offers `Dataverse Widgets `_ that can be added to web pages. See also: + +- :ref:`openscholar-dataverse-level` (dataverse level) +- :ref:`openscholar-dataset-level` (dataset level) + Analysis and Computation ------------------------ diff --git a/doc/sphinx-guides/source/api/apps.rst b/doc/sphinx-guides/source/api/apps.rst index 442f22ee094..44ffb1ead71 100755 --- a/doc/sphinx-guides/source/api/apps.rst +++ b/doc/sphinx-guides/source/api/apps.rst @@ -129,3 +129,10 @@ OJS The Open Journal Systems (OJS) Dataverse Plugin adds data sharing and preservation to the OJS publication process. https://github.com/pkp/ojs/tree/ojs-stable-2_4_8/plugins/generic/dataverse + +OpenScholar +~~~~~~~~~~~ + +The Dataverse module from OpenScholar allows Dataverse widgets to be easily embedded in its web pages: + +https://github.com/openscholar/openscholar/tree/SCHOLAR-3.x/openscholar/modules/os_features/os_dataverse diff --git a/doc/sphinx-guides/source/user/dataset-management.rst b/doc/sphinx-guides/source/user/dataset-management.rst index 6e2c5e95c42..64a35e16793 100755 --- a/doc/sphinx-guides/source/user/dataset-management.rst +++ b/doc/sphinx-guides/source/user/dataset-management.rst @@ -421,6 +421,8 @@ Dataset Citation Widget The Dataset Citation Widget will provide a citation for your dataset on your personal or project website. Users can download the citation in various formats by using the Cite Data button. The persistent URL in the citation will direct users to the dataset in your dataverse. +.. _openscholar-dataset-level: + Adding Widgets to an OpenScholar Website ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/doc/sphinx-guides/source/user/dataverse-management.rst b/doc/sphinx-guides/source/user/dataverse-management.rst index 4c3d7769c6c..4eb05a0378e 100755 --- a/doc/sphinx-guides/source/user/dataverse-management.rst +++ b/doc/sphinx-guides/source/user/dataverse-management.rst @@ -89,6 +89,8 @@ Dataverse Listing Widget The Dataverse Listing Widget provides a listing of all your dataverses and datasets for users to browse, sort, filter and search. When someone clicks on a dataverse or dataset in the widget, it displays the content in the widget on your website. They can download data files directly from the datasets within the widget. If a file is restricted, they will be directed to your dataverse to log in, instead of logging in through the widget on your website. +.. _openscholar-dataverse-level: + Adding Widgets to an OpenScholar Website ****************************************** #. Log in to your OpenScholar website diff --git a/src/main/webapp/resources/js/widgets.js b/src/main/webapp/resources/js/widgets.js index 1f7f9a1a3dd..f00c940cb75 100644 --- a/src/main/webapp/resources/js/widgets.js +++ b/src/main/webapp/resources/js/widgets.js @@ -25,6 +25,8 @@ function parseQueryString(queryString) { for (var i=0; i < keyValues.length; i++) { var pair = keyValues[i].split('='); params[pair[0]] = pair[1].replace(pl, " "); + // OpenScholar is encoding ":" as "%3A". See https://github.com/IQSS/dataverse/issues/6381 + params[pair[0]] = pair[1].replace("%3A", ":"); } } return params;