Bug 149026 - Wish: Search including sub-albums
Summary: Wish: Search including sub-albums
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-20 11:35 UTC by Ian Hubbertz
Modified: 2017-08-18 09:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Hubbertz 2007-08-20 11:35:05 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages

In the advanced search it should be possible to search for all pics in oe album INCLUDING sub-albums.

ATM you have to add all subalbums manually.
Comment 1 Arnd Baecker 2007-09-06 19:09:42 UTC
If you define an advanced search for "Album Name" "contains" "DigikamPhotos"
also all subdirectories are included.
So this does provide the functionality you would like to have.

Is this good enough?
Comment 2 Loïc Brarda 2007-09-07 11:14:32 UTC
Yes, it works. But probably a lot of people will not see this functionality.
Perhaps, an additionnal search rule 'Album' 'is equal to (sub-folders included)' (but that's a long text for the drop-down) or an additionnal line with a 'sub-folders included' checkbox when we select 'album' could be an easier way to provide it.
Comment 3 Arnd Baecker 2007-09-07 12:42:50 UTC
First I thought this could be easily done by
adding to the RuleOpTable in  searchwidgets.cpp
    { I18N_NOOP("Contains"), "LIKE", SearchAdvancedRule::ALBUMS },
However, this produces the search
digikamsearch:1?1.key=album&1.op=LIKE&1.val=37&name=Digikamphotos&count=1
which does not include subalbums either.
What we would like to have as search is
digikamsearch:1?1.key=albumname&1.op=LIKE&1.val=DigikamPhotos&name=Digikamphotos&count=1

Maybe one could change the code such that for key=album and op=LIKE
we use key=albumaname instead?
(However it sounds a bit like a hack ... ;-)

Are there better approaches?
Comment 4 caulier.gilles 2008-04-23 11:29:01 UTC
Ian,

Following recents progress into new Advanced Search tools from Marcel with KDE4 port, i close this file. Search for all pics in album INCLUDING sub-albums is now default behaviours.

Search tools have been rewritten. Screenshots are available at this url:

http://digikam3rdparty.free.fr/Screenshots/NewSearchTools

Gilles Caulier