[Digikam-devel] [Bug 180268] Searching by specific metadata as Artist, Byline, Location, City, Country, etc...

Gilles Caulier caulier.gilles at gmail.com
Fri Feb 10 09:32:49 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=180268


Gilles Caulier <caulier.gilles at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavuttici at gmail.com




--- Comment #12 from Gilles Caulier <caulier gilles gmail com>  2012-02-10 09:32:49 ---
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

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Digikam-devel mailing list