Skip to content

Commit

Permalink
fix: taibol scientific name italic
Browse files Browse the repository at this point in the history
  • Loading branch information
moogoo78 committed Sep 1, 2024
1 parent b6cb4a1 commit 26ce146
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/static/sites/taibol/js/data-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down
2 changes: 1 addition & 1 deletion app/templates/sites/taibol/specimen-detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h2>{% if entity.collection.name == "sample_material" %}遺傳物質{% elif enti
<dt class="col-sm-3">科名</dt>
<dd class="col-sm-9">{{ entity.source_data.family_name }}</dd>
<dt class="col-sm-3">物種學名</dt>
<dd class="col-sm-9">{{ entity.source_data.species_name }}</dd>
<dd class="col-sm-9"><i>{{ entity.source_data.species_name }}</i></dd>
<dt class="col-sm-3">物種中文名</dt>
<dd class="col-sm-9">{{ entity.source_data.species_name_zh }}</dd>
<dt class="col-sm-3">發育階段</dt>
Expand Down

0 comments on commit 26ce146

Please sign in to comment.