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

version 1.1.2.5, 2005/10/18 12:59:51 version 1.1.2.10, 2007/05/29 15:09:35
Line 2 Line 2
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">            "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>  <body>
   <tal:block metal:fill-slot="navsel" tal:define="global selected python:'publications'"/>  <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
   
 <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno';  <tal:block metal:fill-slot="body"
                                             sortingMode python:'year\npriority'">    tal:define="yes_no_list python:'yes\nno'; sortingMode python:'year\npriority'">
   
 <p><a href="addPublications">Add Publications to your list</a></p>    <h3><a href="addPublications">Add Publications to your list</a></h3>
 <form action="changePublicationSelectionMode" method="post">  <form action="changePublicationSelectionMode" method="post">
   
 <h3>Select the 5 publications to be displayed at your <a src="../index.html" target="blank"> homepage</a></h3>    <h3>Select the 5 publications to be displayed in the first part of your homepage</h3>
 <p>Choose the first 5 of my list following the order of</p>  <p>Choose the first 5 of my list following the order of</p>
 <table tal:define="sm python:here.getPublicationSelectionMode()">  <table tal:define="sm python:here.getPublicationSelectionMode()">
     <tr tal:condition="python:sm=='priority'">      <tr tal:condition="python:sm=='priority'">
         <td>        <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span>
           <span><input type="radio" name="publicationSelectionMode" value="year"/>year</span>        <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td>
           <span><input checked type="radio" name="publicationSelectionMode" value="priority"/>priority</span>  
         </td>  
     <td><input type="submit" value="change"></td>      <td><input type="submit" value="change"></td>
     </tr>      </tr>
     <tr tal:condition="not:python:sm=='priority'">      <tr tal:condition="not:python:sm=='priority'">
     <td>        <td><span><input checked type="radio" name="publicationSelectionMode" value="year" />
       <span><input checked type="radio" name="publicationSelectionMode" value="year"/> year</span>        year</span> <span><input type="radio" name="publicationSelectionMode"
         <span><input type="radio" name="publicationSelectionMode" value="priority"/> priority</span>          value="priority" /> priority</span></td>
     </td>  
     <td><input type="submit" value="change"></td>      <td><input type="submit" value="change"></td>
     </tr>      </tr>
 </table>  </table>
 </form>  </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>    <h2>Publication list</h2>
     <p>(You can not change entries from the <i>Institutsbibliographie</i> here)</p>
 <form action="changeSortingMode" method="post">  <form action="changeSortingMode" method="post">
 <p>Sort by:</p>  <p>Sort by:</p>
     <table>      <table>
         <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(      <td valign="top"
         tal:content="structure python:here.ZSQLSelectionFromCRList(
                  'sortingMode',                   'sortingMode',
                  sortingMode,                   sortingMode,
                  boxType='radio',                   boxType='radio',
                  checked=here.getSortingMode())"/>                   checked=here.getSortingMode())"/>
         <td><input type="submit" value="change"></td>          <td><input type="submit" value="change"></td>
     </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="key_main" tal:attributes="value person/key">
      <input type="hidden" name="main_fields" value="publications__title,publications__publish">    <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());  
                  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());    <tal:block
                  not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and publish=\'no\' order by priority'%here.getDBId());      tal:define="books python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and lower(referencetype)in (\'book\') and publish=\'yes\' order by priority'%here.getKey().lower());
                  articles python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and lower(referencetype) not in (\'book\',\'edited book\') and publish=\'yes\' order by priority'%here.getDBId())">                   edited_books python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and lower(referencetype)in (\'edited book\') and publish=\'yes\' order by priority'%here.getKey().lower());
                    not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and publish=\'no\' order by priority'%here.getKey().lower());
                    articles python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and lower(referencetype) not in (\'book\',\'edited book\') and publish=\'yes\' order by priority'%here.getKey().lower())">
           
      <tal:block tal:condition="books">       <tal:block tal:condition="books">
   
      <h3>Books</h3>       <h3>Books</h3>
         <table>          <table>
           <tr>
             <th />
             <th />
             <th>Priority</th>
             <th align="left" width="100">Show</th>
           </tr>
           <tr tal:repeat="found     python:here.sortBibliography(books)">            <tr tal:repeat="found     python:here.sortBibliography(books)">
             <td>            <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
               <a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"   
                  tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>                   tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
                              <a
               <a tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a>                  tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
             </td>            <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
             <td>            <td valign="top"><input
               <span tal:replace="structure python:here.formatBibliography(here,found)"/>              tal:attributes="name python:'publications__priority__'+str(found.oid);
             </td>                       value python:here.integer(found.priority)"
                 <td valign="top">              size="3" /></td>
                 <input tal:attributes="name python:'publications__priority__'+str(found.oid);            <td valign="top"
                      value python:here.integer(found.priority)" size="3"/>              tal:content="structure python:here.ZSQLSelectionFromCRList(
             </td>  
             <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(  
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
                  yes_no_list,                   yes_no_list,
                  boxType='radio',                   boxType='radio',
Line 86 Line 86
      <tal:block tal:condition="edited_books">       <tal:block tal:condition="edited_books">
      <h3>Edited Books</h3>       <h3>Edited Books</h3>
      <table>       <table>
           <tr>
             <th/>
             <th/>
             <th>Priority</th>
             <th align="left" width="100">Show</th>
           </tr>
       <tr tal:repeat="found python:here.sortBibliography(edited_books)">        <tr tal:repeat="found python:here.sortBibliography(edited_books)">
         <td>            <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
               <a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"   
                  tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>                   tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
                              <a
             <a tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a>              tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
         </td>            <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
         <td>              <td valign="top"><input
           <span tal:replace="structure python:here.formatBibliography(here,found)"/>              tal:attributes="name python:'publications__priority__'+str(found.oid);
         </td>                      value python:here.integer(found.priority)"
         <td valign="top">              size="3" /></td>
             <input tal:attributes="name python:'publications__priority__'+str(found.oid);            <td valign="top"
                     value python:here.integer(found.priority)" size="3"/>              tal:content="structure python:here.ZSQLSelectionFromCRList(
           
         </td>  
         <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(  
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
                  yes_no_list,                   yes_no_list,
                  boxType='radio',                   boxType='radio',
Line 114 Line 115
      <tal:block tal:condition="articles">       <tal:block tal:condition="articles">
     <h3>Articles and Chapters</h3>      <h3>Articles and Chapters</h3>
     <table>      <table>
           <tr>
             <th/>
             <th/>
             <th>Priority</th>
             <th align="left" width="100">Show</th>
           </tr>
       <tr tal:repeat="found python:here.sortBibliography(articles)">        <tr tal:repeat="found python:here.sortBibliography(articles)">
         <td>                  <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
               <a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"   
                  tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>                   tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
                              <a
             <a tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a>              tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
         </td>            <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
         <td>            <td valign="top"><input
             <span tal:replace="structure python:here.formatBibliography(here,found)"/>              tal:attributes="name python:'publications__priority__'+str(found.oid);
          </td>                       value python:here.integer(found.priority)"
          <td valign="top">              size="3" /></td>
            <input tal:attributes="name python:'publications__priority__'+str(found.oid);            <td valign="top"
                      value python:here.integer(found.priority)" size="3"/>              tal:content="structure python:here.ZSQLSelectionFromCRList(
   
          </td>  
         <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(  
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
                  yes_no_list,                   yes_no_list,
                  boxType='radio',                   boxType='radio',
                  checked=found.publish)"/>                   checked=found.publish)"/>
         </tr>          </tr>
         </table>          </table>
         <hr>      </tal:block>
         <h3>Not displayed at the page</h3>  
     <tal:block tal:condition="not_displayed">
       <h3>Currently not shown</h3>
         <table>          <table>
         <tr>
           <th />
           <th />
           <th>Priority</th>
           <th align="left" width="100">Show</th>
         </tr>
         <tr tal:repeat="found python:here.sortBibliography(not_displayed)">          <tr tal:repeat="found python:here.sortBibliography(not_displayed)">
         <td>                <td><a
             <a tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a>            tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
         </td>          <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
         <td>          <td valign="top"><input
             <span tal:replace="structure python:here.formatBibliography(here,found)"/>            tal:attributes="name python:'publications__priority__'+str(found.oid);
          </td>                               value python:here.integer(found.priority)"
          <td valign="top">            size="3" /></td>
            <input tal:attributes="name python:'publications__priority__'+str(found.oid);          <td valign="top"
                              value python:here.integer(found.priority)" size="3"/>            tal:content="structure python:here.ZSQLSelectionFromCRList(
   
          </td>  
         <td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList(  
                  'publications__publish__'+str(found.oid),                   'publications__publish__'+str(found.oid),
                  yes_no_list,                   yes_no_list,
                  boxType='radio',                   boxType='radio',
Line 159 Line 167
         </tr>          </tr>
         </table>          </table>
      </tal:block>       </tal:block>
       
      </tal:block>       </tal:block>
      <input type="submit" value="change">       <input type="submit" value="change">
   </form>    </form>
   
 </tal:block>  </tal:block>
 </body>  </body>
 </html>  </html>

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


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