Skip to content
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

Export to MS Office xml - date should be parsed to include year, month, and day #2691

Closed
mew1033 opened this issue Mar 29, 2017 · 3 comments
Closed
Assignees

Comments

@mew1033
Copy link

mew1033 commented Mar 29, 2017

JabRef version 3.8.2 on Windows 10.

Steps to reproduce:

  1. Create a source in JabRef.
  2. Add a value to the date field. For example: 2014-10-18.
  3. Export source to xml. The month and year are included, but the day is not. In the BibLaTeX file, I have both the year field AND the date field. It's possible the year is being pulled from the year field, not the date field. Regardless, the date field should be processed to include year, month, and day.

This is what the XML currently looks like:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<b:Sources SelectedStyle="" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography">
	<b:Source>
		<b:Year>2014</b:Year>
		<b:BIBTEX_Entry>www</b:BIBTEX_Entry>
		<b:SourceType>Misc</b:SourceType>
		<b:Title>The title</b:Title>
		<b:Tag>TheTag</b:Tag>
		<b:URL>http://theurl</b:URL>
		<b:Author>
			<b:Author>
				<b:NameList>
					<b:Person>
						<b:Last>lastname</b:Last>
						<b:First>Joe</b:First>
					</b:Person>
				</b:NameList>
			</b:Author>
		</b:Author>
		<b:Month>10</b:Month>
	</b:Source>
</b:Sources>
@Siedlerchr
Copy link
Member

Siedlerchr commented Mar 29, 2017 via email

@Siedlerchr Siedlerchr self-assigned this Mar 29, 2017
@Siedlerchr
Copy link
Member

I jut see that day is not exported and that month and year are considered before date. Will work on that.

Siedlerchr added a commit that referenced this issue Mar 30, 2017
Export day for msOfficeXML #2691
tobiasdiez pushed a commit that referenced this issue Mar 31, 2017
* Add parsing for day in getFieldOrAlias
Export day for msOfficeXML #2691

* add changelog
@tobiasdiez
Copy link
Member

The day part is now exported and thus this issue should be fixed in the latest development version. Could you please check the build from http://builds.jabref.org/master/. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants