[ansel] Ansel::listGalleries()

Heath S. Hendrickson heath at outerspaceconsultants.com
Tue May 11 17:56:00 PDT 2004


> Right. I'd store the values in seperate attributes, though (or, 
> better, put the
> order in the attribute_key field for the gallery attribute, which 
> isn't used
> currently), so that getByAttributes() still works easily and 
> efficiently for
> getting everything in a gallery.
>
So it would be

attribute_name = gallery
attribute_key = <pos>
attribute_value = <galleryId>

right?  Just from a pure semantics standpoint I'd say to switch the 
definition of _key and _value, but I'm not going to stand up and argue 
to do so.

> Sounds about right - like a contact sheet.
>
exactly.  And as a bell/whistle, the on-mouseover help text could 
display all the galleries that an image is a part of (when multiple 
galleries are implemented with the bucket design).  This would open up 
some interesting possibilities (for down the road, of course), like 
sorting options on the contact sheet (filename, upload date, gallery, 
exif fields).

In that vein, can someone point me to a good example of a search form in 
a horde app?  One that display the results on the same page as the 
search form(a-la google) would be ideal. I'd like to play with searching 
for images based on attributes (namely exif data).  My first thought is 
to have a pull-down with attributes (exif fields, plus some of the extra 
date fields) and then a boolean pull-down and then a text box for 
entering the criteria.  The results would be displayed below the search 
form.  That way I can try and knock out another TODO.  

BTW, has the TODO been updated recently with any newer items?  I looked 
at it the other day and didn't see anything really new on there...   
Also, when is Ansel going to make it out of 0.0.1?  I'm not sure how the 
Horde versioning works, which is why I'm asking.  But as it stands, it 
seems to be fairly feature-rich and a lot of what is going on now is 
just frosting and optimization (not that what Ben is starting on is a 
trivial optimization by any means...).  I know that Ansel isn't slated 
for the Horde 3.0 release (at least it wasn't on the list last time I 
looked at it, back a couple months ago).

Thanks,
h


More information about the ansel mailing list