Please do update the documentation !
Have a look at the "LibreOffice Plugin Protocol" webpage.
There stands:
fieldID A unique identifier corresponding to this field.
But it's not unique. The fieldIDs are changed sometimes.
This is the case in this sample:
- Insert a few citations.
- Insert the bibliography.
- Then insert again a citation.
Every time, a new citation is inserted into a document with an existing bibliography, some fieldID values must be updated.
The field with the bibliography data must have the largest value N as fieldID.
All citations have fieldIDs in the range [0...N-1].
The number N is equal to the count of all fields (citations + bibliography).
LibreOffice does it, by inserting new citations with fieldID 0.
In this case all fieldIDs of the citations are changing too.