Diff for /MPIWGWeb/zpt/Attic/editPublications.zpt between versions 1.1.2.2 and 1.1.2.5

version 1.1.2.2, 2005/10/10 19:10:13 version 1.1.2.5, 2005/10/18 12:59:51
Line 1 Line 1
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html metal:use-macro="here/mainEditFile/macros/page">  <html metal:use-macro="here/mainEditFile/macros/page">
   <body>
     <tal:block metal:fill-slot="navsel" tal:define="global selected python:'publications'"/>
   
 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno';  <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno';
                                             sortingMode python:'year\npriority'">                                              sortingMode python:'year\npriority'">
   
 <h3>Manage Publications</h3>  <p><a href="addPublications">Add Publications to your list</a></p>
 <p><a href="addPublications">Add Publications</a></p>  <form action="changePublicationSelectionMode" method="post">
   
   <h3>Select the 5 publications to be displayed at your <a src="../index.html" target="blank"> homepage</a></h3>
   <p>Choose the first 5 of my list following the order of</p>
   <table tal:define="sm python:here.getPublicationSelectionMode()">
       <tr tal:condition="python:sm=='priority'">
           <td>
             <span><input type="radio" name="publicationSelectionMode" value="year"/>year</span>
             <span><input checked type="radio" name="publicationSelectionMode" value="priority"/>priority</span>
           </td>
       <td><input type="submit" value="change"></td>
       </tr>
       <tr tal:condition="not:python:sm=='priority'">
       <td>
         <span><input checked type="radio" name="publicationSelectionMode" value="year"/> year</span>
           <span><input type="radio" name="publicationSelectionMode" value="priority"/> priority</span>
       </td>
       <td><input type="submit" value="change"></td>
       </tr>
   </table>
   </form>
   
   <h3>Changing sort order, delete or edit publications</h3>
   <p>Editing is only possible for publications which are not imported from the institutsbiliography. For more information see XXX</p>
 <form action="changeSortingMode" method="post">  <form action="changeSortingMode" method="post">
 <p>Sort by:</p>  <p>Sort by:</p>
     <table>      <table>
Line 17 Line 44
     </table>      </table>
   
 </form>  </form>
   
   <h2>Publication list</h2>
   
    <form action="changePublications" method="post">     <form action="changePublications" method="post">
      <input type="hidden" name="id_main" tal:attributes="value person/id">       <input type="hidden" name="id_main" tal:attributes="value person/id">
      <input type="hidden" name="main_fields" value="publications__title">       <input type="hidden" name="main_fields" value="publications__title,publications__publish">
             
      <tal:block tal:define="books python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and lower(referencetype)in (\'book\') and publish=\'yes\' order by priority'%here.getDBId());       <tal:block tal:define="books python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and lower(referencetype)in (\'book\') and publish=\'yes\' order by priority'%here.getDBId());
                  edited_books python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and lower(referencetype)in (\'edited book\') and publish=\'yes\' order by priority'%here.getDBId());                   edited_books python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and lower(referencetype)in (\'edited book\') and publish=\'yes\' order by priority'%here.getDBId());
Line 42 Line 72
             </td>              </td>
                 <td valign="top">                  <td valign="top">
                 <input tal:attributes="name python:'publications__priority__'+str(found.oid);                  <input tal:attributes="name python:'publications__priority__'+str(found.oid);
                      value found/priority" size="3"/>                       value python:here.integer(found.priority)" size="3"/>
             </td>              </td>
             <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(              <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
Line 50 Line 80
                  boxType='radio',                   boxType='radio',
                  checked=found.publish)"/>                   checked=found.publish)"/>
                 </tr>                  </tr>
           </table>
      </tal:block>       </tal:block>
   
      <tal:block tal:condition="edited_books">       <tal:block tal:condition="edited_books">
Line 68 Line 99
         </td>          </td>
         <td valign="top">          <td valign="top">
             <input tal:attributes="name python:'publications__priority__'+str(found.oid);              <input tal:attributes="name python:'publications__priority__'+str(found.oid);
                      value found/priority" size="3"/>                      value python:here.integer(found.priority)" size="3"/>
           
         </td>          </td>
         <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(          <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
Line 94 Line 126
          </td>           </td>
          <td valign="top">           <td valign="top">
            <input tal:attributes="name python:'publications__priority__'+str(found.oid);             <input tal:attributes="name python:'publications__priority__'+str(found.oid);
                      value found/priority" size="3"/>                       value python:here.integer(found.priority)" size="3"/>
   
          </td>           </td>
         <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(          <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
Line 115 Line 148
          </td>           </td>
          <td valign="top">           <td valign="top">
            <input tal:attributes="name python:'publications__priority__'+str(found.oid);             <input tal:attributes="name python:'publications__priority__'+str(found.oid);
                      value found/priority" size="3"/>                               value python:here.integer(found.priority)" size="3"/>
   
          </td>           </td>
         <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(          <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
Line 126 Line 160
         </table>          </table>
      </tal:block>       </tal:block>
      </tal:block>       </tal:block>
        <input type="submit" value="change">
   </form>    </form>
 </tal:block>  </tal:block>
   </body>
 </html>  </html>

Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.5


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