comparison zpt/viewer_index.zpt @ 540:4b43a57ad9b3

more nicer
author casties
date Thu, 16 Aug 2012 19:09:49 +0200
parents 37d122560028
children c4cc01b104d7
comparison
equal deleted inserted replaced
539:37d122560028 540:4b43a57ad9b3
20 <!-- main --> 20 <!-- main -->
21 <div class="page-body"> 21 <div class="page-body">
22 22
23 <div class="col index-image"> 23 <div class="col index-image">
24 <!-- image --> 24 <!-- image -->
25 <a tal:define="tp docinfo/titlePage | nothing" 25 <a tal:define="tp docinfo/titlePage | string:1"
26 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0" 26 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0"
27 tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img 27 tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
28 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a> 28 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
29 </div> 29 </div>
30 30
65 </tal:x> 65 </tal:x>
66 <!-- ende kein template fuer die daten --> 66 <!-- ende kein template fuer die daten -->
67 </table> 67 </table>
68 68
69 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri"> 69 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
70 <h2>Permanent URL</h2> 70 <h2>Permanent URL</h2>
71 <table> 71 <table>
72 <tr> 72 <tr>
73 <td class="type">Document ID:</td> 73 <td class="type">Document ID:</td>
74 <td class="content" tal:content="dri" /> 74 <td class="content" tal:content="dri" />
75 </tr> 75 </tr>
76 <tr> 76 <tr>
77 <td class="type">Permanent URL:</td> 77 <td class="type">Permanent URL:</td>
78 <td class="content"><a tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri" 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> 79 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
80 </tr> 80 </tr>
81 </table> 81 </table>
82 </tal:block> 82 </tal:block>
83 83
84 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing"> 84 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
85 <h2>Copyright information</h2> 85 <h2>Copyright information</h2>
86 <table border="0" tal:condition="attribution | copyright"> 86 <table border="0" tal:condition="attribution | copyright">
87 <!-- attribution --> 87 <!-- attribution -->
88 <tr tal:condition="attribution" 88 <tr tal:condition="attribution"
89 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" /> 89 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
90 <!-- copyright --> 90 <!-- copyright -->
91 <tr tal:condition="copyright" 91 <tr tal:condition="copyright"
92 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" /> 92 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
93 </table> 93 </table>
94 <table border="0" tal:condition="not:attribution | copyright"> 94 <table border="0" tal:condition="not:attribution | copyright">
95 <tr><td></td></tr> 95 <tr>
96 </table> 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 </tal:block> 105 </tal:block>
98 </div> 106 </div>
99 107
100 <div class="index-actions"> 108 <div class="index-actions">
101 <div class="action"> 109 <div class="action">
104 <div class="action" tal:condition="docpath"> 112 <div class="action" tal:condition="docpath">
105 Download full document as <a 113 Download full document as <a
106 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" 114 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))"
107 target="_blank">&#8594;HTML</a> or <a 115 target="_blank">&#8594;HTML</a> or <a
108 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a> 116 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a>
117 (copyright and license see above)
109 </div> 118 </div>
110 <div class="action"> 119 <div class="action">
111 <!--BEGIN search --> 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 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params" 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" 123 tal:attributes="name param; value python:params[param]" /> <input type="hidden" name="viewLayer" value="search" />
115 onfocus="this.select();" type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" 124 <!-- query text -->
116 value="Search in Book" /> 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 </form> 132 </form>
118 <!-- END search--> 133 <!-- END search-->
119 </div> 134 </div>
120 </div> 135 </div>
121 </div> 136 </div>