From 26ce146ee9dba0d006f71149589c8036f6fac693 Mon Sep 17 00:00:00 2001 From: MooGoo Date: Sun, 1 Sep 2024 23:40:10 +0800 Subject: [PATCH] fix: taibol scientific name italic --- app/static/sites/taibol/js/data-search.js | 5 ++++- app/templates/sites/taibol/specimen-detail.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/static/sites/taibol/js/data-search.js b/app/static/sites/taibol/js/data-search.js index 2a6afd0..036be7b 100644 --- a/app/static/sites/taibol/js/data-search.js +++ b/app/static/sites/taibol/js/data-search.js @@ -81,8 +81,11 @@ let link = document.createElement('a'); //console.log(x); link.href = `/records/${item.record_id}`; - link.textContent = x.species_name; + //link.textContent = x.species_name; //td[0].textContent = x.species_name; + let italicFont = document.createElement('i'); + italicFont.textContent = x.species_name; + link.appendChild(italicFont); td[0].appendChild(link); td[1].textContent = (params.get('collection') === 'material_sample') ? x.unit_id : x.voucher_id; td[2].innerHTML = `${x.kingdom_name_zh}${x.kingdom_name}`; diff --git a/app/templates/sites/taibol/specimen-detail.html b/app/templates/sites/taibol/specimen-detail.html index eb12d3d..3578db8 100644 --- a/app/templates/sites/taibol/specimen-detail.html +++ b/app/templates/sites/taibol/specimen-detail.html @@ -46,7 +46,7 @@

{% if entity.collection.name == "sample_material" %}遺傳物質{% elif enti
科名
{{ entity.source_data.family_name }}
物種學名
-
{{ entity.source_data.species_name }}
+
{{ entity.source_data.species_name }}
物種中文名
{{ entity.source_data.species_name_zh }}
發育階段