Revision: 3628
http://archive-access.svn.sourceforge.net/archive-access/?rev=3628&view=rev
Author: binzino
Date: 2012-07-03 00:43:30 +0000 (Tue, 03 Jul 2012)
Log Message:
-----------
Prepend PDF-only metadata property keys with "pdf.".
Modified Paths:
--------------
tags/nutchwax-0_13-JIRA-WAX-75/archive/src/plugin/parse-pdf2/src/java/org/archive/nutchwax/parse/pdf/PDFParser.java
Modified: tags/nutchwax-0_13-JIRA-WAX-75/archive/src/plugin/parse-pdf2/src/java/org/archive/nutchwax/parse/pdf/PDFParser.java
===================================================================
--- tags/nutchwax-0_13-JIRA-WAX-75/archive/src/plugin/parse-pdf2/src/java/org/archive/nutchwax/parse/pdf/PDFParser.java 2012-07-02 23:33:10 UTC (rev 3627)
+++ tags/nutchwax-0_13-JIRA-WAX-75/archive/src/plugin/parse-pdf2/src/java/org/archive/nutchwax/parse/pdf/PDFParser.java 2012-07-03 00:43:30 UTC (rev 3628)
@@ -123,7 +123,8 @@
}
else
{
- content.getMetadata().set( kv[0].trim(), kv[1].trim() );
+ // For all other properties, append "pdf." prexif.
+ content.getMetadata().set( "pdf." + kv[0].trim(), kv[1].trim() );
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|