Mercurial > hg > documentViewer
diff zpt/viewer_index.zpt @ 502:daf36d0fcfee elementtree
more cleanup.
author | casties |
---|---|
date | Thu, 16 Feb 2012 13:53:27 +0100 |
parents | 29c6d09a506c |
children | 29f2172db368 |
line wrap: on
line diff
--- a/zpt/viewer_index.zpt Wed Feb 15 17:57:02 2012 +0100 +++ b/zpt/viewer_index.zpt Thu Feb 16 13:53:27 2012 +0100 @@ -31,7 +31,7 @@ <tr tal:replace="structure python:formattedData" /> </tal:x> - <tal:x condition="python:formattedData==None"> + <tal:x condition="not:formattedData"> <!-- kein template fuer die daten --> <tal:x condition="exists:docinfo/bib"> <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo"> @@ -75,7 +75,7 @@ tal:attributes="href python:context.getLink('viewMode','auto')">Access Book</a> </div> <div tal:condition="docpath"> - Download: <a + Download as <a tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" target="_blank">html</a> / <a tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)"