version 1.1.2.1, 2005/10/10 08:42:49
|
version 1.1.2.4, 2005/10/12 19:35:38
|
Line 1
|
Line 1
|
<html metal:use-macro="here/mainEditFile/macros/page"> |
<html metal:use-macro="here/mainEditFile/macros/page"> |
|
|
<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'"> |
<tal:block metal:fill-slot="body" tal:define="yes_no_list python:'yes\nno'; |
|
sortingMode python:'year\npriority'"> |
|
|
<h3>Manage Publications</h3> |
<h2>Manage Publications</h2> |
<p><a href="addPublications">Add Publications</a></p> |
<p><a href="addPublications">Add Publications to your list</a></p> |
|
<form action="changePublicationSelectionMode" method="post"> |
|
|
|
<h3>Select the 5 publications to be displayed at your <a src="../index.html" target="blank"> homepage</a></h3> |
|
<p>Choose the first 5 of my list following the order of</p> |
|
<ul tal:define="sm python:here.getPublicationSelectionMode()"> |
|
|
|
<tal:block tal:condition="python:sm=='priority'"> |
|
<li> priority <input checked type="radio" name="publicationSelectionMode" value="priority"> |
|
<li> year <input type="radio" name="publicationSelectionMode" value="year"> |
|
</tal:block> |
|
<tal:block tal:condition="not:python:sm=='priority'"> |
|
<li> priority <input type="radio" name="publicationSelectionMode" value="priority"> |
|
<li> year <input checked type="radio" name="publicationSelectionMode" value="year"> |
|
</tal:block> |
|
<input type="submit" value="change"> |
|
</ul> |
|
</form> |
|
<h3>Changing sort order, delete or edit publications</h3> |
|
<p>Editing is only possible for publications which are not imported from the institutsbiliography. For more information see XXX</p> |
|
<form action="changeSortingMode" method="post"> |
|
<p>Sort by:</p> |
|
<table> |
|
<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( |
|
'sortingMode', |
|
sortingMode, |
|
boxType='radio', |
|
checked=here.getSortingMode())"/> |
|
<td><input type="submit" value="change"></td> |
|
</table> |
|
|
|
</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="id_main" tal:attributes="value person/id"> |
<input type="hidden" name="main_fields" value="publications__title"> |
<input type="hidden" name="main_fields" value="publications__title,publications__publish"> |
|
|
|
<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()); |
|
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()); |
|
not_displayed python:here.ZSQLSimpleSearch('select *,oid from publications where id_main=\'%s\' and publish=\'no\' order by priority'%here.getDBId()); |
|
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())"> |
|
|
|
<tal:block tal:condition="books"> |
|
|
|
<h3>Books</h3> |
|
<table> |
|
<tr tal:repeat="found python:here.sortBibliography(books)"> |
|
<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> |
|
|
|
<a 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 valign="top"> |
|
<input tal:attributes="name python:'publications__priority__'+str(found.oid); |
|
value python:here.integer(found.priority)" size="3"/> |
|
</td> |
|
<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( |
|
'publications__publish__'+str(found.oid), |
|
yes_no_list, |
|
boxType='radio', |
|
checked=found.publish)"/> |
|
</tr> |
|
</tal:block> |
|
|
|
<tal:block tal:condition="edited_books"> |
|
<h3>Edited Books</h3> |
|
<table> |
|
|
|
<tr tal:repeat="found python:here.sortBibliography(edited_books)"> |
|
<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> |
|
|
|
<a 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 valign="top"> |
|
<input tal:attributes="name python:'publications__priority__'+str(found.oid); |
|
value python:here.integer(found.priority)" size="3"/> |
|
|
|
</td> |
|
<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( |
|
'publications__publish__'+str(found.oid), |
|
yes_no_list, |
|
boxType='radio', |
|
checked=found.publish)"/> |
|
</tr> |
|
</table> |
|
</tal:block> |
|
|
|
<tal:block tal:condition="articles"> |
|
<h3>Articles and Chapters</h3> |
|
<table> |
|
<tr tal:repeat="found python:here.sortBibliography(articles)"> |
|
<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> |
|
|
|
<a 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 valign="top"> |
|
<input tal:attributes="name python:'publications__priority__'+str(found.oid); |
|
value python:here.integer(found.priority)" size="3"/> |
|
|
<table tal:define="founds2 python:here.ZSQLInlineSearch(_table='publications',id_main=person.id)"> |
</td> |
<tr tal:repeat="found python:here.sortPriority(founds2)"> |
<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( |
|
'publications__publish__'+str(found.oid), |
|
yes_no_list, |
|
boxType='radio', |
|
checked=found.publish)"/> |
|
</tr> |
|
</table> |
|
<hr> |
|
<h3>Not displayed at the page</h3> |
|
<table> |
|
<tr tal:repeat="found python:here.sortBibliography(not_displayed)"> |
<td> |
<td> |
<a tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a> |
<a tal:attributes="href python:'deleteField?table=publications&oid=%s'%found.oid">delete</a> |
</td> |
</td> |
Line 18
|
Line 136
|
</td> |
</td> |
<td valign="top"> |
<td valign="top"> |
<input tal:attributes="name python:'publications__priority__'+str(found.oid); |
<input tal:attributes="name python:'publications__priority__'+str(found.oid); |
value found/priority" size="3"/> |
value python:here.integer(found.priority)" size="3"/> |
|
|
</td> |
</td> |
<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( |
<td valign="top" tal:content="structure python:here.ZSQLSelectionFromCRList( |
'publications__publish__'+str(found.oid), |
'publications__publish__'+str(found.oid), |
Line 27
|
Line 146
|
checked=found.publish)"/> |
checked=found.publish)"/> |
</tr> |
</tr> |
</table> |
</table> |
<input type="submit" value="submit"> |
</tal:block> |
|
</tal:block> |
|
<input type="submit" value="change"> |
</form> |
</form> |
</tal:block> |
</tal:block> |
</html> |
</html> |