$def with (works_json, authors_json, works_count, owner_key, owner_name, shelf_path, shelf_key, lang='en') $ reading_log_stats_config = { $ 'works': works_json, $ 'authors': authors_json, $ 'lang': lang, $ 'charts_selector': '.readinglog-stats-chart' $ } $ shelf_name = unicode(render_template('account/readinglog_shelf_name', shelf_key)).strip(); $var title: $_('My %(shelf_name)s Stats', shelf_name=shelf_name) $jsdef render_works_list(works): $jsdef render_excluded_works_list(works, total):
$len(works) works excluded due to missing data $:render_works_list(works)
$_("My Books") » $shelf_name »

$_('My %(shelf_name)s Stats', shelf_name=shelf_name)

$:_('Displaying stats about %(works_count)d books. Note all charts show only the top 20 bars. Note reading log stats are private.', works_count=works_count)

$_("Author Stats")

$code: charts = [ { 'title': _('Most Read Authors'), 'type': 'work-chart', 'key': 'authors[].name' }, { 'title': _('Works by Author Sex'), 'type': 'wd-chart', 'key': 'authors[].wd.sexLabel[].value' }, { 'title': _('Works by Author Country of Citizenship'), 'type': 'wd-chart', 'key': 'authors[].wd.country_of_citizenshipLabel[].value' }, { 'title': _('Works by Author Country of Birth'), 'type': 'wd-chart', 'key': 'authors[].wd.country_of_birthLabel[].value' }, ] $for chart in charts:

$chart['title']

$:_('Demographic statistics powered by Wikidata. Here\'s a sample of the query used.
Improve these stats by adding the Wikidata author identifier following these instructions.')

$_("Work Stats")

$code: charts = [ { 'title': _('Works by Subject'), 'type': 'work-chart', 'key': 'subjects', 'exclude': ['Accessible book', 'Protected DAISY', 'In library', 'Lending library'] }, { 'title': _('Works by People'), 'type': 'work-chart', 'key': 'subject_people' }, { 'title': _('Works by Places'), 'type': 'work-chart', 'key': 'subject_places' }, { 'title': _('Works by Time Period'), 'type': 'work-chart', 'key': 'subject_times' }, ] $for chart in charts:

$chart['title']

$_("Matching works")
$_("Click on a bar to see matching works")