Changeset 540:4b43a57ad9b3 in documentViewer
- Timestamp:
- Aug 16, 2012, 5:09:49 PM (12 years ago)
- Branch:
- default
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
css/docuviewer.css
r539 r540 127 127 margin-bottom: 0.5em; 128 128 } 129 div.tocbody div.ruler {129 div.tocbody div.ruler.top { 130 130 text-align: center; 131 margin-bottom: 0.5em; 131 padding-bottom: 0.5em; 132 } 133 div.tocbody div.ruler.bottom { 134 clear: both; 135 text-align: center; 136 padding-top: 0.5em; 132 137 } 133 138 … … 197 202 min-width: 30em; 198 203 background-color: white; 199 font-family: Junicode,Gentium,Georgia,serif;200 font-size: 14px;201 line-height: 1.3;202 204 border: 1px solid silver; 203 205 padding: 1em; … … 232 234 margin-bottom: 0.5em; 233 235 } 234 235 236 div.options.digilib li img { 236 237 vertical-align: middle; … … 238 239 239 240 /* 241 * text page 242 */ 243 div.col.main div.content.text { 244 font-family: Junicode,Gentium,Georgia,serif; 245 font-size: 14px; 246 line-height: 1.3; 247 } 248 249 /* 240 250 * search results 241 251 */ 242 252 div.col.results { 243 253 max-width: 20em; 254 padding-right: 5px; 255 } 256 div.col.results div.result { 257 border: 1px solid silver; 258 border-radius: 5px; 259 padding: 0.5em; 260 } 261 div.col.results h4 { 262 margin-top: 0; 263 margin-bottom: 0.5em; 264 } 265 div.col.results div.ruler { 266 text-align: center; 267 margin-bottom: 0.5em; 268 } 269 div.col.results div.query { 270 margin-bottom: 0.5em; 244 271 } 245 272 … … 260 287 margin-bottom: 0.5em; 261 288 } 289 div.index-info td { 290 vertical-align: top; 291 } 262 292 div.index-info td.type { 263 293 font-weight: bold; … … 279 309 * image page 280 310 */ 281 div.col.main div.content-images { 282 border: 1px solid silver; 283 } 284 div.col.main div.content-images table { 311 div.col.main div.content.images { 312 background-color: inherit; 313 padding: 0; 314 } 315 div.col.main div.content.images table { 285 316 border-collapse: collapse; /* for tight digilib */ 286 317 } 287 318 288 319 /* 320 * xml page 321 */ 322 div.col.main div.content.xml { 323 font-family: Monaco,Courier,monospace; 324 font-size: 12px; 325 } 326 div.col.main div.content.xml div.pageHeaderTitle { 327 display: none; 328 } 329 330 331 332 /* 289 333 * thumbnail overview 290 334 */ 291 335 div.col.main div.content-thumbs { 292 336 border: 1px solid silver; 293 padding: 1em;337 padding: 0.5em; 294 338 } 295 339 div.col.main table.thumbs td { -
zpt/layer_text_search.zpt
r532 r540 17 17 <metal:block metal:define-macro="layer_select_li"> 18 18 <li tal:condition="python:query"><input type="checkbox" class="autosubmit" name="viewLayer" value="search" 19 tal:attributes="checked python:'search' in viewLayers" /> Search hits</li>19 tal:attributes="checked python:'search' in viewLayers" /> Search results</li> 20 20 </metal:block> 21 21 </ul> … … 25 25 <!-- right-side search results --> 26 26 <div class="col results" tal:condition="query"> 27 <!--"BEGIN SEARCH RESULTS" --> 28 <div class="options"> 27 <div class="result"> 29 28 <h4>Search results</h4> 30 29 <div … … 33 32 <div class="ruler" tal:define="startParam string:resultStart"> 34 33 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" /> 34 </div> 35 <div class="query"> 36 Searching "<span tal:content="query" />" (<span tal:content="queryType" />) 35 37 </div> 36 38 <div class="content" … … 42 44 43 45 <metal:block metal:define-macro="options_box"> 44 <!-- "BEGIN SEARCH"-->46 <!-- search options --> 45 47 <div class="options"> 46 48 <h4>Search</h4> … … 55 57 <!-- query text --> 56 58 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a 57 tal: attributes="href python:here.getLink('query',None)">Clear</a>59 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a> 58 60 <ul> 59 61 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> … … 68 70 </form> 69 71 </div> 70 <!-- "END SEARCH"-->72 <!-- end search options--> 71 73 </metal:block> 72 74 -
zpt/toc_concordance.zpt
r539 r540 14 14 batch python:here.getBatch(start=start,size=grpsize,end=tocsize,data=pageNumbers);"> 15 15 <h4>Page concordance</h4> 16 <div class="ruler ">16 <div class="ruler top"> 17 17 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" /> 18 18 </div> … … 36 36 </table> 37 37 </div> 38 <div class="ruler ">38 <div class="ruler bottom"> 39 39 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" /> 40 40 </div> -
zpt/toc_figures.zpt
r539 r540 13 13 batch python:here.getBatch(start=start,size=grpsize,end=tocsize);"> 14 14 <h4>Table of figures</h4> 15 <div class="ruler ">15 <div class="ruler top"> 16 16 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" /> 17 17 </div> 18 18 <div class="content" 19 19 tal:content="structure python:here.getTocPage(mode='figures',start=start,pageinfo=pageinfo,docinfo=docinfo)" /> 20 <div class="ruler ">20 <div class="ruler bottom"> 21 21 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" /> 22 22 </div> -
zpt/toc_text.zpt
r539 r540 13 13 <div class="tocbody text"> 14 14 <h4>Table of contents</h4> 15 <div class="ruler ">15 <div class="ruler top"> 16 16 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" /> 17 17 </div> 18 18 <div class="content" tal:content="structure python:here.getTocPage(mode='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" /> 19 <div class="ruler ">19 <div class="ruler bottom"> 20 20 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" /> 21 21 </div> -
zpt/toc_thumbs.zpt
r539 r540 20 20 <div class="content"> 21 21 <h4>List of thumbnails</h4> 22 <div class="ruler ">22 <div class="ruler top"> 23 23 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" /> 24 24 </div> … … 35 35 </tr> 36 36 </table> 37 <div class="ruler ">37 <div class="ruler bottom"> 38 38 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" /> 39 39 </div> -
zpt/viewer_images.zpt
r538 r540 59 59 <!-- col-main: text page --> 60 60 <div class="col main"> 61 <div class="ruler ">61 <div class="ruler top"> 62 62 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> 63 63 </div> 64 <div class="content -images">64 <div class="content images"> 65 65 <div id="scaler"> 66 66 <img tal:attributes="src string:${docinfo/imageURL}&pn=${pageinfo/pn}&dw=500&dh=500" /> -
zpt/viewer_index.zpt
r539 r540 23 23 <div class="col index-image"> 24 24 <!-- image --> 25 <a tal:define="tp docinfo/titlePage | nothing"25 <a tal:define="tp docinfo/titlePage | string:1" 26 26 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0" 27 27 tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img … … 68 68 69 69 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri"> 70 <h2>Permanent URL</h2>71 <table>72 <tr>73 <td class="type">Document ID:</td>74 <td class="content" tal:content="dri" />75 </tr>76 <tr>77 <td class="type">Permanent URL:</td>78 <td class="content"><a tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"79 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>80 </tr>81 </table>70 <h2>Permanent URL</h2> 71 <table> 72 <tr> 73 <td class="type">Document ID:</td> 74 <td class="content" tal:content="dri" /> 75 </tr> 76 <tr> 77 <td class="type">Permanent URL:</td> 78 <td class="content"><a tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri" 79 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td> 80 </tr> 81 </table> 82 82 </tal:block> 83 83 84 84 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing"> 85 <h2>Copyright information</h2> 86 <table border="0" tal:condition="attribution | copyright"> 87 <!-- attribution --> 88 <tr tal:condition="attribution" 89 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" /> 90 <!-- copyright --> 91 <tr tal:condition="copyright" 92 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" /> 93 </table> 94 <table border="0" tal:condition="not:attribution | copyright"> 95 <tr><td></td></tr> 96 </table> 85 <h2>Copyright information</h2> 86 <table border="0" tal:condition="attribution | copyright"> 87 <!-- attribution --> 88 <tr tal:condition="attribution" 89 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" /> 90 <!-- copyright --> 91 <tr tal:condition="copyright" 92 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" /> 93 </table> 94 <table border="0" tal:condition="not:attribution | copyright"> 95 <tr> 96 <td class="type">Copyright:</td> 97 <td class="content"><a target="_blank" href="http://www.mpiwg-berlin.mpg.de">Max Planck Institute for the 98 History of Science</a> (unless otherwise stated)</td> 99 </tr> 100 <tr> 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></td> 103 </tr> 104 </table> 97 105 </tal:block> 98 106 </div> … … 107 115 target="_blank">→HTML</a> or <a 108 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) 109 118 </div> 110 119 <div class="action"> 111 120 <!--BEGIN search --> 112 <form tal: condition="docpath" tal:attributes="action python:here.getLink()">121 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action python:here.getLink()"> 113 122 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params" 114 tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query" 115 onfocus="this.select();" type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" 116 value="Search in Book" /> 123 tal:attributes="name param; value python:params[param]" /> <input type="hidden" name="viewLayer" value="search" /> 124 <!-- query text --> 125 <input type="text" name="query" tal:attributes="value query" /> <input type="submit" value="Search full document" /> <a 126 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a><br /> <input type="radio" 127 name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> Exact <input type="radio" 128 name="queryType" value="fulltextMorph" tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms <input 129 type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> Fulltext index 130 <input type="radio" name="queryType" value="ftIndexMorph" tal:attributes="checked python:queryType=='ftIndexMorph'" /> 131 Morphological index 117 132 </form> 118 133 <!-- END search--> -
zpt/viewer_text.zpt
r536 r540 52 52 <!-- text page --> 53 53 <div class="col main"> 54 <div class="ruler ">54 <div class="ruler top"> 55 55 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> 56 56 </div> 57 <div class="content ">57 <div class="content text"> 58 58 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle" 59 59 tal:content="structure pageinfo/pageHeaderTitle" /> -
zpt/viewer_thumbs.zpt
r536 r540 59 59 </table> 60 60 </div> 61 <div class="ruler down">61 <div class="ruler bottom"> 62 62 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" /> 63 63 </div> 64 65 64 </div> 66 65 <!-- /col-main --> -
zpt/viewer_xml.zpt
r532 r540 43 43 <!-- text page --> 44 44 <div class="col main"> 45 <div class="ruler ">45 <div class="ruler top"> 46 46 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> 47 47 </div> 48 <div class="content ">48 <div class="content xml"> 49 49 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle" 50 50 tal:content="structure pageinfo/pageHeaderTitle" />
Note: See TracChangeset
for help on using the changeset viewer.