Diff for /cdli/zpt/BasketVersionMain.zpt between versions 1.3 and 1.13

version 1.3, 2006/02/17 12:10:39 version 1.13, 2008/10/29 12:10:05
Line 7 Line 7
                     previous python:batch.previous;                      previous python:batch.previous;
                     next python:batch.next">                      next python:batch.next">
   
     
     <table width="100%" border=0 cellpadding=0 cellspacing=0>
     <tr>
     <td>
   <h2>Basket: <span tal:replace="python:here.aq_parent.title"/></h2>    <h2>Basket: <span tal:replace="python:here.aq_parent.title"/></h2>
   <p>contains <span tal:replace="here/numberOfItems"/> items    <p>Your basket contains <span tal:replace="here/numberOfItems"/> files(s).</p>
   <a tal:attributes="href python:here.aq_parent.absolute_url()+'/history'">View history</a>    <p>You can now: </p>
   </p>     <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a></p>
   <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile'"> download basket (combined in one file)</a>     <p>or</p>
  <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock all files(combined in one file)</a>   <p><a tal:attributes="href python:here.getId()+'/downloadObjectsAsOneFile?lock=yes'"> download basket and lock all files(combined in one file)</a>
     </p>
    <p>or</p>
   <!-- <p><a tal:attributes="href python:here.basketContainer.absolute_url()+'/uploadBasket_html'"> upload a basket </a></p>-->
     <p>
     <a tal:attributes="href python:here.aq_parent.absolute_url()+'/history'">View the history of your basket</a>
     </p>
     <p>or</p>
     <p>
     <a tal:attributes="href python:here.absolute_url()+'/downloadListOfPnumbers'">Download list of p numbers</a>
     </p>
     <p>
       <form action="searchInBasket">
         Search in the basket:
       <select name="indexName">
         <option value="graphemeSplitter">grapheme</option>
         <option value="wordSplitter">word</option>
       </select>
       <input name="searchStr"><input type="hidden" name="skip" value="50">
       <input type="hidden" name="start" value="0"><input type="submit" value="search">
       <input type="hidden" name="hl" value="yes">
       <br> Use regexp (currently very slow):
       <input type="radio" name="regExp" value="no" checked="true">No
       <input type="radio" name="regExp" value="yes">Yes
       <br>  
       </form>
     </p>
     </td>
     <td valign="top" align=right>
     <div class="tip">
   Note that any file you download will have the extension "atf". You can open this file with any text editor including Microsoft Word. If you are not able to save your document with the extension atf, then save it as txt (text only), and send the file to <a href="mailto:cdli@ucla.edu">cdli@ucla.edu</a> instead of uploading directly on your own. A member of the cdli team will then upload the file for you.
   </div>
     </td>
     </tr>
     <tr>
     <td colspan="2">
    <hr class="yellow">
    <h3>Content of your basket</h3>
    <p>note that</p>
    <p>red = basket refers not to the actual version</p>
    <p>red and DEL = file has been deleted</p>
   <p>    <p>
     <a tal:condition="previous"      <a tal:condition="previous"
        tal:attributes="href string:${request/URL0}?start:int=${previous/first}"         tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
        href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>         href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
     <a tal:condition="next"       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a tal:condition="next"
        tal:attributes="href string:${request/URL0}?start:int=${next/first}"         tal:attributes="href string:${request/URL0}?start:int=${next/first}"
        href="next_url">next <span tal:replace="next/length">20</span> results</a>         href="next_url">next <span tal:replace="next/length">20</span> results >></a>
   </p>    </p>
  <form action="basket/deleteObjects">   
  <table  width="100%" border=0 cellspacing=1 cellpadding=2>   <form action="changeBasket">
    <table  width="100%" border=0 cellspacing=1 cellpadding=2 class="filelist">
     <tr>      <tr>
       <th align=left bgcolor="#88ff88">        <th align=left>
       <a href="?sortField=title"> File</a>        <a href="?sortField=title"> File</a>
       </th>        </th>
       <th align=left bgcolor="#00">        <th align=left>
     <a>Rev.</a>        Designation
         </th>
         
         <th align=left>
       Revisions
       </th>        </th>
       <th align=left bgcolor="#cccccc">        <th align=left>
     <a href="?sortField=date">Date</a>      <a href="?sortField=date">Date</a>
       </th>        </th>
       <th align=left bgcolor="#cccccc">        <th align=left>
     <a href="?sortField=author">Author</a>      <a href="?sortField=author">Author</a>
       </th>        </th>
       <th align=left bgcolor="#cccccc">        <th align=left>
     <a >Last log entry</a>      Last log entry
       </th>        </th>
       <th align=left bgcolor="#cccccc" width="80">        <th align=left width="80">
     <a href="?sortField=comment">Comment</a>      <a href="?sortField=comment">Comment</a>
       </th>        </th>
       <th align=left bgcolor="#cccccc">        <th align=left>
     <a>Download<br><font size="-1"><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a></font></a>      Download<br><a tal:attributes="href python:here.absolute_url()+'/helpDownload'" target="help">(help)</a>
       </th>        </th>
       <th align=left bgcolor="#cccccc">        <th align=left>
     <a>Downl. and lock</a>      Downl. and lock
       </th>        </th>
       <th align=left bgcolor="#cccccc">        <th align=left>
     <a>Upload</a>      Upload
         </th>
         <th>
         Contained in: 
       </th>        </th>
     </tr>      </tr>
                 
         
   <tal:x repeat="result batch">    <tal:x repeat="result batch">
    <tal:x tal:define="version python:here.getFile(result);lastVersion python:here.getFileLastVersion(result)">    <tal:x tal:define="version python:here.getFileObject(result[0]);lastVersion python:version.getVersionNr(result[1]);actual python:here.isActual(version,result[1]);">
     <tr tal:attributes="class python:test(here.isActual(result),'actual','old')">      <tr tal:attributes="class python:test(actual[0],'actual','old')">
     <td><input type="checkbox" tal:attributes="value version/getId" name="ids">      <td><nobr><input type="checkbox" tal:attributes="value version/getId" name="ids">
            <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result)+          <tal:x condition="python:actual[1]==-1">DEL</tal:x>   <a tal:content="python:version.getTitle()" tal:attributes="href python:here.getObjUrl(result[0])+'/'+lastVersion.getId()+'/view?fromBasket='+here.aq_parent.id+'&filenr='+str(results.index(result))"/></nobr>
            '/'+lastVersion.getId()+'/view'"/></td>      </td>
       <td tal:condition="python:hasattr(lastVersion,'getDesignation')">
              <span tal:content="python:here.unicodify(lastVersion.getDesignation())"/>
        </td>
         <td tal:condition="not:python:hasattr(lastVersion,'getDesignation')">
              <span tal:content="python:'error'"/>
        </td>
     <td>      <td>
     <span tal:replace="lastVersion/getVersionNumber"/>      <span tal:replace="lastVersion/getVersionNumber"/>
     <font size="-1"><a tal:attributes="href python:here.getObjUrl(result)+'/history'">(history)</a></font>      <nobr><a tal:attributes="href python:here.getObjUrl(result[0])+'/history'">(history)</a></nobr>
     </td>      </td>
     <td tal:content="lastVersion/getTime"/>      <td tal:content="lastVersion/getTime"/>
     <td tal:content="lastVersion/lastEditor"/>      <td tal:content="lastVersion/lastEditor"/>
     <td tal:content="lastVersion/getVersionComment"/>      <td tal:content="lastVersion/getVersionComment"/>
         <td><a tal:attributes="href python:here.getObjUrl(result)+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>          <td><a tal:attributes="href python:here.getObjUrl(result[0])+'/manageVCommentForm'"><small tal:content="python:lastVersion.getVComment()"/></a></td>
         <!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->          <!--<td><a tal:attributes="href python:version.absolute_url()+'/manageCommentForm'"><small tal:content="python:version.getComment()"/></a></td>-->
     <td><a tal:attributes="href python:here.getObjUrl(result)">download</a></td>      <td><a tal:attributes="href python:here.getObjUrl(result[0])">download</a></td>
           
     <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/downloadLocked'">download and lock</a></td>      <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result[0])+'/downloadLocked'">download and lock</a></td>
     <td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td>      <td tal:condition="not:python:version.lockedBy==''"><a>locked</a></td>
           
     <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result)+'/'+version.title+'/addCDLIFileObjectForm'">Upload New Version</a></td>      <td tal:condition="python:version.lockedBy==''"><a tal:attributes="href python:here.getObjUrl(result[0])+'/'+version.title+'/addCDLIFileObjectForm?come_from='+here.URLquote(here.absolute_url())">Upload New Version</a> </td>
     <td tal:condition="not:python:version.lockedBy==''">      <td tal:condition="not:python:version.lockedBy==''">
       <b tal:attributes="href python:here.getObjUrl(result)+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>&nbsp;        <b tal:attributes="href python:here.getObjUrl(result[0])+'/addCDLIFileObjectForm'">Locked by: <span tal:replace="version/lockedBy"/></b>&nbsp;
       <a tal:attributes="href python:here.getObjUrl(result)+'/unlock'">unlock</a>        <a tal:attributes="href python:here.getObjUrl(result[0])+'/unlock'">unlock</a>
     </td>      </td>
       <td>
        <a tal:repeat="collection python:version.isContainedInBaskets(context=here)" tal:content="collection/title"
        tal:attributes="href python:collection.getLastVersion().absolute_url()"/>  </td>
    </tr>     </tr>
     </tal:x>      </tal:x>
   </tal:x>    </tal:x>
Line 87 Line 148
   <p>    <p>
     <a tal:condition="previous"      <a tal:condition="previous"
        tal:attributes="href string:${request/URL0}?start:int=${previous/first}"         tal:attributes="href string:${request/URL0}?start:int=${previous/first}"
        href="previous_url">previous <span tal:replace="previous/length">20</span> results</a>         href="previous_url"><< previous <span tal:replace="previous/length">20</span> results</a>
     <a tal:condition="next"      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a tal:condition="next"
        tal:attributes="href string:${request/URL0}?start:int=${next/first}"         tal:attributes="href string:${request/URL0}?start:int=${next/first}"
        href="next_url">next <span tal:replace="next/length">20</span> results</a>         href="next_url">next <span tal:replace="next/length">20</span> results >></a>
   </p>    </p>
 <input type="submit" value="delete from basket">  <input type="submit" name="submit" value="update" class="button"> or
   <input type="submit" name="submit" value="delete" class="button">
   selected files
   </td>
   </tr>
   </table>
 </tal:block>  </tal:block>
   
 </html>  </html>
   

Removed from v.1.3  
changed lines
  Added in v.1.13


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