# Generation of citation keys when creating Article entry from DOI

**URL:** <https://discourse.jabref.org/t/generation-of-citation-keys-when-creating-article-entry-from-doi/5251>\
**Category:** Help\
**Created:** [October 2, 2024, 11:32am UTC](https://discourse.jabref.org/t/generation-of-citation-keys-when-creating-article-entry-from-doi/5251 "2024-10-02T11:32:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coucou](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@Coucou](https://discourse.jabref.org/u/Coucou)\
**Post date:** [October 2, 2024, 11:32am UTC](https://discourse.jabref.org/t/generation-of-citation-keys-when-creating-article-entry-from-doi/5251/1 "2024-10-02T11:32:05Z")

</div>

Hi,

Citation key generation works perfectly well except when creating an article from the DOI.  
In this case, the old citation key model is used.

Do you know how to ensure that the generation of citation key is correct as soon as the information is imported from the DOI?

Thanks !

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [October 2, 2024, 2:38pm UTC](https://discourse.jabref.org/t/generation-of-citation-keys-when-creating-article-entry-from-doi/5251/2 "2024-10-02T14:38:34Z")

</div>

Hi,

there is an option under WebSearch that you need to enable:

 ![grafik](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/2X/e/e1bc34dec43a951292aa36bf7e930b2d9ce1d35b.png)

---

<div class="post-metadata">

**Author:** ![Coucou](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@Coucou](https://discourse.jabref.org/u/Coucou)\
**Post date:** [October 4, 2024, 12:13pm UTC](https://discourse.jabref.org/t/generation-of-citation-keys-when-creating-article-entry-from-doi/5251/3 "2024-10-04T12:13:22Z")

</div>

Thanks for the answer.

It made me realize that I had a way of importing my articles that wasn’t necessarily “correct” :  
I used to create an empty article entry, and add DOI in DOI field and clicked on “Complete from DOI”.

That way, the generation of citation key is not the one I indicate on Settings.

BUT, if I click directly on “Import from ID”, it works ! everything is correct, faster and with the correct citation key.

Thanks again.

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [October 4, 2024, 1:57pm UTC](https://discourse.jabref.org/t/generation-of-citation-keys-when-creating-article-entry-from-doi/5251/4 "2024-10-04T13:57:07Z")

</div>

> [@Coucou](#):
>
> BUT, if I click directly on “Import from ID”, it works ! everything is correct, faster and with the correct citation key.

There is even a faster way, you can directly paste the DOI on the main table and JabRef will automatically create the entry.

---

<div class="post-metadata">

**Author:** ![Coucou](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@Coucou](https://discourse.jabref.org/u/Coucou)\
**Post date:** [October 9, 2024, 9:16am UTC](https://discourse.jabref.org/t/generation-of-citation-keys-when-creating-article-entry-from-doi/5251/5 "2024-10-09T09:16:42Z")

</div>

> [@Siedlerchr](#):
>
> There is even a faster way, you can directly paste the DOI on the main table and JabRef will automatically create the entry.

OMG 😱 that will change a lot of things. Thanks !
