CERN Social, Profiles and directory

Hey,
I have many names listed in the IT website, which all link to that person’s page in CERN Social. However I get the strong impression that Social isn’t used so much anymore, and was wondering if it was possible to have these names link direct to CERN Profiles (if that is still used) or better yet, the CERN Directory.

For example: https://information-technology.web.cern.ch/about/organisation

What’s best to link these names to? What are we using now to get the default contact details for people?

Thanks,
Cath

Hi Cath,

You should link them to the phonebook. Profiles website won’t be migrated to Drupal 8 because of the LDAP module that doesn’t work like in Drupal 7.

Cheers,
Sotirios

Hi Sotirios,

Ah ok, good, thanks.

Next question… how do I do that? :slight_smile:

Thanks!
-cath

I assume that you use the LDAP module in IT’s website.

You can use the user’s id returned by LDAP and construct the link. My id is 749966 so the phonebook link is https://phonebook.cern.ch/phonebook/#personDetails/?id=749966

Otherwise you can use the phonebook link with the name https://phonebook.cern.ch/phonebook/#search/?query=Sotirios+Boutas

Cheers,
Sotirios

Hi Sotirios,

No, we haven’t been using the LDAP module. I have just found the module and turned it on. At the moment I think the site is using some kind of User Entity Reference - this uses the person’s manually-inputted/autocomplete CERN account name which then points you to their Social entry (as a tick-box “link-to”, not 'rewrite results").

It’s not clear to me how to obtain the user ID (I’m assuming it’s [employeeid] in LDAP?) in order to construct the link (ie. https://phonebook.cern.ch/phonebook/#personDetails/?id=[employeeid])

I really need walking through this from the very beginning - I’ve configured the LDAP to simply “import users” and then set the filter to IT to start with. However… what do I do next? What relationships do I set up in my view to be able to retrieve that employeeid?

Thanks!
-c
EDIT: I just found this: https://entice.web.cern.ch/create-autocomplete-field-ldap-users. Is this what I need to do?

Well it seems that the Profiles website is using a custom module to retrieve the id from the LDAP.

I would advise you to not spend to much time on that since IT website needs to be migrated to Drupal 8 by the end of the year and this solution won’t work there.

Cheers,
Sotirios

OK, understood! Thanks!
-c

May I wake this topic up again? The IT website is now on D8, but it’s still redirecting people to the CERN Social profiles, rather than the Phonebook.

See the names * https://information-technology.web.cern.ch/about/organisation

How might one proceed…?

Thanks
-cath

  • It’s showing accountname by default, rather than Realname, but it shows Realname permanently after they login to the site. This is OK coz it will resolve by itself over time…

Hi Cath,

This module is maintained by Drupal admins. Maybe you should open a ticket.

OK, will do! Thanks :slight_smile:
-c