Annotation of MPIWGWeb/zpt/editPublications.zpt, revision 1.1.2.10
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.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.8 casties 13: <h3>Select the 5 publications to be displayed in the first part of your homepage</h3>
1.1.2.6 casties 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'">
1.1.2.8 casties 17: <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span>
18: <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td>
1.1.2.6 casties 19: <td><input type="submit" value="change"></td>
20: </tr>
21: <tr tal:condition="not:python:sm=='priority'">
1.1.2.8 casties 22: <td><span><input checked type="radio" name="publicationSelectionMode" value="year" />
23: year</span> <span><input type="radio" name="publicationSelectionMode"
24: value="priority" /> priority</span></td>
1.1.2.6 casties 25: <td><input type="submit" value="change"></td>
26: </tr>
27: </table>
28: </form>
29:
30:
31: <h2>Publication list</h2>
1.1.2.8 casties 32: <p>(You can not change entries from the <i>Institutsbibliographie</i> here)</p>
1.1.2.6 casties 33: <form action="changeSortingMode" method="post">
34: <p>Sort by:</p>
35: <table>
36: <td valign="top"
37: tal:content="structure python:here.ZSQLSelectionFromCRList(
38: 'sortingMode',
39: sortingMode,
40: boxType='radio',
41: checked=here.getSortingMode())" />
1.1.2.5 casties 42: <td><input type="submit" value="change"></td>
1.1.2.6 casties 43: </table>
44: </form>
45:
46: <form action="changePublications" method="post">
1.1.2.9 dwinter 47: <input type="hidden" name="key_main" tal:attributes="value person/key">
1.1.2.8 casties 48: <input type="hidden" name="main_fields"
49: value="publications__title,publications__publish">
1.1.2.10! casties 50:
1.1.2.6 casties 51: <tal:block
1.1.2.9 dwinter 52: 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());
53: 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());
54: not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and publish=\'no\' order by priority'%here.getKey().lower());
55: 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 56:
1.1.2.6 casties 57: <tal:block tal:condition="books">
58: <h3>Books</h3>
59: <table>
1.1.2.8 casties 60: <tr>
61: <th />
62: <th />
63: <th>Priority</th>
64: <th align="left" width="100">Show</th>
65: </tr>
1.1.2.10! casties 66: <tr tal:repeat="found python:here.sortBibliography(books)">
1.1.2.6 casties 67: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8 casties 68: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
69: <a
1.1.2.6 casties 70: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10! casties 71: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 72: <td valign="top"><input
73: tal:attributes="name python:'publications__priority__'+str(found.oid);
74: value python:here.integer(found.priority)"
75: size="3" /></td>
76: <td valign="top"
77: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 78: 'publications__publish__'+str(found.oid),
79: yes_no_list,
80: boxType='radio',
1.1.2.6 casties 81: checked=found.publish)" />
82: </tr>
83: </table>
84: </tal:block>
85:
86: <tal:block tal:condition="edited_books">
87: <h3>Edited Books</h3>
88: <table>
1.1.2.8 casties 89: <tr>
90: <th/>
91: <th/>
92: <th>Priority</th>
93: <th align="left" width="100">Show</th>
94: </tr>
1.1.2.6 casties 95: <tr tal:repeat="found python:here.sortBibliography(edited_books)">
96: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8 casties 97: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
98: <a
1.1.2.6 casties 99: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10! casties 100: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 101: <td valign="top"><input
102: tal:attributes="name python:'publications__priority__'+str(found.oid);
103: value python:here.integer(found.priority)"
104: size="3" /></td>
105: <td valign="top"
106: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 107: 'publications__publish__'+str(found.oid),
108: yes_no_list,
109: boxType='radio',
1.1.2.6 casties 110: checked=found.publish)" />
1.1.2.2 dwinter 111: </tr>
1.1.2.6 casties 112: </table>
113: </tal:block>
1.1.2.3 dwinter 114:
1.1.2.6 casties 115: <tal:block tal:condition="articles">
116: <h3>Articles and Chapters</h3>
117: <table>
1.1.2.8 casties 118: <tr>
119: <th/>
120: <th/>
121: <th>Priority</th>
122: <th align="left" width="100">Show</th>
123: </tr>
1.1.2.6 casties 124: <tr tal:repeat="found python:here.sortBibliography(articles)">
125: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
1.1.2.8 casties 126: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
127: <a
1.1.2.6 casties 128: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10! casties 129: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.6 casties 130: <td valign="top"><input
131: tal:attributes="name python:'publications__priority__'+str(found.oid);
132: value python:here.integer(found.priority)"
133: size="3" /></td>
134: <td valign="top"
135: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.2 dwinter 136: 'publications__publish__'+str(found.oid),
137: yes_no_list,
138: boxType='radio',
1.1.2.6 casties 139: checked=found.publish)" />
1.1.2.2 dwinter 140: </tr>
1.1.2.6 casties 141: </table>
1.1.2.8 casties 142: </tal:block>
143:
144: <tal:block tal:condition="not_displayed">
145: <h3>Currently not shown</h3>
146: <table>
147: <tr>
148: <th />
149: <th />
150: <th>Priority</th>
151: <th align="left" width="100">Show</th>
152: </tr>
153: <tr tal:repeat="found python:here.sortBibliography(not_displayed)">
154: <td><a
155: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
1.1.2.10! casties 156: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
1.1.2.8 casties 157: <td valign="top"><input
158: tal:attributes="name python:'publications__priority__'+str(found.oid);
1.1.2.6 casties 159: value python:here.integer(found.priority)"
1.1.2.8 casties 160: size="3" /></td>
161: <td valign="top"
162: tal:content="structure python:here.ZSQLSelectionFromCRList(
1.1.2.1 dwinter 163: 'publications__publish__'+str(found.oid),
164: yes_no_list,
165: boxType='radio',
1.1.2.6 casties 166: checked=found.publish)" />
1.1.2.8 casties 167: </tr>
168: </table>
169: </tal:block>
170:
1.1.2.6 casties 171: </tal:block>
172: <input type="submit" value="change">
1.1.2.1 dwinter 173: </form>
1.1.2.10! casties 174:
1.1.2.1 dwinter 175: </tal:block>
1.1.2.5 casties 176: </body>
1.1.2.1 dwinter 177: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>