Mercurial > hg > documentViewer
diff zpt/head_main.zpt @ 460:76bc2317146f elementtree
more renovation
author | casties |
---|---|
date | Wed, 20 Jul 2011 21:36:57 +0200 |
parents | 027134cca83e |
children | 50a28442f21c |
line wrap: on
line diff
--- a/zpt/head_main.zpt Wed Jul 20 10:22:36 2011 +0200 +++ b/zpt/head_main.zpt Wed Jul 20 21:36:57 2011 +0200 @@ -1,6 +1,4 @@ -<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode python:options.get('viewMode','images')"> - <span tal:condition="not:exists:docinfo/author">(no bibliographical information)</span> - <tal:y tal:condition="exists:docinfo/author"> - <b tal:content="docinfo/author"/>,<i tal:content="docinfo/title"/><i tal:condition="exists:docinfo/year" tal:content="string:,${docinfo/year}"/> - </tal:y> +<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; formattedLabel python:here.metadata.getFormattedLabel(bibdata=docinfo.get('bib',None))"> + <span tal:condition="not:formattedLabel" tal:content="string:(no bibliographical information for ${docinfo/bib_type})"/> + <span tal:condition="formattedLabel" tal:content="structure formattedLabel"/> </tal:block>