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

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>
1.4       dwinter    41:        <i>
                     42:          &nbsp;&nbsp;&nbsp; 
                     43:          <img src="images/Arrow_Right.gif">
                     44:          <a href="add" tal:attributes="href python:'changeTemplatesForm?path='+here.REQUEST['path']">
                     45:            Change the templates for all documents in this folder and its subfolder
                     46:            </a></i><br>
                     47: 
1.1       dwinter    48:        </div>
                     49:          <div tal:omit-tag="" tal:condition="python:here.isScannedDocument(here.REQUEST['path'])"><br>
                     50:        <i>&nbsp;&nbsp;&nbsp; 
                     51:          <img src="images/Arrow_Right.gif"><a href="add" tal:attributes="href python:'standardUpload/addImages?path='+here.REQUEST['path']">
                     52:            add a new set of images 
                     53:            </a></i><br>
                     54:        <i>
1.7       dwinter    55:            &nbsp;&nbsp;&nbsp; 
                     56:            <img src="images/Arrow_Right.gif">
                     57:                <a href="add" tal:attributes="href python:'standardTextadd/addText?path='+here.REQUEST['path']">
                     58:                  add a full text (Text file in XML) 
                     59:                </a></i><br>
                     60:              <i>
                     61:             &nbsp;&nbsp;&nbsp; 
1.1       dwinter    62:          <img src="images/Arrow_Right.gif">
1.7       dwinter    63:          <a href="add" tal:attributes="href python:'standardTextadd/addPdf?path='+here.REQUEST['path']">
                     64:            add a pdf File 
1.1       dwinter    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:'standardPresentationadd/addPresentation?path='+here.REQUEST['path']">
                     70:            add presentation information
                     71:            </a></i><br>
                     72:        <i>
                     73: 
                     74:          &nbsp;&nbsp;&nbsp; 
                     75:          <img src="images/Arrow_Right.gif">
                     76:          <a href="add" tal:attributes="href python:'standardCombineTextImage/combineTextImage?path='+here.REQUEST['path']">
                     77:            combine text, image and presentation 
                     78:            </a></i><br>
                     79:        <i>
                     80:          &nbsp;&nbsp;&nbsp; 
                     81:          <img src="images/Arrow_Right.gif">
                     82:          <a href="add" tal:attributes="href python:'standardContextDataAdd/addContextData?path='+here.REQUEST['path']">
                     83:            add document to a collection
                     84:            </a></i><br>
                     85:        
                     86:        </div>
                     87:         <span tal:condition="python:fs.isdigilib(here.REQUEST['path'])&gt;0">
                     88:        &nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
                     89:        <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'&amp;files=2'">
                     90:          <i>show files for viewing</i>
                     91:          </a>
                     92:        </span>
                     93:        <span tal:condition="python:fs.isdigilib(here.REQUEST['path'])&gt;0">
1.5       dwinter    94:        &nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
1.1       dwinter    95:        <a href="" tal:attributes="href python:here.REQUEST['URL1']+'/rescaleThumbs?path='+here.REQUEST['path']">
                     96:          <i>Rescale all Thumbs</i>
                     97:          </a>
                     98:        </span>
                     99: 
                    100:         <span tal:condition="python:here.isdigilib2(here.REQUEST['path'])&gt;0">
                    101:        &nbsp;&nbsp;&nbsp;
                    102:          <img src="images/Arrow_Right.gif">
1.2       dwinter   103: 
                    104:          <a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path'])"><i>view images in this folder</i>
                    105:         
1.1       dwinter   106:          
                    107:            </a>
                    108:        </span>
1.5       dwinter   109:        <span tal:condition="python:here.isdigilib2(here.REQUEST['path'])&gt;0">
                    110:        &nbsp;&nbsp;&nbsp; <img src="images/Arrow_Right.gif">
                    111:        <a href="" tal:attributes="href python:here.REQUEST['URL1']+'/rescaleThumbs?path='+here.REQUEST['path']">
                    112:          <i>Rescale all Thumbs</i>
                    113:          </a>
                    114:        </span>
                    115: 
1.1       dwinter   116:          <span tal:repeat="item python:tree.getTree(here.REQUEST['path'])">
                    117:        <span tal:condition="python:tree.isDirectory(here.REQUEST['path'],item)">
                    118:          <p>
                    119:            &nbsp;&nbsp;
                    120:            <a href="" tal:attributes="href python:'toggle_view?path='+here.REQUEST['path']+'&amp;file='+item">
                    121:              <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
                    122:            - 
                    123:            <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
                    124:            </span>
                    125:              <span tal:condition="not:python:tree.isToggle(here.REQUEST['path'],item)">
                    126:            + 
                    127:            <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
                    128:            </span>
                    129:              </a>
                    130:            <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item">
                    131:              <span tal:replace="item" />
                    132:              </a>
                    133:            <span tal:condition="python:fs.isdigilib(here.REQUEST['path']+'/'+item)&gt;0">
                    134:              <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'&amp;files=2'">
                    135:            show files for viewing
                    136:            </a>
                    137:              </span>
1.2       dwinter   138: 
1.1       dwinter   139:            <span tal:condition="python:here.isdigilib2(here.REQUEST['path']+'/'+item)&gt;0">
1.2       dwinter   140:            <a href="" target="_blank" tal:attributes="href python:container.DigILibURL+'?'+here.changeName(here.REQUEST['path']+'/'+item)">
                    141: 
1.1       dwinter   142:            <img src="images/Arrow_Right.gif" border="0">view images
                    143:            </a>
                    144:              </span>
1.7       dwinter   145:            <span tal:condition="python:here.isFullText(here.REQUEST['path'],item)&gt;0">
1.3       dwinter   146:              <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+'/'+here.REQUEST['path']+'/'+item">
                    147:            <img src="images/Arrow_Right.gif" border="0">full text
                    148:              </a>
                    149:            </span>
1.7       dwinter   150:            <span tal:condition="python:here.isPdf(here.REQUEST['path'],item)&gt;0">
                    151:              <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+'/'+here.REQUEST['path']+'/'+item">
                    152:            <img src="images/Arrow_Right.gif" border="0">view folder
                    153:              </a>
                    154:            </span>
                    155: 
1.3       dwinter   156:            <span tal:condition="python:here.isPresentation(here.REQUEST['path'],item)&gt;0">
                    157:              <a href="" target="_blank" tal:attributes="href python:here.REQUEST['BASE0']+here.REQUEST['path']+'/'+item+'/info.xml'">
1.6       dwinter   158:            <img src="images/Arrow_Right.gif" border="0">view presentation
1.3       dwinter   159:              </a>
                    160:            </span>
                    161: 
1.1       dwinter   162:            <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">
                    163:              <img border="0" src="images/Arrow_Right.gif">
                    164:              <font size="-1">
                    165:            (info)
                    166:            </font>
                    167:              </a>
                    168:            </p>
                    169:          <span tal:condition="python:tree.isToggle(here.REQUEST['path'],item)">
                    170:            <span tal:repeat="sub python:tree.getTree(here.REQUEST['path']+'/'+item)">
                    171:              <span tal:condition="python:tree.isDirectory(here.REQUEST['path']+'/'+item,sub)">
                    172:            <p>
                    173:              <i>
                    174:                &nbsp;&nbsp;&nbsp;&nbsp; 
                    175:                <img src="/misc_/OFSP/Folder_icon.gif" border='0' alt="D">
                    176:                <a href="" tal:attributes="href python:here.REQUEST['URL']+'?path='+here.REQUEST['path']+'/'+item+'/'+sub" tal:content="sub">
                    177:                  BBB
                    178:                  </a>
                    179:                <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">
                    180:                  <img border="0" src="images/Arrow_Right.gif">
                    181:                  <font size="-1">
                    182:                (info)
                    183:                </font>
                    184:                  </a>
                    185:                </i>
                    186:              </p>
                    187:            </span>
                    188:              </span>
                    189:            </span>
                    190:          </span>
                    191:        </span>
                    192: 
                    193:          <span tal:condition="python:here.REQUEST.has_key('files')">
                    194:        <h3>
                    195:          Click for viewing with digilib
                    196:          </h3>
                    197:        <span tal:repeat="dir python:fs.digilib(here.REQUEST['path'])">
1.2       dwinter   198: 
                    199:          <a href="XXX" tal:attributes="href python:container.DigILibURL+'?'+dir" target="_blank" tal:content="dir">
                    200:        
1.1       dwinter   201:            XXX
                    202:            </a>
                    203:          </span>
                    204:        </span>
                    205:          <h3>Contexts</h3>
                    206:          <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>    
                    207:       </td>
                    208:        <td tal:condition="python:here.REQUEST.has_key('meta')" valign="top">
1.8     ! dwinter   209:          <div tal:define="global metafile python:here.getMetafile(here.REQUEST['meta']).encode('utf-8')"/>
1.1       dwinter   210:          
                    211:          <div tal:condition="python:metafile=='NO_METADATA'">
                    212:        <p>No metadata available for <span tal:replace="python:here.REQUEST['meta']"/></p>
                    213:        <p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['meta']">add</a></p>
                    214:        </div>
                    215:          <div tal:condition="not:python:metafile=='NO_METADATA'">
                    216:        <div tal:replace="structure metafile"/>
                    217:        <p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['meta']">Edit</a></p>
                    218:        </div>
                    219:          
                    220:          
                    221:          </td>
1.8     ! dwinter   222:        <td tal:condition="not:python:here.REQUEST.has_key('meta')" valign="top" tal:define="global metafile python:here.getMetafile(here.REQUEST['path']).encode('utf-8')">
1.1       dwinter   223:          <div tal:condition="python:metafile=='NO_METADATA'">
                    224:        <p>No metadata available for <span tal:replace="python:here.REQUEST['path']"/></p>
                    225:        <p><a href="add_metafile" tal:attributes="href python:'add_metafile?path='+here.REQUEST['path']">add</a></p>
                    226:        </div>
                    227:          <div tal:condition="not:python:metafile=='NO_METADATA'">
                    228:        <div tal:replace="structure metafile"/>
                    229:        <p><a href="Edit" tal:attributes="href python:'EditIndex?path='+here.REQUEST['path']">Edit</a></p>
                    230:        </div>
                    231:          </td>
                    232:        </tr>
                    233:      </table>
                    234:    </span>
                    235:       
                    236:       </div>
                    237:  
                    238:     </body>
                    239:   </html>

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