Annotation of MPIWGWeb/zpt/editPublications.zpt, revision 1.1.2.11
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.9 dwinter 29: <input type="hidden" name="key_main" tal:attributes="value 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.10 casties 48: <tr tal:repeat="found python:here.sortBibliography(books)">
1.1.2.6 casties 49: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8 casties 50: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
51: <a
1.1.2.6 casties 52: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 53: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 54: <td valign="top"><input
55: tal:attributes="name python:'publications__priority__'+str(found.oid);
56: value python:here.integer(found.priority)"
57: size="3" /></td>
58: <td valign="top"
59: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 60: 'publications__publish__'+str(found.oid),
61: yes_no_list,
62: boxType='radio',
1.1.2.6 casties 63: checked=found.publish)" />
64: </tr>
65: </table>
66: </tal:block>
67:
68: <tal:block tal:condition="edited_books">
69: <h3>Edited Books</h3>
70: <table>
1.1.2.8 casties 71: <tr>
72: <th/>
73: <th/>
74: <th>Priority</th>
75: <th align="left" width="100">Show</th>
76: </tr>
1.1.2.6 casties 77: <tr tal:repeat="found python:here.sortBibliography(edited_books)">
78: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8 casties 79: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
80: <a
1.1.2.6 casties 81: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 82: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 83: <td valign="top"><input
84: tal:attributes="name python:'publications__priority__'+str(found.oid);
85: value python:here.integer(found.priority)"
86: size="3" /></td>
87: <td valign="top"
88: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 89: 'publications__publish__'+str(found.oid),
90: yes_no_list,
91: boxType='radio',
1.1.2.6 casties 92: checked=found.publish)" />
1.1.2.2 dwinter 93: </tr>
1.1.2.6 casties 94: </table>
95: </tal:block>
1.1.2.3 dwinter 96:
1.1.2.6 casties 97: <tal:block tal:condition="articles">
98: <h3>Articles and Chapters</h3>
99: <table>
1.1.2.8 casties 100: <tr>
101: <th/>
102: <th/>
103: <th>Priority</th>
104: <th align="left" width="100">Show</th>
105: </tr>
1.1.2.6 casties 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=='')"
1.1.2.8 casties 108: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
109: <a
1.1.2.6 casties 110: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 111: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 112: <td valign="top"><input
113: tal:attributes="name python:'publications__priority__'+str(found.oid);
114: value python:here.integer(found.priority)"
115: size="3" /></td>
116: <td valign="top"
117: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 118: 'publications__publish__'+str(found.oid),
119: yes_no_list,
120: boxType='radio',
1.1.2.6 casties 121: checked=found.publish)" />
1.1.2.2 dwinter 122: </tr>
1.1.2.6 casties 123: </table>
1.1.2.8 casties 124: </tal:block>
125:
126: <tal:block tal:condition="not_displayed">
127: <h3>Currently not shown</h3>
128: <table>
129: <tr>
130: <th />
131: <th />
132: <th>Priority</th>
133: <th align="left" width="100">Show</th>
134: </tr>
135: <tr tal:repeat="found python:here.sortBibliography(not_displayed)">
136: <td><a
137: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 138: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.8 casties 139: <td valign="top"><input
140: tal:attributes="name python:'publications__priority__'+str(found.oid);
1.1.2.6 casties 141: value python:here.integer(found.priority)"
1.1.2.8 casties 142: size="3" /></td>
143: <td valign="top"
144: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1 dwinter 145: 'publications__publish__'+str(found.oid),
146: yes_no_list,
147: boxType='radio',
1.1.2.6 casties 148: checked=found.publish)" />
1.1.2.8 casties 149: </tr>
150: </table>
151: </tal:block>
152:
1.1.2.6 casties 153: </tal:block>
1.1.2.11! dwinter 154: <!-- <input type="submit" value="change"> -->
1.1.2.1 dwinter 155: </form>
1.1.2.10 casties 156:
1.1.2.11! dwinter 157: <br/> <br/> <br/>
! 158:
! 159: <form action="changePublicationSelectionMode" method="post">
! 160:
! 161: <h3>Select the 5 publications to be displayed in the first part of your homepage</h3>
! 162: <p>Choose the first 5 of my list following the order of</p>
! 163: <table tal:define="sm python:here.getPublicationSelectionMode()">
! 164: <tr tal:condition="python:sm=='priority'">
! 165: <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span>
! 166: <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td>
! 167: <td><input type="submit" value="change"></td>
! 168: </tr>
! 169: <tr tal:condition="not:python:sm=='priority'">
! 170: <td><span><input checked type="radio" name="publicationSelectionMode" value="year" />
! 171: year</span> <span><input type="radio" name="publicationSelectionMode"
! 172: value="priority" /> priority</span></td>
! 173: <td><input type="submit" value="change"></td>
! 174: </tr>
! 175: </table>
! 176: </form>
! 177:
! 178: <br/><br/>
! 179: <h2>Add Publications to your list:</h2>
! 180: <h4> <a href="addPublications">Add entries from the Institutsbibliographie</a></h4>
! 181: <h4> <a href="newBibliography">Add an entry that cannot be found in the
! 182: Institutsbibliographie</a></h4>
! 183:
1.1.2.1 dwinter 184: </tal:block>
1.1.2.5 casties 185: </body>
1.1.2.1 dwinter 186: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>