Added search by location to the Gallery (RFE 11504)

This commit is contained in:
kimd 2010-05-25 22:06:06 +02:00 committed by Doug Bell
parent 426cc209ac
commit 387942e68d
8 changed files with 446 additions and 30 deletions

View file

@ -372,6 +372,22 @@ sub getThumbnailUrl {
);
}
#-------------------------------------------------------------------
=head2 indexContent ( )
Indexing the content of the Photo. See WebGUI::Asset::indexContent() for
additonal details.
=cut
sub indexContent {
my $self = shift;
my $indexer = $self->SUPER::indexContent;
$indexer->addKeywords($self->get("location"));
return $indexer;
}
#----------------------------------------------------------------------------
=head2 makeResolutions ( [resolutions] )