[ckan-dev] Related

Fabrizio Fornari ckanappoggio at gmail.com
Tue May 13 13:35:51 UTC 2014


Hi guys,

I was playing with the "related" page and I noticed that under the
drop-down menu Sort by, the value Most viewed is repeated twice: "Most
viewed" and "Most Viewed". You can chek on http://demo.ckan.org/related.

In /ckan/controllers/related.py it is duplicated:

 c.sort_options = (
            {'value': '', 'text': _('Most viewed')},
            {'value': 'view_count_desc', 'text': _('Most Viewed')},
            {'value': 'view_count_asc', 'text': _('Least Viewed')},
            {'value': 'created_desc', 'text': _('Newest')},
            {'value': 'created_asc', 'text': _('Oldest')}
        )

Is there a reason for it or I can simply delete the first row?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140513/fb95774c/attachment-0002.html>


More information about the ckan-dev mailing list