From f5b79930ad56f62281d7e173f23558178d55215b Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 20 Mar 2022 20:02:57 +0100 Subject: [PATCH] Bugfix remember sort order of series and authors if entered from link below book cover (#2340) --- cps/templates/author.html | 8 ++++---- cps/templates/discover.html | 6 +++--- cps/templates/index.html | 12 ++++++------ cps/templates/languages.html | 2 +- cps/templates/search.html | 6 +++--- cps/templates/shelf.html | 6 +++--- cps/templates/shelfdown.html | 4 ++-- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/cps/templates/author.html b/cps/templates/author.html index fc811368..b691d398 100644 --- a/cps/templates/author.html +++ b/cps/templates/author.html @@ -52,7 +52,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} @@ -60,7 +60,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %} {% for format in entry.data %} @@ -71,7 +71,7 @@

{% if entry.series.__len__() > 0 %}

- + {{entry.series[0].name}} ({{entry.series_index|formatseriesindex}}) @@ -123,7 +123,7 @@

{% if entry.series.__len__() > 0 %}

- + {{entry.series[0].name}} ({{entry.series_index|formatseriesindex}}) diff --git a/cps/templates/discover.html b/cps/templates/discover.html index bceb6a8a..852d6210 100644 --- a/cps/templates/discover.html +++ b/cps/templates/discover.html @@ -25,7 +25,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} @@ -33,13 +33,13 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %}

{% if entry.series.__len__() > 0 %}

- + {{entry.series[0].name}} ({{entry.series_index|formatseriesindex}}) diff --git a/cps/templates/index.html b/cps/templates/index.html index b69a9284..79ee29b6 100644 --- a/cps/templates/index.html +++ b/cps/templates/index.html @@ -24,7 +24,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} @@ -32,13 +32,13 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %}

{% if entry.series.__len__() > 0 %}

- + {{entry.series[0].name}} ({{entry.series_index|formatseriesindex}}) @@ -106,7 +106,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} @@ -114,7 +114,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %} {% for format in entry.data %} @@ -125,7 +125,7 @@

{% if entry.series.__len__() > 0 %}

- + {{entry.series[0].name}} ({{entry.series_index|formatseriesindex}}) diff --git a/cps/templates/languages.html b/cps/templates/languages.html index 8331cb94..c83398d5 100644 --- a/cps/templates/languages.html +++ b/cps/templates/languages.html @@ -23,7 +23,7 @@ {% endif %}

{{lang[1]}}
- +
{% endfor %} diff --git a/cps/templates/search.html b/cps/templates/search.html index a7ba5e68..4f8d607b 100644 --- a/cps/templates/search.html +++ b/cps/templates/search.html @@ -61,7 +61,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} @@ -69,7 +69,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %} {% for format in entry.Books.data %} @@ -80,7 +80,7 @@

{% if entry.Books.series.__len__() > 0 %}

- + {{entry.Books.series[0].name}} ({{entry.Books.series_index|formatseriesindex}}) diff --git a/cps/templates/shelf.html b/cps/templates/shelf.html index 2e4cf906..e5cb2ffb 100644 --- a/cps/templates/shelf.html +++ b/cps/templates/shelf.html @@ -49,7 +49,7 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} @@ -57,13 +57,13 @@ {% if not loop.first %} & {% endif %} - {{author.name.replace('|',',')|shortentitle(30)}} + {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %}

{% if entry.series.__len__() > 0 %}

- + {{entry.series[0].name}} ({{entry.series_index|formatseriesindex}}) diff --git a/cps/templates/shelfdown.html b/cps/templates/shelfdown.html index 78f00b5e..c800dca7 100644 --- a/cps/templates/shelfdown.html +++ b/cps/templates/shelfdown.html @@ -38,7 +38,7 @@

{{entry.title|shortentitle}}

{% for author in entry.ordered_authors %} - {{author.name.replace('|',',')}} + {{author.name.replace('|',',')}} {% if not loop.last %} & {% endif %} @@ -46,7 +46,7 @@

{% if entry.series.__len__() > 0 %}

- + {{entry.series[0].name}} ({{entry.series_index}})