[ckan-discuss] Most Popular Datasets, Most Recent Datasets

John Glover john.glover at okfn.org
Wed Nov 13 16:24:52 UTC 2013


Hi Mark,

We did most viewed [1] and most recent [2] for the EU ODP site, although
the current implementation requires a modified Solr config [3] so that
views_total can be fetched directly from Solr. We also use a custom field
for the modified date, but you could use the standard CKAN field here
instead.

[1]:
https://github.com/okfn/ckanext-ecportal/blob/master/ckanext/ecportal/helpers.py#L282
[2]:
https://github.com/okfn/ckanext-ecportal/blob/master/ckanext/ecportal/helpers.py#L99
[3]:
https://github.com/okfn/ckanext-ecportal/blob/master/ckanext/ecportal/solr/schema.xml#L392

Cheers,
John


On 13 November 2013 16:46, Laudon, Mark <MNLaudon at surrey.ca> wrote:

>  Has anyone implemented a Most Popular and Most Recent code block?  If
> so, please pass on any links/code.
>
>
>
> Thanks in advance,
>
>
>
> Mark
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-discuss/attachments/20131113/5a45bf6d/attachment.html>


More information about the ckan-discuss mailing list