Diff for /MPIWGWeb/zpt/Attic/editPublications.zpt between versions 1.1 and 1.1.2.9

version 1.1, 2005/10/10 08:42:49 version 1.1.2.9, 2007/04/18 10:03:12
Line 0 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">
   <body>
   <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'; sortingMode python:'year\npriority'">
   
     <h3><a href="addPublications">Add Publications to your list</a></h3>
     <form action="changePublicationSelectionMode" method="post">
   
     <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>
     <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>
   
   
     <h2>Publication list</h2>
     <p>(You can not change entries from the <i>Institutsbibliographie</i> here)</p>
     <form action="changeSortingMode" method="post">
     <p>Sort by:</p>
     <table>
       <td valign="top"
         tal:content="structure python:here.ZSQLSelectionFromCRList(
              'sortingMode',
              sortingMode,
              boxType='radio',
              checked=here.getSortingMode())" />
       <td><input type="submit" value="change"></td>
     </table>
     </form>
   
     <form action="changePublications" method="post">
     <input type="hidden" name="key_main" tal:attributes="value person/key">
     <input type="hidden" name="main_fields"
       value="publications__title,publications__publish">
     <tal:block
       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());
                    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">
         <h3>Books</h3>
         <table>
           <tr>
             <th />
             <th />
             <th>Priority</th>
             <th align="left" width="100">Show</th>
           </tr>
           <tr tal:repeat="found   python:here.sortBibliography(books)">
             <td><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>
             <a
               tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
             <td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td>
             <td valign="top"><input
               tal:attributes="name python:'publications__priority__'+str(found.oid);
                        value python:here.integer(found.priority)"
               size="3" /></td>
             <td valign="top"
               tal:content="structure python:here.ZSQLSelectionFromCRList(
                    'publications__publish__'+str(found.oid),
                    yes_no_list,
                    boxType='radio',
                    checked=found.publish)" />
           </tr>
         </table>
       </tal:block>
   
       <tal:block tal:condition="edited_books">
         <h3>Edited Books</h3>
         <table>
           <tr>
             <th/>
             <th/>
             <th>Priority</th>
             <th align="left" width="100">Show</th>
           </tr>
           <tr tal:repeat="found python:here.sortBibliography(edited_books)">
             <td><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>
             <a
               tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
             <td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td>
             <td valign="top"><input
               tal:attributes="name python:'publications__priority__'+str(found.oid);
                       value python:here.integer(found.priority)"
               size="3" /></td>
             <td valign="top"
               tal:content="structure python:here.ZSQLSelectionFromCRList(
                    'publications__publish__'+str(found.oid),
                    yes_no_list,
                    boxType='radio',
                    checked=found.publish)" />
           </tr>
         </table>
       </tal:block>
   
       <tal:block tal:condition="articles">
         <h3>Articles and Chapters</h3>
         <table>
           <tr>
             <th/>
             <th/>
             <th>Priority</th>
             <th align="left" width="100">Show</th>
           </tr>
           <tr tal:repeat="found python:here.sortBibliography(articles)">
             <td><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>
             <a
               tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
             <td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td>
             <td valign="top"><input
               tal:attributes="name python:'publications__priority__'+str(found.oid);
                        value python:here.integer(found.priority)"
               size="3" /></td>
             <td valign="top"
               tal:content="structure python:here.ZSQLSelectionFromCRList(
                    'publications__publish__'+str(found.oid),
                    yes_no_list,
                    boxType='radio',
                    checked=found.publish)" />
           </tr>
         </table>
       </tal:block>
   
     <tal:block tal:condition="not_displayed">
       <h3>Currently not shown</h3>
       <table>
         <tr>
           <th />
           <th />
           <th>Priority</th>
           <th align="left" width="100">Show</th>
         </tr>
         <tr tal:repeat="found python:here.sortBibliography(not_displayed)">
           <td><a
             tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
           <td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td>
           <td valign="top"><input
             tal:attributes="name python:'publications__priority__'+str(found.oid);
                                value python:here.integer(found.priority)"
             size="3" /></td>
           <td valign="top"
             tal:content="structure python:here.ZSQLSelectionFromCRList(
                    'publications__publish__'+str(found.oid),
                    yes_no_list,
                    boxType='radio',
                    checked=found.publish)" />
         </tr>
       </table>
       </tal:block>
       
     </tal:block>
     <input type="submit" value="change">
     </form>
   </tal:block>
   </body>
   </html>

Removed from v.1.1  
changed lines
  Added in v.1.1.2.9


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