Dear Ferran, Ferran Jorba wrote:
What I'm not able to see is where to define the brief and the full versions it.
Prior to answering, and to avoid any misunderstanding, let me clarify again the difference between "Output Formats" and "Format Templates": - Output formats are just sets of rules to apply a given template to a record. An output format can specify for example that brief display (HB) of records in collection X use format template x_brief.bft, while all others should use default_brief.bft - Format templates are mainly HTML + calls to BFE_* elements (this is most probably the one you have customized until now) This is a bit tricky to figure out at the beginning, but I tried to make it clearer in the short introduction to BibFormat: <http://invenio-demo.cern.ch/help/admin/bibformat-admin-guide#philosophy> One must be aware that even though you can define as many output formats as you want, the brief display for search results pages is somehow hardcoded to call the "HB" output format, while the detailed record pages call the "HD" output format. This means that if you have a new collection, with a completely new display for the record, you would 1. Create the brief and detailed format templates x_brief.bft and x_detailed.bft 2. "Connect" HB to x_brief.bft (by specifying condition to apply the format) 2. "Connect" HD to x_detailed.bft (by specifying condition to apply the format) (Additional reminder for those trying to edit formats from the web interface: make sure that your Apache user can write to the BibFormat files on disk in order to edit from the GUI)
I've gone through the web interface and also the command line, because sometimes I got lost in the web interface.
So maybe you would prefer to do everything from the command line: $ cd /opt/cds-invenio/etc/bibformat/output_formats/ $ ls > HB.bfo HD.bfo .... $ emacs HB.bfo [link to your customized brief template by adding a rule to use it] $ emacs HD.bfo [link to your customized detailed template by adding a rule to use it] The syntax to use in the output format when editing from the command line is rather basic, and described in the BibFormat admin guide, under the "For developers and adventurers only:" section: <http://invenio-demo.cern.ch/help/admin/bibformat-admin-guide#rulesOutputFormat> Best regards -- Jerome Caffaro ** CERN Document Server ** <http://cds.cern.ch/>
