[tracker/harmattan-pre-signal-updates: 1257/1380] tracker-extract: Fixed MSOffice extractor to set nfo:Presentation & nfo:Spreadsheet



commit 29a19a8ec72e8f80c18b5e92dc2b52b436b996ec
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Sep 7 19:39:49 2010 +0100

    tracker-extract: Fixed MSOffice extractor to set nfo:Presentation & nfo:Spreadsheet
    
    Noticed by Sven Herzberg

 src/tracker-extract/tracker-extract-msoffice.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-msoffice.c b/src/tracker-extract/tracker-extract-msoffice.c
index 4c2a66f..1bd2f41 100644
--- a/src/tracker-extract/tracker-extract-msoffice.c
+++ b/src/tracker-extract/tracker-extract-msoffice.c
@@ -1687,9 +1687,15 @@ extract_msoffice (const gchar          *uri,
 		content = extract_msword_content (infile, max_bytes, &is_encrypted);
 	} else if (g_ascii_strcasecmp (mime_used, "application/vnd.ms-powerpoint") == 0) {
 		/* PowerPoint file */
+		tracker_sparql_builder_predicate (metadata, "a");
+		tracker_sparql_builder_object (metadata, "nfo:Presentation");
+
 		content = extract_powerpoint_content (infile, max_bytes, &is_encrypted);
 	} else if (g_ascii_strcasecmp (mime_used, "application/vnd.ms-excel") == 0) {
 		/* Excel File */
+		tracker_sparql_builder_predicate (metadata, "a");
+		tracker_sparql_builder_object (metadata, "nfo:Spreadsheet");
+
 		content = extract_excel_content (infile, max_bytes, &is_encrypted);
 	} else {
 		g_message ("Mime type was not recognised:'%s'", mime_used);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]