I notice that if I import a bibtex file twice, I end up with two copies of each citation. It would be nice if the citation keys where used as a sort of primary key so that re-importing a file would update existing entities with the same citation key, if they exist.

My use case is that my users often maintain their bibliographies as bibtex files, which are used in many ways besiide being imported into drupal. They will commonly add or edit citations and re-import the file.

Comments

jazztini created an issue. See original summary.

antongp’s picture

Status: Active » Postponed
antongp’s picture

Title: Citation Keys like primary keys » Option to update existing references instead of creating new ones

antongp credited Corn696.

antongp’s picture

Priority: Normal » Major
gkaas’s picture

In our use case it would be nice to have the option to just skip the reference to import if it already exists (do not update & do not create new).

corn696’s picture

As a workaround you could implement an entity query on the title, like i did in #3102461: Check if references are already imported

gkaas’s picture

@Corn696: thanks for your suggestion! For our use case your workaround does not suffice (we have references with the same title), but perhaps we can extend your workaround to our needs for now.

mark_fullmer’s picture

Version: 8.x-1.0-alpha4 » 3.0.x-dev
Priority: Major » Normal
benjifisher’s picture

Status: Postponed » Active

I do not see why this issue should be Postponed.

I agree that it is a useful enhancement.