Bug 318319

Summary: Extended files type mime supported into search tool [patch]
Product: [Applications] digikam Reporter: Axel Krebs <axel.krebs>
Component: Searches-AdvancedAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 3.1.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.0
Sentry Crash Report:
Attachments: fileformat.patch
fileformat.png

Description Axel Krebs 2013-04-14 06:11:17 UTC
The statistics of my database is as follows:
digiKam version 3.1.0
Bilder: 
BMP: 137
GIF: 1259
JP2: 14
JPG: 142747
NIKON-NEF: 7
PCX: 2
PGF: 2
PNG: 6593
RAW-CR2: 629
RAW-CRW: 10339
RAW-DNG: 7
RAW-NEF: 87318
RAW-STI: 1
TIFF: 2148
XCF: 16
Gesamt: 251219
: 
: 
Videos: 
AVI: 89
MOV: 13
MP4: 23
MPEG: 6
WEBM: 1
WMF: 4
WMV: 8
Gesamt: 144
: 
: 
Gesamtzahl der Einträge: 251363
Alben: 4257
Stichwörter: 138
Datenbanktreiber: QSQLITE

The file types, I can search for in extended search, is limited on just six formats:
JPEG, PNG, RAW, TIFF, PPM, JPEG 2000 



Reproducible: Always

Steps to Reproduce:
1.open extended search
2. tray to select STI oder STI file format
3. you will _NOT_ find these formats in search options

These fiile formats (and, maybe most others, too!!) are missing in extended search. So how to find these files?
Actual Results:  
These fiile formats (and, maybe most others, too!!) are missing in extended search. So how to find these files?

Expected Results:  
_Every_ file format listet (cause found) in the database statistics must be found in extended search. how could one checked these pics otherwise?
Comment 1 caulier.gilles 2015-05-16 14:07:55 UTC
Maik,

This file is not to hard to code i think.

mime type is database can be query through filter tool from icon-view. So we just need to add new type in advanced search settings list and to pass it to DB XML query.

Gilles Caulier
Comment 2 Maik Qualmann 2015-06-03 20:44:57 UTC
Created attachment 92981 [details]
fileformat.patch

We have in the advanced search, a search for the file format. With this patch, the statistics of file formats from the DB is used.

Maik
Comment 3 Maik Qualmann 2015-06-03 20:45:48 UTC
Created attachment 92982 [details]
fileformat.png
Comment 4 caulier.gilles 2015-06-03 20:56:52 UTC
Perfect patches...

Gilles
Comment 5 Maik Qualmann 2015-06-04 10:29:22 UTC
Git commit 3eca898f5ba5d80bb4308aaccd7eb4b49c33379d by Maik Qualmann.
Committed on 04/06/2015 at 10:20.
Pushed by mqualmann into branch 'master'.

apply patch #92981 to use the file formats from the DB for the advanced search
FIXED-IN: 4.11.0

M  +2    -1    NEWS
M  +4    -7    utilities/searchwindow/searchfields.cpp

http://commits.kde.org/digikam/3eca898f5ba5d80bb4308aaccd7eb4b49c33379d
Comment 6 caulier.gilles 2015-06-06 03:34:18 UTC
Git commit 41d462741e440df229d7538b9e404381c78266d4 by Gilles Caulier.
Committed on 04/06/2015 at 11:55.
Pushed by cgilles into branch 'frameworks'.

backport commit #3eca898f5ba5d80bb4308aaccd7eb4b49c33379d from git/master to frameworks branch

M  +4    -7    utilities/searchwindow/searchfields.cpp

http://commits.kde.org/digikam/41d462741e440df229d7538b9e404381c78266d4