Skip to content

Commit 05c23c4

Browse files
committed
Fix #61
1 parent 7ec5989 commit 05c23c4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/py_semantic_taxonomy/adapters/routers/templates/concept_scheme_view.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ <h2 class="text-lg font-medium" style="color: var(--text-color)">Concepts</h2>
9999
<h2 class="text-lg font-medium" style="color: var(--text-color)">Scheme Information</h2>
100100
</div>
101101
<div class="px-4 py-5 sm:p-6 space-y-4" style="background-color: var(--nav-bg)">
102+
<!-- IRI -->
103+
<div>
104+
<h3 class="text-sm font-medium" style="color: var(--text-secondary)">IRI</h3>
105+
<p class="mt-1 text-sm" style="color: var(--text-color)" title="{{ concept_scheme.id_ }}" id="cs_iri_clicker">{{ concept_scheme.id_|short_iri }} <i class="fas fa-copy mr-2" id="cs_iri_clicker_icon"></i></p>
106+
</div>
107+
102108
<!-- Description -->
103109
<div>
104110
<h3 class="text-sm font-medium" style="color: var(--text-secondary)">Description</h3>
@@ -163,5 +169,10 @@ <h3 class="text-sm font-medium" style="color: var(--text-secondary)">Notation</h
163169
document.getElementById('language').addEventListener('change', function(e) {
164170
window.location.href = e.target.value;
165171
});
172+
173+
var iri_clicker = document.getElementById("cs_iri_clicker");
174+
iri_clicker.onclick = function(){
175+
navigator.clipboard.writeText("{{ concept_scheme.id_ }}").then(this.querySelector('#cs_iri_clicker_icon').classList.replace("fa-copy", "fa-check"))
176+
};
166177
</script>
167178
{% endblock %}

0 commit comments

Comments
 (0)