Bug 375187

Summary: Keywords under same tag in digikam do not match
Product: [Applications] digikam Reporter: Andrius <aegoreev>
Component: Metadata-XmpAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 5.4.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.6.0

Description Andrius 2017-01-17 15:38:40 UTC
Hello,

I have noticed that actual keywords written to files' metadata might be different for the same tag in Digikam. For example, I have "zoo" tag in "Places". When I search images by the tag in the left panel both IMGP5985.JPG and IMGP5986.JPG show up in the search results.
However if you compare the actual keywords using Digikam (Ctrl+Shift+M)or ExifTool (see the output below) you will notice that one file has "zoo" written while the other has "Places/zoo" (compare fields [XMP-dc] and [IPTC]. 

Digikam seems to treat them as the same tag so I can't really change it now.
I am wondering if there is a way to fix that.
Please advise.

PS I think it might be related to this: https://bugs.kde.org/show_bug.cgi?id=320185 since I have used WLPG (Windows Live Photo Gallery) in parallel with Digikam.

IMGP5985.JPG
 [IFD0]          XPKeywords                      : Places/zoo
 [XMP-digiKam]   TagsList                        : Places/zoo
 [XMP-microsoft] LastKeywordXMP                  : Places/zoo
 [XMP-microsoft] LastKeywordIPTC                 : Places/zoo
 [XMP-acdsee]    Categories                      : <Categories><Category Assigned="0">Places<Category Assigned="1">zoo</Category></Category></Categories>
 [XMP-lr]        HierarchicalSubject             : Places|zoo
 [XMP-mediapro]  CatalogSets                     : Places|zoo
 [XMP-dc]        Subject                         : zoo
 [IPTC]          Keywords                        : zoo

IMGP5986.JPG
 [IFD0]          XPKeywords                      : Places/zoo
 [XMP-digiKam]   TagsList                        : Places/zoo
 [XMP-microsoft] LastKeywordXMP                  : Places/zoo
 [XMP-microsoft] LastKeywordIPTC                 : Places/zoo
 [XMP-acdsee]    Categories                      : <Categories><Category Assigned="0">Places<Category Assigned="1">zoo</Category></Category></Categories>
 [XMP-lr]        HierarchicalSubject             : Places|zoo
 [XMP-mediapro]  CatalogSets                     : Places|zoo
 [XMP-dc]        Subject                         : Places/zoo
 [IPTC]          Keywords                        : Places/zoo
Comment 1 Andrius 2017-05-30 18:55:24 UTC
I think this is not happening anymore. appimage 5.6.0