Annotation of MPIWGWeb/zpt/editPublications.zpt, revision 1.1.2.18
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> </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> </td>
74: <td> </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> </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> </td>
114: <td> </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.18! casties 120: <tal:block tal:condition="articles">
1.1.2.6 casties 121: <h3>Articles and Chapters</h3>
122: <table>
1.1.2.8 casties 123: <tr>
124: <th/>
125: <th/>
126: <th>Priority</th>
127: <th align="left" width="100">Show</th>
128: </tr>
1.1.2.17 dwinter 129: <tal:x tal:repeat="found python:here.sortBibliography(articles)">
130: <tr>
1.1.2.6 casties 131: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8 casties 132: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
133: <a
1.1.2.6 casties 134: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 135: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 136: <td valign="top"><input
137: tal:attributes="name python:'publications__priority__'+str(found.oid);
138: value python:here.integer(found.priority)"
139: size="3" /></td>
140: <td valign="top"
141: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 142: 'publications__publish__'+str(found.oid),
143: yes_no_list,
144: boxType='radio',
1.1.2.6 casties 145: checked=found.publish)" />
1.1.2.2 dwinter 146: </tr>
1.1.2.17 dwinter 147: <tr>
148: <td> </td>
149: <td valign="top"><em>Link:</em><input
150: tal:attributes="name python:'publications__link__'+str(found.oid);
151: value python:getattr(found,'link','')"
152: size="150" /></td>
153: <td> </td>
154: <td> </td>
155: </tr>
156: </tal:x>
1.1.2.6 casties 157: </table>
1.1.2.8 casties 158: </tal:block>
159:
160: <tal:block tal:condition="not_displayed">
161: <h3>Currently not shown</h3>
162: <table>
163: <tr>
164: <th />
165: <th />
166: <th>Priority</th>
167: <th align="left" width="100">Show</th>
168: </tr>
1.1.2.17 dwinter 169: <tal:x tal:repeat="found python:here.sortBibliography(not_displayed)">
170: <tr>
1.1.2.8 casties 171: <td><a
172: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 173: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.8 casties 174: <td valign="top"><input
175: tal:attributes="name python:'publications__priority__'+str(found.oid);
1.1.2.6 casties 176: value python:here.integer(found.priority)"
1.1.2.8 casties 177: size="3" /></td>
178: <td valign="top"
179: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1 dwinter 180: 'publications__publish__'+str(found.oid),
181: yes_no_list,
182: boxType='radio',
1.1.2.6 casties 183: checked=found.publish)" />
1.1.2.8 casties 184: </tr>
1.1.2.17 dwinter 185: <tr>
186: <td> </td>
187: <td valign="top"><em>Link:</em><input
188: tal:attributes="name python:'publications__link__'+str(found.oid);
189: value python:getattr(found,'link','')"
190: size="150" /></td>
191: <td> </td>
192: <td> </td>
193: </tr>
194: </tal:x>
1.1.2.8 casties 195: </table>
196: </tal:block>
197:
1.1.2.6 casties 198: </tal:block>
1.1.2.12 dwinter 199: <input type="submit" value="change">
1.1.2.1 dwinter 200: </form>
1.1.2.10 casties 201:
1.1.2.11 dwinter 202: <br/> <br/> <br/>
203:
204: <form action="changePublicationSelectionMode" method="post">
205:
206: <h3>Select the 5 publications to be displayed in the first part of your homepage</h3>
207: <p>Choose the first 5 of my list following the order of</p>
208: <table tal:define="sm python:here.getPublicationSelectionMode()">
209: <tr tal:condition="python:sm=='priority'">
210: <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span>
211: <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td>
212: <td><input type="submit" value="change"></td>
213: </tr>
214: <tr tal:condition="not:python:sm=='priority'">
215: <td><span><input checked type="radio" name="publicationSelectionMode" value="year" />
216: year</span> <span><input type="radio" name="publicationSelectionMode"
217: value="priority" /> priority</span></td>
218: <td><input type="submit" value="change"></td>
219: </tr>
220: </table>
221: </form>
222:
223: <br/><br/>
1.1.2.14 dwinter 224: <h3><a href="addPublicationsBib">Add Publications to your list</a></h3>
1.1.2.12 dwinter 225: <!-- <h4> <a href="addPublications">Add
226: entries from the Institutsbibliographie</a></h4>
1.1.2.11 dwinter 227: <h4> <a href="newBibliography">Add an entry that cannot be found in the
1.1.2.12 dwinter 228: Institutsbibliographie</a></h4> -->
1.1.2.11 dwinter 229:
1.1.2.1 dwinter 230: </tal:block>
1.1.2.5 casties 231: </body>
1.1.2.1 dwinter 232: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>