-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
Unabbreviate on import #1436
Comments
The Zotero item in BibTeX doesn't have a separate field for abbreviations, so for bibtex, "use journal abbreviation" means "replace the journal name with the abbreviation". I don't know why people would want this, but some people do. If you want both the journal title and the abbrev, you will have to export using Better BibLaTeX rather than Better BibTeX. |
The auto abbrev style only works in Juris-M, but in the case of the item you submitted in the log it wouldn't make a difference there either, since the item has a journal abbrev field filled out. |
You're right -- the debug log code had a bug that filled the auto-abbrev into the abbrev field during export, and that's what I was looking at. That's fixed now, but that leaves your problem. I'm afraid that still comes down to pretty much the previous explanation: you have "Automatic Abbreviation on, which will ask Zotero to provide a journal abbreviation if you did not fill one out yourself. If Zotero provides one, that will be used as if you filled out that field yourself. Since BibTeX does not have any field for journal abbreviations, "use journal abbreviations" means "replace the journal title with the journal abbreviation, if available". Maybe this should be "replace the journal title with the abbreviation of the user filled one out". That should solve your problem. I can't do anything about the dots however. I don't generate the abbrevs myself, Zotero contains a citation processing library that it uses to generate its own bibliographies, and I just ask that library to give me an abbreviation. If you generate a bibliography with Zotero, it would show the same abbreviation. |
wait -- something else is going on. When I export that item, I get
|
Can you go into the advanced prefs and clear the cache? |
Sorry, I was not able to log-in to GH for a while. I can't find that option? Though, I did clear translators and reinstalled BBT. With no avail. |
I also did a few more checks:
So it seems to be a BBT issue and not one of Zotero. But why do you get the correct export and me (as well as another colleague) are missing the dot? |
It's definitely a BBT issue. Go into Preferences - BBT - Advanced - export - reset cache. I can see the dotless version in your cache -- I don't know how it got there, but that's why you're seeing this. |
I reset the cache, but no change in the behaviour. This behaviour is not unique to this one item, but affects a large number of similar items. |
Can you shut down zotero and remove all json files in the zotero/better-bibtex folder and try again? |
Did so -- no change :-( |
As mentioned, a colleague has the same problem. If I deactivate journal abbreviation, it exports the dot - but then unabbreviated journals are of course exported with the full name as it simply leaves the field untouched. |
By the way, why is the "Use Journal Abbreviation" setting duplicated? Both in the BBT preferences and in the export dialog it has to be checked, if one of the two is deactivated the names are not abbreviated. |
Can you:
Does the bibliography show the abbreviation with or without periods?
The do different things, but there is interplay. The one in the preferences means:
The "use journal" in the export popup (for bibtex) means
|
That's OK (for diagnostic purposes at least). I need to solve it for one, the rest will follow, and it's easier to discuss one item. |
Well it's getting more and more puzzling. When I tried at work (I think without MedLine activated, but not sure), the dot was there. Now I tried at home with the same citation. And the dot is not there. No matter if I activate MedLine or not and both for Nature or APS styles. |
🤖 this is your friendly neighborhood build bot announcing test build 5.2.14.6043 ("Merge branch 'master' into gh-1436") Install in Zotero by downloading test build 5.2.14.6043, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
🤖 this is your friendly neighborhood build bot announcing test build 5.2.14.6044 ("Merge branch 'master' into gh-1436") Install in Zotero by downloading test build 5.2.14.6044, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
Most of the titles in Abbreviations containing special characters (Umlauts and accents) do not seem to be touched, even though they are in the list:
Also, he has the lengthy full name |
New build incoming in ~45mins. Special characters should be handled now too. The second problem was because I was simply filtering out abbr=full instances; I now treat them (and abbr=) as "delete this abbr from the mapping". |
🤖 this is your friendly neighborhood build bot announcing test build 5.2.14.6057 ("timeout for import test") Install in Zotero by downloading test build 5.2.14.6057, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
Are we good with the current state of affairs? I need to put out a new release. |
I have found a problem. Will probably have a new version tonight. |
🤖 this is your friendly neighborhood build bot announcing test build 5.2.16.6079 ("optional unabbrev") Install in Zotero by downloading test build 5.2.16.6079, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
OK, think I have it now. Would appreciate feedback, I'm looking to cut a new release. |
Wow, I'm impressed. I'll run a few more test libraries and then I'll get back to you. |
LGTM! |
Superb. This needs two layers of tests so it will take a bit to clear, and I want to give the translator volunteers a chance to do their work, but I'll cut a new release somewhere tonight or tomorrow. |
🤖 this is your friendly neighborhood build bot announcing test build 5.2.16.6094 ("new abbrevs") Install in Zotero by downloading test build 5.2.16.6094, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...". |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Report ID:
MUF2FD2N-euc
Exporter used:
Better BibTeX
Expected behavior:
No matter whether the journal field contains a full our abbreviated journal name, the journal titles should be written to the .bib file in the same way.
Actual behavior:
If the full journal name is given in the publication field in Zotero (e.g. Applied Physics Letters), the title is correctly abbreviated in bibtex:
journal = {Appl. Phys. Lett.}
If the publication field contains an already abbreviated journal name (e.g. Appl. Phys. Lett.), the exported bibtex entry omits the dots:
journal = {Appl Phys Lett}
Apparently, the abbreviator throws out the dots in case the journal name is already abbreviated, while it should just keep the entry as is.
I have a mixture of publisher entries in my library, as some are directly imported in Zotero and others were imported from a .bib file with abbreviated journal names. However, in the resulting bibliography, I want them all to appear the same (with dots).
I tried to change the hidden preference
autoAbbrevStyle
to theAmerican Physics Society
instead ofNature
style, but that does not change anything.The text was updated successfully, but these errors were encountered: