WebCuratorTool / webcurator

The root of the webcurator tool project, containing all modules needed to run a fully functional webcurator tool.
Apache License 2.0
2 stars 1 forks source link

Placeholder $ArcHarvestResource.FileDate no longer works #86

Closed hannakoppelaar closed 1 year ago

hannakoppelaar commented 1 year ago

The variable harvestResourceUrlMapper.urlMap in webapp's application.properties is used to construct the URL pointing to a replay tool such as pywb. This URL may contain placeholders for a number of properties of the harvest result and its resources. An important such property is ArcHarvestResource.FileDate. Currently this placeholder is no longer being substituted, probably because of changes introduced by v3.1.

A workaround is to use $HarvestResult.CreationDate instead of $ArcHarvestResource.FileDate, which, in my case at least, results in working pywb URLs. Maybe we can fix this issue by simply changing the default application.properties to use HarvestResult.CreationDate and drop the FileDate code from HarvestResourceUrlMapper.java?