Skip to content

Commit

Permalink
NAS-2650 and NAS-2649 fixing typo and deleting commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
bnfklm committed Feb 17, 2018
1 parent de1de7c commit eb8d231
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,8 @@ public void doOneCrawl(Job job, String origHarvestName, String origHarvestDesc,
if (usingWarcAsArchiveFormat()) {
log.info("As we're using WARC as archiveFormat WarcInfoMetadata is now added to the template");
HeritrixTemplate ht = job.getOrderXMLdoc();
//if (job.getContinuationOf() == null ) {
ht.insertWarcInfoMetadata(job, origHarvestName, origHarvestDesc, origHarvestSchedule,
Settings.get(HarvesterSettings.PERFORMER));
//} else {
// log.info("Job is a continuation of " + job.getContinuationOf() + " so no need to replace WarcInfoMetadata");
//}
job.setOrderXMLDoc(ht);
} else {
log.info("As we're using ARC as archiveFormat no WarcInfoMetadata was added to the template");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ public void insertWarcInfoMetadata(Job ajob, String origHarvestdefinitionName,
metadataItem.addText(origHarvestdefinitionName);

metadataItem = metadataMap.addElement("string");
metadataItem.addAttribute("name", HARVESTINFO_ORIGHARVESTDEFINITIONNCOMMENTS);
metadataItem.addAttribute("name", HARVESTINFO_ORIGHARVESTDEFINITIONCOMMENTS);
metadataItem.addText(origHarvestdefinitionComments);

/* optional schedule-name, only for selective harvests. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public void insertWarcInfoMetadata(Job ajob, String origHarvestdefinitionName,

if(StringUtils.isNotEmpty(origHarvestdefinitionComments)) {
sb.append(startMetadataEntry);
sb.append(HARVESTINFO_ORIGHARVESTDEFINITIONNCOMMENTS + valuePart +
sb.append(HARVESTINFO_ORIGHARVESTDEFINITIONCOMMENTS + valuePart +
origHarvestdefinitionComments + endMetadataEntry);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public abstract class HeritrixTemplate implements Serializable {
protected static final String HARVESTINFO_ORDERXMLUPDATEDATE = "harvestInfo.templateLastUpdateDate";
protected static final String HARVESTINFO_ORDERXMLDESCRIPTION = "harvestInfo.templateDescription";
protected static final String HARVESTINFO_ORIGHARVESTDEFINITIONNAME = "harvestInfo.origHarvestDefinitionName";
protected static final String HARVESTINFO_ORIGHARVESTDEFINITIONNCOMMENTS = "harvestInfo.origHarvestDefinitionComments";
protected static final String HARVESTINFO_ORIGHARVESTDEFINITIONCOMMENTS = "harvestInfo.origHarvestDefinitionComments";
protected static final String HARVESTINFO_SCHEDULENAME = "harvestInfo.scheduleName";
protected static final String HARVESTINFO_HARVESTFILENAMEPREFIX = "harvestInfo.harvestFilenamePrefix";
protected static final String HARVESTINFO_JOBSUBMITDATE = "harvestInfo.jobSubmitDate";
Expand Down

0 comments on commit eb8d231

Please sign in to comment.