[ckan-discuss] Most Popular Datasets, Most Recent Datasets
Laudon, Mark
MNLaudon at surrey.ca
Wed Nov 13 17:05:50 UTC 2013
Thanks John! That's perfect. Do you also have the code used in the html template?
Cheers,
Mark
From: John Glover [mailto:john.glover at okfn.org]
Sent: November-13-13 8:25 AM
To: Laudon, Mark
Cc: ckan-discuss at lists.okfn.org
Subject: Re: [ckan-discuss] Most Popular Datasets, Most Recent Datasets
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<mailto: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<mailto: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/edb8f474/attachment.html>
More information about the ckan-discuss
mailing list