diff --git a/main/templates/browse/home.html b/main/templates/browse/home.html index c1e385d6..2499629c 100644 --- a/main/templates/browse/home.html +++ b/main/templates/browse/home.html @@ -40,8 +40,8 @@
{% if browsable_datasets %} - {{ total_indexed_human }} bibliographic items - now indexed among sources: + Bibliographic items + are indexed among sources: {% for ds_id in browsable_datasets %} {{ ds_id }}{% if not forloop.last %}, {% endif %} diff --git a/main/views.py b/main/views.py index b3444128..ec74d4b5 100644 --- a/main/views.py +++ b/main/views.py @@ -56,28 +56,9 @@ def home(request): metrics.gui_home_page_hits.inc() - non_empty_datasets = ( - RefData.objects.values_list('dataset', flat=True). - distinct()) - - total_indexed_citations = RefData.objects.count() - units = ('', 'k', 'M', 'G', 'T', 'P') - factor = 1000.0 - magnitude = int(floor(log_(max(abs(total_indexed_citations), 1), factor))) - total_indexed_human = '%.2f%s' % ( - total_indexed_citations / factor**magnitude, - units[magnitude], - ) - - browsable_datasets = [ - ds_id - for ds_id in settings.RELATON_DATASETS - if ds_id in non_empty_datasets] - return render(request, 'browse/home.html', dict( **shared_context, - total_indexed_human=total_indexed_human, - browsable_datasets=browsable_datasets, + browsable_datasets=settings.RELATON_DATASETS, ))