Changeset 542:dbaa7dce60a5 in documentViewer
- Timestamp:
- Aug 21, 2012, 11:28:35 AM (13 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
css/docuviewer.css
r540 r542 234 234 margin-bottom: 0.5em; 235 235 } 236 div.col.buttons ul.list { 237 list-style-type: inherit; 238 padding-left: inherit; 239 } 240 div.col.buttons ul.list li { 241 margin-left: 1em; 242 } 236 243 div.options.digilib li img { 237 244 vertical-align: middle; … … 296 303 max-width: 30em; 297 304 } 298 div.index-actions {299 float: left;300 border: 1px solid silver;301 padding: 1em;302 margin-top: 2em;303 }304 div.index-actions div.action {305 margin-bottom: 1em;306 }307 305 308 306 /* -
zpt/viewer_index.zpt
r541 r542 29 29 </div> 30 30 31 <div class="col ">31 <div class="col main"> 32 32 <div class="index-info"> 33 33 <h2>Bibliographical information</h2> … … 76 76 <tr> 77 77 <td class="type">Permanent URL:</td> 78 <td class="content"><a ta l:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"78 <td class="content"><a target="_blank" tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri" 79 79 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td> 80 80 </tr> … … 100 100 <tr> 101 101 <td class="type">License:</td> 102 <td class="content"><a href="http://creativecommons.org/licenses/by-sa/3.0/de/">CC-BY-SA</a> (unless otherwise stated)</td> 102 <td class="content"><a target="_blank" href="http://creativecommons.org/licenses/by-sa/3.0/de/">CC-BY-SA</a> 103 (unless otherwise stated)</td> 103 104 </tr> 104 105 </table> 105 106 </tal:block> 106 107 </div> 108 </div> 109 <div class="col buttons"> 110 <div class="options"> 111 <h4>Browse</h4> 112 <ul class="list"> 113 <li><a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">View full document</a></li> 114 </ul> 115 </div> 107 116 108 <div class="index-actions"> 109 <div class="action"> 110 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">→Browse document</a> 111 </div> 112 <div class="action" tal:condition="docpath"> 113 Download full document as <a 117 <div class="options" tal:condition="docpath"> 118 <h4>Download</h4> 119 Download full document 120 <ul class="list"> 121 <li><a target="_blank" 114 122 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" 115 target="_blank">→HTML</a> or <a 116 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">→XML</a> 117 (copyright and license see above) 118 </div> 119 <div class="action"> 120 <!--BEGIN search --> 123 target="_blank">as HTML</a></li> 124 <li><a target="_blank" 125 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">as XML</a></li> 126 </ul> 127 (copyright and license see below) 128 </div> 129 130 <div class="options"> 131 <h4>Search</h4> 132 <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" /> 136 <!-- query text --> 137 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a 138 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a> 139 <ul> 140 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> 141 Exact</li> 142 <li><input type="radio" name="queryType" value="fulltextMorph" 143 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms</li> 144 <li><input type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> 145 Fulltext index</li> 146 <li><input type="radio" name="queryType" value="ftIndexMorph" 147 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li> 148 </ul> 149 </form> 150 </div> 151 <!-- end search options--> 152 <!--BEGIN search 121 153 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action python:here.getLink()"> 122 154 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params" 123 155 tal:attributes="name param; value python:params[param]" /> <input type="hidden" name="viewLayer" value="search" /> 124 <!-- query text -->125 156 <input type="text" name="query" tal:attributes="value query" /> <input type="submit" value="Search full document" /> <a 126 157 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a><br /> <input type="radio" … … 131 162 Morphological index 132 163 </form> 133 <!-- END search--> 134 </div> 135 </div> 164 END search--> 136 165 </div> 137 166 </div>
Note: See TracChangeset
for help on using the changeset viewer.