Re: [Tracker] Handling arrays in XMP



On Mon, 2007-06-25 at 16:35 -0700, Jason Kivlighn wrote:
As far as I can tell, Tracker only does a one to one mapping of keys to
values.  For example, there can only be one value for DC:Title.

For the dc:subject example, I'm talking about how to index this
example.  I can only have one value mapped to DC:Subject in the
database, so I'm wondering if I should just separate each array item
with a comma and then store that as the DC:Subject value.


A few things,

1) we do handle multiple value for some metadata but only where said
metadata is defined as supporting multiple values eg like keywords

2) Avoid using DC types as they are too generic and may get overwritten
if other apps use them. Our practice is to subclass DC types where
necessary EG Doc:Author is a subclass of DC:Author.

3) separating multiple values with commas wont work if we search for a
specific keyword using the keyword api

4) for langs it onl;y makes sense to use the user locale one if
available

Hope thats enough to keep you busy until I commit your other stuff

jamie






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