Revision: 3347 http://archive-access.svn.sourceforge.net/archive-access/?rev=3347&view=rev Author: bradtofel Date: 2010-11-28 06:08:47 +0000 (Sun, 28 Nov 2010) Log Message: ----------- TWEAK: now checks for aggregationPrefix first, then Prefix when determining redirect URL. It's a hack, but should work fine until the whole prefix problem is cleared up.. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/memento/TimeBundleRequestParser.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/memento/TimeBundleRequestParser.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/memento/TimeBundleRequestParser.java 2010-11-23 01:22:45 UTC (rev 3346) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/memento/TimeBundleRequestParser.java 2010-11-28 06:08:47 UTC (rev 3347) @@ -72,7 +72,12 @@ wbRequest.setCaptureQueryRequest(); wbRequest.setRequestUrl(urlStr); - String uriPrefix = accessPoint.getConfigs().getProperty("Prefix"); + String uriPrefix = accessPoint.getConfigs().getProperty("aggregationPrefix"); + if(uriPrefix == null) { + // TODO: this is a hack... need to clean up the whole prefix + // configuration setup... + uriPrefix = accessPoint.getConfigs().getProperty("Prefix"); + } String betterUrl = uriPrefix + "timemap/rdf/" + urlStr; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |