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

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.2     ! dwinter   126:              
        !           127:         <a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path']+'/'+item)">
1.1       dwinter   128:            <img src="images/Arrow_Right.gif" border="0">FULL TEXT
                    129:            </a>
                    130:              </span>
                    131:            <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">
                    132:              <img border="0" src="images/Arrow_Right.gif">
                    133:              <font size="-1">
                    134:            (info)
                    135:            </font>
                    136:              </a>
                    137:            </p>
                    138:          <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
                    139:            <span tal:repeat="sub python:tree.getTree(here.REQUEST['path']+'/'+item)">
                    140:              <span tal:condition="python:tree.isDirectory(here.REQUEST['path']+'/'+item,sub)">
                    141:            <p>
                    142:              <i>
                    143:                &nbsp;&nbsp;&nbsp;&nbsp; 
                    144:                <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
                    145:                <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'/'+sub" tal:content="sub">
                    146:                  BBB
                    147:                  </a>
                    148:                <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">
                    149:                  <img border="0" src="images/Arrow_Right.gif">
                    150:                  <font size="-1">
                    151:                (info)
                    152:                </font>
                    153:                  </a>
                    154:                </i>
                    155:              </p>
                    156:            </span>
                    157:              </span>
                    158:            </span>
                    159:          </span>
                    160:        </span>
                    161: 
                    162:          <span tal:condition="python:here.REQUEST.has_key('files')">
                    163:        <h3>
                    164:          Click for viewing with digilib
                    165:          </h3>
                    166:        <span tal:repeat="dir python:fs.digilib(here.REQUEST['path'])">
1.2     ! dwinter   167: 
        !           168:          <a href="XXX" tal:attributes="href python:container.DigILibURL+'?'+dir" target="_blank" tal:content="dir">
        !           169:        
1.1       dwinter   170:            XXX
                    171:            </a>
                    172:          </span>
                    173:        </span>
                    174:          <h3>Contexts</h3>
                    175:          <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>    
                    176:       </td>
                    177:        <td tal:condition="python:here.REQUEST.has_key('meta')" valign="top">
                    178:          <div tal:define="global metafile python:here.getMetafile(here.REQUEST['meta'])"/>
                    179:          
                    180:          <div tal:condition="python:metafile=='NO_METADATA'">
                    181:        <p>No metadata available for <span tal:replace="python:here.REQUEST['meta']"/></p>
                    182:        <p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['meta']">add</a></p>
                    183:        </div>
                    184:          <div tal:condition="not:python:metafile=='NO_METADATA'">
                    185:        <div tal:replace="structure metafile"/>
                    186:        <p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['meta']">Edit</a></p>
                    187:        </div>
                    188:          
                    189:          
                    190:          </td>
                    191:        <td tal:condition="not:python:here.REQUEST.has_key('meta')" valign="top" tal:define="global metafile python:here.getMetafile(here.REQUEST['path'])">
                    192:          <div tal:condition="python:metafile=='NO_METADATA'">
                    193:        <p>No metadata available for <span tal:replace="python:here.REQUEST['path']"/></p>
                    194:        <p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['path']">add</a></p>
                    195:        </div>
                    196:          <div tal:condition="not:python:metafile=='NO_METADATA'">
                    197:        <div tal:replace="structure metafile"/>
                    198:        <p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['path']">Edit</a></p>
                    199:        </div>
                    200:          </td>
                    201:        </tr>
                    202:      </table>
                    203:    </span>
                    204:       
                    205:       </div>
                    206:  
                    207:     </body>
                    208:   </html>

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