File:  [Repository] / OSAS / OSA_system / zpt / OSAS_ViewFiles.zpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Mar 3 13:02:55 2004 UTC (20 years, 4 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
moved templates to zpt

    1: <html metal:use-macro="here/main_template/macros/page">
    2:   <head>
    3:     <title metal:fill-slot="title">
    4:       MPIWG - Online 
    5:       </title>
    6:     </head>
    7:   <body>
    8:     <div metal:fill-slot="nav_title">
    9:       Online Storage 
   10:       </div>
   11:     <div metal:fill-slot="nav_main">
   12:       <p>
   13: 	<a class="map" href="XXX">
   14: 	  Online Archive at Foxridge
   15: 	  </a>
   16: 	</p>
   17:       <p>
   18: 	<a class="map" href="XXX">
   19: 	  Old Online Archive at Digifiles
   20: 	  </a>
   21: 	</p>
   22:       </div>
   23:     <div metal:fill-slot="body">
   24:       <span tal:define="global fs python:here.getfilesystem2(here.REQUEST['path'])" />
   25:       <span tal:define="global tree python:here.tree(here.REQUEST['path'])">
   26: 	<table border='1' width="100%">
   27: 	  <tr>
   28: 	    <td width="60%" valign="top">
   29: 	      <h2>
   30: 		Path: 
   31: 		</h2>
   32: 	      <b tal:content="structure python: here.path_to_link_view(here.REQUEST['path'])">
   33: 		LINKS
   34: 		</b>
   35: 	      <br>
   36: 	      <i tal:condition="python:fs.isdigilib(here.REQUEST['path'])&gt;0">
   37: 		<br>
   38: 		&nbsp;&nbsp;&nbsp; 
   39: 		<img src="images/Arrow_Right.gif">
   40: 		<a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&amp;files=2'">
   41: 		  show image folders 
   42: 		  </a>
   43: 		</i>
   44: 	      <i tal:condition="python:here.isdigilib2(here.REQUEST['path'])&gt;0">
   45: 		<br>
   46: 		&nbsp;&nbsp;&nbsp; 
   47: 		<img src="images/Arrow_Right.gif">
   48: 		<a href="" target="_blank" tal:attributes="href python:'http://nausikaa2.mpiwg-berlin.mpg.de:8080/digitallibrary/digilib.jsp?'+here.changeName(here.REQUEST['path'])">
   49: 		  view images 
   50: 		  </a>
   51: 		</i>
   52: 	      <h2>
   53: 		Subfolders: 
   54: 		</h2>
   55: 	      <span tal:repeat="item python:tree.getTree(here.REQUEST['path'])">
   56: 		<span tal:condition="python:tree.isDirectory(here.REQUEST['path'],item)">
   57: 		  <p>
   58: 		    &nbsp;&nbsp; 
   59: 		    <a href="" tal:attributes="href python:'toggle_view?path='+here.REQUEST['path']+'&amp;file='+item">
   60: 		      <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
   61: 			- 
   62: 			<img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
   63: 			</span>
   64: 		      <span tal:condition="not:python:tree.isToggle(here.REQUEST['path'],item)">
   65: 			+ 
   66: 			<img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
   67: 			</span>
   68: 		      </a>
   69: 		    <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item">
   70: 		      <span tal:replace="item" />
   71: 		      </a>
   72: 		    <span tal:condition="python:fs.isdigilib(here.REQUEST['path']+'/'+item)&gt;0">
   73: 		      <img src="images/Arrow_Right.gif">
   74: 		      <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'&amp;files=2'">
   75: 			show image folders 
   76: 			</a>
   77: 		      </span>
   78: 		    <span tal:condition="python:here.isdigilib2(here.REQUEST['path']+'/'+item)&gt;0">
   79: 		      <img src="images/Arrow_Right.gif">
   80: 		      <a href="" target="_blank" tal:attributes="href python:'http://nausikaa2.mpiwg-berlin.mpg.de:8080/digitallibrary/digilib.jsp?'+here.changeName(here.REQUEST['path']+'/'+item)">
   81: 			view images 
   82: 			</a>
   83: 		      </span>
   84: 		    <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">
   85: 		      <img border="0" src="images/Arrow_Right.gif">
   86: 		      <font size="-1">
   87: 			(info)
   88: 			</font>
   89: 		      </a>
   90: 		    </p>
   91: 		  <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
   92: 		    <span tal:repeat="sub python:tree.getTree(here.REQUEST['path']+'/'+item)">
   93: 		      <span tal:condition="python:tree.isDirectory(here.REQUEST['path']+'/'+item,sub)">
   94: 			<p>
   95: 			  <i>
   96: 			    &nbsp;&nbsp;&nbsp;&nbsp; 
   97: 			    <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
   98: 			    <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'/'+sub" tal:content="sub">
   99: 			      BBB 
  100: 			      </a>
  101: 			    <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">
  102: 			      <img border="0" src="images/Arrow_Right.gif">
  103: 			      <font size="-1">
  104: 				(info)
  105: 				</font>
  106: 			      </a>
  107: 			    </i>
  108: 			  </p>
  109: 			</span>
  110: 		      </span>
  111: 		    </span>
  112: 		  </span>
  113: 		</span>
  114: 	      <span tal:condition="python:here.REQUEST.has_key('files')">
  115: 		<h3>
  116: 		  Click for viewing with digilib 
  117: 		  </h3>
  118: 		<span tal:repeat="dir python:fs.digilib(here.REQUEST['path'])">
  119: 		  <img src="images/Arrow_Right.gif"><a href="XXX" tal:attributes="href python:'http://nausikaa2.mpiwg-berlin.mpg.de:8080/digitallibrary/digilib.jsp?'+dir" target="_blank" tal:content="dir">
  120: 		    XXX 
  121: 		    </a>
  122: 		  </span>
  123: 		</span>
  124: 	      </td>
  125: 	    <td tal:condition="python:here.REQUEST.has_key('meta')" valign="top">
  126: 	      <div tal:define="global metafile python:here.getMetafile(here.REQUEST['meta'])"/>
  127: 
  128: 	      <div tal:condition="python:metafile=='NO_METADATA'">
  129: 		<p>No metadata available for <span tal:replace="python:here.REQUEST['meta']"/></p>
  130: 		
  131: 		</div>
  132: 	      <div tal:condition="not:python:metafile=='NO_METADATA'"><div tal:replace="structure metafile"/></div>
  133: 	      
  134: 	      
  135: 	      </td>
  136: 	    <td tal:condition="not:python:here.REQUEST.has_key('meta')" valign="top" tal:define="global metafile python:here.getMetafile(here.REQUEST['path'])">
  137: 	      <div tal:condition="python:metafile=='NO_METADATA'">
  138: 		<p>No metadata available for <span tal:replace="python:here.REQUEST['path']"/></p>
  139: 		
  140: 		</div>
  141: 	      <div tal:condition="not:python:metafile=='NO_METADATA'"><div tal:replace="structure metafile"/></div>
  142: 	      </td>
  143: 
  144: 	    </tr>
  145: 	  </table>
  146: 	</span>
  147:       </div>
  148:     </body>
  149:   </html>

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