Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OpenAIRE Literature v.4 compliance for DSpace 5.x and DSpace 6.xJira issue

Jira
serverDuraSpace JIRA
serverIdc815ca92-fd23-34c2-8fe3-956808caf8c5
keyDS-4149
and related Pull Request

Issue https://github.com/DSpace/DSpace/issues/7492 and related Pull Requests at: https://github.com/DSpace/DSpace/pull/2859 and https://github.com/DSpace/DSpace/pull/2860

Info
titleFull work

The original Pull Requests keep tracks the full work and discussion, you can found at:

...

Note that the decision take by developer and committers is to going on a modular approach and the configuration of the specific OpenAIRE "Profile" is demanded to the single institution.

4Science Team released two out-of-the-box branch that contains all code and configuration:

The complete code for version 5 is available here: https://github.com/4Science/DSpace/tree/openaire-lit-v4_dspace5

The complete code for version 6 is available here: https://github.com/4Science/DSpace/tree/openaire-lit-v4_dspace6


Summary

Table of Contents

OpenAIRE 4 Profile

The work of OpenAIRE v4 is a backport of the work done in DSpace 7.

...

Please note that in DSpace 7, as far as know known at the current stage of development, an OpenAIRE oaire schema will be introduced, see: https://github.com/DSpace/DSpace/blob/master/dspace/config/crosswalks/oai/metadataFormats/oai_openaire.xsl and https://github.com/DSpace/DSpace/blob/master/dspace/config/registries/openaire4-types.xml

If you don't have yet a metadata field yet holding such information and you plan to add this information it, it could make sense to use the same schema (to use the same approach of as in DSpace 7, as where in the Entities project a new local “project” schema will be introduced – [dspace-install] https://github.com/DSpace/DSpace/blob/main/dspace/config/registries/schema-project-types.xml). Please to use

You can found the new schema registry to use with DSpace 5.x and DSpace 6.x at:

Use the new schemas (“oaire” and “project”) during installation please , then run “registrythe registry-loader” script to create it in the database.

Examples Example (from the [dspace-install]/bin folder):

Code Block
> ./dspace registry-loader -metadata [dspace-install]/config/registries/project-types.xml

...



> ./dspace registry-loader -metadata [dspace-install]/config/registries/openaire4-types.xml


Info
titleinput-forms.xml

Note that if you collect data using submission also the input-forms.xml should be tune to accept the new metadata


To show the new format via OAI-PMH a new transformer should be configured in the OAI configuration.


The full metadata profile could be checked at: https://github.com/DSpace/DSpace/compare/dspace-6_x...4Science:openaire-lit-v4_dspace6 and https://github.com/DSpace/DSpace/compare/dspace-5_x...4Science:openaire-lit-v4_dspace5

How to expose different metadata under dc.contributor.*

...


Step by step

Starting from example the examples above if you want to expose “dc.contributor.distributoradding add a new for-each statement and “select” the needed metadata: doc:metadata/doc:element[@name='dc']/doc:element[@name='contributor']/doc:element[@name='distributor']/doc:field[@name=’value’]

Modify also line matching the attribute “contributorType” that have has to correspond the OpenAIRE Guidelines v4(https://openaire-guidelines-for-literature-repository-managers.readthedocs.io/en/v4.0.0/field_contributor.html#attribute-contributortype-m); in this case it should be “Distributor”.

Now you need to exclude this metadata from “Other” category. Inside datacite:contributors element the first element datacite:contributor manage manages the “contributorType=Other”. This statement contains a rule to prevent the write writing of author or editor into the other category, the statement should be like the follow following rule: [@name!=’author’ and @name!=’editor’]. To manage also “Distributor” we you have to modify this exception adding our your metadata, adding this: [@name!=’author’ and @name!=’editor’ and @name!=’distributor’]. Following the The complete example follows:




How to enable and

...

map controlled vocabulary

To expose custom metadata holding controlled subject subjects such ad as DDC you need to enable the controlled vocabulary. First, to configure you need to follow the DSpace documentation ( https://wiki.lyrasis.org/display/DSDOC5x/Authority+Control+of+Metadata+Values#AuthorityControlofMetadataValues-HierarchicalTaxonomiesandControlledVocabularies )

The screenshot below is a piece of code in oai_openaire.xsl ([dspace-installation-folder]/config/crosswalks/oai/metadataFormats) and it show shows the actual current situation.



to expose the controlled vocabulary managed by “dc.subject.ddc” metadata as <datacite:subject> (as Guidelines want) you need to modify this code as follow.follows:




In the above example we added the relative template (line 333 to 347) to expose the DDC. Note that we need to exclude the dc.subject.ddc from the standard <datacite:subject> mapping (see the difference between line 323 in both screenshot).

How to configure custom metadata / How to add a new metadata

Example: How to add a new metadata “dc.relation.ispartof” on OpenAIRE v.4 field “Citation Title”.

1) Check if the metadata exist exists in the metadata registry (table “metadatafieldregistry” or in the administrative section “<dspace-host>/dspace-admin/metadata-schema-registry”, see https://wiki.lyrasis.org/display/DSDOC5x/Metadata+and+Bitstream+Format+Registries).

...

Configure metadata in the input form as you like (please refers the official DSpace documentation https://wiki.lyrasis.org/display/DSPACE/Alter+submission+input+forms).

3) Actually Currently the “citationTitle” element is mapped by the “dc.relation.ispartofseries” (see [dspace-installation]/config/crosswalks/oai/metadataFormats/oai_openaire.xsl ). Please use “xsl” rules (https://www.w3.org/TR/xslt-10/) and the OpenAIRE Guidelines to write the correct implementation for the new “dc.relation.ispartof” metadata as you can see in the follow following example:

Note

...

that if you want Citation Title and Citation Volume elements as reported in the documentation:

Citation Title → from the dc.relation.ispartofseries with instructions to configure a custom metadata holding the Journal Title if available
Citation Volume → from the dc.relation.ispartofseries;

the field ”dc.relation.ispartofseries” into

...

the  [dspace-installation]/config/input-forms.xml has to be configured with “series” input-type. 

Example: How to change the metadata used for the awards.

To switch from dc.relation to something else you need to customize your input-forms.xml and change the oaire crosswalk accordly, this is the line:

Image Added

Pay attention to add an additional /doc:element[@name='<YOUR-QUALIFIER>'] in the xpath before the last doc:element if you use a qualified metadata.

NOTE FOR JSPUI

Installations with JSPUI, who want to adopt the ORCID patch to better exploit compliance with the OpenAIRE Guidelines, can find the patch available here:

https://wiki.lyrasis.org/display/DSPACE/ORCID+Integration+for+JSPUI