[ckan-discuss] Most Popular Datasets, Most Recent Datasets
John Glover
john.glover at okfn.org
Thu Nov 14 09:37:14 UTC 2013
Hi Mark,
Yes:
https://github.com/okfn/ckanext-ecportal/blob/master/ckanext/ecportal/templates/home/index.html
Cheers,
John
On 13 November 2013 18:05, Laudon, Mark <MNLaudon at surrey.ca> wrote:
> 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> 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/20131114/187f47b8/attachment-0001.html>
More information about the ckan-discuss
mailing list