Changeset 502:daf36d0fcfee in documentViewer
- Timestamp:
- Feb 16, 2012, 12:53:27 PM (13 years ago)
- Branch:
- elementtree
- Location:
- zpt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/common_template.zpt
r501 r502 16 16 tal:content="string:[no bibliographical information for this document (type ${bibType})]" /> 17 17 <div tal:condition="formattedLabel" tal:content="structure formattedLabel" /> 18 <div class="doclinks"> 19 <a tal:attributes="href python:here.getLink('viewMode','index')">Bibliographical information</a> 20 </div> 18 21 </metal:block> 19 22 <!-- /head --> … … 27 30 leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);"> 28 31 <form class="autosubmit" tal:attributes="action viewerUrl"> 29 <input type="hidden" tal:define="params python:here.getParams('pn', None)" 30 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> 31 page <a tal:condition="leftest" 32 tal:attributes="href python:here.getLink('pn',leftest)">|<</a> <span 33 tal:condition="not:leftest">|<</span> <a tal:condition="left" 34 tal:attributes="href python:here.getLink('pn',left)"><</a> <span 35 tal:condition="not:left"><</span> <input class="autosubmit" size="3" 36 type="text" name="pn" tal:attributes="value pn" /> <span class="originalPage" 37 title="Original page number" 38 tal:define="originalPage pageinfo/pageNumberOrig | nothing" 39 tal:condition="python:originalPage!=None"> (<span 40 tal:replace="originalPage" /><span 41 tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" 42 tal:condition="python:originalPageNorm!=None"> [<span 32 <input type="hidden" tal:define="params python:here.getParams('pn', None)" tal:repeat="param params" 33 tal:attributes="name param; value python:params[param]" /> page <a tal:condition="leftest" 34 tal:attributes="href python:here.getLink('pn',leftest)">|<</a> <span tal:condition="not:leftest">|<</span> <a 35 tal:condition="left" tal:attributes="href python:here.getLink('pn',left)"><</a> <span tal:condition="not:left"><</span> 36 <input class="autosubmit" size="3" type="text" name="pn" tal:attributes="value pn" /> <span class="originalPage" 37 title="Original page number" tal:define="originalPage pageinfo/pageNumberOrig | nothing" 38 tal:condition="python:originalPage!=None"> (<span tal:replace="originalPage" /><span 39 tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" tal:condition="python:originalPageNorm!=None"> [<span 43 40 tal:replace="originalPageNorm" />] 44 41 </span>) 45 </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a 46 tal:condition="right" tal:attributes="href python:here.getLink('pn',right)">></a> 47 <span tal:condition="not:right">></span> <a tal:condition="rightest" 48 tal:attributes="href python:here.getLink('pn',rightest)">>|</a> <span 42 </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a tal:condition="right" 43 tal:attributes="href python:here.getLink('pn',right)">></a> <span tal:condition="not:right">></span> <a 44 tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">>|</a> <span 49 45 tal:condition="not:rightest">>|</span> 50 46 </form> … … 55 51 <metal:block metal:define-macro="toc_ruler"> 56 52 <form class="autosubmit" tal:attributes="action viewerUrl"> 57 <input type="hidden" tal:define="params python:here.getParams('start', None)" 58 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> 59 <a tal:condition="batch/prevStart" 60 tal:attributes="href python:here.getLink('start',batch['prevStart'])"><</a> <span 61 tal:condition="not:batch/prevStart"><</span> 53 <input type="hidden" tal:define="params python:here.getParams('start', None)" tal:repeat="param params" 54 tal:attributes="name param; value python:params[param]" /> <a tal:condition="batch/prevStart" 55 tal:attributes="href python:here.getLink('start',batch['prevStart'])"><</a> <span tal:condition="not:batch/prevStart"><</span> 62 56 <select class="autosubmit" name="start"> 63 <option tal:repeat="grp batch/batches" 64 tal:attributes="selected python:(start==grp['start']); value grp/start" 57 <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start==grp['start']); value grp/start" 65 58 tal:content="string:${grp/start} - ${grp/end}" /> 66 </select> 67 <input type="submit" value="Go" /> <a tal:condition="batch/nextStart" 68 tal:attributes="href python:here.getLink('start',batch['nextStart'])">></a> <span 69 tal:condition="not:batch/nextStart">></span> 59 </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart" 60 tal:attributes="href python:here.getLink('start',batch['nextStart'])">></a> <span tal:condition="not:batch/nextStart">></span> 70 61 </form> 71 62 </metal:block> -
zpt/viewer_index.zpt
r501 r502 32 32 </tal:x> 33 33 34 <tal:x condition=" python:formattedData==None">34 <tal:x condition="not:formattedData"> 35 35 <!-- kein template fuer die daten --> 36 36 <tal:x condition="exists:docinfo/bib"> … … 76 76 </div> 77 77 <div tal:condition="docpath"> 78 Download :<a78 Download as <a 79 79 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" 80 80 target="_blank">html</a> / <a -
zpt/viewer_text.zpt
r501 r502 30 30 flowLtr python:pageinfo.get('pageFlow','ltr')!='rtl'; 31 31 textPage python:here.getTextPage(mode=viewType, pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';"> 32 <!-- header --> 32 33 <div class="page-head"> 33 34 <metal:block metal:use-macro="here/template/common_template/macros/head" />
Note: See TracChangeset
for help on using the changeset viewer.