From c703e2e4fffc8976fa0085b4ff5d5ea5df06452d Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Jun 2023 19:57:10 -0400 Subject: [PATCH] animate the unhide and sort related books --- catalog/book/models.py | 1 + catalog/templates/search_results.html | 4 ++-- common/static/scss/_common.scss | 12 ++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/catalog/book/models.py b/catalog/book/models.py index 53ec76c3..2d96776b 100644 --- a/catalog/book/models.py +++ b/catalog/book/models.py @@ -171,6 +171,7 @@ class Edition(Item): .exclude(pk=self.pk) .exclude(is_deleted=True) .exclude(merged_to_item__isnull=False) + .order_by("title") ) diff --git a/catalog/templates/search_results.html b/catalog/templates/search_results.html index 7cec4c94..edcad4af 100644 --- a/catalog/templates/search_results.html +++ b/catalog/templates/search_results.html @@ -84,9 +84,9 @@ {% if dup_items %}

- 已从结果中略去了来自同一著作或有相同标识号的 {{ dup_items|length }}个条目,点击这里可重新显示 + 已从结果中略去了来自同一著作或有相同标识号的 {{ dup_items|length }}个条目,点击这里可重新显示

-