-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix location field not exported correctly to office 2007 xml (#1909)
* Fix location field not exported to office 2007 xml * Add some test for exporting location and address field Address in xml field is now imported as location add some javadoc
- Loading branch information
1 parent
a9eb978
commit ce67502
Showing
15 changed files
with
190 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/test/resources/net/sf/jabref/logic/exporter/MsBibLocationTest.bib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
% Encoding: UTF-8 | ||
@InProceedings{LocationTest, | ||
author = {LocationTest}, | ||
location = {Berlin}, | ||
owner = {Christoph Schwentker}, | ||
timestamp = {2016.09.04}, | ||
} | ||
|
||
@Comment{jabref-meta: databaseType:biblatex;} |
20 changes: 20 additions & 0 deletions
20
src/test/resources/net/sf/jabref/logic/exporter/MsBibLocationTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<b:Sources xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" SelectedStyle=""> | ||
<b:Source> | ||
<b:BIBTEX_Entry>inproceedings</b:BIBTEX_Entry> | ||
<b:SourceType>ConferenceProceedings</b:SourceType> | ||
<b:Tag>LocationTest</b:Tag> | ||
<b:Author> | ||
<b:Author> | ||
<b:NameList> | ||
<b:Person> | ||
<b:Last>LocationTest</b:Last> | ||
</b:Person> | ||
</b:NameList> | ||
</b:Author> | ||
</b:Author> | ||
<b:City>Berlin</b:City> | ||
<b:StateProvince/> | ||
<b:CountryRegion/> | ||
</b:Source> | ||
</b:Sources> |
11 changes: 11 additions & 0 deletions
11
src/test/resources/net/sf/jabref/logic/exporter/MsBibMultiAddressTest.bib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
% Encoding: UTF-8 | ||
@InProceedings{MultiAddressTest, | ||
author = {MultiAddressTest}, | ||
location = {Berlin}, | ||
address = {Stroudsburg, PA, USA}, | ||
owner = {Christoph Schwentker}, | ||
timestamp = {2016.09.04}, | ||
} | ||
|
||
@Comment{jabref-meta: databaseType:biblatex;} |
20 changes: 20 additions & 0 deletions
20
src/test/resources/net/sf/jabref/logic/exporter/MsBibMultiAddressTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<b:Sources xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" SelectedStyle=""> | ||
<b:Source> | ||
<b:BIBTEX_Entry>inproceedings</b:BIBTEX_Entry> | ||
<b:SourceType>ConferenceProceedings</b:SourceType> | ||
<b:Tag>MultiAddressTest</b:Tag> | ||
<b:Author> | ||
<b:Author> | ||
<b:NameList> | ||
<b:Person> | ||
<b:Last>MultiAddressTest</b:Last> | ||
</b:Person> | ||
</b:NameList> | ||
</b:Author> | ||
</b:Author> | ||
<b:City>Stroudsburg</b:City> | ||
<b:StateProvince>PA</b:StateProvince> | ||
<b:CountryRegion>USA</b:CountryRegion> | ||
</b:Source> | ||
</b:Sources> |
8 changes: 8 additions & 0 deletions
8
src/test/resources/net/sf/jabref/logic/importer/fileformat/MsBibLocationTest.bib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
% Encoding: UTF-8 | ||
@InProceedings{LocationTest, | ||
author = {LocationTest}, | ||
location = {Berlin}, | ||
} | ||
|
||
@Comment{jabref-meta: databaseType:biblatex;} |
20 changes: 20 additions & 0 deletions
20
src/test/resources/net/sf/jabref/logic/importer/fileformat/MsBibLocationTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<b:Sources xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" SelectedStyle=""> | ||
<b:Source> | ||
<b:BIBTEX_Entry>inproceedings</b:BIBTEX_Entry> | ||
<b:SourceType>ConferenceProceedings</b:SourceType> | ||
<b:Tag>LocationTest</b:Tag> | ||
<b:Author> | ||
<b:Author> | ||
<b:NameList> | ||
<b:Person> | ||
<b:Last>LocationTest</b:Last> | ||
</b:Person> | ||
</b:NameList> | ||
</b:Author> | ||
</b:Author> | ||
<b:City>Berlin</b:City> | ||
<b:StateProvince/> | ||
<b:CountryRegion/> | ||
</b:Source> | ||
</b:Sources> |
8 changes: 8 additions & 0 deletions
8
src/test/resources/net/sf/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.bib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
% Encoding: UTF-8 | ||
@InProceedings{LocationTest, | ||
author = {LocationTest}, | ||
location = {Stroudsburg, PA, USA}, | ||
} | ||
|
||
@Comment{jabref-meta: databaseType:biblatex;} |
20 changes: 20 additions & 0 deletions
20
src/test/resources/net/sf/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<b:Sources xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" SelectedStyle=""> | ||
<b:Source> | ||
<b:BIBTEX_Entry>inproceedings</b:BIBTEX_Entry> | ||
<b:SourceType>ConferenceProceedings</b:SourceType> | ||
<b:Tag>LocationTest</b:Tag> | ||
<b:Author> | ||
<b:Author> | ||
<b:NameList> | ||
<b:Person> | ||
<b:Last>LocationTest</b:Last> | ||
</b:Person> | ||
</b:NameList> | ||
</b:Author> | ||
</b:Author> | ||
<b:City>Stroudsburg</b:City> | ||
<b:StateProvince>PA</b:StateProvince> | ||
<b:CountryRegion>USA</b:CountryRegion> | ||
</b:Source> | ||
</b:Sources> |