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

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.6 ! casties     5: <tal:block metal:fill-slot="navsel" tal:define="global selected python:'publications'" />
1.1.2.1   dwinter     6: 
1.1.2.2   dwinter     7: <tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno';
                      8:                                            sortingMode python:'year\npriority'">
1.1.2.1   dwinter     9: 
1.1.2.6 ! casties    10:   <h3><a href="addPublications">Add Publications to your list</a></h3>
        !            11:   <form action="changePublicationSelectionMode" method="post">
1.1.2.4   dwinter    12: 
1.1.2.6 ! casties    13:   <h3>Select the 5 publications to be displayed at your <a src="../index.html" target="blank"> homepage</a></h3>
        !            14:   <p>Choose the first 5 of my list following the order of</p>
        !            15:   <table tal:define="sm python:here.getPublicationSelectionMode()">
        !            16:     <tr tal:condition="python:sm=='priority'">
        !            17:       <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span> <span><input checked type="radio"
        !            18:         name="publicationSelectionMode" value="priority" />priority</span></td>
        !            19:       <td><input type="submit" value="change"></td>
        !            20:     </tr>
        !            21:     <tr tal:condition="not:python:sm=='priority'">
        !            22:       <td><span><input checked type="radio" name="publicationSelectionMode" value="year" /> year</span> <span><input type="radio"
        !            23:         name="publicationSelectionMode" value="priority" /> priority</span></td>
        !            24:       <td><input type="submit" value="change"></td>
        !            25:     </tr>
        !            26:   </table>
        !            27:   </form>
        !            28: 
        !            29: 
        !            30:   <h2>Publication list</h2>
        !            31:   <p>(You can not change entries from the institutsbibliographie here)</p>
        !            32:   <form action="changeSortingMode" method="post">
        !            33:   <p>Sort by:</p>
        !            34:   <table>
        !            35:     <td valign="top"
        !            36:       tal:content="structure python:here.ZSQLSelectionFromCRList(
        !            37:            'sortingMode',
        !            38:            sortingMode,
        !            39:            boxType='radio',
        !            40:            checked=here.getSortingMode())" />
1.1.2.5   casties    41:     <td><input type="submit" value="change"></td>
1.1.2.6 ! casties    42:   </table>
        !            43:   </form>
        !            44: 
        !            45:   <form action="changePublications" method="post">
        !            46:   <input type="hidden" name="id_main" tal:attributes="value person/id">
        !            47:   <input type="hidden" name="main_fields" value="publications__title,publications__publish">
        !            48: 
        !            49:   <tal:block
        !            50:     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());
1.1.2.2   dwinter    51:                 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());
                     52:                 not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and publish=\'no\' order by priority'%here.getDBId());
                     53:                 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())">
1.1.2.1   dwinter    54: 
1.1.2.6 ! casties    55:     <tal:block tal:condition="books">
        !            56: 
        !            57:       <h3>Books</h3>
        !            58:       <table>
        !            59:         <tr><th/><th/><th>Priority</th><th align="left" width="100">Show</th></tr>
        !            60:         <tr tal:repeat="found  python:here.sortBibliography(books)">
        !            61:           <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
        !            62:             tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> <a
        !            63:             tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
        !            64:           <td><span tal:replace="structure python:here.formatBibliography(here,found)" /></td>
        !            65:           <td valign="top"><input
        !            66:             tal:attributes="name python:'publications__priority__'+str(found.oid);
        !            67:                     value python:here.integer(found.priority)"
        !            68:             size="3" /></td>
        !            69:           <td valign="top"
        !            70:             tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2   dwinter    71:                 'publications__publish__'+str(found.oid),
                     72:                 yes_no_list,
                     73:                 boxType='radio',
1.1.2.6 ! casties    74:                 checked=found.publish)" />
        !            75:         </tr>
        !            76:       </table>
        !            77:     </tal:block>
        !            78: 
        !            79:     <tal:block tal:condition="edited_books">
        !            80:       <h3>Edited Books</h3>
        !            81:       <table>
        !            82:         <tr><th/><th/><th>Priority</th><th align="left" width="100">Show</th></tr>
        !            83:         <tr tal:repeat="found python:here.sortBibliography(edited_books)">
        !            84:           <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
        !            85:             tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> <a
        !            86:             tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
        !            87:           <td><span tal:replace="structure python:here.formatBibliography(here,found)" /></td>
        !            88:           <td valign="top"><input
        !            89:             tal:attributes="name python:'publications__priority__'+str(found.oid);
        !            90:                    value python:here.integer(found.priority)"
        !            91:             size="3" /></td>
        !            92:           <td valign="top"
        !            93:             tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2   dwinter    94:                 'publications__publish__'+str(found.oid),
                     95:                 yes_no_list,
                     96:                 boxType='radio',
1.1.2.6 ! casties    97:                 checked=found.publish)" />
1.1.2.2   dwinter    98:         </tr>
1.1.2.6 ! casties    99:       </table>
        !           100:     </tal:block>
1.1.2.3   dwinter   101: 
1.1.2.6 ! casties   102:     <tal:block tal:condition="articles">
        !           103:       <h3>Articles and Chapters</h3>
        !           104:       <table>
        !           105:         <tr><th/><th/><th>Priority</th><th align="left" width="100">Show</th></tr>
        !           106:         <tr tal:repeat="found python:here.sortBibliography(articles)">
        !           107:           <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
        !           108:             tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> <a
        !           109:             tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
        !           110:           <td><span tal:replace="structure python:here.formatBibliography(here,found)" /></td>
        !           111:           <td valign="top"><input
        !           112:             tal:attributes="name python:'publications__priority__'+str(found.oid);
        !           113:                     value python:here.integer(found.priority)"
        !           114:             size="3" /></td>
        !           115:           <td valign="top"
        !           116:             tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2   dwinter   117:                 'publications__publish__'+str(found.oid),
                    118:                 yes_no_list,
                    119:                 boxType='radio',
1.1.2.6 ! casties   120:                 checked=found.publish)" />
1.1.2.2   dwinter   121:         </tr>
1.1.2.6 ! casties   122:       </table>
        !           123:       </tal:block>
        !           124:       
        !           125:       <h3>Currently not shown</h3>
        !           126:       <table>
        !           127:         <tr><th/><th/><th>Priority</th><th align="left" width="100">Show</th></tr>
        !           128:         <tr tal:repeat="found python:here.sortBibliography(not_displayed)">
        !           129:           <td><a tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
        !           130:           <td><span tal:replace="structure python:here.formatBibliography(here,found)" /></td>
        !           131:           <td valign="top"><input
        !           132:             tal:attributes="name python:'publications__priority__'+str(found.oid);
        !           133:                             value python:here.integer(found.priority)"
        !           134:             size="3" /></td>
        !           135:           <td valign="top"
        !           136:             tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1   dwinter   137:                 'publications__publish__'+str(found.oid),
                    138:                 yes_no_list,
                    139:                 boxType='radio',
1.1.2.6 ! casties   140:                 checked=found.publish)" />
1.1.2.1   dwinter   141:         </tr>
1.1.2.6 ! casties   142:       </table>
        !           143:   </tal:block>
        !           144:   <input type="submit" value="change">
1.1.2.1   dwinter   145:   </form>
                    146: </tal:block>
1.1.2.5   casties   147: </body>
1.1.2.1   dwinter   148: </html>

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