Search results displaying albums and photos

zjohn13

Joined: 2010-12-01
Posts: 94
Posted: Tue, 2013-08-13 18:00

Since updating to G3.0.8, search results are displaying matching albums as well as photos.
Is there a way to limit search results to display only photos?

Thanks,
John

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-08-14 19:10

Gallery 3 has always displayed both by default.

http://galleryproject.org/node/111231
(Except that you want `type` != 'album'.
You can also specify to return only photos, but that may be a concern later if you add video, etc.

 
zjohn13

Joined: 2010-12-01
Posts: 94
Posted: Thu, 2013-08-15 17:34

Many thanks bitslv and tempg, applying that change has removed album pages from my search results.

I should explain that I want to do this because there is a problem with the search module.
The G3.0.8 search now displays a virtual gallery of the search results which is very good, however if you click on a photo thumbnail and display the large photo, then keep clicking Next to step through the results all works fine until you reach an Album in the results.
At this point the album's first page is displayed and the virtual search album breaks.
Pressing next now steps through the album pages but the breadcrumb line shows that you are stepping through the physical album.
Pressing the Previous button steps back through the album pages but you can not return to the virtual search album.
If you click the browser back button you can get to the previous photo but it is now also in its physical album, further pressing progresses through that album.

I use an upgraded and customised Gallery so to ensure that my customisation has not affecting this result I installed another copy of G3.0.8 with no configuration or customisation, using the default Wind theme and get the same search problem using some test albums and photos.

Removing Albums from search bypasses the problem for me but other users may run into this issue.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Thu, 2013-08-15 21:27

Thanks for noting. Will try to remember to look into it in more detail. (Busy times, busy times.)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2013-08-15 22:32

zjohn13,
please file a ticket with your user story so we can keep track of it. G3.1 search is is being rewritten and perhaps a option to not include albums in results, or the behavior of the dynamic album results should be changed.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
zjohn13

Joined: 2010-12-01
Posts: 94
Posted: Fri, 2013-08-16 16:31

I'll raise a ticket when I can locate where to do that, could you give me a pointer please.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Fri, 2013-08-16 16:37
 
zjohn13

Joined: 2010-12-01
Posts: 94
Posted: Sat, 2013-08-17 06:39

Thanks, I have raised Ticket #2081