[ckan-dev] Fwd: Organization hierarchy

lucia.espona at wsl.ch lucia.espona at wsl.ch
Thu Aug 11 16:50:32 UTC 2016


I forgot to cc the mail list :)

Lucía.

Begin forwarded message:

> From: "Lucia Espona Pernas" <lucia.espona at wsl.ch>
> Date: 10. August 2016 um 21:50:04 MESZ
> To: "Stefan Oderbolz" <stefan.oderbolz at liip.ch>
> Subject: Re: [ckan-dev] Organization hierarchy
> 
> Thanks Stefan
> 
> The parameter fixed the issue!
> 
> I also improved a bit the display of the organization tree and included a section in the side pane of the organization read page. This last works well because I have short organization names, maybe not for everyone :)
> 
> Here is the modified extension: https://github.com/espona/ckanext-hierarchy 
> 
> I will go fight with the Solr facets then. I saw in data.gov.uk instance that they have an option to include datasets from children organizations (sub-publishers). I will try to get something like that.
> 
> Best,
> Lucia
>  
> 
> 
> _________________________________________________________
> Dr. Lucia Espona Pernas
> 
> Swiss Federal Institute for Forest, Snow and Landscape Research WSL
> Hauptgebäaude Labortrakt (HL C21)
> Zürcherstrasse 111
> 8903 Birmensdorf
> Switzerland
> 
> +41 44 739 28 71 phone direct
> +41 44 739 21 11 reception
> 
> www.wsl.ch
> 
> -----Stefan Oderbolz <stefan.oderbolz at liip.ch> wrote: -----
> To: lucia.espona at wsl.ch
> From: Stefan Oderbolz <stefan.oderbolz at liip.ch>
> Date: 10.08.2016 17:10
> Cc: CKAN Development Discussions <ckan-dev at lists.okfn.org>
> Subject: Re: [ckan-dev] Organization hierarchy
> 
> Thanks for the code!
> 
>> It all works well, the links point to the proper locations. My problem is that the link_for I added for the upstream organizations generates a hiperlink in shown in bold, for example:
>> <a class=" active" href="/organization/lfi">LFI</a>
>> Is there a possibility to avoid thet the class "active" is added to the link?
> 
> There is an argument called "suppress_active_class" which does exactly that:
> 
> {% link_for parent_node.title|truncate(35), controller='organization', action='read', id=parent_node.name, suppress_active_class=true %}
>  
> - Stefan
> 
> -- 
> Liip AG  // Limmatstrasse 183 //  CH-8005 Zürich
> Tel +41 43 500 39 80 // GnuPG 0x7B588C67 // www.liip.ch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160811/5e0932fd/attachment-0002.html>


More information about the ckan-dev mailing list