Skip to content

Import valid RIS records and report skipped records by number #67

Backlog

Description

@OstenHun

After #66, danseo topic import can read a whole RIS collection in one round. If one entry is missing a year, or the same paper appears twice, the whole import still fails. A reader has to edit the export and retry before they can select any papers.

Requested behavior

  • Continue after an invalid record and include each skipped record’s original 1-based position and specific reason in the CLI’s JSON result.
  • Merge duplicates only when their complete identifiers match. A similar title or a single shared identifier in an otherwise conflicting set is insufficient. Report which original records were combined. If identifiers conflict, skip the conflicting entry and explain the conflict.
  • Save the accepted candidates together in one atomic update. If none can be imported, return the diagnostics and leave the topic file unchanged.

Example

Given five records, 1 and 3 are distinct valid papers, 2 has no year, 4 repeats all identifiers from 1, and 5 shares the source URL of 3 but supplies a different DOI. Reopening the topic should show two candidates. The import result should identify 2 (missing year), 4 (combined with 1), and 5 (DOI conflict with 3), using their positions in the RIS file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions