Issue 15561

Fix country field on drupal for user signup

15561
Reporter: omeyn
Assignee: bko
Type: Task
Summary: Fix country field on drupal for user signup
Priority: Major
Resolution: Done
Status: Resolved
Created: 2014-04-28 11:21:07.145
Updated: 2014-05-14 15:22:31.368
Resolved: 2014-05-08 17:21:31.637
        
Description: The user profile shares the country field used by content nodes which allow multiple country values. The country field of the user profile should have only one value.

This task means to fix this and clean up the country field of user profile.]]>
    

Attachment Screen Shot 2014-05-08 at 5.20.11 PM.png



Author: bko@gbif.org
Created: 2014-05-08 17:19:50.673
Updated: 2014-05-08 17:19:50.673
        
a gbif_user module is created and the cleaning logic is in hook_install().

This module creates a new country field and its instance and attache the instance to the user profile. It then migrates existing values from field_data_field_country to field_data_field_country_mono, as well as field_revision_field_country to field_revision_field_country_mono.

Templates are changed accordingly to allow new country field to function. A jQuery Chosen module is introduced for friendly drop-down.
    


Author: bko@gbif.org
Comment: Done as r2854.
Created: 2014-05-08 17:21:31.66
Updated: 2014-05-08 17:21:31.66