Show
Ignore:
Timestamp:
08/05/10 18:28:38 (22 months ago)
Author:
mauro
Message:

plone4

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plone4bio.base/trunk/src/plone4bio/base/browser/templates/seqrecord.pt

    r78 r149  
    1 <html xmlns="http://www.w3.org/1999/xhtml" 
    2       xmlns:metal="http://xml.zope.org/namespaces/metal" 
    3       xmlns:tal="http://xml.zope.org/namespaces/tal" 
    4       xmlns:i18n="http://xml.zope.org/namespaces/i18n" 
    5       metal:use-macro="context/@@standard_macros/page" 
     1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 
     2      lang="en" 
     3      metal:use-macro="here/main_template/macros/master" 
    64      i18n:domain="plone4bio"> 
    75<head> 
     
    97 
    108<body> 
    11         <div metal:fill-slot="body"> 
    12    
    13     <h1 class="documentFirstHeading" tal:content="context/title" /> 
     9  <div metal:fill-slot="main"> 
     10    <metal:main-macro define-macro="main"> 
    1411 
     12        <div tal:replace="structure provider:plone.abovecontenttitle" /> 
     13 
     14        <h1 tal:content="object_title|nothing" class="documentFirstHeading"> 
     15            Title or id 
     16        </h1> 
     17 
     18        <div tal:replace="structure provider:plone.belowcontenttitle" /> 
     19 
     20        <a href="" 
     21           class="link-parent" 
     22           tal:define="parent_url python:here.navigationParent(here)" 
     23           tal:condition="parent_url" 
     24           tal:attributes="href parent_url" 
     25           i18n:translate="go_to_parent_url"> 
     26        Up one level 
     27        </a> 
     28 
     29        <div tal:replace="structure provider:plone.abovecontentbody" /> 
    1530 
    1631    <table class="listing vertical" summary="Main" style="width:100%"> 
     
    4863    <dl class="enableFormTabbing"> 
    4964                <dt id="fieldsetlegend-annotations" tal:condition="context/annotations">Annotations</dt> 
    50         <dd id="fieldset-annotations" tal:condition="context/annotations" tal:content="structure context/@@annotations" />            
     65        <dd id="fieldset-annotations" tal:condition="context/annotations" tal:content="structure here/@@annotations" />       
    5166        <dt id="fieldsetlegend-features" tal:condition="context/features">Features</dt> 
    52         <dd id="fieldset-features" tal:condition="context/features" tal:content="structure context/@@features" />             
     67        <dd id="fieldset-features" tal:condition="context/features" tal:content="structure here/@@features" />        
    5368        <dt id="fieldsetlegend-dbxrefs" tal:condition="context/dbxrefs">Dbxrefs</dt> 
    54         <dd id="fieldset-dbxrefs" tal:condition="context/dbxrefs" tal:content="structure context/@@dbxrefs" /> 
     69        <dd id="fieldset-dbxrefs" tal:condition="context/dbxrefs" tal:content="structure here/@@dbxrefs" /> 
    5570                <dt id="fieldsetlegend-sequence">Sequences</dt> 
    5671        <dd id="fieldset-sequence"> 
     
    85100                 
    86101        </dd> 
    87         <dt id="fieldsetlegend-references" tal:condition="context/annotations/references|python:False">References</dt> 
    88         <dd id="fieldset-references"  tal:condition="context/annotations/references|python:False"> 
    89              <ul tal:define="annotations context/annotations;" 
    90                  tal:condition="python:annotations.has_key('references')"> 
    91                  <tal:reference  tal:define="references python:annotations['references'];" 
    92                                    tal:repeat="ref references"> 
    93                       <li tal:define="title python:ref.title; 
    94                                       refdict python:{}; 
    95                                       authors python:refdict.update({'Authors' : ref.authors}); 
    96                                       journal python:refdict.update({'Journal' : ref.journal}); 
    97                                       location python:refdict.update({'Location' : ref.location}); 
    98                                       medline python:refdict.update({'Medline' : ref.medline_id}); 
    99                                       pubmed python:refdict.update({'Pubmed' : ref.pubmed_id}); 
    100                                       comment python:refdict.update({'Comment' : ref.comment}); 
    101                                       crc python:refdict.update({'CRC' : ref.consrtm}); 
    102                                       fields python:['Authors','Journal','Comment','Medline','Pubmed','Location','CRC']; 
    103                                       fields python:[x for x in fields if refdict[x]];"> 
    104                              <table class="listing" summary="References" style="width:100%"> 
    105                                         <tr><th colspan="2" tal:content="python:'Title: ' + title"  style="text-align:left" style="width:100%"/></tr> 
     102            <dt id="fieldsetlegend-references" tal:condition="context/annotations/references|nothing">References</dt> 
     103        <dd id="fieldset-references"  tal:condition="context/annotations/references|nothing"> 
     104            <tal:annotations tal:define="annotations context/annotations;" 
     105                            tal:condition="python:annotations.has_key('references')"> 
     106                <tal:reference  tal:define="references python:annotations['references'];" 
     107                                        tal:repeat="ref references"> 
     108                    <div tal:define="title python:ref.title; 
     109                                              refdict python:{}; 
     110                                              authors python:refdict.update({'Authors' : ref.authors}); 
     111                                              journal python:refdict.update({'Journal' : ref.journal}); 
     112                                              location python:refdict.update({'Location' : ref.location}); 
     113                                              medline python:refdict.update({'Medline' : ref.medline_id}); 
     114                                              pubmed python:refdict.update({'Pubmed' : ref.pubmed_id}); 
     115                                              comment python:refdict.update({'Comment' : ref.comment}); 
     116                                              crc python:refdict.update({'CRC' : ref.consrtm}); 
     117                                              fields python:['Authors','Journal','Comment','Medline','Pubmed','Location','CRC']; 
     118                                              fields python:[x for x in fields if refdict[x]];"> 
     119                        <table class="listing" summary="References" style="width:100%"> 
     120                            <tr><th colspan="2" tal:content="python:'Title: ' + title"  style="text-align:left" style="width:100%"/></tr> 
    106121                                        <tal:refdields   tal:repeat="field fields"> 
    107122                                        <tr     tal:define="oddrow repeat/field/odd;" 
     
    134149                                </table> 
    135150 
    136                         </li> 
     151                        </div> 
    137152                 </tal:reference> 
    138              </ul> 
     153            </tal:annotations> 
    139154        </dd> 
    140155    </dl>     
     156    </metal:main-macro> 
     157 
    141158</div> 
    142159</body>