tracker r2423 - in trunk: . data/services src/tracker-extract



Author: mottela
Date: Mon Oct 27 12:54:44 2008
New Revision: 2423
URL: http://svn.gnome.org/viewvc/tracker?rev=2423&view=rev

Log:
Added Image:Rating field and XMP:XAP:Rating support

Modified:
   trunk/ChangeLog
   trunk/data/services/default.service
   trunk/data/services/image.metadata
   trunk/src/tracker-extract/tracker-xmp.c

Modified: trunk/data/services/default.service
==============================================================================
--- trunk/data/services/default.service	(original)
+++ trunk/data/services/default.service	Mon Oct 27 12:54:44 2008
@@ -75,6 +75,7 @@
 KeyMetadata4=Image:Date
 KeyMetadata5=Image:Software
 KeyMetadata6=Image:Creator
+KeyMetadata7=Image:Rating
 TabularMetadata=File:Name;Image:Height;Image:Width;Image:Date;File:Modified;Image:Creator;Image:Software;
 TileMetadata=Image:Title;Image:Height;Image:Width;Image:Date;Image:Creator;Image:Software;Image:Comments;
 Mimes=application/vnd.oasis.opendocument.image;application/x-krita;

Modified: trunk/data/services/image.metadata
==============================================================================
--- trunk/data/services/image.metadata	(original)
+++ trunk/data/services/image.metadata	Mon Oct 27 12:54:44 2008
@@ -123,16 +123,8 @@
 Description=Indicates the white balance mode set when the image was shot (auto/manual)
 DataType=string
 
-
-
-
-
-
-
-
-
-
-
-
-
+[Image:Rating]
+DisplayName=Rating
+Description=Rating given to the image. 
+DataType=integer
 

Modified: trunk/src/tracker-extract/tracker-xmp.c
==============================================================================
--- trunk/src/tracker-extract/tracker-xmp.c	(original)
+++ trunk/src/tracker-extract/tracker-xmp.c	Mon Oct 27 12:54:44 2008
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /* Tracker Xmp - Xmp helper functions
  * Copyright (C) 2006, Mr Jamie McCracken (jamiemcc gnome org)
  *
@@ -239,6 +240,12 @@
 			tracker_append_string_to_hash_table (metadata, "File:Copyright", value, append);
 		}
 	}
+	/* XAP (XMP)scheme */
+	else if (strcmp (schema, NS_XAP) == 0) {
+	        if (strcmp (name, "Rating") == 0) {
+		        tracker_append_string_to_hash_table (metadata, "Image:Rating", value, append);
+		}
+	}
 
 	g_free (name);
 }



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