Skip to content
Snippets Groups Projects
Commit ac5b3a73 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

minor tweaks to biblio cards visualisation

Former-commit-id: a05619d1f39f4feb08ca2ee1e165600561cf784f
parent a92c66d9
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,10 @@
function display(smiles_id, viewer_id) {
var smi = document.getElementById(smiles_id).value;
var chemViewer = new Kekule.ChemWidget.Viewer(document.getElementById(viewer_id));
chemViewer.setEnableToolbar(false)
.setEnableDirectInteraction(false)
.setEnableEdit(false)
.setToolButtons([]);
var mol = Kekule.IO.loadFormatData(smi, "smi");
chemViewer.setChemObj(mol);
console.log(smi);
......@@ -57,7 +61,7 @@
<div class="card">
<div class="card-body">
<div id="{{ compound_biblio.id }}_smilesdisplay"
data-widget="Kekule.ChemWidget.Viewer2D" data-enable-toolbar="true" data-auto-size="true" data-padding="20"
data-widget="Kekule.ChemWidget.Viewer2D" data-auto-size="true" data-padding="20"
data-toolbar-evoke-modes="[0]">
</div>
<textarea rows="10" cols="50" id="{{ compound_biblio.id }}_smilesvalue" style="display:none;">{{ compound_biblio.compound.canonical_smile }}</textarea>
......
......@@ -12,11 +12,20 @@
<div id="content" class="main-content">
<main role="main">
{% if bibliographies %}
<ul>
<table class="table">
<thead class="thead-light">
<tr>
<th scope="col">Title</th>
</tr>
</thead>
<tbody>
{% for biblio in bibliographies %}
<li><a href="/biblio/{{ biblio.source }}{{ biblio.id_source}}">{{ biblio.title }}</a></li>
<tr>
<td><a href="/biblio/{{ biblio.source }}{{ biblio.id_source}}">{{ biblio.title }}</a></td>
</tr>
{% endfor %}
</ul>
</tbody>
</table>
{% else %}
<p>No bibliographies available.</p>
{% endif %}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment