Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix custom fields
Some custom fields incorrectly validated for mex identifiers, for example
license
which expects a URI. These fields no longer apply any validation.A unit test has been added to specifically test custom fields.
Import data
The configuration variable
IMPORT_LOG_FILE
designates the path for the logs generated by imports. The configuration variableIMPORT_LOG_FORMAT
configures the log formatWhen working on the OAI crosswalk it became apparent that the original way to use resource type and identifier (
{resource_type}_{identifier}
) to have a placeholder title value would be inconsistent for OAI.The configuration variable
RECORD_METADATA_TITLE_PROPERTIES
is a list of MEx properties that will be used for Datacite title if they exist.The configuration variable,
RECORD_METADATA_DEFAULT_TITLE
which is used for the Datacite title property if a title value can not be determined, that is to say if it is aperson
record with neitherfullName
norfamilyName
or anaccess-platform
without atitle
.@fdiehr and @cutoffthetop , this is of course up for discussion.
OAI
A custom OAI crosswalk has been created to convert the Invenio record metadata to OAI DC 2.0.
mex:description
is mapped todc:description
.mex:identifier
is mapped todc:identifier
.OAISERVER_SOURCES
contains a list of MEx properties that are mapped todc:source
.OAISERVER_RELATIONS
contains a list of MEx properties that are mapped todc:relation
.dc:rights
to beinfo:eu-repo/semantics/closedAccess
unless the Invenio record has selected an open license, the valueinfo:eu-repo/semantics/openAccess
is givendc:type
is set asinfo:eu-repo/semantics/other
The following is an example of a test record, via OAI.
It is possible to add further fields, such as modified date to
dc:date
. The crosswalk can easily be modified. This is a conversation we can have. This depends on how you expect the OAI endpoint to be used.Unit tests
A Markdown documentation file has been added
tests/TESTS.MD
.