File:  [Repository] / OSAS / OSA_system / zpt / OSAS_Archiver.zpt
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Thu Mar 25 09:57:47 2004 UTC (20 years, 2 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
changes bei simon for new digilib ocnfin in OSAS_rootCVS: ----------------------------------------------------------------------

<<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 
      </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>
	    <td width="60%" valign="top">
	      <h2>
		Path: 
		</h2>
	      <b tal:content="structure python: here.path_to_link_view(here.REQUEST['path'])">
		LINKS
		</b>
	      <br>
	      <i tal:condition="python:fs.isdigilib(here.REQUEST['path'])>0">
		<br>
		&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'">
		  show image folders 
		  </a>
		</i>
	      <i tal:condition="python:here.isdigilib2(here.REQUEST['path'])>0">
		<br>
		&nbsp;&nbsp;&nbsp; 
		
		<img src="images/Arrow_Right.gif">
		<a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path'])">	
		  view images 
		  </a>
		</i>
	      <h2>
		Subfolders: 
		</h2>
	      <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)>0">
		      <img src="images/Arrow_Right.gif">
		      <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'&amp;files=2'">
			show image folders 
			</a>
		      </span>
		     
		     <img src="images/Arrow_Right.gif"><a tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'&amp;files=1'">
		    show files for archiving</a>
 
		   <!-- <div tal:condition="python:here.checkIfUnarchive(here.REQUEST['path'])">
			<img src="images/Arrow_Right.gif"><a tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']">Unarchive</a>
		    </div>-->

		    <span tal:condition="python:here.isdigilib2(here.REQUEST['path']+'/'+item)>0">
		      <img src="images/Arrow_Right.gif">
		      <a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path']+'/'+item)">
		      view images 
			</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')">
		
<span tal:define="global fs python:here.getfilesystem(here.REQUEST['path'])" />
	      <h3>
		Folder for archiving (select the folders to be archived)
		</h3>
	      <form action="archiveSelected" method="get">
		<span tal:repeat="item python:fs.onlyIndex().keys()">
		  <h3>
		    <input type="checkbox" value="archive" name="path" tal:attributes="value python:item" />
		    <span tal:replace="item" />
		    </h3>
		  <p tal:condition="python: here.REQUEST.has_key('debug')">
		    (
		    <span tal:repeat="list python:fs.getNode()[item]">
		      <span tal:replace="list" />
		      , 
		      </span>
		    )
		    </p>
		  </span>
		<input type="submit" />
		</form>

		</span>
	      </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 metafile"/></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:'metadata/addAcquisition?path='+here.REQUEST['path']">add</a></p>
		</div>
	      <div tal:condition="not:python:metafile=='NO_METADATA'"><div tal:replace="structure metafile"/></div>
	      </td>

	    </tr>
	  </table>
	</span>
      </div>
    </body>
  </html>

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