Versions Compared

Key

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

...

Jira issue

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

...

Please note that in DSpace 7, as far as know known at the current stage of development, an OpenAIRE oaire schema will be introduced, seehttps://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 in the Entities project a new local “project” schema will be introduced – [dspace-install]/config/registries/project-types.xml). Please to use the new schemas (“oaire” and “project”) during installation please , then run “registrythe registry-loader” script to create it in the database. Example Examples (from the [dspace-install]/bin folder):

...


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).

...

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:

...