Hello,
I have a couple of collections where a particular Marc tag should
display a different text than the other collections. Everything else is
identical to the other ones.
I have been testing different solutions:
1. Create a completely different format template that duplicates the
same Default_HTML_detailed, but just changing the prefix value for my
tag. That seems a bad solution in the long term, as all changes
should be done in both files.
2. Keep the same format template but duplicate a bfe_*.py file with a
stupid condition like that:
academic_collections = ['PROCUR', 'EXAMENS']
if (bfo.field('980__a') in academic_collections):
return ''
And the other one adding changing for the oposite (not in). Again,
it seems a poor solution from a maintenance point of view.
3. Trying to modify the prefix inside the bfe_*.py element, like that:
academic_collections = ['PROCUR', 'EXAMENS']
if (bfo.field('980__a') in academic_collections):
prefix = "<br/><span
class='etiqueta'><lang><en>Studies</en><es>Titulación</es><ca>Titulació</ca></lang>:
</span><span class='text'>"
But inspecting the code I see that the prefix is evaluated before
calling the bfe_*.py element, so my hack doesn't work.
Does anybody have a better idea?
Thanks,
Ferran