comparison zpt/viewer_index.zpt @ 536:abd36d4d97b8

new version of index page. improvements for digilib page and thumbnail overview.
author casties
date Thu, 26 Jul 2012 21:22:56 +0200
parents 510bae2b593b
children ad6f97fd3944
comparison
equal deleted inserted replaced
535:510bae2b593b 536:abd36d4d97b8
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> 11 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
12 <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> 12 <link rel="stylesheet" href="template/docuviewer_css" type="text/css" />
13 </head> 13 </head>
14 <body tal:condition="numPages"> 14 <body tal:condition="numPages">
15 <h1>Document information</h1> 15 <!-- header -->
16 <div class="page-head">
17 <metal:block metal:use-macro="here/template/common_template/macros/head" />
18 </div>
19
20 <!-- main -->
21 <div class="page-body">
16 22
17 <div class="index-image"> 23 <div class="col index-image">
18 <!-- image --> 24 <!-- image -->
19 <a tal:define="tp docinfo/titlePage | nothing" 25 <a tal:define="tp docinfo/titlePage | nothing" tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img
20 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img 26 tal:condition="tp" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
21 tal:condition="tp" border="0"
22 tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
23 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a> 27 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
24 </div> 28 </div>
25 29
30 <div class="col">
26 <div class="index-info"> 31 <div class="index-info">
27 <table border="0" 32 <table border="0"
28 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))"> 33 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
29 <tal:x condition="python:formattedData"> 34 <tal:x condition="python:formattedData">
30 <!-- wenn es bibinfo in docinfo gibt --> 35 <!-- wenn es bibinfo in docinfo gibt -->
67 <tr tal:condition="exists:docinfo/copyright" 72 <tr tal:condition="exists:docinfo/copyright"
68 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" /> 73 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" />
69 </table> 74 </table>
70 </div> 75 </div>
71 76
72 <div> 77 <div class="index-actions">
73 <div> 78 <div class="action">
74 <a class="openbutton" 79 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Access Book</a>
75 tal:attributes="href python:context.getLink('viewMode','auto')">Access Book</a>
76 </div> 80 </div>
77 <div tal:condition="docpath"> 81 <div class="action" tal:condition="docpath">
78 Download as <a 82 Download as <a
79 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" 83 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))"
80 target="_blank">html</a> / <a 84 target="_blank">&#8594;HTML</a> or <a
81 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" 85 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a>
82 target="_blank">xml</a>
83 </div> 86 </div>
84 <div> 87 <div class="action">
85 <!--BEGIN search --> 88 <!--BEGIN search -->
86 <form tal:condition="docpath" tal:attributes="action python:here.getLink()"> 89 <form tal:condition="docpath" tal:attributes="action python:here.getLink()">
87 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" 90 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"
88 tal:repeat="param params" 91 tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query" onfocus="this.select();"
89 tal:attributes="name param; value python:params[param]" /> <input 92 type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" value="Search in Book" />
90 class="textMain" name="query" onfocus="this.select();" type="text"
91 tal:attributes="value query" /> <input type="submit" class="buttonMain"
92 value="Search in Book" />
93 </form> 93 </form>
94 <!-- END search--> 94 <!-- END search-->
95 </div> 95 </div>
96 </div> 96 </div>
97 <!-- DEBUG --> 97 </div>
98 <!-- <p tal:content="python:repr(docinfo)" /> --> 98 </div>
99 </body> 99 </body>
100 <body tal:condition="not:numPages"> 100 <body tal:condition="not:numPages">
101 <div class="errortext">Sorry, document doesn't exist.</div> 101 <div class="errortext">Sorry, document doesn't exist.</div>
102 </body> 102 </body>
103 </html> 103 </html>