Hello everyone,
There is a need to store some 'sensitive' data in the MARC record, that
should be viewable/editable by the librarian, however it should not
appear in the xm/MARCXML/(text)MARC output format of the search interface.
After spending a some time testing where this could be applied, I
realized that although this simple check could be put in the
print_record function of search_engine.py, the fact that the xm format
of the record is already cached and is read and displayed as it is,
renders this 'hack' useless.
I verified that if I force "on_the_fly=True" in format_record function
of bibformat.py, I get what I want with HUUUUUGE performance drop and
this is unacceptable.
Is there another way to make this work? Is the cached xm data (in the
bibfmt table) used for something else than display? Should I try to
strip the sensitive data from the record only when updating this table?
Is this possible?
Any ideas are welcome!
Thanks in advance for your time,
Best regards,
Theodoros Theodoropoulos