psu-libraries / scholarsphere-3

A web application for ingest, curation, search, and display of digital assets. Powered by Hydra technologies (Rails, Hydra-head, Blacklight, Solr, Fedora Commons, etc.)
Apache License 2.0
78 stars 24 forks source link

User Department in ScholarSphere is blank when psu.edu has data #199

Open carolyncole opened 9 years ago

carolyncole commented 9 years ago

Look at https://scholarsphere.psu.edu/users/amm81 This user has more information in ldap http://www.psu.edu/search/people/amm81

Why is ScholarSphere not getting this information?

carolyncole commented 9 years ago

It seems ScholarSphere can get this information, since when I run User.where(login:'amm81')[0].populate_attributes the department is present.

I updated all LDAP information in the production system:

 User.all.each {|u|  u.populate_attributes; u.save}

About half the users still have a blank department. A sampling of those seem to be students. For example smm6714 has no department, but does have a curriculum

Name: STAMATINA MATTIE MYLONAS
E-mail: smm6714@psu.edu
Phone: +1 610 446 3507
Title: UNDERGRAD STUDENT
Address: 1813 LAWRENCE RD HAVERTOWN, PA 19083
Campus: BRANDYWINE CAMPUS
Curriculum: COMMUNICATION ARTS AND SCIENCES