Version: (using Devel) Installed from: Compiled sources As some people tend to import other people's photos into their own collections, it would be nice if Digikam's search interface would allow searching for the string stored in the Exif.Image.Artist / IPTC.Application2.Byline fields.
Are you tested KDE4 version ? Gilles Caulier
(In reply to comment #1) > Are you tested KDE4 version ? Yes, I've been running 0.10.0-beta7, but I can't seem to find a corresponding field in the "Advanced Search" dialog. Maybe I'm missing something?
Yes, in last section of dialog. May be hidden - scroll page down.
Created attachment 30142 [details] The Advanced Search dialog of digikam 0.10.0-beta7
(In reply to comment #3) > Yes, in last section of dialog. May be hidden - scroll page down. I hate to be such an annoyance, but I still can't find a field corresponding to the photographer. Should it be in "Photograph Information"? I'm attaching a screenshot of the "Advanced Search" dialog as it looks on my system (manipulated only to fit the scrolling viewport into a single image).
Sorry. You are right. This would be really useful feature. I wonder if it would be possible to automatically populate list of photographers.
It's just a matter of adding the UI, we can and will more options to the Advanced search in future versions.
(In reply to comment #7) > It's just a matter of adding the UI, we can and will more options to the > Advanced search in future versions. Awesome! I'm really looking forward to that.
Marcel, It have been implemented for 2.0.0 ? Gilles Caulier
No, I have two or three of these on my list, not done yet
*** Bug 193238 has been marked as a duplicate of this bug. ***
Munteanu, To support more text field from IPTC advanced search engine, Look below : 1/ From Advanced Search Windows, already IPTC text field are implemented here in searchfields.cpp. Look like "headline" field is implemented in GUI: https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/utilities/searchwindow/searchfields.cpp#L525 To be able to manage it by search group, just declare it in searchgroup.cpp like this: https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/utilities/searchwindow/searchgroup.cpp#L141 2/ GUI will send query to DB using XML in background, using KIOSlave. All is already managed by existing implmentation, but in DB manager code, you need to implement the SQL query relevant. For "headline", look like code is simple : https://projects.kde.org/projects/extragear/graphics/digikam/repository/revisions/master/entry/libs/database/imagequerybuilder.cpp#L1142 You need to query DB on right table and right property to find relevant item, accordingly with IPTC field to search. Not all IPTC field are registered in DB. You will find DB schema in this LibreOffice file in digikam/project/documents folder from git/master. Currently only 4 IPTC field are managed in advanced search window : - Caption, - Author, - Headline, - Title. Database support more as : - Source, - Copyright - Credit, - Special Instructions, - Contact Info, - etc... You need to check where data are stored in DB, check which are missing exactly and which can be add easily and quickly implemented by your students. If you need more information about DB schema, ask to Marcel in this room. Gilles Caulier
Munteanu, Look in screenshot attached to this file, current IPTC field are implemented in advance search window into "Caption, Comments, Title" section... Gilles Caulier
Maik, Look my comments #12 and #13 which describe technically all details to implement this wish. Gilles Caulier
Created attachment 114952 [details] Search by creator (In reply to Ingomar Wesp from comment #0) > As some people tend to import other people's photos into their own > collections, it would be nice if Digikam's search interface would allow > searching for the string stored in the Exif.Image.Artist / > IPTC.Application2.Byline fields. I would like to search for Xmp.dc.creator within digikam. I'm just an ordinary user with basic programming skills so I'm not sure if the provided patch is working. These should be the current URLs to the files Gilles Caulier pointed out in comment #12: https://cgit.kde.org/digikam.git/tree/utilities/searchwindow/searchfields.cpp?h=development/6.0.0#n617 https://cgit.kde.org/digikam.git/tree/utilities/searchwindow/searchgroup.cpp?h=development/6.0.0#n167 https://cgit.kde.org/digikam.git/tree/libs/database/item/imagequerybuilder.cpp?h=development%2F6.0.0#n1432 Database Schema: https://cgit.kde.org/digikam.git/tree/project/documents/DBSCHEMA.ODS
The SQL query is not correct, a table column "creator" does not exist. Only "proberty" with an entry as "creator". I'll watch it on the weekend. Maik
(In reply to Maik Qualmann from comment #16) > The SQL query is not correct, a table column "creator" does not exist. Only > "proberty" with an entry as "creator". I'll watch it on the weekend. I'm sorry, was uploading it to fast. It should be the following, I think: + else if (name == QLatin1String("creator")) + { + sql += QString::fromUtf8(" (Images.id IN " + " (SELECT imageid FROM ImageCopyright " + " WHERE property='creator' AND value "); + ImageQueryBuilder::addSqlRelation(sql, relation); + sql += QString::fromUtf8(" ?)) "); + *boundValues << DatabaseComment::Comment << fieldQuery.prepareForLike(reader.value()); + }
Yes, I had it ready ((:-)) Of boundValues still DatabaseComment::Comment must be removed. Maik
Git commit 2d199f612c4c428cedee0d4c3a8c647aba790f17 by Maik Qualmann. Committed on 14/09/2018 at 21:11. Pushed by mqualmann into branch 'master'. apply patch #114952 from Johannes to add search by creator M +9 -0 core/libs/database/item/imagequerybuilder.cpp M +7 -1 core/utilities/searchwindow/searchfields.cpp M +1 -0 core/utilities/searchwindow/searchgroup.cpp https://commits.kde.org/digikam/2d199f612c4c428cedee0d4c3a8c647aba790f17
*** Bug 351987 has been marked as a duplicate of this bug. ***
*** Bug 421903 has been marked as a duplicate of this bug. ***
digiKam 7.0.0 stable release is now published: https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/ We need a fresh feedback on this file using this version. Best Regards Gilles Caulier
Searching for Creator still works in 7.0.0. (tested with Appimage 64bit on Ubuntu 18.04.5).
So the Q is : what's missing to close this file now ? Gilles Caulier
I don't know why it wasn't closed already…
Maik, this file is not closed because plenty of bug entries ask to add search features over plenty of IPTC fields registered in database. Right ? Gilles
*** Bug 433391 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 351987 ***