Skip to content

Commit 8d64462

Browse files
committed
Merge remote-tracking branch 'IQSS/develop' into ORCID_1
2 parents 029435f + 2550882 commit 8d64462

35 files changed

+623
-58
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This release adds support for generating citations in any of the standard independent formats specified using the [Citation Style Language](https://citationstyles.org/).
2+
The CSL formats are available to copy/paste from a new "Cite Dataset" menu "View Styles Citations" pop-up the dataset page.
3+
An API call to retrieve a dataset citation in EndNote, RIS, BibTeX, and CSLJson format has also been added. (The first three have been available as downloads from the UI but have not been directly accessible via API. The CSLJson format is new to Dataverse and can be used with open-source libraries to generate all of the other CSL stypes citations.)
4+
5+
Admins can use a new dataverse.csl.common-styles setting to highlight commonly used styles - common styles are listed in the pop-up, others can be found by type-ahead search in a list of 1000+ options.

doc/release-notes/9302-add-Etalab-License.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ A new file has been added to import the French Open License to Dataverse: licens
22

33
This license, which is compatible with the Creative Commons license, is recommended by the French government for open documents.
44

5-
For more information, see #9301 and #9302.
5+
For more information, see #9301, #9302, and #11302.

doc/sphinx-guides/source/_static/admin/counter-processor-config.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ path_types:
3333

3434
# Robots and machines urls are urls where the script can download a list of regular expressions to determine
3535
# if something is a robot or machine user-agent. The text file has one regular expression per line
36-
robots_url: https://raw.githubusercontent.com/CDLUC3/Make-Data-Count/master/user-agents/lists/robot.txt
37-
machines_url: https://raw.githubusercontent.com/CDLUC3/Make-Data-Count/master/user-agents/lists/machine.txt
36+
#robots_url: https://raw.githubusercontent.com/CDLUC3/Make-Data-Count/master/user-agents/lists/robot.txt
37+
#machines_url: https://raw.githubusercontent.com/CDLUC3/Make-Data-Count/master/user-agents/lists/machine.txt
38+
robots_url: https://raw.githubusercontent.com/IQSS/counter-processor/refs/heads/goto-gdcc/user-agents/lists/robots.txt
39+
machines_url: https://raw.githubusercontent.com/IQSS/counter-processor/refs/heads/goto-gdcc/user-agents/lists/machine.txt
3840

3941
# the year and month for the report you are creating.
4042
year_month: 2019-01

doc/sphinx-guides/source/_static/util/counter_daily.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22

3-
COUNTER_PROCESSOR_DIRECTORY="/usr/local/counter-processor-1.05"
3+
COUNTER_PROCESSOR_DIRECTORY="/usr/local/counter-processor-1.06"
44
MDC_LOG_DIRECTORY="/usr/local/payara6/glassfish/domains/domain1/logs/mdc"
55

66
# counter_daily.sh

doc/sphinx-guides/source/admin/make-data-count.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ Configure Counter Processor
8484

8585
* Change to the directory where you installed Counter Processor.
8686

87-
* ``cd /usr/local/counter-processor-1.05``
87+
* ``cd /usr/local/counter-processor-1.06``
8888

89-
* Download :download:`counter-processor-config.yaml <../_static/admin/counter-processor-config.yaml>` to ``/usr/local/counter-processor-1.05``.
89+
* Download :download:`counter-processor-config.yaml <../_static/admin/counter-processor-config.yaml>` to ``/usr/local/counter-processor-1.06``.
9090

9191
* Edit the config file and pay particular attention to the FIXME lines.
9292

@@ -99,7 +99,7 @@ Soon we will be setting up a cron job to run nightly but we start with a single
9999

100100
* Change to the directory where you installed Counter Processor.
101101

102-
* ``cd /usr/local/counter-processor-1.05``
102+
* ``cd /usr/local/counter-processor-1.06``
103103

104104
* If you are running Counter Processor for the first time in the middle of a month, you will need create blank log files for the previous days. e.g.:
105105

doc/sphinx-guides/source/api/native-api.rst

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3050,7 +3050,7 @@ The fully expanded example above (without environment variables) looks like this
30503050
.. code-block:: bash
30513051
30523052
curl "https://demo.dataverse.org/api/datasets/:persistentId/makeDataCount/citations?persistentId=10.5072/FK2/J8SJZB"
3053-
3053+
30543054
Delete Unpublished Dataset
30553055
~~~~~~~~~~~~~~~~~~~~~~~~~~
30563056

@@ -3317,6 +3317,8 @@ Usage example:
33173317
Get Citation
33183318
~~~~~~~~~~~~
33193319

3320+
This API call returns the dataset citation as seen on the dataset page, wrapped as a JSON object, with the value in the "data" sub-object's "message" key.
3321+
33203322
.. code-block:: bash
33213323
33223324
export SERVER_URL=https://demo.dataverse.org
@@ -3334,6 +3336,35 @@ Usage example:
33343336
.. code-block:: bash
33353337
33363338
curl -H "Accept:application/json" "$SERVER_URL/api/datasets/:persistentId/versions/$VERSION/{version}/citation?persistentId=$PERSISTENT_IDENTIFIER&includeDeaccessioned=true"
3339+
3340+
Get Citation In Other Formats
3341+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3342+
3343+
Dataverse can also generate dataset citations in "EndNote", "RIS", "BibTeX", and "CSLJson" formats.
3344+
Unlike the call above, which wraps the result in JSON, this API call sends the raw format with the appropriate content-type (EndNote is XML, RIS and BibTeX are plain text, and CSLJson is JSON). ("Internal" is also a valid value, returning the same content as the above call as HTML).
3345+
This API call adds a format parameter in the API call which can be any of the values listed above.
3346+
3347+
Usage example:
3348+
3349+
.. code-block:: bash
3350+
3351+
export SERVER_URL=https://demo.dataverse.org
3352+
export PERSISTENT_IDENTIFIER=doi:10.5072/FK2/YD5QDG
3353+
export VERSION=1.0
3354+
export FORMAT=EndNote
3355+
3356+
curl "$SERVER_URL/api/datasets/:persistentId/versions/$VERSION/{version}/citation/$FORMAT?persistentId=$PERSISTENT_IDENTIFIER"
3357+
3358+
By default, deaccessioned dataset versions are not included in the search when applying the :latest or :latest-published identifiers. Additionally, when filtering by a specific version tag, you will get a "not found" error if the version is deaccessioned and you do not enable the ``includeDeaccessioned`` option described below.
3359+
3360+
If you want to include deaccessioned dataset versions, you must set ``includeDeaccessioned`` query parameter to ``true``.
3361+
3362+
Usage example:
3363+
3364+
.. code-block:: bash
3365+
3366+
curl "$SERVER_URL/api/datasets/:persistentId/versions/$VERSION/{version}/citation/$FORMAT?persistentId=$PERSISTENT_IDENTIFIER&includeDeaccessioned=true"
3367+
33373368
33383369
Get Citation by Preview URL Token
33393370
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

doc/sphinx-guides/source/developers/make-data-count.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Once you are done with your configuration, you can run Counter Processor like th
4949

5050
``su - counter``
5151

52-
``cd /usr/local/counter-processor-1.05``
52+
``cd /usr/local/counter-processor-1.06``
5353

5454
``CONFIG_FILE=counter-processor-config.yaml python39 main.py``
5555

@@ -82,7 +82,7 @@ Second, if you are also sending your SUSHI report to Make Data Count, you will n
8282

8383
``curl -H "Authorization: Bearer $JSON_WEB_TOKEN" -X DELETE https://$MDC_SERVER/reports/$REPORT_ID``
8484

85-
To get the ``REPORT_ID``, look at the logs generated in ``/usr/local/counter-processor-1.05/tmp/datacite_response_body.txt``
85+
To get the ``REPORT_ID``, look at the logs generated in ``/usr/local/counter-processor-1.06/tmp/datacite_response_body.txt``
8686

8787
To read more about the Make Data Count api, see https://github.com/datacite/sashimi
8888

@@ -110,9 +110,11 @@ The script will process the newest set of log files (merging files from multiple
110110
APIs to manage the states include GET, POST, and DELETE (for testing), as shown below.
111111

112112
Note: ``yearMonth`` must be in the format ``yyyymm`` or ``yyyymmdd``.
113+
Note: If running the new script on multiple servers add the query parameter &server=serverName on the first POST call. The server name can not be changed once set. To clear the name out you must delete the state and post a new one.
113114

114115
``curl -X GET http://localhost:8080/api/admin/makeDataCount/{yearMonth}/processingState``
115116

117+
``curl -X POST http://localhost:8080/api/admin/makeDataCount/{yearMonth}/processingState?state=processing&server=server1``
116118
``curl -X POST http://localhost:8080/api/admin/makeDataCount/{yearMonth}/processingState?state=done``
117119

118120
``curl -X DELETE http://localhost:8080/api/admin/makeDataCount/{yearMonth}/processingState``

doc/sphinx-guides/source/installation/config.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,6 +3446,16 @@ dataverse.files.globus-monitoring-server
34463446

34473447
This setting is required in conjunction with the ``globus-use-experimental-async-framework`` feature flag (see :ref:`feature-flags`). Setting it to true designates the Dataverse instance to serve as the dedicated polling server. It is needed so that the new framework can be used in a multi-node installation.
34483448

3449+
.. _dataverse.csl.common-styles:
3450+
3451+
dataverse.csl.common-styles
3452+
+++++++++++++++++++++++++++
3453+
3454+
This setting allows admins to highlight a few of the 1000+ CSL citation styles available from the dataset page. The value should be a comma-separated list of styles.
3455+
These will be listed above the alphabetical list of all styles in the "View Styled Citations" pop-up.
3456+
The default value when not set is "chicago-author-date, ieee".
3457+
3458+
34493459
.. _feature-flags:
34503460

34513461
Feature Flags

doc/sphinx-guides/source/installation/prerequisites.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@ A scripted installation using Ansible is mentioned in the :doc:`/developers/make
438438
As root, download and install Counter Processor::
439439

440440
cd /usr/local
441-
wget https://github.com/gdcc/counter-processor/archive/refs/tags/v1.05.tar.gz
442-
tar xvfz v1.05.tar.gz
443-
cd /usr/local/counter-processor-1.05
441+
wget https://github.com/gdcc/counter-processor/archive/refs/tags/v1.06.tar.gz
442+
tar xvfz v1.06.tar.gz
443+
cd /usr/local/counter-processor-1.06
444444

445445
Installing GeoLite Country Database
446446
===================================
@@ -451,7 +451,7 @@ The process required to sign up, download the database, and to configure automat
451451

452452
As root, change to the Counter Processor directory you just created, download the GeoLite2-Country tarball from MaxMind, untar it, and copy the geoip database into place::
453453

454-
<download or move the GeoLite2-Country.tar.gz to the /usr/local/counter-processor-1.05 directory>
454+
<download or move the GeoLite2-Country.tar.gz to the /usr/local/counter-processor-1.06 directory>
455455
tar xvfz GeoLite2-Country.tar.gz
456456
cp GeoLite2-Country_*/GeoLite2-Country.mmdb maxmind_geoip
457457

@@ -461,12 +461,12 @@ Creating a counter User
461461
As root, create a "counter" user and change ownership of Counter Processor directory to this new user::
462462

463463
useradd counter
464-
chown -R counter:counter /usr/local/counter-processor-1.05
464+
chown -R counter:counter /usr/local/counter-processor-1.06
465465

466466
Installing Counter Processor Python Requirements
467467
================================================
468468

469-
Counter Processor version 1.05 requires Python 3.7 or higher. This version of Python is available in many operating systems, and is purportedly available for RHEL7 or CentOS 7 via Red Hat Software Collections. Alternately, one may compile it from source.
469+
Counter Processor version 1.06 requires Python 3.7 or higher.
470470

471471
The following commands are intended to be run as root but we are aware that Pythonistas might prefer fancy virtualenv or similar setups. Pull requests are welcome to improve these steps!
472472

@@ -477,7 +477,7 @@ Install Python 3.9::
477477
Install Counter Processor Python requirements::
478478

479479
python3.9 -m ensurepip
480-
cd /usr/local/counter-processor-1.05
480+
cd /usr/local/counter-processor-1.06
481481
pip3 install -r requirements.txt
482482

483483
See the :doc:`/admin/make-data-count` section of the Admin Guide for how to configure and run Counter Processor.

doc/sphinx-guides/source/user/dataset-management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Certain file types in the Dataverse installation are supported by additional fun
173173
File Previews
174174
-------------
175175

176-
Dataverse installations can add previewers for common file types uploaded by their research communities. The previews appear on the file page. If a preview tool for a specific file type is available, the preview will be created and will display automatically, after terms have been agreed to or a guestbook entry has been made, if necessary. File previews are not available for restricted files unless they are being accessed using a Preview URL. See also :ref:`previewUrl`.
176+
Dataverse installations can add previewers for common file types uploaded by their research communities. The previews appear on the file page. If a preview tool for a specific file type is available, the preview will be created and will display automatically, after terms have been agreed to or a guestbook entry has been made, if necessary. File previews are not available for restricted files unless they are being accessed using a Preview URL. See also :ref:`previewUrl`. When the dataset license is not the default license, users will be prompted to accept the license/data use agreement before the preview is shown. See also :ref:`license-terms`.
177177

178178
Previewers are available for the following file types:
179179

0 commit comments

Comments
 (0)