Dear Alexander,

On 02/01/2011 03:07 PM, Alexander Wagner wrote:

For a given format I'd like to print out a field where a specific
condition is met. [...]
Print ISSN: <BFE_FIELD tag="022__$a" condition="$c=print" />
eISSN: <BFE_FIELD tag="022__$a" condition="$c=online" />

Indeed we do not have such a condition parameter available for the <BFE_FIELD /> tag. You will have to create your own element (in Python)
to produce the desired behaviour.

Alternatively you might want to enrich the bfe_field.py element
with such a "condition" parameter. Note that:

1) in principle you should not modify the default provided elements,
   as they would get overwritten when you update Invenio. You should
   consequently rename bfe_field.py to bfe_field_juelich.py, modify
   it, and call it with <BFE_FIELD-JUELICH /> in your templates.

2) better, if your addition of parameter "condition" is generic enough
   your modifications could be integrated back into the the Invenio
   software so that everyone can benefit from it. This might mean that
   for eg. the condition can also be applied to other fields than the
   current one:
   <BFE_FIELD tag="022__$a" condition="260__c=print" />

   We usually create our own bfe_s, so I do not have real use case
   scenarios in mind to detail how "condition" parameter should be
   done to please most people. The community might want to contribute...

Best regards
--
Jerome Caffaro ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to