Bug 459129 - Duplicate tags are displayed below thumbnail when tags are repeated in tag hierarchy
Summary: Duplicate tags are displayed below thumbnail when tags are repeated in tag hi...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-IconView (show other bugs)
Version: 7.8.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 01:01 UTC by José Oliver-Didier
Modified: 2022-09-18 16:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0
Sentry Crash Report:


Attachments
Duplicate tags are displayed below thumbnail when tags are repeated in tag hierarchy (3.80 KB, image/png)
2022-09-15 01:01 UTC, José Oliver-Didier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Oliver-Didier 2022-09-15 01:01:42 UTC
Created attachment 152066 [details]
Duplicate tags are displayed below thumbnail when tags are repeated in tag hierarchy

SUMMARY
***
Duplicate tags are displayed below thumbnail when tags are repeated in tag hierarchy
***


STEPS TO REPRODUCE
1. In Digikam Configuration options enable display of tags in Thumbnails: "Settings" | "Configure Digikam" -> "View" and enable/check "Show digikam tags" option in the "Icons" tab.
2. Add the following tags to an image: "Alpha" and "Test/Alpha" (hierarchical tag)
3. Select image in thumbnail view


OBSERVED RESULT
- Below the thumbnails the tags "Alpha, Test, Alpha" are displayed. Refer to attached screenshot.
- Takes up space, redundant information.

EXPECTED RESULT
- "Alpha, Test"

SOFTWARE/OS VERSIONS
Windows 11

ADDITIONAL INFORMATION

Digikam tag metadata block:

			<digiKam:TagsList>
				<rdf:Seq>
					<rdf:li>Alpha</rdf:li>
					<rdf:li>Test</rdf:li>
					<rdf:li>Test/Alpha</rdf:li>
				</rdf:Seq>
			</digiKam:TagsList>
Comment 1 Maik Qualmann 2022-09-15 04:25:33 UTC
Yes, of course I noticed that in the thumbnail as well. However, since this is an abbreviated representation without a tag path and this naturally results in the double representation of the tags. However, I decided to leave it as it is so you can see that there may be duplicate tags.

Maik
Comment 2 Maik Qualmann 2022-09-18 16:42:07 UTC
Git commit 9ee7af0269a2ba26b5447b10c2e972c7ce62e935 by Maik Qualmann.
Committed on 18/09/2022 at 16:41.
Pushed by mqualmann into branch 'master'.

prevent duplicate tag names in possible views
FIXED-IN: 8.0.0

M  +2    -1    NEWS
M  +1    -0    core/app/items/delegate/itemdelegate.cpp
M  +1    -0    core/dplugins/generic/tools/mjpegstream/mjpegframeosd.cpp
M  +1    -0    core/dplugins/generic/view/slideshow/widgets/slideproperties.cpp
M  +1    -0    core/utilities/import/items/importdelegate.cpp

https://invent.kde.org/graphics/digikam/commit/9ee7af0269a2ba26b5447b10c2e972c7ce62e935