Bug 318319 - Extended files type mime supported into search tool [patch]
Summary: Extended files type mime supported into search tool [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (show other bugs)
Version: 3.1.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-14 06:11 UTC by Axel Krebs
Modified: 2017-08-18 09:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.0


Attachments
fileformat.patch (1.13 KB, patch)
2015-06-03 20:44 UTC, Maik Qualmann
Details
fileformat.png (108.38 KB, image/png)
2015-06-03 20:45 UTC, Maik Qualmann
Details

Note You need to log in before you can comment on or make changes to this bug.
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