Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull-Request adds support for converting
CITATION.cff
to biblatex-software format adding the new--format biblatex
, eg:The Bibtex format
--format bibtex
was not changed, and the new format--format biblatex
was added, the new formatbiblatex
was build on top of thebibtex
implementation, the source code of Bibtex was duplicated and modified to add the new fields below:Important to mention that the fields
institution
andeditor
doesn't have a straight match with any field from CFF format, AFAIK. My approach was to collect it from the fieldcontact
from theCITATION.cff
.The
biblatex-software
documentation defines the field institution such as:I am not sure we have this kind of field on CITATION.cff, the strategy adopted here for the
institution
field is:contact
field in CITATION.cffcontact
field is found search for the 1st entry that matches the criteria belowname
definedinstitution
fieldThe
biblatex-software
documentation defines the field editor such as:Again, I am not sure we have this kind of field on CITATION.cff, the strategy adopted here for the
editor
field is:contact
field in CITATION.cffcontact
field is found search for entries that matches the criteria belowname
given-names
definedfamily-names
definedgiven-names
andfamily-names
of all contacts to the outputBelow you can see how the results between
bibtex
andbiblatex
differs for the same input file.Example of use for the
bibtex
formatExample of use for the
biblatex
formatQuestions
I believe the code added by this PR is good but not good enough, I think I need some inputs from the more-experienced here about the compatibility between the CFF schema and the biblatex-software schema, specially for the fields editor and institution, the strategy that I've adopted is based on my experience using CITATION.cff to document some of my projects, where I have used the CITATION.cff
contact
field to describe who is the institution and the editors of the software project I am working on.That said, I would like to ask: What do you think about the code proposed here, and about the strategy adopted for the fields I've mentioned?
Thanks for you time and your attention.
Closes: #152