Use centralized campus data to build all campus lists
See #10975. All campus lists - particularly in Positions widget and on Members sidebar - should be built by cac_get_cuny_campuses().
#3 Updated by Boone Gorges over 2 years ago
- Assignee set to Boone Gorges
I've made the necessary changes to the Positions widget:
There are some mismatches between the old, hardcoded Colleges and the new, dynamic ones. In the following cases, the wording of the college name has changed. Markup on the front-end is generated dynamically, so the only necessary change at the time of deployment is to change the relevant taxonomy term 'name' field on the following:
'CUNY School of Public Health' => 'CUNY Graduate School of Public Health and Health Policy'
'NYC College of Technology' => 'New York City College of Technology'
'Stella and Charles Guttman Community College' => 'Guttman Community College'
In addition, the old hardcoded list had a couple of entries that don't appear on the new list. I think it's worth discussing whether these items (with the exception of "Non-CUNY") should be added to the more general Campuses list - or, perhaps, only in certain contexts? For the time being, I've simply added them to the list in the context of the Positions widget:
'Sophie Davis School of Biomedical Education',
#4 Updated by Boone Gorges over 2 years ago
- Status changed from New to Staged for Production Release
I've migrated the College list on the /members/ filter interface to the new system in https://github.com/cuny-academic-commons/cac/commit/2ae5684ab7827db89ce8e668bf187d34d3b3131d. Previously, those filters were rewritten to use the cacap_positions_college taxonomy for querying users, which means that changing the term names as described in the previous comment will be all that's required at the database level to reflect the current changes.