1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
4 | tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; |
---|
5 | tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl; |
---|
6 | docpath docinfo/textURLPath | nothing; |
---|
7 | query nothing; |
---|
8 | numPages docinfo/numPages | nothing;"> |
---|
9 | <head> |
---|
10 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
11 | <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> |
---|
12 | <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> |
---|
13 | </head> |
---|
14 | <body tal:condition="numPages"> |
---|
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"> |
---|
22 | |
---|
23 | <div class="col index-image"> |
---|
24 | <!-- image --> |
---|
25 | <a tal:define="tp docinfo/titlePage | nothing" 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 |
---|
27 | tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a> |
---|
28 | </div> |
---|
29 | |
---|
30 | <div class="col"> |
---|
31 | <div class="index-info"> |
---|
32 | <table border="0" |
---|
33 | tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))"> |
---|
34 | <tal:x condition="python:formattedData"> |
---|
35 | <!-- wenn es bibinfo in docinfo gibt --> |
---|
36 | <tr tal:replace="structure python:formattedData" /> |
---|
37 | </tal:x> |
---|
38 | |
---|
39 | <tal:x condition="not:formattedData"> |
---|
40 | <!-- kein template fuer die daten --> |
---|
41 | <tal:x condition="exists:docinfo/bib"> |
---|
42 | <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo"> |
---|
43 | <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" /> |
---|
44 | <td class="content" tal:content="bibinfo/bib" /> |
---|
45 | </tr> |
---|
46 | </tal:x> |
---|
47 | |
---|
48 | <tal:y condition="not:exists:docinfo/bib"> |
---|
49 | <!-- wenn es kein bibinfo gibt (archimedes-texte) --> |
---|
50 | <tr> |
---|
51 | <td class="type">Author:</td> |
---|
52 | <td class="content" tal:content="docinfo/creator" /> |
---|
53 | </tr> |
---|
54 | <tr> |
---|
55 | <td class="type">Title:</td> |
---|
56 | <td class="content" tal:content="docinfo/title" /> |
---|
57 | </tr> |
---|
58 | <tr> |
---|
59 | <td class="type">Date:</td> |
---|
60 | <td class="content" tal:content="docinfo/date" /> |
---|
61 | </tr> |
---|
62 | </tal:y> |
---|
63 | </tal:x> |
---|
64 | <!-- ende kein template fuer die daten --> |
---|
65 | </table> |
---|
66 | |
---|
67 | <table border="0"> |
---|
68 | <!-- attribution --> |
---|
69 | <tr tal:condition="exists:docinfo/attribution" |
---|
70 | tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=docinfo['attribution'])" /> |
---|
71 | <!-- copyright --> |
---|
72 | <tr tal:condition="exists:docinfo/copyright" |
---|
73 | tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" /> |
---|
74 | </table> |
---|
75 | </div> |
---|
76 | |
---|
77 | <div class="index-actions"> |
---|
78 | <div class="action"> |
---|
79 | <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">→Browse document</a> |
---|
80 | </div> |
---|
81 | <div class="action" tal:condition="docpath"> |
---|
82 | Download full document as <a |
---|
83 | tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" |
---|
84 | target="_blank">→HTML</a> or <a |
---|
85 | tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">→XML</a> |
---|
86 | </div> |
---|
87 | <div class="action"> |
---|
88 | <!--BEGIN search --> |
---|
89 | <form tal:condition="docpath" tal:attributes="action python:here.getLink()"> |
---|
90 | <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params" |
---|
91 | tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query" onfocus="this.select();" |
---|
92 | type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" value="Search in Book" /> |
---|
93 | </form> |
---|
94 | <!-- END search--> |
---|
95 | </div> |
---|
96 | </div> |
---|
97 | </div> |
---|
98 | </div> |
---|
99 | </body> |
---|
100 | <body tal:condition="not:numPages"> |
---|
101 | <div class="errortext">Sorry, document doesn't exist.</div> |
---|
102 | </body> |
---|
103 | </html> |
---|