1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3: <html metal:use-macro="here/mainEditFile/macros/page">
4: <body>
5: <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
6:
7: <tal:block metal:fill-slot="body"
8: tal:define="yes_no_list python:'yes\nno'; sortingMode python:'year\npriority'">
9:
10: <h3><a href="addPublications">Add Publications to your list</a></h3>
11: <form action="changePublicationSelectionMode" method="post">
12:
13: <h3>Select the 5 publications to be displayed in the first part of your homepage</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>
18: <span><input checked type="radio" 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" />
23: year</span> <span><input type="radio" name="publicationSelectionMode"
24: value="priority" /> priority</span></td>
25: <td><input type="submit" value="change"></td>
26: </tr>
27: </table>
28: </form>
29:
30:
31: <h2>Publication list</h2>
32: <p>(You can not change entries from the <i>Institutsbibliographie</i> here)</p>
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())" />
42: <td><input type="submit" value="change"></td>
43: </table>
44: </form>
45:
46: <form action="changePublications" method="post">
47: <input type="hidden" name="key_main" tal:attributes="value person/key">
48: <input type="hidden" name="main_fields"
49: value="publications__title,publications__publish">
50:
51: <tal:block
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())">
56:
57: <tal:block tal:condition="books">
58: <h3>Books</h3>
59: <table>
60: <tr>
61: <th />
62: <th />
63: <th>Priority</th>
64: <th align="left" width="100">Show</th>
65: </tr>
66: <tr tal:repeat="found python:here.sortBibliography(books)">
67: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
68: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
69: <a
70: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
71: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
78: 'publications__publish__'+str(found.oid),
79: yes_no_list,
80: boxType='radio',
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>
89: <tr>
90: <th/>
91: <th/>
92: <th>Priority</th>
93: <th align="left" width="100">Show</th>
94: </tr>
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=='')"
97: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
98: <a
99: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
100: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
107: 'publications__publish__'+str(found.oid),
108: yes_no_list,
109: boxType='radio',
110: checked=found.publish)" />
111: </tr>
112: </table>
113: </tal:block>
114:
115: <tal:block tal:condition="articles">
116: <h3>Articles and Chapters</h3>
117: <table>
118: <tr>
119: <th/>
120: <th/>
121: <th>Priority</th>
122: <th align="left" width="100">Show</th>
123: </tr>
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=='')"
126: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
127: <a
128: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
129: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
136: 'publications__publish__'+str(found.oid),
137: yes_no_list,
138: boxType='radio',
139: checked=found.publish)" />
140: </tr>
141: </table>
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>
156: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
157: <td valign="top"><input
158: tal:attributes="name python:'publications__priority__'+str(found.oid);
159: value python:here.integer(found.priority)"
160: size="3" /></td>
161: <td valign="top"
162: tal:content="structure python:here.ZSQLSelectionFromCRList(
163: 'publications__publish__'+str(found.oid),
164: yes_no_list,
165: boxType='radio',
166: checked=found.publish)" />
167: </tr>
168: </table>
169: </tal:block>
170:
171: </tal:block>
172: <input type="submit" value="change">
173: </form>
174:
175: </tal:block>
176: </body>
177: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>