codeforamerica / ohana-web-search

A mobile-friendly website for finding human and social services in your community
http://ohana-web-search-demo.herokuapp.com
BSD 3-Clause "New" or "Revised" License
69 stars 74 forks source link

Have routes for other entites been considered? #672

Closed pmackay closed 9 years ago

pmackay commented 9 years ago

I'm wondering why locations is the only type of object that can be viewed in this UI. Why not be able to view /organizations for example?

Just curious, asking for clarification.

thanks!

anselmbradford commented 9 years ago

Hi @pmackay, Organization details are coming in https://github.com/codeforamerica/ohana-web-search/issues/649. This is still being styled, but the idea is when an organization search is performed, the organization details will be displayed above the locations for that organization, something like:

screen shot 2014-10-31 at 1 57 30 pm

I'll close this issue if that answers your question, but feel free to re-open if that doesn't cover it! Thanks!

monfresh commented 9 years ago

The background on why it has been this way is because up until very recently, the only attributes that an Organization could have were the name and website. The main use of the site is to find services and where to get those services. Therefore, Locations are the main entities because that's where you go to get help.

A search always returns a Location entity. When you click on a particular location, you can see the name of the Organization it belongs to, but since there were so few attributes for an Organization, it didn't make sense to create a separate page for them when you can just display their information on the same page as the Location page.

Now that the API has been updated to add more Organization attributes based on the OpenReferral spec, we can start showing more info about an Organization, whether it's via a separate page or keeping it on the Location details page, and in an informational box in search results when you do a search based on organization name (as Ans mentioned).