Changeset 485:1e51d440f08b in documentViewer
- Timestamp:
- Aug 22, 2011, 9:12:42 AM (13 years ago)
- Branch:
- elementtree
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
css/docuviewer.css
r484 r485 1 1 2 div.page _body {2 div.page-body { 3 3 display: table-row; 4 4 } 5 div.col _left {5 div.col-left { 6 6 display: table-cell; 7 7 vertical-align: top; 8 8 } 9 div.col _main {9 div.col-main { 10 10 display: table-cell; 11 11 vertical-align: top; 12 12 } 13 div.col _right {13 div.col-right { 14 14 display: table-cell; 15 15 vertical-align: top; 16 16 } 17 17 18 div.col _left {18 div.col-left { 19 19 max-width: 20em; 20 20 } 21 21 22 div.col _left .thumb {22 div.col-left .thumb { 23 23 padding: 3px; 24 24 } 25 div.col _left .thumbsel {25 div.col-left .thumbsel { 26 26 padding: 2px; 27 27 border: 1px solid blue; 28 28 } 29 div.col _left .thumbcap {29 div.col-left .thumbcap { 30 30 color: black; 31 31 } 32 32 33 div.col _left .toc {33 div.col-left .toc { 34 34 float:left; 35 35 clear:right; 36 36 } 37 div.col _left .toc.float.right {37 div.col-left .toc.float.right { 38 38 float:right; 39 39 } -
zpt/viewer_images.zpt
r483 r485 51 51 left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev); 52 52 leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);"> 53 <div class="page _head" metal:use-macro="here/template/head_main/macros/main" />54 <div class="page _body" tal:condition="python:here.isAccessible(docinfo)">53 <div class="page-head" metal:use-macro="here/template/head_main/macros/main" /> 54 <div class="page-body" tal:condition="python:here.isAccessible(docinfo)"> 55 55 <!--table of contents--> 56 <div class="col _left" metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" />56 <div class="col-left" metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" /> 57 57 <!-- text page --> 58 <div class="col _main">58 <div class="col-main"> 59 59 <div class="ruler"> 60 60 <form class="autosubmit" tal:attributes="action viewerUrl"> … … 86 86 </div> 87 87 </div> <!-- content --> 88 </div> <!-- col _main -->89 <div class="col _right">88 </div> <!-- col-main --> 89 <div class="col-right"> 90 90 BUTTONS 91 91 </div> 92 </div> <!-- page _body -->93 <div class="page _body" tal:condition="python:not here.isAccessible(docinfo)">92 </div> <!-- page-body --> 93 <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)"> 94 94 <div class="errortext">Sorry, access to this document is restricted.</div> 95 95 </div> -
zpt/viewer_text.zpt
r483 r485 19 19 leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first); 20 20 textPage python:here.getTextPage(mode=viewType, pn=pn, docinfo=docinfo, pageinfo=pageinfo);"> 21 <div class="page _head" metal:use-macro="here/template/head_main/macros/main" />22 <div class="page _body" tal:condition="python:here.isAccessible(docinfo)">21 <div class="page-head" metal:use-macro="here/template/head_main/macros/main" /> 22 <div class="page-body" tal:condition="python:here.isAccessible(docinfo)"> 23 23 <!--table of contents--> 24 <div class="col _left"24 <div class="col-left" 25 25 metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" /> 26 26 27 <!-- text page --> 27 <div class="col _main">28 <div class="col-main"> 28 29 <div class="ruler"> 29 30 <form class="autosubmit" tal:attributes="action viewerUrl"> … … 59 60 <tal:block tal:replace="structure textPage"/> 60 61 </div> 61 </div> 62 </div> 62 </div> <!-- col-main --> 63 64 <!-- right-side options --> 65 <div class="col-right"> 66 <!--"BEGIN TEXT DISPLAY" --> 67 <div class="options"> 68 <h3>Text display</h3> 69 <form tal:attributes="action viewerUrl" class="autosubmit"> 70 <input type="hidden" tal:define="params python:here.getParams(params={'viewType':None})" tal:repeat="param params" tal:attributes="name param; value python:params[param]"/> 71 <input class="autosubmit" type="radio" name="viewType" value="" tal:attributes="checked python:viewType!='xml'"/> Text<br/> 72 <span class="optionsText" tal:condition="python:viewType!='xml'"> 73 <input type="checkbox" class="autosubmit" name="viewType" value="dict" tal:attributes="checked python:viewType=='dict'"/> Dictionary<br/> 74 </span> 75 <span class="optionsText" tal:condition="python:viewType!='xml' and docinfo.get('numPlaces',0)"> 76 <input type="checkbox" class="autosubmit" name="viewType" value="gis" tal:attributes="checked python:viewType=='gis'"/> Places<br/> 77 </span> <input type="radio" class="autosubmit" name="viewType" tal:attributes="value string:xml; checked python:viewType=='xml'"/> XML<br/> 78 <input type="submit" value="Go!"/> 79 </form> 80 </div> 81 <!--"END TEXT DISPLAY"--> 82 83 <!--"BEGIN TEXT SIZE"--> 84 <div class="options"> 85 <h4>Text size</h4> 86 <div class="fsizer"> 87 88 <a href="javascript:fontSize(12);" class="fs_sml">A</a> 89 <a href="javascript:fontSize(14);" class="fs_med">A</a> 90 <a href="javascript:fontSize(16);" class="fs_lrg">A</a> 91 </div> 92 </div> 93 <!--"END TEXT SIZE"--> 94 95 <!--"BEGIN DICTIONARY OVERVIEW"--> 96 <div class="options" tal:condition="python:viewType=='dict'"> 97 <h4>Dictionary view</h4> 98 <form name="f3" action=""> 99 <input type="radio" name="r3"/>Tab<br/> 100 <input type="radio" name="r3"/>Window<br/> 101 </form> 102 </div> 103 <!--"END DICTIONARY OVERVIEW"--> 104 105 <!--"BEGIN TEXT NORMALIZATION"--> 106 <div class="options" tal:condition="python:viewType!='xml'"> 107 <h4>Text normalization</h4> 108 <form tal:attributes="action viewerUrl" class="autosubmit" 109 tal:define="norm python:pageinfo.get('characterNormalization','regPlusNorm');"> 110 <input type="hidden" tal:define="params python:here.getParams('characterNormalization',None)" tal:repeat="param params" tal:attributes="name param; value python:params[param]"/> 111 <input type="radio" class="autosubmit" name="characterNormalization" value="orig" tal:attributes="checked python:norm=='orig'"/> Original<br/> 112 <input type="radio" class="autosubmit" name="characterNormalization" value="reg" tal:attributes="checked python:norm=='reg'"/> Regularized<br/> 113 <input type="radio" class="autosubmit" name="characterNormalization" value="regPlusNorm" tal:attributes="checked python:norm=='regPlusNorm'"/> Normalized<br/> 114 <input type="submit" value="Go!"/> 115 </form> 116 </div> 117 <!--"END TEXT NORMALIZATION"--> 118 119 <!--"BEGIN PLACES"--> 120 <div class="options" tal:condition="python:viewType=='gis'"> 121 <tal:block tal:define="gisPlaces python:here.getGisPlaces(docinfo=docinfo, pageinfo=pageinfo); gisAllPlaces python:here.getAllGisPlaces(docinfo=docinfo, pageinfo=pageinfo);"> 122 <span><b>Places</b></span><BR/>(Link to extern:)<BR/> 123 <span>Page</span> 124 <span style="float:right"> 125 <a tal:attributes="href python:'http://chinagis.mpiwg-berlin.mpg.de/chinagis/REST/db/mpdl/%s?id=%s&format=%s'%(name,gisPlaces,'gis')" target="_blank"> 126 <img src="images/arrow.png" alt=""/> 127 </a> 128 </span><BR/> 129 <span>Book</span> 130 <span style="float:right"> 131 <a tal:attributes="href python:'http://chinagis.mpiwg-berlin.mpg.de/chinagis/REST/db/mpdl/%s?format=%s'%(name,'gis')" target="_blank"> 132 <img src="images/arrow.png" alt=""/> 133 </a> 134 </span><BR/> 135 </tal:block> 136 </div> 137 <!--"END PLACES"--> 138 </div> <!-- col-right --> 139 140 </div> <!-- page-body --> 63 141 <div class="page_body" tal:condition="python:not here.isAccessible(docinfo)"> 64 142 <div class="errortext">Sorry, access to this document is restricted.</div>
Note: See TracChangeset
for help on using the changeset viewer.