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:
11:
12:
13: <h2>Publication list</h2>
14: <p>(You can not change entries from the <i>Institutsbibliographie</i> here)</p>
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())" />
24: <td><input type="submit" value="change"></td>
25: </table>
26: </form>
27:
28: <form action="changePublications" method="post">
29: <input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)">
30: <input type="hidden" name="main_fields"
31: value="publications__title,publications__publish">
32:
33: <tal:block
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())">
38:
39: <tal:block tal:condition="books">
40: <h3>Books</h3>
41: <table>
42: <tr>
43: <th />
44: <th />
45: <th>Priority</th>
46: <th align="left" width="100">Show</th>
47: </tr>
48: <tal:x tal:repeat="found python:here.sortBibliography(books)">
49: <tr>
50: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
51: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
52: <a
53: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
54: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
61: 'publications__publish__'+str(found.oid),
62: yes_no_list,
63: boxType='radio',
64: checked=found.publish)" />
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>
75: </tr>
76: </tal:x>
77: </table>
78: </tal:block>
79:
80: <tal:block tal:condition="edited_books">
81: <h3>Edited Books</h3>
82: <table>
83: <tr>
84: <th/>
85: <th/>
86: <th>Priority</th>
87: <th align="left" width="100">Show</th>
88: </tr>
89: <tal:x tal:repeat="found python:here.sortBibliography(edited_books)">
90: <tr>
91: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
92: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
93: <a
94: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
95: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
102: 'publications__publish__'+str(found.oid),
103: yes_no_list,
104: boxType='radio',
105: checked=found.publish)" />
106: </tr>
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>
117: </table>
118: </tal:block>
119:
120: <tal:block tal:condition="articles">
121: <h3>Articles and Chapters</h3>
122: <table>
123: <tr>
124: <th/>
125: <th/>
126: <th>Priority</th>
127: <th align="left" width="100">Show</th>
128: </tr>
129: <tal:x tal:repeat="found python:here.sortBibliography(articles)">
130: <tr>
131: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
132: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
133: <a
134: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
135: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
142: 'publications__publish__'+str(found.oid),
143: yes_no_list,
144: boxType='radio',
145: checked=found.publish)" />
146: </tr>
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>
157: </table>
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>
169: <tal:x tal:repeat="found python:here.sortBibliography(not_displayed)">
170: <tr>
171: <td><a
172: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
173: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
174: <td valign="top"><input
175: tal:attributes="name python:'publications__priority__'+str(found.oid);
176: value python:here.integer(found.priority)"
177: size="3" /></td>
178: <td valign="top"
179: tal:content="structure python:here.ZSQLSelectionFromCRList(
180: 'publications__publish__'+str(found.oid),
181: yes_no_list,
182: boxType='radio',
183: checked=found.publish)" />
184: </tr>
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>
195: </table>
196: </tal:block>
197:
198: </tal:block>
199: <input type="submit" value="change">
200: </form>
201:
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/>
224: <h3><a href="addPublicationsBib">Add Publications to your list</a></h3>
225: <!-- <h4> <a href="addPublications">Add
226: entries from the Institutsbibliographie</a></h4>
227: <h4> <a href="newBibliography">Add an entry that cannot be found in the
228: Institutsbibliographie</a></h4> -->
229:
230: </tal:block>
231: </body>
232: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>