Skip to content

Commit

Permalink
Add message key for missing docType metadata error message
Browse files Browse the repository at this point in the history
  • Loading branch information
solth committed Jan 19, 2022
1 parent 000888b commit 124b009
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ public void getRecordHierarchy() {
showGrowlMessage(summary, detail);

if (this.importChildren) {
summary = Helper.getTranslation("newProcess.catalogueSearch.loadingChilrenSuccessfulSummary");
detail = Helper.getTranslation("newProcess.catalogueSearch.loadingChilrenSuccessfulDetail",
summary = Helper.getTranslation("newProcess.catalogueSearch.loadingChildrenSuccessfulSummary");
detail = Helper.getTranslation("newProcess.catalogueSearch.loadingChildrenSuccessfulDetail",
String.valueOf(this.createProcessForm.getChildProcesses().size()));
showGrowlMessage(summary, detail);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void verifyDocType() throws IOException, ProcessGenerationException {
if (Objects.nonNull(process.getRuleset())) {
Collection<String> doctypeMetadata = ImportService.getDocTypeMetadata(process.getRuleset());
if (doctypeMetadata.isEmpty()) {
throw new ProcessGenerationException("No doc type metadata defined in ruleset!");
throw new ProcessGenerationException(Helper.getTranslation("newProcess.docTypeMetadataMissing"));
}
if (Objects.nonNull(this.getWorkpiece().getLogicalStructure().getMetadata())) {
Optional<Metadata> docTypeMetadata = this.getWorkpiece().getLogicalStructure().getMetadata()
Expand Down
5 changes: 3 additions & 2 deletions Kitodo/src/main/resources/messages/messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -662,12 +662,13 @@ newProcess.catalogueSearch.importSuccessfulSummary=Import erfolgreich
newProcess.catalogueSearch.importSuccessfulDetail={0} Vorg\u00E4nge aus Katalog {1} geladen
newProcess.catalogueSearch.linkedToExistingProcessSummary=Vorg\u00E4nge verkn\u00fcpft.
newProcess.catalogueSearch.linkedToExistingProcessDetail=Neuer Vorgang an exisitierenden Vorgang \u201E{0}\u201C angeh\u00E4ngt.
newProcess.catalogueSearch.loadingChilrenSuccessfulSummary=Kindvorg\u00E4nge erfolgreich geladen
newProcess.catalogueSearch.loadingChilrenSuccessfulDetail={0} Kindvorg\u00E4nge geladen
newProcess.catalogueSearch.loadingChildrenSuccessfulSummary=Kindvorg\u00E4nge erfolgreich geladen
newProcess.catalogueSearch.loadingChildrenSuccessfulDetail={0} Kindvorg\u00E4nge geladen
newProcess.catalogueSearch.manyChildrenWarning=Es wurden {0} Kindvorg\u00E4nge gefunden.
newProcess.catalogueSearch.parentIDMetadataMissing=Es wurde kein Metadatum zum Speichern von IDs \u00fcbergeordneter Vorg\u00E4nge ("higherlevelIdentifier") im Regelsatz gefunden. Importtiefe zur\u00fcckgesetzt auf 1!
newProcess.catalogueSearch.parentIDParameterMissing=Es wurde kein Parameter zum Suchen von Kindelementen eines bestimmten Elterndokuments f\u00fcr den ausgew\u00E4hlten Katalog in der kitodo_opac.xml konfiguriert (fehlender Konfigurationsparameter "parentElement")!
newProcess.catalogueSearch.savingSecondaryProcesses=Speichern von untergeordneten Einheiten
newProcess.docTypeMetadataMissing=Der Datensatz konnte nicht importiert werden. Es wurde kein Metadatum f\u00fcr die Dokumenttypklassifizierung ("docType") im verwendeten Regelsatz gefunden!
newProcess.fileUpload.heading=Dateiupload
newProcess.rulesetSelection.deactivated=Der Regelsatz wird durch die verwendete Produktionsvorlage vorgegeben und kann w\u00E4hrend der Vorgangserstellung nicht ge\u00E4ndert werden
newProcess.titleGeneration.creationRuleNotFound=Es konnte keine Regel zur Titelgenerierung f\u00fcr Vorg\u00E4nge vom Typ \u201E{0}\u201C im Regelsatz \u201E{1}\u201C gefunden werden!
Expand Down
5 changes: 3 additions & 2 deletions Kitodo/src/main/resources/messages/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -674,12 +674,13 @@ newProcess.catalogueSearch.importSuccessfulSummary=Import successful
newProcess.catalogueSearch.importSuccessfulDetail={0} processes retrieved from {1}
newProcess.catalogueSearch.linkedToExistingProcessSummary=Processes linked
newProcess.catalogueSearch.linkedToExistingProcessDetail=New process linked to existing process \u201E{0}\u201C.
newProcess.catalogueSearch.loadingChilrenSuccessfulSummary=Child processes retrieved successfully
newProcess.catalogueSearch.loadingChilrenSuccessfulDetail={0} child processes retrieved
newProcess.catalogueSearch.loadingChildrenSuccessfulSummary=Child processes retrieved successfully
newProcess.catalogueSearch.loadingChildrenSuccessfulDetail={0} child processes retrieved
newProcess.catalogueSearch.manyChildrenWarning={0} child processes have been found for the selected data record.
newProcess.catalogueSearch.parentIDMetadataMissing=No parent ID metadata ("higherlevelIdentifier") found in ruleset! Resetting import depth to 1.
newProcess.catalogueSearch.parentIDParameterMissing=Parameter for retrieving child documents of a specific parent document not configured in kitodo_opac.xml for selected catalog (missing element "parentElement")!
newProcess.catalogueSearch.savingSecondaryProcesses=Saving secondary processes
newProcess.docTypeMetadataMissing=Unable to import metadata. No metadata for document type classification ("docType") found in ruleset!
newProcess.fileUpload.heading=Fileupload
newProcess.rulesetSelection.deactivated=Ruleset is predetermined by given template and cannot be changed during process creation
newProcess.titleGeneration.creationRuleNotFound=No title creation rules found for docType \u201E{0}\u201C in ruleset \u201E{1}\u201C!
Expand Down

0 comments on commit 124b009

Please sign in to comment.