File tree Expand file tree Collapse file tree
dspace-api/src/main/java/org/dspace/health Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131import org .json .JSONObject ;
3232
3333/**
34+ * This check runs the "metadataqa" curation task on the whole repository,
35+ * and provides a report about the number of errors and warnings.
36+ *
3437 * @author Milan Kuchtiak
3538 */
3639public class MetadataCheck extends Check {
3740
41+ private static final String CURATION_TASK_NAME = "metadataqa" ;
3842 private static final String QA_METADATA_ERROR_PATTERNS_JSON = "metadata-check-patterns.json" ;
3943 private static final String VALIDATION_TYPE_OTHER = "validation.other" ;
4044 private static final int COUNT_INDENTATION = 30 ;
@@ -88,7 +92,7 @@ public String run(ReportInfo ri) {
8892 JSONObject root = new JSONObject ();
8993
9094 Curator curator = new Curator ();
91- curator .addTask ("metadataqa" );
95+ curator .addTask (CURATION_TASK_NAME );
9296
9397 MetadataReporter reporter = new MetadataReporter (
9498 maxErrorsToShow ,
You can’t perform that action at this time.
0 commit comments