version 1.1.2.9, 2007/04/18 10:03:12
|
version 1.1.2.18, 2010/10/20 10:51:07
|
Line 7
|
Line 7
|
<tal:block metal:fill-slot="body" |
<tal:block metal:fill-slot="body" |
tal:define="yes_no_list python:'yes\nno'; sortingMode python:'year\npriority'"> |
tal:define="yes_no_list python:'yes\nno'; sortingMode python:'year\npriority'"> |
|
|
<h3><a href="addPublications">Add Publications to your list</a></h3> |
|
<form action="changePublicationSelectionMode" method="post"> |
|
|
|
<h3>Select the 5 publications to be displayed in the first part of your homepage</h3> |
|
<p>Choose the first 5 of my list following the order of</p> |
|
<table tal:define="sm python:here.getPublicationSelectionMode()"> |
|
<tr tal:condition="python:sm=='priority'"> |
|
<td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span> |
|
<span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td> |
|
<td><input type="submit" value="change"></td> |
|
</tr> |
|
<tr tal:condition="not:python:sm=='priority'"> |
|
<td><span><input checked type="radio" name="publicationSelectionMode" value="year" /> |
|
year</span> <span><input type="radio" name="publicationSelectionMode" |
|
value="priority" /> priority</span></td> |
|
<td><input type="submit" value="change"></td> |
|
</tr> |
|
</table> |
|
</form> |
|
|
|
|
|
<h2>Publication list</h2> |
<h2>Publication list</h2> |
Line 44
|
Line 26
|
</form> |
</form> |
|
|
<form action="changePublications" method="post"> |
<form action="changePublications" method="post"> |
<input type="hidden" name="key_main" tal:attributes="value person/key"> |
<input type="hidden" name="key_main" tal:attributes="value python:here.decode(person.key)"> |
<input type="hidden" name="main_fields" |
<input type="hidden" name="main_fields" |
value="publications__title,publications__publish"> |
value="publications__title,publications__publish"> |
|
|
<tal:block |
<tal:block |
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()); |
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()); |
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()); |
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()); |
Line 62
|
Line 45
|
<th>Priority</th> |
<th>Priority</th> |
<th align="left" width="100">Show</th> |
<th align="left" width="100">Show</th> |
</tr> |
</tr> |
<tr tal:repeat="found python:here.sortBibliography(books)"> |
<tal:x tal:repeat="found python:here.sortBibliography(books)"> |
|
<tr> |
<td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" |
<td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" |
tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> |
tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> |
<a |
<a |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
<td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td> |
<td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> |
<td valign="top"><input |
<td valign="top"><input |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
value python:here.integer(found.priority)" |
value python:here.integer(found.priority)" |
Line 78
|
Line 62
|
yes_no_list, |
yes_no_list, |
boxType='radio', |
boxType='radio', |
checked=found.publish)" /> |
checked=found.publish)" /> |
|
|
</tr> |
</tr> |
|
<tr> |
|
<td> </td> |
|
<td valign="top"><em>Link:</em><input |
|
tal:attributes="name python:'publications__link__'+str(found.oid); |
|
value python:getattr(found,'link','')" |
|
size="150" /></td> |
|
<td> </td> |
|
<td> </td> |
|
</tr> |
|
</tal:x> |
</table> |
</table> |
</tal:block> |
</tal:block> |
|
|
Line 91
|
Line 86
|
<th>Priority</th> |
<th>Priority</th> |
<th align="left" width="100">Show</th> |
<th align="left" width="100">Show</th> |
</tr> |
</tr> |
<tr tal:repeat="found python:here.sortBibliography(edited_books)"> |
<tal:x tal:repeat="found python:here.sortBibliography(edited_books)"> |
|
<tr> |
<td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" |
<td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" |
tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> |
tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> |
<a |
<a |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
<td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td> |
<td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> |
<td valign="top"><input |
<td valign="top"><input |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
value python:here.integer(found.priority)" |
value python:here.integer(found.priority)" |
Line 108
|
Line 104
|
boxType='radio', |
boxType='radio', |
checked=found.publish)" /> |
checked=found.publish)" /> |
</tr> |
</tr> |
|
<tr> |
|
<td> </td> |
|
<td valign="top"><em>Link:</em><input |
|
tal:attributes="name python:'publications__link__'+str(found.oid); |
|
value python:getattr(found,'link','')" |
|
size="150" /></td> |
|
<td> </td> |
|
<td> </td> |
|
</tr> |
|
</tal:x> |
</table> |
</table> |
</tal:block> |
</tal:block> |
|
|
Line 120
|
Line 126
|
<th>Priority</th> |
<th>Priority</th> |
<th align="left" width="100">Show</th> |
<th align="left" width="100">Show</th> |
</tr> |
</tr> |
<tr tal:repeat="found python:here.sortBibliography(articles)"> |
<tal:x tal:repeat="found python:here.sortBibliography(articles)"> |
|
<tr> |
<td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" |
<td><a tal:condition="python:found.id_gen_bib and (not found.id_gen_bib=='')" |
tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> |
tal:attributes="href python:'editBibliography?id=%s'%found.id_gen_bib">edit</a> |
<a |
<a |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
<td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td> |
<td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> |
<td valign="top"><input |
<td valign="top"><input |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
value python:here.integer(found.priority)" |
value python:here.integer(found.priority)" |
Line 137
|
Line 144
|
boxType='radio', |
boxType='radio', |
checked=found.publish)" /> |
checked=found.publish)" /> |
</tr> |
</tr> |
|
<tr> |
|
<td> </td> |
|
<td valign="top"><em>Link:</em><input |
|
tal:attributes="name python:'publications__link__'+str(found.oid); |
|
value python:getattr(found,'link','')" |
|
size="150" /></td> |
|
<td> </td> |
|
<td> </td> |
|
</tr> |
|
</tal:x> |
</table> |
</table> |
</tal:block> |
</tal:block> |
|
|
Line 149
|
Line 166
|
<th>Priority</th> |
<th>Priority</th> |
<th align="left" width="100">Show</th> |
<th align="left" width="100">Show</th> |
</tr> |
</tr> |
<tr tal:repeat="found python:here.sortBibliography(not_displayed)"> |
<tal:x tal:repeat="found python:here.sortBibliography(not_displayed)"> |
|
<tr> |
<td><a |
<td><a |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a></td> |
<td><span tal:replace="structure python:here.decode(here.formatBibliography(here,found))" /></td> |
<td><span tal:replace="structure python:here.formatBibliography(here,here.decode(found))" /></td> |
<td valign="top"><input |
<td valign="top"><input |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
tal:attributes="name python:'publications__priority__'+str(found.oid); |
value python:here.integer(found.priority)" |
value python:here.integer(found.priority)" |
Line 164
|
Line 182
|
boxType='radio', |
boxType='radio', |
checked=found.publish)" /> |
checked=found.publish)" /> |
</tr> |
</tr> |
|
<tr> |
|
<td> </td> |
|
<td valign="top"><em>Link:</em><input |
|
tal:attributes="name python:'publications__link__'+str(found.oid); |
|
value python:getattr(found,'link','')" |
|
size="150" /></td> |
|
<td> </td> |
|
<td> </td> |
|
</tr> |
|
</tal:x> |
</table> |
</table> |
</tal:block> |
</tal:block> |
|
|
</tal:block> |
</tal:block> |
<input type="submit" value="change"> |
<input type="submit" value="change"> |
</form> |
</form> |
|
|
|
<br/> <br/> <br/> |
|
|
|
<form action="changePublicationSelectionMode" method="post"> |
|
|
|
<h3>Select the 5 publications to be displayed in the first part of your homepage</h3> |
|
<p>Choose the first 5 of my list following the order of</p> |
|
<table tal:define="sm python:here.getPublicationSelectionMode()"> |
|
<tr tal:condition="python:sm=='priority'"> |
|
<td><span><input type="radio" name="publicationSelectionMode" value="year" />year</span> |
|
<span><input checked type="radio" name="publicationSelectionMode" value="priority" />priority</span></td> |
|
<td><input type="submit" value="change"></td> |
|
</tr> |
|
<tr tal:condition="not:python:sm=='priority'"> |
|
<td><span><input checked type="radio" name="publicationSelectionMode" value="year" /> |
|
year</span> <span><input type="radio" name="publicationSelectionMode" |
|
value="priority" /> priority</span></td> |
|
<td><input type="submit" value="change"></td> |
|
</tr> |
|
</table> |
|
</form> |
|
|
|
<br/><br/> |
|
<h3><a href="addPublicationsBib">Add Publications to your list</a></h3> |
|
<!-- <h4> <a href="addPublications">Add |
|
entries from the Institutsbibliographie</a></h4> |
|
<h4> <a href="newBibliography">Add an entry that cannot be found in the |
|
Institutsbibliographie</a></h4> --> |
|
|
</tal:block> |
</tal:block> |
</body> |
</body> |
</html> |
</html> |