Changeset 543:6cdc31e9ed8e in documentViewer for zpt/viewer_index.zpt


Ignore:
Timestamp:
Aug 22, 2012, 2:25:38 PM (12 years ago)
Author:
casties
Branch:
default
Message:

fixed problem with dict-mode in default view.
added configurable footer and logo in site_template.pt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer_index.zpt

    r542 r543  
    128128      </div>
    129129
    130       <div class="options">
     130      <div class="options" tal:condition="docpath">
    131131        <h4>Search</h4>
    132132        <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action viewerUrl">
    133           <input type="hidden" tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewMode':None,'viewLayer':None})"
    134             tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> <input type="hidden"
    135             name="viewLayer" value="search" />
     133          <input type="hidden" tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewMode':None,'viewLayer':'search'})"
     134            tal:repeat="param params" tal:attributes="name param; value python:params[param]" />
    136135          <!-- query text -->
    137136          <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a
     
    150149      </div>
    151150      <!-- end search options-->
    152       <!--BEGIN search
    153           <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action python:here.getLink()">
    154             <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"
    155               tal:attributes="name param; value python:params[param]" /> <input type="hidden" name="viewLayer" value="search" />
    156             <input type="text" name="query" tal:attributes="value query" /> <input type="submit" value="Search full document" /> <a
    157               tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a><br /> <input type="radio"
    158               name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> Exact <input type="radio"
    159               name="queryType" value="fulltextMorph" tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms <input
    160               type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> Fulltext index
    161             <input type="radio" name="queryType" value="ftIndexMorph" tal:attributes="checked python:queryType=='ftIndexMorph'" />
    162             Morphological index
    163           </form>
    164           END search-->
    165151    </div>
    166152  </div>
     153  <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer">
     154    <!-- footer -->
     155    <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/>
     156  </tal:block>
     157 
    167158</body>
    168159<body tal:condition="not:numPages">
    169160  <div class="errortext">Sorry, document doesn't exist.</div>
     161  <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer">
     162    <!-- footer -->
     163    <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/>
     164  </tal:block>
    170165</body>
    171166</html>
Note: See TracChangeset for help on using the changeset viewer.