Revision: 2730 http://archive-access.svn.sourceforge.net/archive-access/?rev=2730&view=rev Author: bradtofel Date: 2009-05-20 02:55:09 +0000 (Wed, 20 May 2009) Log Message: ----------- FEATURE: now uses 'warc/revisit' mime type to determine if records should be annotated, in addition to blank('-') field for the ARC/WARC file. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/adapters/DeduplicationSearchResultAnnotationAdapter.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/adapters/DeduplicationSearchResultAnnotationAdapter.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/adapters/DeduplicationSearchResultAnnotationAdapter.java 2009-05-20 02:53:02 UTC (rev 2729) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourceindex/adapters/DeduplicationSearchResultAnnotationAdapter.java 2009-05-20 02:55:09 UTC (rev 2730) @@ -26,6 +26,7 @@ public class DeduplicationSearchResultAnnotationAdapter implements Adapter<CaptureSearchResult,CaptureSearchResult> { private final static String EMPTY_VALUE = "-"; + private final static String REVISIT_VALUE = "warc/revisit"; private HashMap<String,CaptureSearchResult> memory = null; @@ -55,7 +56,8 @@ } public CaptureSearchResult adapt(CaptureSearchResult o) { - if(o.getFile().equals(EMPTY_VALUE)) { + if(o.getFile().equals(EMPTY_VALUE) + || o.getMimeType().equals(REVISIT_VALUE)) { return annotate(o); } return remember(o); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |