Changeset 536:abd36d4d97b8 in documentViewer for zpt/viewer_index.zpt
- Timestamp:
- Jul 26, 2012, 7:22:56 PM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/viewer_index.zpt
r535 r536 13 13 </head> 14 14 <body tal:condition="numPages"> 15 <h1>Document information</h1> 15 <!-- header --> 16 <div class="page-head"> 17 <metal:block metal:use-macro="here/template/common_template/macros/head" /> 18 </div> 19 20 <!-- main --> 21 <div class="page-body"> 16 22 17 <div class=" index-image">23 <div class="col index-image"> 18 24 <!-- image --> 19 <a tal:define="tp docinfo/titlePage | nothing" 20 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img 21 tal:condition="tp" border="0" 22 tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img 25 <a tal:define="tp docinfo/titlePage | nothing" tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img 26 tal:condition="tp" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img 23 27 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a> 24 28 </div> 25 29 30 <div class="col"> 26 31 <div class="index-info"> 27 32 <table border="0" … … 70 75 </div> 71 76 72 <div> 73 <div> 74 <a class="openbutton" 75 tal:attributes="href python:context.getLink('viewMode','auto')">Access Book</a> 77 <div class="index-actions"> 78 <div class="action"> 79 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">→Access Book</a> 76 80 </div> 77 <div tal:condition="docpath">81 <div class="action" tal:condition="docpath"> 78 82 Download as <a 79 83 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" 80 target="_blank">html</a> / <a 81 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" 82 target="_blank">xml</a> 84 target="_blank">→HTML</a> or <a 85 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">→XML</a> 83 86 </div> 84 <div >87 <div class="action"> 85 88 <!--BEGIN search --> 86 89 <form tal:condition="docpath" tal:attributes="action python:here.getLink()"> 87 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" 88 tal:repeat="param params" 89 tal:attributes="name param; value python:params[param]" /> <input 90 class="textMain" name="query" onfocus="this.select();" type="text" 91 tal:attributes="value query" /> <input type="submit" class="buttonMain" 92 value="Search in Book" /> 90 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params" 91 tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query" onfocus="this.select();" 92 type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" value="Search in Book" /> 93 93 </form> 94 94 <!-- END search--> 95 95 </div> 96 96 </div> 97 < !-- DEBUG -->98 < !-- <p tal:content="python:repr(docinfo)" /> -->97 </div> 98 </div> 99 99 </body> 100 100 <body tal:condition="not:numPages">
Note: See TracChangeset
for help on using the changeset viewer.