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: <tr tal:repeat="found python:here.sortBibliography(books)">
49: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
50: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
51: <a
52: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
53: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
60: 'publications__publish__'+str(found.oid),
61: yes_no_list,
62: boxType='radio',
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>
71: <tr>
72: <th/>
73: <th/>
74: <th>Priority</th>
75: <th align="left" width="100">Show</th>
76: </tr>
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=='')"
79: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
80: <a
81: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
82: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
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(
89: 'publications__publish__'+str(found.oid),
90: yes_no_list,
91: boxType='radio',
92: checked=found.publish)" />
93: </tr>
94: </table>
95: </tal:block>
96:
97: <tal:block tal:condition="articles">
98: <h3>Articles and Chapters</h3>
99: <table>
100: <tr>
101: <th/>
102: <th/>
103: <th>Priority</th>
104: <th align="left" width="100">Show</th>
105: </tr>
106: <tr tal:repeat="found python:here.sortBibliography(articles)">
107: <td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')"
108: tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a>
109: <a
110: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
111: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
112: <td valign="top"><input
113: tal:attributes="name python:'publications__priority__'+str(found.oid);
114: value python:here.integer(found.priority)"
115: size="3" /></td>
116: <td valign="top"
117: tal:content="structure python:here.ZSQLSelectionFromCRList(
118: 'publications__publish__'+str(found.oid),
119: yes_no_list,
120: boxType='radio',
121: checked=found.publish)" />
122: </tr>
123: </table>
124: </tal:block>
125:
126: <tal:block tal:condition="not_displayed">
127: <h3>Currently not shown</h3>
128: <table>
129: <tr>
130: <th />
131: <th />
132: <th>Priority</th>
133: <th align="left" width="100">Show</th>
134: </tr>
135: <tr tal:repeat="found python:here.sortBibliography(not_displayed)">
136: <td><a
137: tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td>
138: <td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td>
139: <td valign="top"><input
140: tal:attributes="name python:'publications__priority__'+str(found.oid);
141: value python:here.integer(found.priority)"
142: size="3" /></td>
143: <td valign="top"
144: tal:content="structure python:here.ZSQLSelectionFromCRList(
145: 'publications__publish__'+str(found.oid),
146: yes_no_list,
147: boxType='radio',
148: checked=found.publish)" />
149: </tr>
150: </table>
151: </tal:block>
152:
153: </tal:block>
154: <input type="submit" value="change">
155: </form>
156:
157: <br/> <br/> <br/>
158:
159: <form action="changePublicationSelectionMode" method="post">
160:
161: <h3>Select the 5 publications to be displayed in the first part of your homepage</h3>
162: <p>Choose the first 5 of my list following the order of</p>
163: <table tal:define="sm python:here.getPublicationSelectionMode()">
164: <tr tal:condition="python:sm=='priority'">
165: <td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span>
166: <span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td>
167: <td><input type="submit" value="change"></td>
168: </tr>
169: <tr tal:condition="not:python:sm=='priority'">
170: <td><span><input checked type="radio" name="publicationSelectionMode" value="year" />
171: year</span> <span><input type="radio" name="publicationSelectionMode"
172: value="priority" /> priority</span></td>
173: <td><input type="submit" value="change"></td>
174: </tr>
175: </table>
176: </form>
177:
178: <br/><br/>
179: <h3><a href="addPublications">Add Publications to your list</a></h3>
180: <!-- <h4> <a href="addPublications">Add
181: entries from the Institutsbibliographie</a></h4>
182: <h4> <a href="newBibliography">Add an entry that cannot be found in the
183: Institutsbibliographie</a></h4> -->
184:
185: </tal:block>
186: </body>
187: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>