JabRef-Browser-Extension icon indicating copy to clipboard operation
JabRef-Browser-Extension copied to clipboard

Every word of title is protected in imported records

Open jelasity opened this issue 4 years ago • 7 comments
trafficstars

Hi, I realized that in entries imported using the web browser plugin, every word of the title is protected to preserve "title case" capitalization. This is incorrect behavior, because the capitalization of the title is defined by bibtex styles. Only specific words should to be protected such as proper names.

I was not able to find any possibility to switch this behavior off (eg in preferences, or somewhere). How can I prevent jabref from protecting every word of the title?

Thanks: Mark

JabRef 5.3--2021-07-05--bed9ac9 Linux 5.12.13-1-default amd64 Java 16.0.1 plugin version: 2.4

jelasity avatar Jul 12 '21 08:07 jelasity

I have tried to import a reference from a website using the JabRef plugin: the title did not show any protected word. So, I guess it is not JabRef that protect every word (maybe the original website or the plugin?). The clean-up feature may help (Menu Quality), but I do not know which field formatter to use.

mlep avatar Jul 13 '21 09:07 mlep

I have tried to import a reference from a website using the JabRef plugin: the title did not show any protected word. So, I guess it is not JabRef that protect every word (maybe the original website or the plugin?). The clean-up feature may help (Menu Quality), but I do not know which field formatter to use.

Actually, only capitalized words are protected in my case, and since most publishers serve the title in title case, practically every word is capitalized (and thus protected). So my question is how to change this behavior. The preferred behavior would be not protecting anything. In the rare cases when something needs to be protected, it can be done later.

jelasity avatar Jul 13 '21 09:07 jelasity

I just transferred this issue to the Browser Extension repo. I encountered the same annoying behavior recently

Siedlerchr avatar Apr 05 '22 18:04 Siedlerchr

Can you please give a concrete example where this happens?

tobiasdiez avatar Apr 05 '22 19:04 tobiasdiez

Example from Firefox: https://revista.unap.ro/index.php/XXI_FSA/article/view/1260

Every word is in upper case in JabRef enclosed in protected terms braces and therefore the Cleanup will not modify the casing.

results in:

@Article{Preda2021,
  author    = {Preda, Alin},
  journal   = {STRATEGIES XXI - Security and Defense Faculty},
  title     = {{SOCIAL} {MEDIA} {IN} {INFORMATION} {WARFARE}. {ASSAULT} {WEAPON} {WITH} {HIGH} {RECOIL}},
  year      = {2021},
  issn      = {2668-2001},
}

Siedlerchr avatar Apr 06 '22 13:04 Siedlerchr

Adding the field formatter "Unprotect terms" for the field name "Title" removes the braces. And adding the field formatter "Title case" arranges the casing.

JabRef 5.5--2022-01-17--27a05c7

mlep avatar Apr 06 '22 14:04 mlep

Having the same issue on JabRef 5.6. Hope there can be an option to cancel the protect words feature.

nujabse avatar Aug 06 '22 08:08 nujabse

This is more an issue with the journal website than Zotero/the browser extension. The website contains

<meta name="citation_title" content="SOCIAL MEDIA IN INFORMATION WARFARE. ASSAULT WEAPON WITH HIGH RECOIL ">

Every word in the title is in caps, thus for zotero/the browser extension it appears that every word is an acronym, which should be exported in bibtex by surrounding it with braces. So the code works as expected. Please contact the journal to correct the metadata, otherwise there is not much we can do. Moreover, the workaround mentioned above by mlep with running the field formatter works as well, so closing.

tobiasdiez avatar Sep 07 '22 12:09 tobiasdiez