Class OpenAlexAuthorNameContributor

java.lang.Object
org.dspace.importer.external.metadatamapping.contributor.SimpleJsonPathMetadataContributor
org.dspace.importer.external.openalex.metadatamapping.OpenAlexAuthorNameContributor
All Implemented Interfaces:
MetadataContributor<String>

public class OpenAlexAuthorNameContributor extends SimpleJsonPathMetadataContributor
This class is responsible for extracting and contributing author name metadata from a JSON response using a specified query path.

The extracted name is split into given name and family name, and the metadata is stored based on the field configuration.

Example JSON structure:

 {
   "author": {
     "full_name": "John Doe"
   }
 }
 

If the query path points to `author.full_name`, this class will extract "John" as the given name and "Doe" as the family name.

Author:
Adamo Fapohunda (adamo.fapohunda at 4science.com)
  • Constructor Details

    • OpenAlexAuthorNameContributor

      public OpenAlexAuthorNameContributor()
  • Method Details