Changeset 539:37d122560028 in documentViewer for zpt/viewer_index.zpt


Ignore:
Timestamp:
Aug 15, 2012, 2:59:45 PM (12 years ago)
Author:
casties
Branch:
default
Message:

more nicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer_index.zpt

    r538 r539  
    3131    <div class="col">
    3232      <div class="index-info">
     33        <h2>Bibliographical information</h2>
    3334        <table border="0"
    3435          tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
     
    6667        </table>
    6768
    68         <table tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
     69        <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
     70        <h2>Permanent URL</h2>
     71        <table>
    6972          <tr>
    7073            <td class="type">Document ID:</td>
     
    7780          </tr>
    7881        </table>
     82        </tal:block>
    7983
    80         <table border="0">
     84        <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
     85        <h2>Copyright information</h2>
     86        <table border="0" tal:condition="attribution | copyright">
    8187          <!-- attribution -->
    82           <tr tal:condition="exists:docinfo/attribution"
    83             tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=docinfo['attribution'])" />
     88          <tr tal:condition="attribution"
     89            tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
    8490          <!-- copyright -->
    85           <tr tal:condition="exists:docinfo/copyright"
    86             tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" />
     91          <tr tal:condition="copyright"
     92            tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
    8793        </table>
     94        <table border="0" tal:condition="not:attribution | copyright">
     95          <tr><td></td></tr>
     96        </table>       
     97        </tal:block>
    8898      </div>
    8999
Note: See TracChangeset for help on using the changeset viewer.