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

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

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