annotate zpt/viewer/viewer_index.zpt @ 594:da7daa783df4

rearranged viewer templates into folder.
author casties
date Fri, 16 Nov 2012 17:16:50 +0100
parents zpt/viewer_index.zpt@bf0f514b6f92
children 8ed0317633f8
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;
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
6 viewLayer pageinfo/viewLayer; viewLayers pageinfo/viewLayers;
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
7 availableLayers python:here.getAvailableLayers().get('index', None);
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
8 docpath docinfo/textURLPath | nothing;
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
9 query nothing;
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
10 numPages docinfo/numPages | nothing;
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
11 global formattedData python:here.metadata.getBibFormattedMetaData(bibdata=docinfo.get('bib', None));">
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
12 <head>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
13 <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
14 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
15 <link rel="stylesheet" tal:attributes="href string:$viewerUrl/template/docuviewer_css" type="text/css" />
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
16 <script type="text/javascript" tal:attributes="src string:$viewerUrl/template/jquery_js"></script>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
17 <script type="text/javascript">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
18 $(document).ready(function() {
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
19 // autosubmit forms
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
20 $('form.autosubmit').find('.autosubmit').change(function() {
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
21 this.form.submit();
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
22 });
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
23 $('form.autosubmit input[type="submit"]').hide();
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
24 });
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
25 // -->
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
26 </script>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
27 <!-- layer headers (all available) -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
28 <tal:block tal:repeat="layer availableLayers">
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
29 <tal:block tal:define="mpath string:here/template/layer_index_${layer}/macros/html_head" tal:condition="python:exists(mpath)">
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
30 <metal:block metal:use-macro="python:path(mpath)" />
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
31 </tal:block>
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
32 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
33 </head>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
34 <body tal:condition="numPages">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
35 <!-- header -->
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
36 <div class="page-head">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
37 <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
38 </div>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
39
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
40 <!-- main -->
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
41 <div class="page-body">
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
42
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
43 <div class="col index-image">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
44 <!-- image -->
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
45 <a tal:define="tp docinfo/titlePage | string:1"
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
46 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0"
562
60f5a636bc57 bugfixes for stability.
casties
parents: 560
diff changeset
47 tal:attributes="src python:'%s&pn=%s&dw=300&dh=500'%(docinfo.get('imageURL',None),tp)" /><img
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
48 tal:condition="python:not docinfo.get('titlePage',None) and exists('here/template/book.png')" border="0"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
49 src="template/book.png" /></a>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
50 </div>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
51
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
52 <div class="col main">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
53 <!-- main content column -->
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
54 <div class="index-info">
550
a35ec08c782d small fixes.
casties
parents: 543
diff changeset
55 <h2>Bibliographic information</h2>
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
56 <table border="0">
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
57 <tal:x condition="python:formattedData">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
58 <!-- wenn es bibinfo in docinfo gibt -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
59 <tr tal:replace="structure python:formattedData" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
60 </tal:x>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
61
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
62 <tal:x condition="not:formattedData">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
63 <!-- kein template fuer die daten -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
64 <tal:x condition="exists:docinfo/bib">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
65 <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
66 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
67 <td class="content" tal:content="bibinfo/bib" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
68 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
69 </tal:x>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
70
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
71 <tal:y condition="not:exists:docinfo/bib">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
72 <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
73 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
74 <td class="type">Author:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
75 <td class="content" tal:content="docinfo/creator" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
76 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
77 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
78 <td class="type">Title:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
79 <td class="content" tal:content="docinfo/title" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
80 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
81 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
82 <td class="type">Date:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
83 <td class="content" tal:content="docinfo/date" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
84 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
85 </tal:y>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
86 </tal:x>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
87 <!-- ende kein template fuer die daten -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
88 </table>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
89
539
37d122560028 more nicer
casties
parents: 538
diff changeset
90 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
91 <h2>Permanent URL</h2>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
92 <table>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
93 <tr>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
94 <td class="type">Document ID:</td>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
95 <td class="content" tal:content="dri" />
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
96 </tr>
582
bf0f514b6f92 show permanent url on index page.
casties
parents: 579
diff changeset
97 <tr>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
98 <td class="type">Permanent URL:</td>
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
99 <td class="content"><a target="_blank" tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
100 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
582
bf0f514b6f92 show permanent url on index page.
casties
parents: 579
diff changeset
101 </tr>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
102 </table>
539
37d122560028 more nicer
casties
parents: 538
diff changeset
103 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
104
579
fc861a6cef17 update in w-tag format.
casties
parents: 578
diff changeset
105 <tal:block tal:define="ctxs docinfo/presentationContext | nothing" tal:condition="ctxs">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
106 <h2>Presentation context</h2>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
107 <ul>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
108 <li tal:repeat="ctx ctxs"><a tal:define="link ctx/link | nothing; name ctx/name | link;" tal:content="name"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
109 tal:attributes="href link" target="_blank" tal:omit-tag="not:link" /></li>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
110 </ul>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
111 </tal:block>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
112
539
37d122560028 more nicer
casties
parents: 538
diff changeset
113 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
114 <h2>Copyright information</h2>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
115 <table border="0" tal:condition="attribution | copyright">
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
116 <!-- attribution -->
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
117 <tr tal:condition="attribution"
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
118 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
119 <!-- copyright -->
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
120 <tr tal:condition="copyright"
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
121 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
122 </table>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
123 <table border="0" tal:condition="not:attribution | copyright">
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
124 <tr>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
125 <td class="type">Copyright:</td>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
126 <td class="content"><a target="_blank" href="http://www.mpiwg-berlin.mpg.de">Max Planck Institute for the
560
04c330b92cab uses escidoc-dri (instead of -test). updated default license display for access!=free.
casties
parents: 559
diff changeset
127 History of Science</a> (unless stated otherwise)</td>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
128 </tr>
562
60f5a636bc57 bugfixes for stability.
casties
parents: 560
diff changeset
129 <tr tal:define="accType python:docinfo.get('accessType', None)">
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
130 <td class="type">License:</td>
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
131 <td tal:condition="python:accType == 'free'" class="content"><a target="_blank"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
132 href="http://creativecommons.org/licenses/by-sa/3.0/de/">CC-BY-SA</a> (unless stated otherwise)</td>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
133 <td tal:condition="python:accType != 'free'" class="content">Internal use only<span tal:condition="accType"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
134 tal:content="string: ($accType)" />, please contact <a href="mailto:library@mpiwg-berlin.mpg.de">library@mpiwg-berlin.mpg.de</a>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
135 (unless stated otherwise)
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
136 </td>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
137 </tr>
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
138 </table>
539
37d122560028 more nicer
casties
parents: 538
diff changeset
139 </tal:block>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
140 </div>
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
141 </div>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
142 <!-- /main content column -->
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
143
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
144 <div class="col buttons">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
145 <!-- option block column -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
146 <div class="options">
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
147 <h4>Browse</h4>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
148 <ul class="list">
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
149 <li><a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">View full document</a></li>
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
150 </ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
151 </div>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
152
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
153 <div class="options" tal:condition="docpath">
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
154 <h4>Download</h4>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
155 Download full document
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
156 <ul class="list">
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
157 <li><a target="_blank" rel="nofollow" class="download"
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
158 tal:attributes="href python:here.getTextDownloadUrl(type='html',docinfo=docinfo)" target="_blank">as HTML</a></li>
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
159 <li><a target="_blank" rel="nofollow" class="download"
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
160 tal:attributes="href python:here.getTextDownloadUrl(type='xml',docinfo=docinfo)" target="_blank">as XML</a></li>
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
161 </ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
162 (copyright and license see below)
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
163 </div>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
164
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
165 <div class="options" tal:condition="docpath">
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
166 <h4>Search</h4>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
167 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action viewerUrl">
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
168 <input type="hidden"
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
169 tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewMode':None,'viewLayer':'search'})"
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
170 tal:repeat="param params" tal:attributes="name param; value python:params[param]" />
542
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
171 <!-- query text -->
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
172 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
173 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
174 <ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
175 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" />
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
176 Exact</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
177 <li><input type="radio" name="queryType" value="fulltextMorph"
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
178 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
179 <li><input type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" />
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
180 Fulltext index</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
181 <li><input type="radio" name="queryType" value="ftIndexMorph"
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
182 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
183 </ul>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
184 </form>
dbaa7dce60a5 nicer index page.
casties
parents: 541
diff changeset
185 </div>
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
186
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
187 <div class="options" tal:condition="availableLayers">
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
188 <h4>Metadata</h4>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
189 <form tal:attributes="action viewerUrl" class="autosubmit">
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
190 <input type="hidden" tal:define="params python:here.getParams(params={'viewLayer':None})" tal:repeat="param params"
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
191 tal:attributes="name param; value python:params[param]" />
559
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
192 <ul>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
193 <!-- text layer select buttons (rendered always) -->
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
194 <tal:block tal:repeat="layer availableLayers">
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
195 <tal:block tal:define="mpath string:here/template/layer_index_${layer}/macros/layer_select_li"
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
196 tal:condition="python:exists(mpath)">
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
197 <li metal:use-macro="python:path(mpath)" />
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
198 </tal:block>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
199 </tal:block>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
200 </ul>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
201 <input type="submit" value="Go!" />
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
202 </form>
eabfbad6aeb4 "extended" layer for index view and some bugfixes.
casties
parents: 558
diff changeset
203 </div>
578
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
204 </div>
024b75162437 displays context data on index page
casties
parents: 562
diff changeset
205 <!-- /option block column -->
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
206 </div>
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
207 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer">
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
208 <!-- footer -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
209 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer" />
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
210 </tal:block>
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
211
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
212 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
213 <body tal:condition="not:numPages">
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
214 <div class="errortext">Sorry, document doesn't exist.</div>
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
215 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer">
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
216 <!-- footer -->
558
6ab436383fca first step to layers for index view.
casties
parents: 550
diff changeset
217 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer" />
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 542
diff changeset
218 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
219 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
220 </html>