New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
overwrite repeated entries #101
Comments
Dear Michael, Thank you for the confirmation. I wasn't sure that option meant to overwrite duplicated entries. I've tried to upload the same .bib twice, but I still get duplicated entries. So I assume it is really an experimental feature. Are there plans to improve it? It'd be very convenient for many users. |
Hi, Sorry for the late answer. If you could post me a part of your .bib file (one or two entries which were duplicated with the import), then I could try to find the error in the function. |
Dear Michael,
Thank you for your availability. Here is a piece of the BIB file with a few
publications.
Let me know in case you need more information from my side.
Cheers,
…--Gustavo
On 18 July 2018 at 19:04, Michael ***@***.***> wrote:
Hi,
Sorry for the late answer. If you could post me a part of your .bib file
(one or two entries which were duplicated with the import), then I could
try to find the error in the function.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#101 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFfQvtcAG2VmSoot4x30Ww_m_ru9w60sks5uH7D0gaJpZM4UQizD>
.
|
Hello, to be more clear in my case first import bring 311 entries. 2 entries is added for every import of the exact file! |
Hi, |
Hi, Thank you Michael for answering this issue. |
Are these always the same entries that are duplicated? |
I am sure for only the Titles. I will check and give you a feedback soon. |
Could you post the original bibtex code of this 2 entries? |
Although there are 4 entries with the same title, at first try TP inserts only one of one of the similar entries. But in second run inserts the two others into publications. ( And the Tags table is also left empty without entries. (for all of entries)). @inproceedings{DBLP:conf/cikm/Mulang0PNH020, @Article{DBLP:journals/corr/abs-2008-05190, @inproceedings{DBLP:conf/coling/XuNCL20, @Article{DBLP:journals/corr/abs-2010-00989, |
The complete file: |
Thank you for the examples. I think I have it. It's a small nasty bug in the method TP_Publications::generate_unique_bibtex_key(). This method includes a test, if the bibtex key exists, before the publication will be imported. The problem was that the check was to weak. If you have for example a publication with the bibtex key "123" and another with "123a" then the method checks for a key like "%123%" which includes also "123a". And that was the problem. I've released teachPress 7.1.5 over wordpress.org, which contains the bugfix. |
Thank you Michael for your availability and very helpful guides on every issue. Awesome! Then the issue is now solved. To the UPDATE... Cheers, |
HI Michael, Problem Description: Regards |
You can currently only comment this function out in the source code. I think i will add an import option for that. |
I have a publication list that is going to be updated along the year. The easiest way to do that is to upload regularly a new bibtex list, which will include all entries of a given year.
Let's say I have 10 publications in 2018 already listed in my site. I have noticed that if I upload a new bibtex list with one new entry (10 + 1 entry), I'll get a database containing the new entry plus 10 duplicated entries.
It would be nice to make the plugin to check for possible duplicated entries (in this case, 10) and add to the database only the new ones.
The text was updated successfully, but these errors were encountered: