CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • improving search usability
Pages: [1]

Author Topic: improving search usability  (Read 1249 times)

davem

  • I post occasionally
  • **
  • Posts: 60
  • Karma: 0
    • Circle Interactive
  • CiviCRM version: 3s and 4s
  • CMS version: D6, D7, J!, WP
improving search usability
October 19, 2010, 10:05:22 am
We're looking into a way of improving the user experience on public searches through Drupal. With public search profiles it's all too easy to return no results which can be frustrating. So the idea is to use AJAX to update the options so in our imaginary profile which contains countries and drinks and shows drinks producers as the results, when you select 'cider', Germany is de-selected since cider is not produced there but France, Spain, England and Ireland are left selected. Then if you select France as well, stout will be deselected since stout is not produced there. I hope that gives enough of an idea.

So my question is would the best way to approach this be to start with profiles or use Drupal's Views module? And does anyone have any helpful hints, code snippets, warnings or any other useful thoughts that might help us on our way. Either way I assume we'd wrap it up as Drupal module for general use/feedback/improvements.

Thanks

DaveM

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: improving search usability
October 19, 2010, 01:35:40 pm
Always good to use an example we can sink our teeth in to - okay not our teeth, but our lips at least. Hmm, no cider in Germany eh.

But back to the real question. I can certainly see this being useful. If it became available I would expect we would be more likely to use it in Views, but I know many other set ups do not use Views so it would be of more limited benefit.

Sorry I can't make any comments on the specs for doing it for Views v civiprofiles.

Good luck with this.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: improving search usability
October 19, 2010, 01:54:28 pm
Hi,

would write a custom module and use civiCRM+some custom ajax/rest interface

To get you started, might have a look at this one
http://github.com/tttp/civiview

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

davem

  • I post occasionally
  • **
  • Posts: 60
  • Karma: 0
    • Circle Interactive
  • CiviCRM version: 3s and 4s
  • CMS version: D6, D7, J!, WP
Re: improving search usability
October 21, 2010, 07:31:28 am
Hi Xavier
I was thinking of doing this in a more generic way that would be more widely useful than a custom module. Just in our case we'd want to roll it out to quite a few sites once implemented.
Any particular aversion to profiles and views?
DaveM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: improving search usability
October 21, 2010, 09:54:22 am
Hi,

We just spent a gazillion hours moving a big dev from staging to prod. Had major issues with moving the nodes (hint: users+taxonomy+... will be different), major pain to migrate workflow config and in general, the only think that migrated smoothly was what is in good old text files, either config or code. If you can shove it into git, it's fine, otherwise, it's a pain in the neck.

So yes, I'd rather have a couple of lines of code to change than having to click endlessly on  the profile/view configuration. Having to roll it out on one site is already a good reason not to use view, to quite a few would be a dealmaker ;)

This being said, might be that we don't know the right drupal tools to make the migration slightly less painful.  But how I'd like to have something like south in django....

X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: improving search usability
October 21, 2010, 11:14:37 am
X - maybe everyone has there 'oh my god how can it take so long to move something' moment. Some things can move easily eg Content, Views, while some things with more config can be moved more easily by wrapping your head around Features. Not really the topic of this thread but ....

DaveM. You said you would wrap this as a module - if there is a lot of config that needs repeating on each site, maybe you would look at providing it as a Feature too?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

davem

  • I post occasionally
  • **
  • Posts: 60
  • Karma: 0
    • Circle Interactive
  • CiviCRM version: 3s and 4s
  • CMS version: D6, D7, J!, WP
Re: improving search usability
October 22, 2010, 02:58:45 am
OK when I said rolling it out, I meant implementing the better search func on several sites some of which currently have a very simple profile search along the lines of [geographical area] and [audience] both as checkboxes. So it would be pretty trivial to redo these as views and this certainly wouldn't influence our decision on whether to go with views or profiles. For me the advantage of using profiles or views is that maintenance of the actual search (or creation of new searches) stays with the admins through the UI and we don't have to change code each time. Also doing it that way makes it more available for non-coders.

Really I was just thinking will it be more painful to interfere with how views does things or to do the ajax stuff from profiles. Personally I love the power of Views, but can imagine this is more hard work.

Peterd - wasn't thinking of features for this as it should be just providing a smoother end user interface and the site admin does the config in the view (or profile) which would be different in every case.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • improving search usability

This forum was archived on 2017-11-26.