Re: [Tracker] [PATCH] Re: Extracting Embedded Licenses



On Sat, 2007-06-30 at 20:19 -0700, Jason Kivlighn wrote:
these look ok - will apply as soon as the other stuff is tidied up (need
tracker_read_xmp before I can apply these)
  
Here's a patch that just adds tracker_read_xmp.  It reads licenses and
dublin core metadata from XMP, and could easily be extended to other
schemas (like exif).


its not correct because DC is abstract in tracker and must not be used
to store metadata - you must use a subclass of the DC type instead

EG 

for Docs

Doc:Title is a subclass of DC:Title

For Images

Image:Title is a subclass of DC:Title


what you will need to do is use the service type to determine which
subclass to use

For now you can just set it for Images if you like

also theres still a number of lines which omit spacing EG:
if (strcmp(qual_path,"xml:lang") == 0) {


I can tidy this up for you but it will probably take a few days as im
busy getting 0.6 out of the door atm

If you can fix today then I can include it in the next release

jamie





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