You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update DOI exceptions to be multilingual exceptions (geonetwork#8106)
* Update DOI exceptions to be multilingual exceptions
* Update Messages_fre.properties (geonetwork#102)
---------
Co-authored-by: François Prunayre <[email protected]>
Copy file name to clipboardexpand all lines: core/src/test/resources/org/fao/geonet/api/Messages.properties
+10
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,16 @@ exception.doi.recordNotConformantMissingMandatory=Record is not conform with Dat
180
180
exception.doi.recordNotConformantMissingMandatory.description=Record ''{0}'' is not conform with DataCite validation rules for mandatory fields. Error is: {1}. Required fields in DataCite are: identifier, creators, titles, publisher, publicationYear, resourceType. <a href=''{2}api/records/{3}/formatters/datacite?output=xml''>Check the DataCite format output</a> and adapt the record content to add missing information.
181
181
exception.doi.recordInvalid=Record converted to DataCite format is invalid.
182
182
exception.doi.recordInvalid.description=Record ''{0}'' converted to DataCite format is invalid. Error is: {1}. Required fields in DataCite are: identifier, creators, titles, publisher, publicationYear, resourceType. <a href=''{2}api/records/{3}/formatters/datacite?output=xml''>Check the DataCite format output</a> and adapt the record content to add missing information.
183
+
exception.doi.serverErrorCreate=Error creating DOI
Copy file name to clipboardexpand all lines: core/src/test/resources/org/fao/geonet/api/Messages_fre.properties
+10
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,16 @@ exception.doi.recordNotConformantMissingMandatory=La fiche n''est pas conforme a
167
167
exception.doi.recordNotConformantMissingMandatory.description=La fiche ''{0}'' n''est pas conforme aux r\u00E8gles de validation DataCite pour les champs obligatoires. L''erreur est: {1}. Les champs obligatoires dans DataCite sont : identifiant, cr\u00E9ateurs, titres, \u00E9diteur, publicationYear, resourceType. <a href=''{2}api/records/{3}/formatters/datacite?output=xml''>V\u00E9rifiez la sortie au format DataCite</a> et adaptez le contenu de la fiche pour ajouter les informations manquantes.
168
168
exception.doi.recordInvalid=Le fiche converti n''est pas conforme au format DataCite
169
169
exception.doi.recordInvalid.description=Le fiche ''{0}'' converti n''est pas conforme au format DataCite. L''erreur est: {1}. Les champs obligatoires dans DataCite sont : identifiant, cr\u00E9ateurs, titres, \u00E9diteur, ann\u00E9e de publication, type de ressource. <a href=''{2}api/records/{3}/formatters/datacite?output=xml''>V\u00E9rifier la sortie au format DataCite</a> et adapter le contenu de la fiche pour ajouter les informations manquantes.
170
+
exception.doi.serverErrorCreate=Erreur lors de la cr\u00E9ation du DOI
171
+
exception.doi.serverErrorCreate.description=Erreur lors de la cr\u00E9ation du DOI : {0}
172
+
exception.doi.serverErrorRetrieve=Erreur lors de la r\u00E9cup\u00E9ration du DOI
173
+
exception.doi.serverErrorRetrieve.description=Erreur lors de la r\u00E9cup\u00E9ration du DOI : {0}
174
+
exception.doi.serverErrorDelete=Erreur lors de la suppression du DOI
175
+
exception.doi.serverErrorDelete.description=Erreur lors de la suppression du DOI : {0}
176
+
exception.doi.serverErrorUnregister=Erreur lors de la d\u00E9sinscription du DOI
177
+
exception.doi.serverErrorUnregister.description=Erreur lors de la d\u00E9sinscription du DOI {0}
178
+
exception.doi.notSupportedOperationError=Op\u00E9ration non prise en charge
thrownewDoiClientException(String.format("To create a DOI, the schema has to defined how to insert a DOI in the record. The schema_plugins/%s/process/%s was not found. Create the XSL transformation.",
491
-
schema, DOI_ADD_XSL_PROCESS));
494
+
Stringmessage = String.format("To create a DOI, the schema has to defined how to insert a DOI in the record. The schema_plugins/%s/process/%s was not found. Create the XSL transformation.",
thrownewDoiClientException(String.format("To remove a DOI, the schema has to defined how to remove a DOI in the record. The schema_plugins/%s/process/%s was not found. Create the XSL transformation.",
511
-
schema, DOI_REMOVE_XSL_PROCESS));
520
+
Stringmessage = String.format("To remove a DOI, the schema has to defined how to remove a DOI in the record. The schema_plugins/%s/process/%s was not found. Create the XSL transformation.",
thrownewDoiClientException(String.format("To create a DOI, the record needs to be converted to the DataCite format (https://schema.datacite.org/). You need to create a formatter for this in schema_plugins/%s/%s. If the standard is a profile of ISO19139, you can simply point to the ISO19139 formatter.",
532
-
schema, DATACITE_XSL_CONVERSION_FILE));
548
+
Stringmessage = String.format("To create a DOI, the record needs to be converted to the DataCite format (https://schema.datacite.org/). You need to create a formatter for this in schema_plugins/%s/%s. If the standard is a profile of ISO19139, you can simply point to the ISO19139 formatter.",
Copy file name to clipboardexpand all lines: web/src/main/webapp/WEB-INF/classes/org/fao/geonet/api/Messages.properties
+12
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,18 @@ exception.doi.recordNotConformantMissingMandatory=Record is not conform with Dat
180
180
exception.doi.recordNotConformantMissingMandatory.description=Record ''{0}'' is not conform with DataCite validation rules for mandatory fields. Error is: {1}. Required fields in DataCite are: identifier, creators, titles, publisher, publicationYear, resourceType. <a href=''{2}api/records/{3}/formatters/datacite?output=xml''>Check the DataCite format output</a> and adapt the record content to add missing information.
181
181
exception.doi.recordInvalid=Record converted to DataCite format is invalid.
182
182
exception.doi.recordInvalid.description=Record ''{0}'' converted to DataCite format is invalid. Error is: {1}. Required fields in DataCite are: identifier, creators, titles, publisher, publicationYear, resourceType. <a href=''{2}api/records/{3}/formatters/datacite?output=xml''>Check the DataCite format output</a> and adapt the record content to add missing information.
183
+
exception.doi.serverErrorCreate=Error creating DOI
0 commit comments