nsandlin / linepig

ID resource for erigonine spiders, using KE Emu & IMu.
http://linepig.fieldmuseum.org/
4 stars 0 forks source link

Add search #21

Closed peteherbst closed 7 years ago

peteherbst commented 7 years ago

Search on: Genus, Species and keywords. Keywords should be a pick-list. Should be separate page.

Search results page should use subset template.

peteherbst commented 7 years ago

Search now implemented at /search.

nsandlin commented 7 years ago

Can you send me a screen shot?

On Fri, Oct 28, 2016 at 11:59 AM, Pete Herbst notifications@github.com wrote:

Search on: Genus, Species and keywords.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nsandlin/linepig/issues/21#issuecomment-256973169, or mute the thread https://github.com/notifications/unsubscribe-auth/AFEgCZWY_ulRU75_5qdZhuc2UgBc0qD0ks5q4inxgaJpZM4J5ZL8 .

peteherbst commented 7 years ago

screenshot 3

peteherbst commented 7 years ago

It's a very simple search. It includes genus, species text fields and a keywords pick-list that's auto-generated from the available subjects found on the multimedia records.

nsandlin commented 7 years ago

Nice!

On Tue, Nov 22, 2016 at 3:10 PM, Pete Herbst notifications@github.com wrote:

[image: screenshot 3] https://cloud.githubusercontent.com/assets/775699/20542118/dea29936-b0c5-11e6-908c-d26316da4f42.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nsandlin/linepig/issues/21#issuecomment-262366657, or mute the thread https://github.com/notifications/unsubscribe-auth/AFEgCV2iW5uxce9XvwmG5unY8LdTuKgMks5rA1pjgaJpZM4J5ZL8 .

nsandlin commented 7 years ago

Ah, we are doing this in the wrong place - only against the female epigynum images flagged as primary (which is all that makes it onto the main page), and as a result getting a constricted subgroup of keywords (only epigynum, female, and genitalia). This defeats the purpose, since a key function of the search - in addition to selecting subgroups - is to expose Multimedia that is otherwise inaccessible (such as, for example, male palps of species for which we do not have a female image).

If the request was made against all Multimedia objects in LinEpig, it would return the six core keywords listed in Detail pages (male, female, habitus. genitalia, palp, epigynum) and the "primary" flag, plus an ever-growing collection of other descriptors (we have apical view, ectal view, lateral view, mesal view, ventral view, so far, and possibly will shortly adding illustration, sem, face, sketch, etc.). The "view" terms are meaningless to search for, since they do not specify the part of the animal in the image (just as you can have a lateral view of your body, your head, or just your thumb). Which is why I thought we were going to hard-code the options rather than generating them view a query.

One thought: If you want go the dynamically generated route, we could exclude, along with "primary," anything that contains (or ends with) "view." Another thought: At some point we might want to add "and" (as in "male" and "palp"); although it might be simpler to make that a separate Advanced page when we get there, than trying to build on this page for that lager.

peteherbst commented 7 years ago

OK, that all makes sense and thank you for the detailed response. I'll figure something out!

peteherbst commented 7 years ago

Redo the getKeywords function in the SearchController to use the keywords list provided in the emuconfig file at line 40.

peteherbst commented 7 years ago

I've added all of the keywords back in via the emuconfig file. Is there a good way for me to query and retrieve ALL of the LinEpig records from EMu? It seems like I'm only pulling 320 records.