view zpt/head_main.zpt @ 79:df6952ac93e9 Root_integrate_imageArchive

bug in getDocInforFromImagePath, relative lage der index.meta zu path war falsch.
author dwinter
date Mon, 09 Mar 2009 09:37:19 +0100
parents 3b3c7cadd013
children 4938ce551ae8
line wrap: on
line source

<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:x tal:condition="python:viewMode=='text'">
  <a target="_blank" tal:attributes="href string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}">view image</a>
  <a target="_blank" tal:attributes="href string:${here/textViewerUrl}/getPage?fn=${docinfo/imagePath}&_pn=${pageinfo/current}">show xml</a>
  </tal:x>
</tal:block>