Annotation of MPIWGWeb/zpt/editPublications.zpt, revision 1.1.2.17

1.1.2.5   casties     1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      2:           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1.1.2.1   dwinter     3: <html metal:use-macro="here/mainEditFile/macros/page">
1.1.2.5   casties     4: <body>
1.1.2.7   casties     5: <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
1.1.2.1   dwinter     6: 
1.1.2.8   casties     7: <tal:block metal:fill-slot="body"
                      8:   tal:define="yes_no_list python:'yes\nno'; sortingMode python:'year\npriority'">
1.1.2.1   dwinter     9: 
1.1.2.4   dwinter    10: 
1.1.2.6   casties    11: 
                     12: 
                     13:   <h2>Publication list</h2>
1.1.2.8   casties    14:   <p>(You can not change entries from the <i>Institutsbibliographie</i> here)</p>
1.1.2.6   casties    15:   <form action="changeSortingMode" method="post">
                     16:   <p>Sort by:</p>
                     17:   <table>
                     18:     <td valign="top"
                     19:       tal:content="structure python:here.ZSQLSelectionFromCRList(
                     20:            'sortingMode',
                     21:            sortingMode,
                     22:            boxType='radio',
                     23:            checked=here.getSortingMode())" />
1.1.2.5   casties    24:     <td><input type="submit" value="change"></td>
1.1.2.6   casties    25:   </table>
                     26:   </form>
                     27: 
                     28:   <form action="changePublications" method="post">
1.1.2.13  dwinter    29:   <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)">
1.1.2.8   casties    30:   <input type="hidden" name="main_fields"
                     31:     value="publications__title,publications__publish">
1.1.2.10  casties    32: 
1.1.2.6   casties    33:   <tal:block
1.1.2.9   dwinter    34:     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());
                     35:                 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());
                     36:                 not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and publish=\'no\' order by priority'%here.getKey().lower());
                     37:                 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())">
1.1.2.1   dwinter    38: 
1.1.2.6   casties    39:     <tal:block tal:condition="books">
                     40:       <h3>Books</h3>
                     41:       <table>
1.1.2.8   casties    42:         <tr>
                     43:           <th />
                     44:           <th />
                     45:           <th>Priority</th>
                     46:           <th align="left" width="100">Show</th>
                     47:         </tr>
1.1.2.17! dwinter    48:         <tal:x tal:repeat="found python:here.sortBibliography(books)">
        !            49:         <tr>
1.1.2.6   casties    50:           <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8   casties    51:             tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
                     52:           <a
1.1.2.6   casties    53:             tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10  casties    54:           <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6   casties    55:           <td valign="top"><input
                     56:             tal:attributes="name python:'publications__priority__'+str(found.oid);
                     57:                     value python:here.integer(found.priority)"
                     58:             size="3" /></td>
                     59:           <td valign="top"
                     60:             tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2   dwinter    61:                 'publications__publish__'+str(found.oid),
                     62:                 yes_no_list,
                     63:                 boxType='radio',
1.1.2.6   casties    64:                 checked=found.publish)" />
1.1.2.17! dwinter    65:                
        !            66:         </tr>
        !            67:         <tr>
        !            68:         <td>&nbsp;</td>
        !            69:         <td valign="top"><em>Link:</em><input
        !            70:             tal:attributes="name python:'publications__link__'+str(found.oid);
        !            71:                     value python:getattr(found,'link','')"
        !            72:             size="150" /></td>
        !            73:         <td>&nbsp;</td>
        !            74:         <td>&nbsp;</td>
1.1.2.6   casties    75:         </tr>
1.1.2.17! dwinter    76:          </tal:x>
1.1.2.6   casties    77:       </table>
                     78:     </tal:block>
                     79: 
                     80:     <tal:block tal:condition="edited_books">
                     81:       <h3>Edited Books</h3>
                     82:       <table>
1.1.2.8   casties    83:         <tr>
                     84:           <th/>
                     85:           <th/>
                     86:           <th>Priority</th>
                     87:           <th align="left" width="100">Show</th>
                     88:         </tr>
1.1.2.17! dwinter    89:         <tal:x tal:repeat="found python:here.sortBibliography(edited_books)">
        !            90:         <tr>
1.1.2.6   casties    91:           <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8   casties    92:             tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
                     93:           <a
1.1.2.6   casties    94:             tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10  casties    95:           <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6   casties    96:           <td valign="top"><input
                     97:             tal:attributes="name python:'publications__priority__'+str(found.oid);
                     98:                    value python:here.integer(found.priority)"
                     99:             size="3" /></td>
                    100:           <td valign="top"
                    101:             tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2   dwinter   102:                 'publications__publish__'+str(found.oid),
                    103:                 yes_no_list,
                    104:                 boxType='radio',
1.1.2.6   casties   105:                 checked=found.publish)" />
1.1.2.2   dwinter   106:         </tr>
1.1.2.17! dwinter   107:         <tr>
        !           108:         <td>&nbsp;</td>
        !           109:         <td valign="top"><em>Link:</em><input
        !           110:             tal:attributes="name python:'publications__link__'+str(found.oid);
        !           111:                     value python:getattr(found,'link','')"
        !           112:             size="150" /></td>
        !           113:         <td>&nbsp;</td>
        !           114:         <td>&nbsp;</td>
        !           115:         </tr>
        !           116:          </tal:x>
1.1.2.6   casties   117:       </table>
                    118:     </tal:block>
1.1.2.15  cmielack  119:     
1.1.2.16  cmielack  120:     <a href="http://wwwneu.mpiwg-berlin.mpg.de/en/reviews/edit"> MPIWGBook-Page erstellen </a>
1.1.2.15  cmielack  121:     
1.1.2.6   casties   122:     <tal:block tal:condition="articles">
                    123:       <h3>Articles and Chapters</h3>
                    124:       <table>
1.1.2.8   casties   125:         <tr>
                    126:           <th/>
                    127:           <th/>
                    128:           <th>Priority</th>
                    129:           <th align="left" width="100">Show</th>
                    130:         </tr>
1.1.2.17! dwinter   131:         <tal:x tal:repeat="found python:here.sortBibliography(articles)">
        !           132:         <tr>
1.1.2.6   casties   133:           <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8   casties   134:             tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
                    135:           <a
1.1.2.6   casties   136:             tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10  casties   137:           <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6   casties   138:           <td valign="top"><input
                    139:             tal:attributes="name python:'publications__priority__'+str(found.oid);
                    140:                     value python:here.integer(found.priority)"
                    141:             size="3" /></td>
                    142:           <td valign="top"
                    143:             tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2   dwinter   144:                 'publications__publish__'+str(found.oid),
                    145:                 yes_no_list,
                    146:                 boxType='radio',
1.1.2.6   casties   147:                 checked=found.publish)" />
1.1.2.2   dwinter   148:         </tr>
1.1.2.17! dwinter   149:         <tr>
        !           150:         <td>&nbsp;</td>
        !           151:         <td valign="top"><em>Link:</em><input
        !           152:             tal:attributes="name python:'publications__link__'+str(found.oid);
        !           153:                     value python:getattr(found,'link','')"
        !           154:             size="150" /></td>
        !           155:         <td>&nbsp;</td>
        !           156:         <td>&nbsp;</td>
        !           157:         </tr>
        !           158:          </tal:x>
1.1.2.6   casties   159:       </table>
1.1.2.8   casties   160:     </tal:block>
                    161: 
                    162:   <tal:block tal:condition="not_displayed">
                    163:     <h3>Currently not shown</h3>
                    164:     <table>
                    165:       <tr>
                    166:         <th />
                    167:         <th />
                    168:         <th>Priority</th>
                    169:         <th align="left" width="100">Show</th>
                    170:       </tr>
1.1.2.17! dwinter   171:       <tal:x tal:repeat="found python:here.sortBibliography(not_displayed)">
        !           172:       <tr>
1.1.2.8   casties   173:         <td><a
                    174:           tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10  casties   175:         <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.8   casties   176:         <td valign="top"><input
                    177:           tal:attributes="name python:'publications__priority__'+str(found.oid);
1.1.2.6   casties   178:                             value python:here.integer(found.priority)"
1.1.2.8   casties   179:           size="3" /></td>
                    180:         <td valign="top"
                    181:           tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1   dwinter   182:                 'publications__publish__'+str(found.oid),
                    183:                 yes_no_list,
                    184:                 boxType='radio',
1.1.2.6   casties   185:                 checked=found.publish)" />
1.1.2.8   casties   186:       </tr>
1.1.2.17! dwinter   187:       <tr>
        !           188:         <td>&nbsp;</td>
        !           189:         <td valign="top"><em>Link:</em><input
        !           190:             tal:attributes="name python:'publications__link__'+str(found.oid);
        !           191:                     value python:getattr(found,'link','')"
        !           192:             size="150" /></td>
        !           193:         <td>&nbsp;</td>
        !           194:         <td>&nbsp;</td>
        !           195:         </tr>
        !           196:          </tal:x>
1.1.2.8   casties   197:     </table>
                    198:     </tal:block>
                    199:     
1.1.2.6   casties   200:   </tal:block>
1.1.2.12  dwinter   201:    <input type="submit" value="change">
1.1.2.1   dwinter   202:   </form>
1.1.2.10  casties   203: 
1.1.2.11  dwinter   204: <br/> <br/> <br/> 
                    205:   
                    206:   <form action="changePublicationSelectionMode" method="post">
                    207: 
                    208:     <h3>Select the 5 publications to be displayed in the first part of your homepage</h3>
                    209:     <p>Choose the first 5 of my list following the order of</p>
                    210:     <table tal:define="sm python:here.getPublicationSelectionMode()">
                    211:       <tr tal:condition="python:sm=='priority'">
                    212:    <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span>
                    213:      <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td>
                    214:    <td><input type="submit" value="change"></td>
                    215:    </tr>
                    216:       <tr tal:condition="not:python:sm=='priority'">
                    217:    <td><span><input checked type="radio" name="publicationSelectionMode" value="year" />
                    218:        year</span> <span><input type="radio" name="publicationSelectionMode"
                    219:                     value="priority" /> priority</span></td>
                    220:    <td><input type="submit" value="change"></td>
                    221:    </tr>
                    222:       </table>
                    223:       </form>
                    224:       
                    225:       <br/><br/>
1.1.2.14  dwinter   226:       <h3><a href="addPublicationsBib">Add Publications to your list</a></h3>
1.1.2.12  dwinter   227:    <!--   <h4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="addPublications">Add 
                    228: entries from the Institutsbibliographie</a></h4>
1.1.2.11  dwinter   229:       <h4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="newBibliography">Add an entry that cannot be found in the 
1.1.2.12  dwinter   230: Institutsbibliographie</a></h4> -->
1.1.2.11  dwinter   231: 
1.1.2.1   dwinter   232: </tal:block>
1.1.2.5   casties   233: </body>
1.1.2.1   dwinter   234: </html>

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