Add support for biblatex-software #391
Open
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.cffto biblatex-software format adding the new--format biblatex, eg:The Bibtex format
--format bibtexwas not changed, and the new format--format biblatexwas added, the new formatbiblatexwas build on top of thebibteximplementation, the source code of Bibtex was duplicated and modified to add the new fields below:Important to mention that the fields
institutionandeditordoesn't have a straight match with any field from CFF format, AFAIK. My approach was to collect it from the fieldcontactfrom theCITATION.cff.The
biblatex-softwaredocumentation 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
institutionfield is:contactfield in CITATION.cffcontactfield is found search for the 1st entry that matches the criteria belownamedefinedinstitutionfieldThe
biblatex-softwaredocumentation 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
editorfield is:contactfield in CITATION.cffcontactfield is found search for entries that matches the criteria belownamegiven-namesdefinedfamily-namesdefinedgiven-namesandfamily-namesof all contacts to the outputBelow you can see how the results between
bibtexandbiblatexdiffers for the same input file.Example of use for the
bibtexformatExample of use for the
biblatexformatQuestions
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
contactfield 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