google-code-export / bibapp

Automatically exported from code.google.com/p/bibapp
Other
0 stars 0 forks source link

Make use of the "active" field in the people table #193

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe requested feature: People records have boolean field "active", but it 
doesn't appear to be used anywhere. Make use of this field to hide people from 
search/browse displays. Index field in Solr for filtering. A "status" field for 
assigning "ex-faculty, emeritus, graduate student, etc." might be superior in 
the long run.

Describe why feature would be valuable for BibApp: There is no way to set a 
status on person. Deleting people records is undesirable, but we don't want 
ex-faculty showing up in people lists, e.g. views/shared/_people.html.haml
It might also be useful to index this field in Solr for filtering people from 
display and filtering works by inactive 
This is related to setting dates in group memberships.

Original issue reported on code.google.com by stirnam...@gmail.com on 19 Feb 2011 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by stirnam...@gmail.com on 19 Feb 2011 at 4:49

GoogleCodeExporter commented 9 years ago
I've completed some minor work on this, primarily to control displaying people 
who have left the institution. I'm not sure if it will fit everyone's needs 
though. I haven't made the changes public yet.
Added an Active checkbox to the edit person view. When a person is made 
Inactive, any open-ended group memberships are closed.
Added a filter to shared/_people so that Inactive people don't display.
Added a condition so that research_focus and email_address don't display for 
Inactive people in people/show.

Jason

Original comment by stirnam...@gmail.com on 3 Mar 2011 at 5:01

GoogleCodeExporter commented 9 years ago
https://github.com/jstirnaman/BibApp/commits/person_is_active_1.0

Original comment by stirnam...@gmail.com on 7 Mar 2011 at 6:15