annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
29f2172db368 title also for non-bib-tag.
casties
parents: 502
diff changeset
5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl;
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
6 docpath docinfo/textURLPath | nothing;
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
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>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
19
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
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
23 <div class="col index-image">
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
24 <!-- image -->
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
25 <a tal:define="tp docinfo/titlePage | nothing" tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
26 tal:condition="tp" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
535
510bae2b593b more fixes, e.g. IE support. first version of index page.
casties
parents: 505
diff changeset
27 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
28 </div>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
29
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
30 <div class="col">
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
31 <div class="index-info">
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
32 <table border="0"
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
33 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
34 <tal:x condition="python:formattedData">
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
35 <!-- wenn es bibinfo in docinfo gibt -->
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
36 <tr tal:replace="structure python:formattedData" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
37 </tal:x>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
38
502
daf36d0fcfee more cleanup.
casties
parents: 501
diff changeset
39 <tal:x condition="not:formattedData">
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
40 <!-- kein template fuer die daten -->
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
41 <tal:x condition="exists:docinfo/bib">
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
42 <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
43 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
44 <td class="content" tal:content="bibinfo/bib" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
45 </tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
46 </tal:x>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
47
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
48 <tal:y condition="not:exists:docinfo/bib">
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
49 <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
50 <tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
51 <td class="type">Author:</td>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
52 <td class="content" tal:content="docinfo/creator" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
53 </tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
54 <tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
55 <td class="type">Title:</td>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
56 <td class="content" tal:content="docinfo/title" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
57 </tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
58 <tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
59 <td class="type">Date:</td>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
60 <td class="content" tal:content="docinfo/date" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
61 </tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
62 </tal:y>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
63 </tal:x>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
64 <!-- ende kein template fuer die daten -->
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
65 </table>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
66
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
67 <table border="0">
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
68 <!-- attribution -->
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
69 <tr tal:condition="exists:docinfo/attribution"
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
70 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=docinfo['attribution'])" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
71 <!-- copyright -->
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
72 <tr tal:condition="exists:docinfo/copyright"
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
73 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" />
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
74 </table>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
75 </div>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
76
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
77 <div class="index-actions">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
78 <div class="action">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
79 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Access Book</a>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
80 </div>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
81 <div class="action" tal:condition="docpath">
502
daf36d0fcfee more cleanup.
casties
parents: 501
diff changeset
82 Download as <a
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
83 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))"
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
84 target="_blank">&#8594;HTML</a> or <a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
85 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
86 </div>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
87 <div class="action">
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
88 <!--BEGIN search -->
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
89 <form tal:condition="docpath" tal:attributes="action python:here.getLink()">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
90 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
91 tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query" onfocus="this.select();"
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
92 type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" value="Search in Book" />
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
93 </form>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
94 <!-- END search-->
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
95 </div>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
96 </div>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
97 </div>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
98 </div>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
99 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
100 <body tal:condition="not:numPages">
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
101 <div class="errortext">Sorry, document doesn't exist.</div>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
102 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
103 </html>