[Digikam-devel] [digikam] [Bug 346637] Missing support for Media Pro hierarchical keywords
Alan Pater
alan.pater at gmail.com
Sat Apr 25 15:15:25 BST 2015
https://bugs.kde.org/show_bug.cgi?id=346637
--- Comment #1 from Alan Pater <alan.pater at gmail.com> ---
I adapted the LR code in dmetadata.cpp and came up with:
// Read: bool DMetadata::getImageTagsPath(QStringList& tagsPath) const
// Try to get Tags Path list from Media Pro XMP first.
tagsPath = getXmpTagStringBag("Xmp.mediapro.CatalogSets", false);
// There is another Media Pro tag for hierarchical subjects.
if (tagsPath.isEmpty())
{
tagsPath = getXmpTagStringSeq("Xmp.expressionmedia.CatalogSets",
false);
}
if (!tagsPath.isEmpty())
{
// Media Pro Catalog Sets use '|' as separator.
tagsPath = tagsPath.replaceInStrings("|", "/");
kDebug() << "Tags Path imported from Media Pro : " << tagsPath;
return true;
}
// Write: bool DMetadata::setImageTagsPath(const QStringList& tagsPath) const
QStringList MediaProtagsPath = tagsPath;
MediaProtagsPath = MediaProtagsPath.replaceInStrings("/",
"|");
if (!setXmpTagStringBag("Xmp.mediapro.CatalogSets", MediaProtagsPath))
{
return false;
}
I have not tested this as I am still unable to build digikam.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list