Changeset 485:1e51d440f08b in documentViewer


Ignore:
Timestamp:
Aug 22, 2011, 9:12:42 AM (13 years ago)
Author:
casties
Branch:
elementtree
Message:

more new templates

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • css/docuviewer.css

    r484 r485  
    11
    2 div.page_body {
     2div.page-body {
    33    display: table-row;
    44}
    5 div.col_left {
     5div.col-left {
    66    display: table-cell;
    77    vertical-align: top;
    88}
    9 div.col_main {
     9div.col-main {
    1010    display: table-cell;
    1111    vertical-align: top;
    1212}
    13 div.col_right {
     13div.col-right {
    1414    display: table-cell;
    1515    vertical-align: top;
    1616}
    1717
    18 div.col_left {
     18div.col-left {
    1919    max-width: 20em;
    2020}
    2121
    22 div.col_left .thumb {
     22div.col-left .thumb {
    2323    padding: 3px;
    2424}
    25 div.col_left .thumbsel {
     25div.col-left .thumbsel {
    2626    padding: 2px;
    2727    border: 1px solid blue;
    2828}
    29 div.col_left .thumbcap {
     29div.col-left .thumbcap {
    3030    color: black;
    3131}
    3232
    33 div.col_left .toc {
     33div.col-left .toc {
    3434    float:left;
    3535    clear:right;
    3636}
    37 div.col_left .toc.float.right {
     37div.col-left .toc.float.right {
    3838    float:right;
    3939}
  • zpt/viewer_images.zpt

    r483 r485  
    5151              left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev);
    5252              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)">
    5555      <!--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)" />
    5757      <!-- text page -->
    58       <div class="col_main">
     58      <div class="col-main">
    5959        <div class="ruler">
    6060          <form class="autosubmit" tal:attributes="action viewerUrl">
     
    8686          </div>
    8787        </div> <!-- content -->
    88       </div> <!-- col_main -->
    89       <div class="col_right">
     88      </div> <!-- col-main -->
     89      <div class="col-right">
    9090        BUTTONS
    9191      </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)">
    9494      <div class="errortext">Sorry, access to this document is restricted.</div>
    9595    </div>
  • zpt/viewer_text.zpt

    r483 r485  
    1919              leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);
    2020              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)">
    2323    <!--table of contents-->
    24     <div class="col_left"
     24    <div class="col-left"
    2525      metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" />
     26
    2627    <!-- text page -->
    27     <div class="col_main">
     28    <div class="col-main">
    2829      <div class="ruler">
    2930        <form class="autosubmit" tal:attributes="action viewerUrl">
     
    5960        <tal:block tal:replace="structure textPage"/>
    6061      </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                &nbsp;&nbsp;<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                &nbsp;&nbsp;<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          &nbsp;
     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 -->
    63141  <div class="page_body" tal:condition="python:not here.isAccessible(docinfo)">
    64142    <div class="errortext">Sorry, access to this document is restricted.</div>
Note: See TracChangeset for help on using the changeset viewer.