On 07.10.2011 16:42, Jerome Caffaro wrote:
Hi!
I followed those steps and found that Invenio was thinking that the
wrong format was actually a pre-stored one.
It is enough that `bibreformat' did run at a point when the format
template (or output format) was not the one you expected or not yet
debugged (and did fall back on a default one) for the "wrong" output to
be cached.
Likely this was the issue I stumbled upon. At least it sounds like the
explanation(tm).
Since you did not seem to have anything reported in invenio.err I would
suspect it was not the fallback template that was used, but rather a
draft template?
Depending on what you refer to by "draft template", yes. I've developed
a bunch of new formats that address special issues with some of our
document types (e.g. journals, authority type records, technical
backends delivering some JSONish or tab delimited stuff) and given your
explanation above it seems that this triggered the caching.
Note also the following important point: bibreformat updates the cache
of records that have been updated. It does not reprocess records if you
have update the templates. Nice to know when developing templates.
%s/Nice to know/Essential to know/
This is in fact a pretty good explanation of what was happening. In fact
I loaded the records before I developed the necessary output formats,
mainly as I need some samples to see if everything works out properly.
It also explains why everything seems to work now on my fresh install
(it just gets all formats before loading any of the records in question)
and why the initial problem was solved by just forcing a reformat.
--
Kind regards,
Alexander Wagner
Subject Specialist
Central Library
52425 Juelich
mail : [email protected]
phone: +49 2461 61-1586
Fax : +49 2461 61-6103
http://www.fz-juelich.de/zb/mitarbeiter/fachinformation#wagner
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDirig Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------