Skip to content
Snippets Groups Projects

fix(MetadataExtractor): set lenient to false to force dates to match the pattern

Merged Alicia.DeDiosFuente requested to merge adf-check-format-valid into master
Files
3
@@ -243,10 +243,10 @@ public class AouProperties {
private int maxPreservationPolicyRetentionPeriodInYears = 100;
//need to specify the same order for an specific type of format for metadata and frontend
private String[] metadataDateFormat = {"yyyy-MM-dd", "yyyy-MM"};
private String[] metadataOutputDateFormat = {"yyyy-MM-dd", "yyyy-MM"};
private String[] frontendEnterDateFormat = {"d.M.yyyy", "M.yyyy"}; // format in which a date can be entered on frontend (1 digit allowed for day and month)
private String[] frontendOutputDateFormat = {"dd.MM.yyyy", "MM.yyyy"}; // format to which a date is given back to frontend (2 digits for day and month)
private String[] metadataDateFormat = {"yyyy-MM-dd", "yyyy-MM", "yyyy"};
private String[] metadataOutputDateFormat = {"yyyy-MM-dd", "yyyy-MM", "yyyy"};
private String[] frontendEnterDateFormat = {"d.M.yyyy", "M.yyyy","yyyy"}; // format in which a date can be entered on frontend (1 digit allowed for day and month)
private String[] frontendOutputDateFormat = {"dd.MM.yyyy", "MM.yyyy", "yyyy"}; // format to which a date is given back to frontend (2 digits for day and month)
private String emailTemplatePath;
private String submissionPortalHomepage = "https://archive-ouverte.unige.ch"; // used in emails templates to build links to the portal
Loading