Rien,
I have no idea if this is by design or a bug:
I'm (only) using the hierarchical keywords list to add keywords to my images. Some keywords in the root don't have child-keywords. If I add a keyword to an image which has already some keywords, the new one is added. BUT: I see in the "HierarchicalSubject" tag (XMP-lr) that all keywords (from the root of my list with no children) are removed from this tag!
e.g. existing values in this tag:
2024*Duitsland|Deutschland|Noordrijn-Westfalen|Nordrhein-Westfalen|Niederkrüchten*Fietsvakantie|Drie Landen Toer
And I add a keyword (e.g. Apparaten | Actioncam | GoPro) then the tag consist of:
Duitsland|Deutschland|Noordrijn-Westfalen|Nordrhein-Westfalen|Niederkrüchten*Fietsvakantie|Drie Landen Toer*Apparaten|Actioncam|GoPro
and "2024" is gone!
This has an impact on applications that read/uses this tag.
Am I overseeing something?
I was able to investigate the issue. There is only one Keywords field in PM at this time, so both flat keywords and hierarchical keywords are placed in the same field in the Metadata (IPTC) Info window. When it comes time to save them to the XMP data, the keywords are parsed, and hierarchical keywords (those that consist of two or more keywords separated by '|') are written to the HierarchicalSubject field in the XMP-lr namespace, and keywords that are flat are written to the non-hierarchical keywords field.
It doesn't matter if the keywords came from the Structured Keywords panel or not if they resemble flat keywords. They are flat keywords.
You could make your '2024' be a child of a 'Years' tree (create a Years item at root and put 2024 there), and do the same for those other keywords that you have at the root of your Structured Keywords panel. Then they will be treated as hierarchical.
To truly solve this problem, and to allow you to have childless hierarchical keywords that function as you desire, PM would have to offer another editable field just for hierarchical keywords that would be maintained separately from the standard keywords field.
-Kirk