Exporting multiple entries to CFF
Context and Problem Statement
The need for an exporter to CFF format raised the following issue: How to export multiple entries at once? Citation-File-Format is intended to make software and datasets citable. It should contain one “main” entry of type software or dataset, a possible preferred citation and/or several references of any type.
Decision Drivers
- Make exported files compatible with official CFF tools
- Make exporting process logical for users
Considered Options
- When exporting:
- Export non-
softwareentries with dummy topmostsofwareand entries aspreferred-citation - Export non-
softwareentries with dummy topmostsofwareand entries asreferences - Forbid exporting multiple entries at once
- Forbid exporting more than one software entry at once
- Export entries in several files (i.e. one / file)
- Export several
softwareentries with one of them topmost and all others asreferences
- Export non-
- Export several
softwareentries with a dummy topmostsoftwareelement and all others asreferences - When importing:
- Only create one entry / file, enven if there is a
preferred-citationorreferences - Add a JabRef
citesrelation fromsoftwareentry to itspreferred-citation - Add a JabRef
citesrelation frompreferred-citationentry to the mainsoftwareentry - Separate
softwareentries from theirpreferred-citationorreferences
- Only create one entry / file, enven if there is a
Decision Outcome
The decision outcome is the following.
- When exporting, JabRef will have a different behavior depending on entries type.
- If multiple non-
softwareentries are selected, then exporter uses thereferencesfield with a dummy topmostsoftwareelement. - If several entries including a
softwareordatasetone are selected, then exporter uses this one as topmost element and the others asreferences, adding a potentialpreferred-citationfor the potentialciteselement of the topmostsoftwareentry. - If several entries including several
softwareones are selected, then exporter uses a dummy topmost element, and selected entries are exported asreferences. Thecitesorrelatedfields won’t be exported in this case. - JabRef will not handle
citesorrelatedfields for non-softwareelements.
- If multiple non-
- When importing, JabRef will create several entries: one main entry for the
softwareand other entries for the potentialpreferred-citationandreferencesfields. JabRef will link main entry to the preferred citation using acitesfrom the main entry, and wil link main entry to the references using arelatedfrom the main entry.
Positive Consequences
- Exported results comply with CFF format
- The export process is “logic” : an user who exports multiple files to CFF might find it clear that they are all marked as
references - Importing a CFF file and then exporting the “main” (software) created entry is consistent and will produce the same result
Negative Consequences
- Importing a CFF file and then exporting one of the
preferred-citationor thereferencescreated entries won’t result in the same file (i.e exported file will contain a dummy topmostsoftwareinstead of the actualsoftwarethat was imported) citesandrelatedfields of non-softwareentries are not supported