Annotation of MPIWGWeb/zpt/editPublications.zpt, revision 1.1.2.16
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.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.15 cmielack 96:
1.1.2.16! cmielack 97: <a href="http://wwwneu.mpiwg-berlin.mpg.de/en/reviews/edit"> MPIWGBook-Page erstellen </a>
1.1.2.15 cmielack 98:
1.1.2.6 casties 99: <tal:block tal:condition="articles">
100: <h3>Articles and Chapters</h3>
101: <table>
1.1.2.8 casties 102: <tr>
103: <th/>
104: <th/>
105: <th>Priority</th>
106: <th align="left" width="100">Show</th>
107: </tr>
1.1.2.6 casties 108: <tr tal:repeat="found python:here.sortBibliography(articles)">
109: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8 casties 110: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
111: <a
1.1.2.6 casties 112: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 113: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 114: <td valign="top"><input
115: tal:attributes="name python:'publications__priority__'+str(found.oid);
116: value python:here.integer(found.priority)"
117: size="3" /></td>
118: <td valign="top"
119: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 120: 'publications__publish__'+str(found.oid),
121: yes_no_list,
122: boxType='radio',
1.1.2.6 casties 123: checked=found.publish)" />
1.1.2.2 dwinter 124: </tr>
1.1.2.6 casties 125: </table>
1.1.2.8 casties 126: </tal:block>
127:
128: <tal:block tal:condition="not_displayed">
129: <h3>Currently not shown</h3>
130: <table>
131: <tr>
132: <th />
133: <th />
134: <th>Priority</th>
135: <th align="left" width="100">Show</th>
136: </tr>
137: <tr tal:repeat="found python:here.sortBibliography(not_displayed)">
138: <td><a
139: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10 casties 140: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.8 casties 141: <td valign="top"><input
142: tal:attributes="name python:'publications__priority__'+str(found.oid);
1.1.2.6 casties 143: value python:here.integer(found.priority)"
1.1.2.8 casties 144: size="3" /></td>
145: <td valign="top"
146: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1 dwinter 147: 'publications__publish__'+str(found.oid),
148: yes_no_list,
149: boxType='radio',
1.1.2.6 casties 150: checked=found.publish)" />
1.1.2.8 casties 151: </tr>
152: </table>
153: </tal:block>
154:
1.1.2.6 casties 155: </tal:block>
1.1.2.12 dwinter 156: <input type="submit" value="change">
1.1.2.1 dwinter 157: </form>
1.1.2.10 casties 158:
1.1.2.11 dwinter 159: <br/> <br/> <br/>
160:
161: <form action="changePublicationSelectionMode" method="post">
162:
163: <h3>Select the 5 publications to be displayed in the first part of your homepage</h3>
164: <p>Choose the first 5 of my list following the order of</p>
165: <table tal:define="sm python:here.getPublicationSelectionMode()">
166: <tr tal:condition="python:sm=='priority'">
167: <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span>
168: <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td>
169: <td><input type="submit" value="change"></td>
170: </tr>
171: <tr tal:condition="not:python:sm=='priority'">
172: <td><span><input checked type="radio" name="publicationSelectionMode" value="year" />
173: year</span> <span><input type="radio" name="publicationSelectionMode"
174: value="priority" /> priority</span></td>
175: <td><input type="submit" value="change"></td>
176: </tr>
177: </table>
178: </form>
179:
180: <br/><br/>
1.1.2.14 dwinter 181: <h3><a href="addPublicationsBib">Add Publications to your list</a></h3>
1.1.2.12 dwinter 182: <!-- <h4> <a href="addPublications">Add
183: entries from the Institutsbibliographie</a></h4>
1.1.2.11 dwinter 184: <h4> <a href="newBibliography">Add an entry that cannot be found in the
1.1.2.12 dwinter 185: Institutsbibliographie</a></h4> -->
1.1.2.11 dwinter 186:
1.1.2.1 dwinter 187: </tal:block>
1.1.2.5 casties 188: </body>
1.1.2.1 dwinter 189: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>