Export to MS Office 2007 (*.xml) of @electronic and @online records *mistakenly duplicates* BibTeX 'Title' to MS Office 'Publicationtitle' field #10807
Labels
export / save
good first issue
An issue intended for project-newcomers. Varies in difficulty.
microsoft office
JabRef version
5.12 (latest release)
Operating system
Windows
Details on version and operating system
Windows 11 (current)
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
One-sentence summary of the issue:
JabRef
Export
toMS Office 2007 (*.xml)
of BibTeX records of type@Electronic
and@Online
mistakenly duplicates the content of theTitle
field to the MS OfficePublicationtitle
field in the exported XML file: it should not do that (this issue does not exist for other types, e.g.,@Book
)Steps to reproduce the behavior:
File
->Export
this record as typeMS Office 2007 (*.xml)
into a filetest.xml
The exported file "test.xml" mistakenly contains both, a "Title" and a "Publicationtitle" field (highlighted in bolditalic in the following file dump):
To illustrate the follow-up consequences of the bug in MS Word:
Open a blank MS Word document
Load the file "test.xml" via:
-
- select and
(the duplicate title is already displayed in theReferences
->Manage Sources
->Browse…
and thenCopy ->
the loaded record from theSources available in test
pane into theCurrent List
pane andClose
the "Source Manager" dialog windowPreview
pane of the dialog window)Insert a bibliography into the empty document, via:
References
->Bibliography
Bibliography
, offered in the pop-up menuThe inserted bibliography consists of the following record:
Author, S. (n.d.). The Title. The Title. Retrieved January 19, 2024, from https://somewhere.net/example/address
Note the duplicate title.
As mentioned at the beginning, the same issue exists for records of type
@Online
, but not for e.g., type@Book
.Appendix
Related Source Code:
File
src/main/java/org/jabref/logic/msbib/MSBibConverter.java
:(addendum 2024-01-20):
In the meantime I verified that removing the first clause
"ElectronicSource".equals(msBibType)
indeed suffices to correct the behavior (kudos to the maintainers of https://devdocs.jabref.org/ ).I have not investigated the mapping of BibTeX
@misc
to MS OfficeMisc
mentioned in https://docs.jabref.org/advanced/knowledge/msofficebibfieldmapping (visited 2024-01-20)).So, the patched lines just read
(File
src/main/java/org/jabref/logic/msbib/MSBibConverter.java
, lines 108ff.):<EOT>
The text was updated successfully, but these errors were encountered: