okfn / ckanext-pdeu

Custom CKAN Extension for PublicData.eu
9 stars 4 forks source link

Update resource links on dataset pages #57

Closed seanh closed 11 years ago

seanh commented 11 years ago

On the dataset page the three buttons Explore Data, Raw Data and RDF are too long:

Screenshot from 2013-03-25 12:04:00

In CKAN 2.0 these buttons have been replaced with a single drop-down list. I think remove the custom template from ckanext-pdeu, then do a new custom template for that page that just adds two new entries to the drop-down:

  1. RDF Mapping

    The URL for this is the 'rdf_mapping' key from the resource dict, this is the RDF link currently on the site.

  2. RDF Data

    The URL for this is the 'rdf_data' key from the resource dict, this is not currently shown on the site because with the old design there wasn't space for it.

Note that note every resource has 'rdf_mapping' and 'rdf_data', the links should only be shown for resources that do. Look at the current template in ckanext-pdeu to see how.

Also see this:

https://github.com/okfn/ckanext-pdeu/blob/master/add_csv2rdf_links.py