Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jesper W
ImageGallery suggestion
December 14, 2007 2:36 AM
Answer

Jesper W

Rank: Expert

Posts: 315

Join Date: March 25, 2007

Recent Posts

Our editors frequently find themselves frantically flipping through the ImageGallery folders to find where a specific image referenced in a JournalArticle is located.

To solve this we have implemented a "Find image" tab in the image gallery portlet.

This tab has one field where the image id from the /image_gallery url in the journal article can be entered.

To be able to find an image based on id a new finder method for LargeImageId in the IGImage entity was also needed.

Would you like this functionality checked in to trunk or should we keep it separate?

/j
Michael Young
RE: ImageGallery suggestion
December 14, 2007 6:45 AM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 833

Join Date: August 4, 2004

Recent Posts

Can you post some screenshots?
Jesper W
RE: ImageGallery suggestion
December 14, 2007 8:13 AM
Answer

Jesper W

Rank: Expert

Posts: 315

Join Date: March 25, 2007

Recent Posts

Pardon the Swedish....
Attachment

Attachments: search.jpg (39.5k)
Jorge Ferrer
RE: ImageGallery suggestion
December 14, 2007 10:53 AM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2658

Join Date: August 31, 2006

Recent Posts

Hi,

I like the functionality, although maybe we can just add it as a search option in the front page. That would make it easier to access. What do you guys think?
Michael Young
RE: ImageGallery suggestion
December 14, 2007 11:56 AM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 833

Join Date: August 4, 2004

Recent Posts

I agree. Should be on the front page to be consistent with other UI. We should be able to search by metadata as well (tags, description, etc).
Edward Shin
RE: ImageGallery suggestion
December 14, 2007 11:58 AM
Answer

Edward Shin

LIFERAY STAFF

Rank: Junior Member

Posts: 71

Join Date: March 23, 2005

Recent Posts

I like the search option idea too since that matches the format of our other portlets.
Jesper W
RE: ImageGallery suggestion
December 14, 2007 2:13 PM
Answer

Jesper W

Rank: Expert

Posts: 315

Join Date: March 25, 2007

Recent Posts

The front page has a Lucene based search.
You mean put a search by id input field next to it and use the same search button?

Also note that we already did the search-by-largeimageid functionality, I can start by checking that in if you wish, and we can build more later.

If you start spec'ing a whole new set of searches it's for someone else to do ;-)
Michael Young
RE: ImageGallery suggestion
December 14, 2007 2:39 PM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 833

Join Date: August 4, 2004

Recent Posts

Hmm. I don't see a search on the front page. Did you extend that as well?

What we'd prefer is something like Enterprise Admin, Where there is basic search and advanced search. The entire search should be able to be implemented as a a Lucene search only.

Does that count as a new spec emoticon?
Jorge Ferrer
RE: ImageGallery suggestion
December 14, 2007 4:55 PM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2658

Join Date: August 31, 2006

Recent Posts

Hi,

I was thinking exactly the same that Mike has suggested, keep the current search as the simple search and then add an "Advanced Search" link that through js shows more options, including search by id.

But as I was reading your comments I also had the idea of searching by id also in the simple search. It would work this way:
1) Read the search text. If it's a number search by id
2) If it's not a number or an element with that id is not found, search through lucene.

That's the strategy most search engines are following. Be smart for your common users, but for power users still provide advanced searches that allow them to specify what type of information they are providing.
Michael Young
RE: ImageGallery suggestion
December 14, 2007 5:26 PM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 833

Join Date: August 4, 2004

Recent Posts

In either case we should be doing a Lucene search. If we index the id then a Lucene search would be simple. We should try to do most of our searches through lucene because

1) lucene is optimized for searching
2) reduce load on the database
3) a db search is not needed because we are not doing any joins.
Jorge Ferrer
RE: ImageGallery suggestion
December 14, 2007 5:41 PM
Answer

Jorge Ferrer

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2658

Join Date: August 31, 2006

Recent Posts

Agreed emoticon
Ray Augé
Re: [Liferay Core Developers]RE: ImageGallery suggestion
December 15, 2007 8:17 PM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1129

Join Date: February 7, 2005

Recent Posts

I think that a far better approach is to replace the reference in Edit
Article from a text field with an url representation of the IG link, to
on which includes the thumbnail and folder tree.. I mentioned this to
bchan before the retreat. I think that for both IG and DL references in
Edit Article, this is a much better behaviour.

If a Article Editor wants to refer to some url reference of some object,
there are many other ways of doing that... but this feature in
particular (selecting from IG and LD) is designed to make things easier
for the end users... so I think it's appropriate to simply make a better
representation once the selection is made... (as opposed to having to
search for some weird ID in another portlet... just to find out where it
is...
Jesper W
RE: Re: [Liferay Core Developers]RE: ImageGallery suggestion
December 17, 2007 2:31 AM
Answer

Jesper W

Rank: Expert

Posts: 315

Join Date: March 25, 2007

Recent Posts

Of course this would be much better.

My initial suggestion was more of a band aid.
I have checked in the modifications to the entity so that at least now there are finders which can find the correct object.
I guess we will stick to using them in our band aid for the time being.