Description
The methods in https://github.com/netarchivesuite/netarchivesuite/blob/master/harvester/harvester-core/src/main/java/dk/netarkivet/viewerproxy/webinterface/Reporting.java
all use the helper method
private static String getMetadataFilePatternForJobId(long jobid) { // The old invalid metadataFilePattern //return ".*"+jobid + ".*" + metadatafile_suffix; return jobid + metadatafile_suffix; }
This code currently assumes that we do the legacy style naming of the metadatafiles
and not the prefix stile :
https://github.com/netarchivesuite/netarchivesuite/blob/master/harvester/harvester-core/src/main/java/dk/netarkivet/harvester/harvesting/metadata/MetadataFileWriter.java
The difference:
if(isPrefix) { return collectionName + "-" + jobID + "-" + harvestID + "-metadata-" + versionNumber + ".warc" + possibleGzSuffix; } else { return jobID + "-metadata-" + versionNumber + ".warc" + possibleGzSuffix; }
Currently, collectionName is read from setting HarvesterSettings.HERITRIX_PREFIX_COLLECTION_NAME