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-
software
entries with dummy topmostsofware
and entries aspreferred-citation
- Export non-
software
entries with dummy topmostsofware
and 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
software
entries with one of them topmost and all others asreferences
- Export non-
- Export several
software
entries with a dummy topmostsoftware
element and all others asreferences
- When importing:
- Only create one entry / file, enven if there is a
preferred-citation
orreferences
- Add a JabRef
cites
relation fromsoftware
entry to itspreferred-citation
- Add a JabRef
cites
relation frompreferred-citation
entry to the mainsoftware
entry - Separate
software
entries from theirpreferred-citation
orreferences
- 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-
software
entries are selected, then exporter uses thereferences
field with a dummy topmostsoftware
element. - If several entries including a
software
ordataset
one are selected, then exporter uses this one as topmost element and the others asreferences
, adding a potentialpreferred-citation
for the potentialcites
element of the topmostsoftware
entry. - If several entries including several
software
ones are selected, then exporter uses a dummy topmost element, and selected entries are exported asreferences
. Thecites
orrelated
fields won’t be exported in this case. - JabRef will not handle
cites
orrelated
fields for non-software
elements.
- If multiple non-
- When importing, JabRef will create several entries: one main entry for the
software
and other entries for the potentialpreferred-citation
andreferences
fields. JabRef will link main entry to the preferred citation using acites
from the main entry, and wil link main entry to the references using arelated
from 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-citation
or thereferences
created entries won’t result in the same file (i.e exported file will contain a dummy topmostsoftware
instead of the actualsoftware
that was imported) cites
andrelated
fields of non-software
entries are not supported