Changeset 480:50a28442f21c in documentViewer for zpt/head_main.zpt


Ignore:
Timestamp:
Aug 15, 2011, 7:09:08 PM (13 years ago)
Author:
casties
Branch:
elementtree
Message:

more new template stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/head_main.zpt

    r460 r480  
    1 <tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; formattedLabel python:here.metadata.getFormattedLabel(bibdata=docinfo.get('bib',None))">
    2   <span tal:condition="not:formattedLabel" tal:content="string:(no bibliographical information for ${docinfo/bib_type})"/>
    3   <span tal:condition="formattedLabel" tal:content="structure formattedLabel"/>
    4 </tal:block>
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3<html xmlns="http://www.w3.org/1999/xhtml">
     4<head>
     5<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     6</head>
     7<body>
     8  <!-- block used for page header content area -->
     9  <metal:block metal:define-macro="main"
     10    tal:define="docpath docinfo/textURLPath | nothing;
     11               query here/REQUEST/query | nothing;
     12               queryType here/REQUEST/queryType | nothing;
     13               bib docinfo/bib | nothing; bibType docinfo/bibType | nothing;
     14               formattedLabel python:here.metadataService.getBibFormattedLabel(bibdata=bib);">
     15    <span tal:condition="not:formattedLabel"
     16      tal:content="string:(no bibliographical information for ${bibType})" />
     17    <span tal:condition="formattedLabel" tal:content="structure formattedLabel" />
     18  </metal:block>
     19</body>
     20</html>
Note: See TracChangeset for help on using the changeset viewer.