| 1 | | <tal:annotations tal:define="annotations context/annotations; |
| 2 | | keys python:annotations.keys(); |
| 3 | | keystoignore python:[x for x in keys if x[-7:] == 'protein' ]; |
| 4 | | keys python:list(set(keys).difference(['references','dbxref','dates','gi','id']+keystoignore)); |
| 5 | | keysgroups python:[x.split('_')[0] for x in keys]; |
| 6 | | keysgroups python:list(set(keysgroups)); |
| 7 | | sorting python:keysgroups.sort()" |
| 8 | | tal:repeat="keygroup keysgroups"> |
| 9 | | <dl tal:attributes="id string:group-${keygroup}" class="collapsible inline collapsedOnLoad"> |
| 10 | | <dt class="collapsibleHeader" tal:content="keygroup">keygroup</dt> |
| 11 | | <dd class="collapsibleContent"> |
| 12 | | <table class="listing" summary="Annotations" style="width:100%"> |
| 13 | | <tr><th colspan="2" tal:content="keygroup" style="text-align:left" style="width:100%"/></tr> |
| 14 | | <tal:annotgroup tal:define="subannots python:[key for key in keys if key.startswith(keygroup)]; |
| 15 | | sorting python:subannots.sort();" |
| 16 | | tal:repeat="subannot subannots"> |
| 17 | | <tr style="width:100%" |
| 18 | | tal:define="oddrow repeat/subannot/odd; |
| | 1 | <div id="accordion-annotations"> |
| | 2 | <tal:annotations tal:define="annotations context/annotations; |
| | 3 | keys python:annotations.keys(); |
| | 4 | keystoignore python:[x for x in keys if x[-7:] == 'protein' ]; |
| | 5 | keys python:list(set(keys).difference(['references','dbxref','dates','gi','id']+keystoignore)); |
| | 6 | keysgroups python:[x.split('_')[0] for x in keys]; |
| | 7 | keysgroups python:list(set(keysgroups)); |
| | 8 | sorting python:keysgroups.sort()" |
| | 9 | tal:repeat="keygroup keysgroups"> |
| | 10 | <h3><a href="#" tal:content="keygroup">keygroup</a></h3> |
| | 11 | <div> |
| | 12 | <table class="listing" summary="Annotations" style="width:100%"> |
| | 13 | <tal:annotgroup tal:define="subannots python:[key for key in keys if key.startswith(keygroup)]; |
| | 14 | sorting python:subannots.sort();" |
| | 15 | tal:repeat="subannot subannots"> |
| | 16 | <tr tal:define="oddrow repeat/subannot/odd; |