#251: BibFormat: problems with format_record() and live incomplete MARCXML
------------------------+---------------------------------------------------
Reporter: simko | Owner:
Type: defect | Status: new
Priority: critical | Milestone: v1.0
Component: BibFormat | Version:
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by simko):
Replying to [comment:2 jcaffaro]:
> 1. whenever an XSL template is processed without a recid, do not process
the above extension functions.
I think a simple and speedy solution of this kind may be sufficient
for most use cases. ("do not process non-applicable elements")
Otherwise a more generic solution would be to extend `eval_bibformat`
to accept MARCXML snippet argument, as you proposed, but that would
not fully work for extracting non-MARC information anyway. (We would
have to introduce more FFT like elements.) I think we don't have to
go this way unless somebody has some concrete use cases at hand.
BTW, note that my `foo bar blah` example in one of the above comments
shows that the `recID` argument takes precedence over `xml_record`
argument, which goes counter the expected behaviour of
`format_record()` as well as counter its docstring. This should be
investigated and fixed at the same time.
--
Ticket URL: <http://invenio-software.org/ticket/251#comment:3>
Invenio <http://invenio-software.org>