Commits

Sam Adams  committed 5d9249c

Make InChI and InChIKey optional

  • Participants
  • Parent commits b3310e8

Comments (0)

Files changed (1)

File compchem-handler/src/main/resources/net/chempound/compchem/templates/comp.ftl

 
         <dl class="identifier">
             <dt>InChI:</dt>
-            <dd>${calculation.inchi}</dd>
+            <dd>${calculation.inchi!"<i>unknown</i>"}</dd>
             <dt>InChIKey:</dt>
-            <dd>${calculation.inchiKey}
+            <dd><#if calculation.inchiKey??>${calculation.inchiKey}
                 <a href="${URI_BASE}/search/?search_provider=structure&inchi_key=${calculation.inchiKey}&submit=search"">[?]</a></dd>
+            <#else><i>unknown</i></#if>
         </dl>
         <div class="clear"></div>