From f8650bbb1c5c67b72aa06935d70f0e5231a40398 Mon Sep 17 00:00:00 2001 From: Davidzdh <30859354+Guanchishan@users.noreply.github.com> Date: Sun, 13 Oct 2024 19:02:33 +0900 Subject: [PATCH 1/2] show Wikidata link on author page Supporting Wikidata is very wonderful. And how about make Wikidata link visible on author page? Modified bookwyrm\templates\author\author.html --- bookwyrm/templates/author/author.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bookwyrm/templates/author/author.html b/bookwyrm/templates/author/author.html index e24a77dcd..3fb0d1826 100644 --- a/bookwyrm/templates/author/author.html +++ b/bookwyrm/templates/author/author.html @@ -73,6 +73,14 @@ {% endif %} + {% if author.wikidata %} +
+ + {% trans "View on Wikidata" %} + +
+ {% endif %} + {% if author.website %}
From 0a3fc58669d8ccb471b4167b1e4b32a78da5104b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 17 Oct 2024 15:18:48 -0700 Subject: [PATCH 2/2] Check for wikidata when determining if links are present --- bookwyrm/templates/author/author.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/author/author.html b/bookwyrm/templates/author/author.html index 3fb0d1826..043f3fa54 100644 --- a/bookwyrm/templates/author/author.html +++ b/bookwyrm/templates/author/author.html @@ -28,7 +28,7 @@ {% firstof author.aliases author.born author.died as details %} - {% firstof author.wikipedia_link author.website author.openlibrary_key author.inventaire_id author.isni author.isfdb as links %} + {% firstof author.wikipedia_link author.website author.openlibrary_key author.inventaire_id author.isni author.isfdb author.wikidata as links %} {% if details or links %}
{% if details %}