|
@@ -0,0 +1,83 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+?>
|
|
|
+
|
|
|
+<?php
|
|
|
+
|
|
|
+
|
|
|
+?>
|
|
|
+
|
|
|
+<?php $organism = $node->organism; ?>
|
|
|
+
|
|
|
+<div id="tripal_stock-base-box" class="tripal_stock-info-box tripal-info-box">
|
|
|
+ <div class="tripal_stock-info-box-title tripal-info-box-title">
|
|
|
+ <?php print l($node->stock_name, 'node/'.$node->nid); ?>
|
|
|
+ </div>
|
|
|
+ <div class="tripal_stock-info-box-desc tripal-info-box-desc"></div>
|
|
|
+
|
|
|
+ <?php if($node->is_obsolete == 't'){ ?>
|
|
|
+ <div class="tripal_stock-obsolete">This stock is obsolete and no longer used in analysis, but is here for reference</div>
|
|
|
+ <?php }?>
|
|
|
+ <table class="tripal_stock-table tripal-table tripal-table-vert">
|
|
|
+ <tr class="tripal_stock-table-odd-row tripal-table-even-row">
|
|
|
+ <th>Name</th>
|
|
|
+ <td><?php print $node->stock_name; ?></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tripal_stock-table-odd-row tripal-table-odd-row">
|
|
|
+ <th nowrap>Unique Name</th>
|
|
|
+ <td><?php print $node->uniquename; ?></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tripal_stock-table-odd-row tripal-table-even-row">
|
|
|
+ <th>Internal ID</th>
|
|
|
+ <?php if (!empty($node->main_db_reference->dbxref_id)) { ?>
|
|
|
+ <?php
|
|
|
+ if ($node->main_db_reference->db_urlprefix) {
|
|
|
+ $accession = l($node->main_db_reference->accession, $node->main_db_reference->db_urlprefix.$node->main_db_reference->accession);
|
|
|
+ } else {
|
|
|
+ $accession = $node->main_db_reference->accession;
|
|
|
+ }
|
|
|
+ if ($node->main_db_reference->db_url) {
|
|
|
+ $accession .= ' ('.l($node->main_db_reference->db_name, $node->main_db_reference->db_url).')';
|
|
|
+ } else {
|
|
|
+ $accession .= ' ('.$node->main_db_reference->db_name.')';
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ <td><?php print $accession; ?></td>
|
|
|
+ <?php } else { ?>
|
|
|
+ <td></td>
|
|
|
+ <?php } ?>
|
|
|
+ </tr>
|
|
|
+ <tr class="tripal_stock-table-odd-row tripal-table-odd-row">
|
|
|
+ <th>Type</th>
|
|
|
+ <td><?php print $node->stock_type; ?></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="tripal_stock-table-odd-row tripal-table-even-row">
|
|
|
+ <th>Organism</th>
|
|
|
+ <td>
|
|
|
+ <?php if ($organism->nid) { ?>
|
|
|
+ <a href="<?php print url("node/$organism->nid") ?>"><?php print $organism->genus ." " . $organism->species ." (" .$organism->common_name ." )"?></a>
|
|
|
+ <?php
|
|
|
+ } else {
|
|
|
+ print $organism->genus ." " . $organism->species ." (" .$organism->common_name ." )";
|
|
|
+ } ?>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+</div>
|