Changeset 49:a10fff6199b0 in documentViewer for zpt


Ignore:
Timestamp:
Sep 11, 2006, 2:43:09 PM (18 years ago)
Author:
dwinter
Branch:
default
Message:

verbesserung fŸr text unterstŸtzung, text kann jetzt aus url kommen, sprache bisher nur deutsch

Location:
zpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zpt/head_main.zpt

    r26 r49  
    1 <tal:block tal:define="docinfo options/docinfo">
     1<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode python:options.get('viewMode','images')">
    22  <span tal:condition="not:exists:docinfo/author">(no bibliographical information)</span>
    33  <tal:y tal:condition="exists:docinfo/author">
    44    <b tal:content="docinfo/author"/>,<i tal:content="docinfo/title"/>,<i tal:content="docinfo/year"/>
    55  </tal:y>
     6  <tal:x tal:condition="python:viewMode=='text'">
     7  <a target="_blank" tal:attributes="href string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}">view image</a>
     8  </tal:x>
    69</tal:block>
  • zpt/viewer_main.zpt

    r48 r49  
    55</head>
    66<body tal:condition="docinfo/numPages">
    7 <div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/>
     7<div tal:replace="structure python:here.template.head_main(docinfo=docinfo,viewMode=viewMode,pageinfo=pageinfo)"/>
    88<tal:block tal:condition="python:here.isAccessible(docinfo)">
    99<table border="0" width="100%" height="100%">
Note: See TracChangeset for help on using the changeset viewer.