File:  [Repository] / OSAS / OSA_system / zpt / OSAS_StoreFiles.zpt
Revision 1.11: download - view: text, annotated - select for diffs - revision graph
Tue Apr 15 14:33:20 2008 UTC (16 years, 2 months ago) by casties
Branches: MAIN
CVS tags: HEAD
- taken out BVEs reg.cgi and scaleomat calls
- re-enabled "combine" link

<html metal:use-macro="here/main_template/macros/page">
  <head>
    <title metal:fill-slot="title">
      MPIWG - Online
      </title>
    </head>
  <body>
    <div metal:fill-slot="nav_title">
      Online Storage - Add Source
      </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>
      </div>
    <div metal:fill-slot="body">
      <span tal:define="global fs python:here.getfilesystem2(here.REQUEST['path'])" />
      <span tal:define="global tree python:here.tree(here.REQUEST['path'])">
	<table border='1' width="100%">
	  <tr width="60%">
	    <td valign="top">
	      <b tal:content="structure python: here.path_to_link_store(here.REQUEST['path'])" />
	      <div tal:condition="python:here.isFolder(here.REQUEST['path'])" tal:omit-tag=""> 
		<br>
<!-- 	<i>&nbsp;&nbsp;&nbsp; 
		  <img src="images/Arrow_Right.gif"><a href="add" tal:attributes="href python:here.REQUEST['URL1']+'/standardUpload?path='+here.REQUEST['path']">
		    add a new document to this path
		    </a></i><br>
-->		<i>
		  &nbsp;&nbsp;&nbsp; 
		  <img src="images/Arrow_Right.gif">
		  <a href="add" tal:attributes="href python:'addFolderForm?path='+here.REQUEST['path']">
		    new subfolder
		    </a></i><br>
<!-- 	<i>
		  &nbsp;&nbsp;&nbsp; 
		  <img src="images/Arrow_Right.gif">
		  <a href="add" tal:attributes="href python:'changeTemplatesForm?path='+here.REQUEST['path']">
		    Change the templates for all documents in this folder and its subfolder
		    </a></i><br>

		</div>
	      <div tal:omit-tag="" tal:condition="python:here.isScannedDocument(here.REQUEST['path'])"><br>
		<i>&nbsp;&nbsp;&nbsp; 
		  <img src="images/Arrow_Right.gif"><a href="add" tal:attributes="href python:'standardUpload/addImages?path='+here.REQUEST['path']">
		    add a new set of images 
		    </a></i><br>
-->		<i>
	        &nbsp;&nbsp;&nbsp; 
	        <img src="images/Arrow_Right.gif">
			    <a href="add" tal:attributes="href python:'standardTextadd/addText?path='+here.REQUEST['path']">
			      add a full text (Text file in XML) 
			    </a></i><br>
			  <i>
	         &nbsp;&nbsp;&nbsp; 
		  <img src="images/Arrow_Right.gif">
		  <a href="add" tal:attributes="href python:'standardTextadd/addPdf?path='+here.REQUEST['path']">
		    add a pdf File 
		    </a></i><br>
		<i>
		  &nbsp;&nbsp;&nbsp; 
		  <img src="images/Arrow_Right.gif">
		  <a href="add" tal:attributes="href python:'standardPresentationadd/addPresentation?path='+here.REQUEST['path']">
		    add presentation information
		    </a></i><br>
     	<i>
		  &nbsp;&nbsp;&nbsp; 
		  <img src="images/Arrow_Right.gif">
		  <a href="add" tal:attributes="href python:'standardCombineTextImage/combineTextImage?path='+here.REQUEST['path']">
		    combine text, image and presentation 
		    </a></i><br>
        
        <tal:block tal:repeat="adder python:here.ZopeFind(container.aq_parent, obj_metatypes=['OSAS_add_contextData'])">
		<i>
		  &nbsp;&nbsp;&nbsp;
		  <img src="images/Arrow_Right.gif">
		  <a href="add" tal:attributes="href python:adder[0]+'/addContextData?path='+here.REQUEST['path']"
             tal:content="python:adder[1].title">
		    add document to a collection
		    </a>
        </i><br>
        </tal:block>		
		</div>
	     <span tal:condition="python:fs.isdigilib(here.REQUEST['path'])&gt;0">
		&nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
		<a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&amp;files=2'">
		  <i>show files for viewing</i>
		  </a>
		</span>
		<span tal:condition="python:fs.isdigilib(here.REQUEST['path'])&gt;0">
 		&nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
		<a href="" tal:attributes="href python:here.REQUEST['URL1']+'/rescaleThumbs?path='+here.REQUEST['path']">
		  <i>Rescale all Thumbs</i>
		  </a>
		</span>

	     <span tal:condition="python:here.isdigilib2(here.REQUEST['path'])&gt;0">
		&nbsp;&nbsp;&nbsp;
		  <img src="images/Arrow_Right.gif">

		  <a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path'])"><i>view images in this folder</i>
		 
		  
		    </a>
		</span>
		<span tal:condition="python:here.isdigilib2(here.REQUEST['path'])&gt;0">
 		&nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
		<a href="" tal:attributes="href python:here.REQUEST['URL1']+'/rescaleThumbs?path='+here.REQUEST['path']">
		  <i>Rescale all Thumbs</i>
		  </a>
		</span>

	      <span tal:repeat="item python:tree.getTree(here.REQUEST['path'])">
		<span tal:condition="python:tree.isDirectory(here.REQUEST['path'],item)">
		  <p>
		    &nbsp;&nbsp;
<!-- 	    <a href="" tal:attributes="href python:'toggle_view?path='+here.REQUEST['path']+'&amp;file='+item">
		      <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
			- 
-->			<img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
<!-- 		</span>
		      <span tal:condition="not:python:tree.isToggle(here.REQUEST['path'],item)">
			+ 
			<img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
			</span>
		      </a>
-->		    <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item">
		      <span tal:replace="item" />
		      </a>
		    <span tal:condition="python:fs.isdigilib(here.REQUEST['path']+'/'+item)&gt;0">
		      <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'&amp;files=2'">
			show files for viewing
			</a>
		      </span>

		    <span tal:condition="python:here.isdigilib2(here.REQUEST['path']+'/'+item)&gt;0">
			<a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path']+'/'+item)">

			<img src="images/Arrow_Right.gif" border="0">view images
			</a>
		      </span>
 		    <span tal:condition="python:here.isFullText(here.REQUEST['path'],item)&gt;0">
		      <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+'/'+here.REQUEST['path']+'/'+item">
			<img src="images/Arrow_Right.gif" border="0">full text
		      </a>
		    </span>
 		    <span tal:condition="python:here.isPdf(here.REQUEST['path'],item)&gt;0">
		      <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+'/'+here.REQUEST['path']+'/'+item">
			<img src="images/Arrow_Right.gif" border="0">view folder
		      </a>
		    </span>

		    <span tal:condition="python:here.isPresentation(here.REQUEST['path'],item)&gt;0">
		      <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+here.REQUEST['path']+'/'+item+'/info.xml'">
			<img src="images/Arrow_Right.gif" border="0">view presentation
		      </a>
		    </span>

		    <a tal:condition="python:here.hasMetafile(here.REQUEST['path']+'/'+item)" href="metadata" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&amp;meta='+here.REQUEST['path']+'/'+item">
		      <img border="0" src="images/Arrow_Right.gif">
		      <font size="-1">
			(info)
			</font>
		      </a>
		    </p>
		  <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
		    <span tal:repeat="sub python:tree.getTree(here.REQUEST['path']+'/'+item)">
		      <span tal:condition="python:tree.isDirectory(here.REQUEST['path']+'/'+item,sub)">
			<p>
			  <i>
			    &nbsp;&nbsp;&nbsp;&nbsp; 
			    <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
			    <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'/'+sub" tal:content="sub">
			      BBB
			      </a>
			    <a tal:condition="python:here.hasMetafile(here.REQUEST['path']+'/'+item+'/'+sub)" href="metadata" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&amp;meta='+here.REQUEST['path']+'/'+item+'/'+sub">
			      <img border="0" src="images/Arrow_Right.gif">
			      <font size="-1">
				(info)
				</font>
			      </a>
			    </i>
			  </p>
			</span>
		      </span>
		    </span>
		  </span>
		</span>

	      <span tal:condition="python:here.REQUEST.has_key('files')">
		<h3>
		  Click for viewing with digilib
		  </h3>
		<span tal:repeat="dir python:fs.digilib(here.REQUEST['path'])">

		  <a href="XXX" tal:attributes="href python:container.DigILibURL+'?'+dir" target="_blank" tal:content="dir">
		
		    XXX
		    </a>
		  </span>
		</span>
	      <h3>Contexts</h3>
	      <p tal:repeat="item python:here.readContexts(here.REQUEST['path'])"><a href="link" tal:attributes="href python:item[0]" target="_blank" tal:content="python:item[1]">TEXT</a></p>    
	   </td>
	    <td tal:condition="python:here.REQUEST.has_key('meta')" valign="top">
	      <div tal:define="global metafile python:here.getMetafile(here.REQUEST['meta'])"/>
	      
	      <div tal:condition="python:metafile=='NO_METADATA'">
		<p>No metadata available for <span tal:replace="python:here.REQUEST['meta']"/></p>
		<p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['meta']">add</a></p>
		</div>
	      <div tal:condition="not:python:metafile=='NO_METADATA'">
		<div tal:replace="structure python:metafile"/>
		<p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['meta']">Edit</a></p>
		</div>
	      
	      
	      </td>
	    <td tal:condition="not:python:here.REQUEST.has_key('meta')" valign="top" tal:define="global metafile python:here.getMetafile(here.REQUEST['path'])">
	      <div tal:condition="python:metafile=='NO_METADATA'">
		<p>No metadata available for <span tal:replace="python:here.REQUEST['path']"/></p>
		<p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['path']">add</a></p>
		</div>
	      <div tal:condition="not:python:metafile=='NO_METADATA'">
		<div tal:replace="structure python:metafile"/>
		<p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['path']">Edit</a></p>
		</div>
	      </td>
	    </tr>
	  </table>
	</span>
      
      </div>
 
    </body>
  </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>