Organisational chart and CDS integration

17 posts / 0 new
Last post
Organisational chart and CDS integration

Hello to all!

I'm looking for two modules:

1. I would like to create a chart that will display people in hierarchy of our group (of course, hierarchy will be done manyally)

2. I would like to display latest CDS articles of our group on a page with name and maybe abstract. I have a feeling this can be done with RSS?

Thanks in advance.

Organigram and feeds

Hi George,

Regarding your first question you might use Drupal's Organigram module along with CERN LDAP module to get the data from there for the organic unit that you want.

To display the latest CDS articles from your group, go to your page on CDS and at the bottom of the page you will see the RSS icon. Click on that and you will get an RSS URL that returns results for the filters that you applied. Then on your Drupal website go to Configuration -> Feed Aggregator and Add a new Feed. Then create a view that displays data from that feed and a block from that view so you can place it anywhere in your site.

Cheers,
Sotirios

For the display of hierarchy

For the display of hierarchy another alternative is to integrate into your website this other one site: http://organigram.web.cern.ch/organigram/IT-CDA

Changing the last part of the url you can see the hierarchy of the different groups,

Cheers,

Eduardo

Organigram module

Hello George,

If you want to go the organigram way, there's also an organigram service that was developed in FAP-TPR: https://organic-unit-diagram.web.cern.ch/FAP-TPR

To go with the service, there's a corresponding Drupal module, which makes it very easy to incorporate the Organigram into your Drupal website, as can be seen in the pictures.

Let me know if this fits your needs and you'd be interested. I'd be more than happy to help you install the module.

 

Best,

Mihai

 

Organigram block (behaves as any standard Drupal block)

Configuration Page

 

 

Dear Mihai,

Dear Mihai,

is this module a custom one, or from Drupal community.
IN case is custom one, perhaps might be interesting to add it centrally.

Cheers,

Eduardo

Custom module

Hi Eduardo,

I was discussing about this yesterdat with Mihai. It is a custom module that he developed. It would be nice if you could add it centrally.

You can find the module in GitLab https://gitlab.cern.ch/mipatras/cern_organigram/tree/production

Cheers,
Sotirios

Hi all,

Hi all,

Thanks a lot for your responses. I managed to get both CDS feed and Organigram work.

I do have some more questions though.

  1. I can't retrieve CDS publication's author's name from RSS. Should I set up feed importer to use XPath maybe?
  2. Does the Organigram has a "show/hide" or "expand/collapse" capability?
  3. Is there a possibility to import documentation (publications) from TWiki?
Aggregator for Feeds

Hi George,

I use Aggregator for the feeds that we pull from CDS and then I create a view for that feed where I can see properly the Author field (Aggregator:Author).

How do you pull the CDS feeds on your website?

Cheers,
Sotirios

Hi Sotirios,

Hi Sotirios,

I followed the advice mentioned above - copied link to RSS feed from CDS, then created a feed importer and imported the RSS feed to the page.

Let me try your solution.

Cheers,

George

I cannot find where to

I cannot find where to configure / create the view for Aggregator so that I can add the necessary fields

Create new View for Aggregator items

You have to create a new view for the Aggregator items.

Go to Structure->Views and click on + Add new view

In the view creation page you must select Show -> Aggregator item

Make sure that you select the create block option.

Once the view and the block are created, go to the Block tab and create a filter for the Aggregator Feed : Title where you put as value the name of the feed.

Now you can start adding the fields that you want under the fields.

After you finish with setting up the block you can place it anywhere on your website from Structure->Blocks.

Hi Sotirios,

Hi Sotirios,

Thanks a lot for your advice.

I just have one question - is there a possibility to customize the Author field? Currently it's not displayed as I would like, for example: The ATLAS collaboration Pedro Martins, Filipe Manuel Gurriana, Luis Oleiro Seabra, Luis Filipe Evans, Guiomar Gomes, Agostinho Maio, Amelia Pinto Silva Rato, Catia Sofia Almendra Sabino, Joao Maria Augusto, Jose

Overwrite the field's output

Yes there are a couple of ways to do that. What kind of customization did you have in mind?

For instance, to be able to

For instance, to be able to correctly display name, not "ATLAS Collaboration Salukvadze, George", but "ATLAS Collaboration, Salukvadze George" etc.

Views PHP

Well you need to use a module called Views PHP for that, to overwrite the field's output and customize it in PHP.

Hi again,

Hi again,

So how I would need to rewrite this using PHP? As I understand Author field is one string and not several...

Views PHP module

Hi George,

Yes you need to use the Views PHP module (https://www.drupal.org/project/views_php). You get the string from the field author and edit it as you like.

Cheers,
Sotirios

You are here