Changeset 89:3d95ba1bf535 in documentViewer for zpt


Ignore:
Timestamp:
Mar 19, 2010, 11:42:40 AM (14 years ago)
Author:
casties
Branch:
default
Message:

first version with new full-text infrastructure and slightly changed templates

Location:
zpt
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer_main.zpt

    r76 r89  
    1 <html tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode">
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3<html xmlns="http://www.w3.org/1999/xhtml"
     4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode">
    25<head>
    3 <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
    4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     6  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     7  <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
    58</head>
    69<body tal:condition="docinfo/numPages">
     
    1013  <tr>
    1114    <td width="300px" valign="top">
    12                 <tal:block replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" />
     15      <tal:block tal:replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" />
    1316    </td>
    1417    <td width="100%" valign="top">
    15       <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" />
     18      <tal:block tal:condition="python:viewMode=='images'" tal:content="structure python:here.template.page_main_images(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" />
     19      <tal:block tal:condition="python:viewMode.startswith('text')" tal:content="structure python:here.template.page_main_text(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" />
    1620    </td>
    1721  </tr>
Note: See TracChangeset for help on using the changeset viewer.