Annotation of OSAS/OSA_system/zpt/OSAS_StoreFiles.zpt, revision 1.3

1.1       dwinter     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 - Add Source
                     10:       </div>
                     11:     <div metal:fill-slot="nav_main">
                     12:       <p>
                     13:    <a class="map" href="XXX">
                     14:      Online Archive at Foxridge</a>
                     15:    </p>
                     16:       <p>
                     17:    <a class="map" href="XXX">
                     18:      Old Online Archive at Digifiles</a>
                     19:    </p>
                     20:       </div>
                     21:     <div metal:fill-slot="body">
                     22:       <span tal:define="global fs python:here.getfilesystem2(here.REQUEST['path'])" />
                     23:       <span tal:define="global tree python:here.tree(here.REQUEST['path'])">
                     24:    <table border='1' width="100%">
                     25:      <tr width="60%">
                     26:        <td valign="top">
                     27:        
                     28:          <b tal:content="structure python: here.path_to_link_store(here.REQUEST['path'])" />
                     29:          <div tal:condition="python:here.isFolder(here.REQUEST['path'])" tal:omit-tag=""> 
                     30:        <br>
                     31:        <i>&nbsp;&nbsp;&nbsp; 
                     32:          <img src="images/Arrow_Right.gif"><a href="add" tal:attributes="href python:here.REQUEST['URL1']+'/standardUpload?path='+here.REQUEST['path']">
                     33:            add a new document to this path
                     34:            </a></i><br>
                     35:        <i>
                     36:          &nbsp;&nbsp;&nbsp; 
                     37:          <img src="images/Arrow_Right.gif">
                     38:          <a href="add" tal:attributes="href python:'addFolderForm?path='+here.REQUEST['path']">
                     39:            new subfolder
                     40:            </a></i><br>
                     41:        </div>
                     42:          <div tal:omit-tag="" tal:condition="python:here.isScannedDocument(here.REQUEST['path'])"><br>
                     43:        <i>&nbsp;&nbsp;&nbsp; 
                     44:          <img src="images/Arrow_Right.gif"><a href="add" tal:attributes="href python:'standardUpload/addImages?path='+here.REQUEST['path']">
                     45:            add a new set of images 
                     46:            </a></i><br>
                     47:        <i>
                     48:          &nbsp;&nbsp;&nbsp; 
                     49:          <img src="images/Arrow_Right.gif">
                     50:          <a href="add" tal:attributes="href python:'standardTextadd/addText?path='+here.REQUEST['path']">
                     51:            add a full text 
                     52:            </a></i><br>
                     53:        <i>
                     54:          &nbsp;&nbsp;&nbsp; 
                     55:          <img src="images/Arrow_Right.gif">
                     56:          <a href="add" tal:attributes="href python:'standardPresentationadd/addPresentation?path='+here.REQUEST['path']">
                     57:            add presentation information
                     58:            </a></i><br>
                     59:        <i>
                     60: 
                     61:          &nbsp;&nbsp;&nbsp; 
                     62:          <img src="images/Arrow_Right.gif">
                     63:          <a href="add" tal:attributes="href python:'standardCombineTextImage/combineTextImage?path='+here.REQUEST['path']">
                     64:            combine text, image and presentation 
                     65:            </a></i><br>
                     66:        <i>
                     67:          &nbsp;&nbsp;&nbsp; 
                     68:          <img src="images/Arrow_Right.gif">
                     69:          <a href="add" tal:attributes="href python:'standardContextDataAdd/addContextData?path='+here.REQUEST['path']">
                     70:            add document to a collection
                     71:            </a></i><br>
                     72:        
                     73:        </div>
                     74:         <span tal:condition="python:fs.isdigilib(here.REQUEST['path'])&gt;0">
                     75:        &nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
                     76:        <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&amp;files=2'">
                     77:          <i>show files for viewing</i>
                     78:          </a>
                     79:        </span>
                     80:        <span tal:condition="python:fs.isdigilib(here.REQUEST['path'])&gt;0">
                     81:        &nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
                     82:        <a href="" tal:attributes="href python:here.REQUEST['URL1']+'/rescaleThumbs?path='+here.REQUEST['path']">
                     83:          <i>Rescale all Thumbs</i>
                     84:          </a>
                     85:        </span>
                     86: 
                     87:         <span tal:condition="python:here.isdigilib2(here.REQUEST['path'])&gt;0">
                     88:        &nbsp;&nbsp;&nbsp;
                     89:          <img src="images/Arrow_Right.gif">
1.2       dwinter    90: 
                     91:          <a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path'])"><i>view images in this folder</i>
                     92:         
1.1       dwinter    93:          
                     94:            </a>
                     95:        </span>
                     96:          <span tal:repeat="item python:tree.getTree(here.REQUEST['path'])">
                     97:        <span tal:condition="python:tree.isDirectory(here.REQUEST['path'],item)">
                     98:          <p>
                     99:            &nbsp;&nbsp;
                    100:            <a href="" tal:attributes="href python:'toggle_view?path='+here.REQUEST['path']+'&amp;file='+item">
                    101:              <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
                    102:            - 
                    103:            <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
                    104:            </span>
                    105:              <span tal:condition="not:python:tree.isToggle(here.REQUEST['path'],item)">
                    106:            + 
                    107:            <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
                    108:            </span>
                    109:              </a>
                    110:            <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item">
                    111:              <span tal:replace="item" />
                    112:              </a>
                    113:            <span tal:condition="python:fs.isdigilib(here.REQUEST['path']+'/'+item)&gt;0">
                    114:              <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'&amp;files=2'">
                    115:            show files for viewing
                    116:            </a>
                    117:              </span>
1.2       dwinter   118: 
1.1       dwinter   119:            <span tal:condition="python:here.isdigilib2(here.REQUEST['path']+'/'+item)&gt;0">
1.2       dwinter   120:            <a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path']+'/'+item)">
                    121: 
1.1       dwinter   122:            <img src="images/Arrow_Right.gif" border="0">view images
                    123:            </a>
                    124:              </span>
                    125:            <span tal:condition="python:here.isFullText(here.REQUEST['path'],item)&gt;0">
1.3     ! dwinter   126:              <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+'/'+here.REQUEST['path']+'/'+item">
        !           127:            <img src="images/Arrow_Right.gif" border="0">full text
        !           128:              </a>
        !           129:            </span>
        !           130:            <span tal:condition="python:here.isPresentation(here.REQUEST['path'],item)&gt;0">
        !           131:              <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+here.REQUEST['path']+'/'+item+'/info.xml'">
        !           132:            <img src="images/Arrow_Right.gif" border="0">presentation
        !           133:              </a>
        !           134:            </span>
        !           135: 
1.1       dwinter   136:            <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">
                    137:              <img border="0" src="images/Arrow_Right.gif">
                    138:              <font size="-1">
                    139:            (info)
                    140:            </font>
                    141:              </a>
                    142:            </p>
                    143:          <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
                    144:            <span tal:repeat="sub python:tree.getTree(here.REQUEST['path']+'/'+item)">
                    145:              <span tal:condition="python:tree.isDirectory(here.REQUEST['path']+'/'+item,sub)">
                    146:            <p>
                    147:              <i>
                    148:                &nbsp;&nbsp;&nbsp;&nbsp; 
                    149:                <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
                    150:                <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'/'+sub" tal:content="sub">
                    151:                  BBB
                    152:                  </a>
                    153:                <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">
                    154:                  <img border="0" src="images/Arrow_Right.gif">
                    155:                  <font size="-1">
                    156:                (info)
                    157:                </font>
                    158:                  </a>
                    159:                </i>
                    160:              </p>
                    161:            </span>
                    162:              </span>
                    163:            </span>
                    164:          </span>
                    165:        </span>
                    166: 
                    167:          <span tal:condition="python:here.REQUEST.has_key('files')">
                    168:        <h3>
                    169:          Click for viewing with digilib
                    170:          </h3>
                    171:        <span tal:repeat="dir python:fs.digilib(here.REQUEST['path'])">
1.2       dwinter   172: 
                    173:          <a href="XXX" tal:attributes="href python:container.DigILibURL+'?'+dir" target="_blank" tal:content="dir">
                    174:        
1.1       dwinter   175:            XXX
                    176:            </a>
                    177:          </span>
                    178:        </span>
                    179:          <h3>Contexts</h3>
                    180:          <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>    
                    181:       </td>
                    182:        <td tal:condition="python:here.REQUEST.has_key('meta')" valign="top">
                    183:          <div tal:define="global metafile python:here.getMetafile(here.REQUEST['meta'])"/>
                    184:          
                    185:          <div tal:condition="python:metafile=='NO_METADATA'">
                    186:        <p>No metadata available for <span tal:replace="python:here.REQUEST['meta']"/></p>
                    187:        <p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['meta']">add</a></p>
                    188:        </div>
                    189:          <div tal:condition="not:python:metafile=='NO_METADATA'">
                    190:        <div tal:replace="structure metafile"/>
                    191:        <p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['meta']">Edit</a></p>
                    192:        </div>
                    193:          
                    194:          
                    195:          </td>
                    196:        <td tal:condition="not:python:here.REQUEST.has_key('meta')" valign="top" tal:define="global metafile python:here.getMetafile(here.REQUEST['path'])">
                    197:          <div tal:condition="python:metafile=='NO_METADATA'">
                    198:        <p>No metadata available for <span tal:replace="python:here.REQUEST['path']"/></p>
                    199:        <p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['path']">add</a></p>
                    200:        </div>
                    201:          <div tal:condition="not:python:metafile=='NO_METADATA'">
                    202:        <div tal:replace="structure metafile"/>
                    203:        <p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['path']">Edit</a></p>
                    204:        </div>
                    205:          </td>
                    206:        </tr>
                    207:      </table>
                    208:    </span>
                    209:       
                    210:       </div>
                    211:  
                    212:     </body>
                    213:   </html>

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