<p>You will need to migrate your old formats if you are not a new user. You can read the <a href="%(weburl)s/admin/bibformat/guide.html">documentation</a> to learn how to write
formats, or use the <a href="%(weburl)s/admin/bibformat/bibformat_migration_kit_assistant.py">migration assistant</a>.</p>
<p>From here you can add, edit or delete output formats available for collections. Output formats define which template to use. <br/>To edit templates go to the <a href="format_templates_manage?ln=%(ln)s">template administration page</a>.</p>
<td><input tabindex="2" name="content_type" type="text" id="outputFormatContentType" size="25" value="%(content_type)s" %(readonly)s/> <small>Mime content-type. Specifies how the browser should handle this output.</small></td>
_=gettext_set_language(ln)# load the right message language
out='''
<p>To add a new basic element (only fetch the value of a field, without special post-processing), go to the <a href="%(weburl)sadmin/bibindex/bibindexadmin.py/field">BibEdit "Manage Logical Fields"</a> page and add a name for a field. Make sure that the name is unique and corresponds well to the field. For example, to add an element that fetch the value of field 245__%, add a new logical field with name "title" and field "245__%". Then in your template, call BFE_TITLE to print the title.</p>
<p>To add a new complex element (for eg. special formatting of the field, condition on the value, etc.) you must go to the lib/python/invenio/bibformat_elements directory of your Invenio installation, and add a new format element file. Read documentation for more information.</p>
'''%{'weburl':weburl}
returnout
deftmpl_admin_kbs_management(self,ln,kbs):
"""
Returns the main management console for knowledge bases.
@param ln language
@param kbs a list of dictionaries with knowledge bases attributes
@return main management console as html
"""
_=gettext_set_language(ln)# load the right message language