changeset 48:6b5b153209bd

has now also a text mode viewMode=text
author dwinter
date Sat, 09 Sep 2006 12:52:59 +0200
parents a80a5140ed83
children a10fff6199b0
files zpt/changeDocumentViewer.zpt zpt/viewer_main.zpt
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/changeDocumentViewer.zpt	Sat Sep 09 12:52:59 2006 +0200
+++ b/zpt/changeDocumentViewer.zpt	Sat Sep 09 12:52:59 2006 +0200
@@ -14,6 +14,10 @@
         <p class="form-element"><input size="80" tal:attributes="value here/digilibBaseUrl" name="digilibBaseUrl"></p>
         <p class="form-text">This information can be automatically detected if the image viewer above is a Zogilib instance.<br/>
         You must clear this field when you change the image viewer URL above.</p>
+        <p class="form-label">Text viewer URL</p>
+        <p class="form-element"><input size="80" tal:attributes="value here/textViewerUrl" name="textViewerUrl"></p>
+        <p class="form-text">Should be an ECHO_xslt instance, full URL up to the '?' (e.g. 'http://echo.mpiwg-berlin.mpg.de/viewText/getPage?')</p>
+        
         <p class="form-optional">Thumbnail rows</p>
         <p class="form-element"><input size="3" tal:attributes="value here/thumbrows | default" name="thumbrows"></p>
         <p class="form-optional">Thumbnail columns</p>
--- a/zpt/viewer_main.zpt	Sat Sep 09 12:52:59 2006 +0200
+++ b/zpt/viewer_main.zpt	Sat Sep 09 12:52:59 2006 +0200
@@ -1,4 +1,4 @@
-<html tal:define="docinfo options/docinfo; pageinfo options/pageinfo">
+<html tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode">
 <head>
 <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@@ -12,7 +12,7 @@
 		<tal:block replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" /> 
     </td>
     <td width="100%" valign="top">
-      <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo)" />
+      <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode)" />
     </td>
   </tr>
 </table>