Mercurial > hg > documentViewer
annotate zpt/viewer_index.zpt @ 544:6c529ec1b295
added gis mode back.
author | casties |
---|---|
date | Wed, 22 Aug 2012 16:42:30 +0200 |
parents | 6cdc31e9ed8e |
children | a35ec08c782d |
rev | line source |
---|---|
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml" |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; |
505 | 5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl; |
501 | 6 docpath docinfo/textURLPath | nothing; |
7 query nothing; | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
8 numPages docinfo/numPages | nothing;"> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
9 <head> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
11 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
12 <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
13 </head> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
14 <body tal:condition="numPages"> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
15 <!-- header --> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
16 <div class="page-head"> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
17 <metal:block metal:use-macro="here/template/common_template/macros/head" /> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
18 </div> |
538 | 19 |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
20 <!-- main --> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
21 <div class="page-body"> |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
22 |
538 | 23 <div class="col index-image"> |
24 <!-- image --> | |
540 | 25 <a tal:define="tp docinfo/titlePage | string:1" |
538 | 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 | |
28 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a> | |
29 </div> | |
501 | 30 |
542 | 31 <div class="col main"> |
538 | 32 <div class="index-info"> |
539 | 33 <h2>Bibliographical information</h2> |
538 | 34 <table border="0" |
541 | 35 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None),bibxdata=docinfo.get('bibx', None))"> |
538 | 36 <tal:x condition="python:formattedData"> |
37 <!-- wenn es bibinfo in docinfo gibt --> | |
38 <tr tal:replace="structure python:formattedData" /> | |
39 </tal:x> | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
40 |
538 | 41 <tal:x condition="not:formattedData"> |
42 <!-- kein template fuer die daten --> | |
43 <tal:x condition="exists:docinfo/bib"> | |
44 <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo"> | |
45 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" /> | |
46 <td class="content" tal:content="bibinfo/bib" /> | |
47 </tr> | |
48 </tal:x> | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
49 |
538 | 50 <tal:y condition="not:exists:docinfo/bib"> |
51 <!-- wenn es kein bibinfo gibt (archimedes-texte) --> | |
52 <tr> | |
53 <td class="type">Author:</td> | |
54 <td class="content" tal:content="docinfo/creator" /> | |
55 </tr> | |
56 <tr> | |
57 <td class="type">Title:</td> | |
58 <td class="content" tal:content="docinfo/title" /> | |
59 </tr> | |
60 <tr> | |
61 <td class="type">Date:</td> | |
62 <td class="content" tal:content="docinfo/date" /> | |
63 </tr> | |
64 </tal:y> | |
65 </tal:x> | |
66 <!-- ende kein template fuer die daten --> | |
67 </table> | |
68 | |
539 | 69 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri"> |
540 | 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> | |
542 | 78 <td class="content"><a target="_blank" tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri" |
540 | 79 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td> |
80 </tr> | |
81 </table> | |
539 | 82 </tal:block> |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
83 |
539 | 84 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing"> |
540 | 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> | |
542 | 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> | |
540 | 104 </tr> |
105 </table> | |
539 | 106 </tal:block> |
538 | 107 </div> |
542 | 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> | |
501 | 116 |
542 | 117 <div class="options" tal:condition="docpath"> |
118 <h4>Download</h4> | |
119 Download full document | |
120 <ul class="list"> | |
121 <li><a target="_blank" | |
538 | 122 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" |
542 | 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 | |
543 | 130 <div class="options" tal:condition="docpath"> |
542 | 131 <h4>Search</h4> |
132 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action viewerUrl"> | |
543 | 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]" /> | |
542 | 135 <!-- query text --> |
136 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a | |
137 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a> | |
138 <ul> | |
139 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> | |
140 Exact</li> | |
141 <li><input type="radio" name="queryType" value="fulltextMorph" | |
142 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms</li> | |
143 <li><input type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> | |
144 Fulltext index</li> | |
145 <li><input type="radio" name="queryType" value="ftIndexMorph" | |
146 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li> | |
147 </ul> | |
148 </form> | |
149 </div> | |
150 <!-- end search options--> | |
501 | 151 </div> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
152 </div> |
543 | 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 | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
158 </body> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
159 <body tal:condition="not:numPages"> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
160 <div class="errortext">Sorry, document doesn't exist.</div> |
543 | 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> | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
165 </body> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
166 </html> |