<html metal:use-macro="here/main_template/macros/page">
<head>
<title metal:fill-slot="title">The title</title>
</head>
<body>
<div metal:fill-slot="nav_title">Add Image</div>
<div metal:fill-slot="nav_main">
<p><a class="map" href="XXX" >Online
Archive at Foxridge</a></p>
<p><a class="map" href="XXX">Old
Online Archive at Digifiles</a></p>
Add Sources<br>
<p><a class="map" href="XXX">Webinterface</a></p>
</div>
<div metal:fill-slot="body">
<form action="combineTextImage2" method="get" tal:define="path python:here.REQUEST['path']">
<h2>Combine elements for presentation</h2>
<table>
<tr>
<td>Text</td>
<td>Images</td>
<td>Presentation Infos</td>
</tr>
<tr>
<td>
<select name="text">
<span tal:omit-tag="" tal:repeat="item python:here.REQUEST.SESSION['texts']">
<span tal:omit-tag="" tal:condition="python:item==here.getTextToolsField(path,'text')">
<option tal:content="item" selected/>
</span>
<span tal:omit-tag="" tal:condition="not:python:item==here.getTextToolsField(path,'text')">
<option tal:content="item"/>
</span>
</span>
</select>
</td>
<td>
<select name="image">
<span tal:omit-tag="" tal:repeat="item python:here.REQUEST.SESSION['imagefolders']">
<span tal:omit-tag="" tal:condition="python:item==here.getTextToolsField(path,'image')">
<option tal:content="item" selected/>
</span>
<span tal:omit-tag="" tal:condition="not:python:item==here.getTextToolsField(path,'image')">
<option tal:content="item"/>
</span>
</span>
</select>
</td>
<td>
<select name="presentation">
<span tal:omit-tag="" tal:repeat="item python:here.REQUEST.SESSION['presentationfolders']">
<span tal:omit-tag="" tal:condition="python:item==here.getTextToolsField(path,'presentation').split('/')[0]">
<option tal:content="item" selected/>
</span>
<span tal:omit-tag="" tal:condition="not:python:item==here.getTextToolsField(path,'presentation').split('/')[0]">
<option tal:content="item" />
</span>
</span>
</select>
</td>
</tr>
</table>
<br>
<span tal:condition="not:python:here.REQUEST.SESSION['externxml']==''">
<p>There is a full text in the archimedes CVS-repository:</p>
<input name="external" type="checkbox">Use CVS Text
</span>
<!--Addition for fulltext-->
<p>If you have fulltexts:</p>
<table>
<tr>
<td align="right">
Main language
</td>
<td align="left">
<select name="lang">
<div tal:omit-tag="" tal:repeat="key python:here.REQUEST.SESSION['isolistsort']">
<option tal:condition="python:key[0:2]==here.REQUEST.SESSION['filelanguage']" tal:attributes="value key;selected string:true" tal:content="python:here.REQUEST.SESSION['isolist'][key]"/>
<option tal:condition="python:not key[0:2]==here.REQUEST.SESSION['filelanguage']" tal:attributes="value key" tal:content="python:here.REQUEST.SESSION['isolist'][key]"/>
</div>
</select>
</td>
</tr>
<tr>
<td>
Pagebreak tag:
</td>
<td>
<input name="pagebreak" tal:attributes="value python:here.getTextToolsField(path,'pagebreak',default='pb')">
</td>
</tr>
</table>
<!--Addition for Presentation-->
<h3>Select the set of viewer templates (changes here will change all entries below)</h3>
<select tal:attributes="onChange python:'location.href=\''+here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&viewerTemplateSet=\'+this.options[this.selectedIndex].value'" name="project">
<span tal:omit-tag="" tal:condition="not:python:here.REQUEST.has_key('viewerTemplateSet')">
<option/>
<span tal:omit-tag="" tal:repeat="item here/getViewerTemplateSets">
<span tal:omit-tag="" tal:condition="python:item[1]==here.getTextToolsField(path,'viewerTemplateSet')">
<option tal:content="python:item[0]" tal:attributes="value python:item[1]" selected/>
</span>
<span tal:omit-tag="" tal:condition="not:python:item[1]==here.getTextToolsField(path,'viewerTemplateSet')">
<option tal:content="python:item[0]" tal:attributes="value python:item[1]"/>
</span>
</span>
</span>
<span tal:omit-tag="" tal:condition="python:here.REQUEST.has_key('viewerTemplateSet')">
<span tal:omit-tag="" tal:repeat="viewerTemplateSet here/getViewerTemplateSets" tal:attributes="value python:viewerTemplateSet[1]">
<span tal:omit-tag="" tal:condition="python:here.isSelectedViewerTemplateSet(here,viewerTemplateSet[1])">
<option tal:content="python:viewerTemplateSet[0]" tal:attributes="value python:viewerTemplateSet[1]" selected=""/>
</span>
<span tal:omit-tag="" tal:condition="not:python:here.isSelectedViewerTemplateSet(here,viewerTemplateSet[1])">
<option tal:content="python:viewerTemplateSet[0]" tal:attributes="value python:viewerTemplateSet[1]"/>
</span>
</span>
</span>
</select>
<h3>Entries (Changes are only valid for this document)</h3>
<!--NO ViewerTemplateSet selected-->
<table tal:condition="not:python:here.REQUEST.has_key('viewerTemplateSet')">
<tr>
<td><em>Path to the of startpage (optional)</em></td>
<td><input size=80 type="text" name="startpage" tal:attributes="value python:here.getTextToolsField(path,'startpage')"/></td>
</tr>
<tr>
<td><em>Path or URI of xslt (optional)</em></td>
<td><input size=80 type="text" name="xslt" tal:attributes="value python:here.getTextToolsField(path,'xslt')"/></td>
</tr>
<tr>
<td><em>Path to template of sidebar (optional)</em></td>
<td><input size=80 type="text" name="thumbtemplate" value="/usr/local/share/archimedes/web/docs/proj/echo/1/templates/toc/thumbviewer2.tmpl" tal:attributes="value python:here.getTextToolsField(path,'thumbtemplate')"/></td>
</tr>
<tr>
<td>
<em>Path to template of topbar (optional)</em></td>
<td>
<input size=80 type="text" name="topbar" value="/usr/local/share/archimedes/web/docs/proj/echo/1/templates/toc/topbar.tmpl" tal:attributes="value python:here.getTextToolsField(path,'toptemplate')"/>
</td>
</tr>
<tr>
<td>
<em>Path to template of digilib navigationa (optional)</em></td>
<td>
<input size=80 type="text" name="digiLibTemplate" tal:attributes="value python:here.getTextToolsField(path,'digilibtempl')"/>
</td>
</tr>
</table>
<!--ViewerTemplateSet selected-->
<span tal:omit-tag="" tal:condition="python:here.REQUEST.has_key('viewerTemplateSet')">
<table tal:define="viewerTemplateSet python:here.getViewerTemplateSets(obj_ids=[here.REQUEST['viewerTemplateSet']])[0]">
<tr>
<td><em>Path to the of startpage (optional)</em></td>
<td><input size=80 type="text" name="startpage" tal:attributes="value python:viewerTemplateSet[2].startpage"/></td>
</tr>
<tr>
<td><em>Path or URI of xslt (optional)</em></td>
<td><input size=80 type="text" name="xslt" tal:attributes="value python:viewerTemplateSet[2].xsl"/></td>
</tr>
<tr>
<td><em>Path to template of sidebar (optional)</em></td>
<td><input size=80 type="text" name="thumbtemplate" tal:attributes="value python:viewerTemplateSet[2].thumbTemplate.getPath()"/></td>
</tr>
<tr>
<td>
<em>Path to template of topbar (optional)</em></td>
<td>
<input size=80 type="text" name="topbar" tal:attributes="value python:viewerTemplateSet[2].topTemplate.getPath()"/>
</td>
</tr>
<tr>
<td>
<em>Path to template of DigiLib Template (optional)</em></td>
<td>
<input size=80 type="text" name="digiLibTemplate" tal:attributes="value python:viewerTemplateSet[2].digiLibTemplate.getPath()"/>
</td>
</tr>
</table>
</span> <!--End of Selected ViewerTemplateSet -->
<input type="hidden" name="path" tal:attributes="value python:here.REQUEST.SESSION['path']">
<input type="submit">
</form>
<form>
</div>
</body>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>