version 1.1.2.8, 2005/11/16 19:09:28
|
version 1.1.2.10, 2007/05/29 15:09:35
|
Line 44
|
Line 44
|
</form> |
</form> |
|
|
<form action="changePublications" method="post"> |
<form action="changePublications" method="post"> |
<input type="hidden" name="id_main" tal:attributes="value person/id"> |
<input type="hidden" name="key_main" tal:attributes="value 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 id_main=\'%s\' and lower(referencetype)in (\'book\') and publish=\'yes\' order by priority'%here.getDBId()); |
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 id_main=\'%s\' and lower(referencetype)in (\'edited book\') and publish=\'yes\' order by priority'%here.getDBId()); |
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()); |
not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and publish=\'no\' order by priority'%here.getDBId()); |
not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where lower(key_main)=\'%s\' and publish=\'no\' order by priority'%here.getKey().lower()); |
articles python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and lower(referencetype) not in (\'book\',\'edited book\') and publish=\'yes\' order by priority'%here.getDBId())"> |
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())"> |
|
|
<tal:block tal:condition="books"> |
<tal:block tal:condition="books"> |
<h3>Books</h3> |
<h3>Books</h3> |
Line 67
|
Line 68
|
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.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 96
|
Line 97
|
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.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 125
|
Line 126
|
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.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 152
|
Line 153
|
<tr tal:repeat="found python:here.sortBibliography(not_displayed)"> |
<tr tal:repeat="found python:here.sortBibliography(not_displayed)"> |
<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.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 170
|
Line 171
|
</tal:block> |
</tal:block> |
<input type="submit" value="change"> |
<input type="submit" value="change"> |
</form> |
</form> |
|
|
</tal:block> |
</tal:block> |
</body> |
</body> |
</html> |
</html> |