Open koppor opened 1 year ago
We should really work on that to get rid off buildSrc
Similar code refactoring: https://github.com/JabRef/jabref/pull/9880
Hello, I'm a new contributor, and I will carefully read the contribution guidelines. Could you please assign this issue to me? @koppor
@JoleneSun111 If you want, you can also try https://github.com/FasterXML/StaxMate. However, that piece of library is not well documented. I would assume that basic Java Stax transformation is enough to solve the issue. - It is not straight-forward, but IMHO manageable nevertheless. The code is backed by tests, so there should be check if everything goes smoothely.
I remember we had the discussions that there have to build local data structures for the lookup of IDs.
Hi @koppor, I would like to work on this if this issue is still open?
Since there has not been any activity here since the abandoned pull-request from AvunArasi (#9928), I will assign you @ShailikaS.
@ShailikaS you have been assigned. Are you still working on this? -- It could be a bit hard to implement...
like to take on this issue, if possible
Seems to be too hard for programming newcomers, therefore removed from "good first issues".
/assign @psyren99
π Hey @,
Thanks for your interest in this issue! π
Newcomers, we're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly.
In case you encounter failing tests during development, please check our developer FAQs!
Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback.
β Note that this issue will become unassigned if it isn't closed within days.
π§ A maintainer can also add the **** label to prevent it from being unassigned automatically.
Happy coding! π
The code of
org.jabref.logic.importer.fileformat.CitaviXmlImporter
is written OK, but relies on JAXB. It should be rewritten using StAX-Parser and thus getting rid of a JAXB dependency.The code reads like we do not hit polymorphism in XMLElements (which is not supported by JAXB. See https://github.com/FasterXML/jackson-modules-base/issues/127).
See https://github.com/JabRef/jabref/blob/d21c11337a17af85047d763218c9df4dbc4db1be/src/main/java/org/jabref/logic/importer/fileformat/MedlineImporter.java#L114 for some code hints.
Similar to https://github.com/JabRef/jabref/pull/9673, the gradle build target
generateCitaviSource
can be removed and thexsd
file be removed from the source repository.Hints
Example file
src/test/resources/org/jabref/logic/importer/fileformat/CitaviXmlImporterTest4.ctv6bak
in 7zip.citavi-single.xml
using 7 zipInitial coding
generateCitaviSource
src/main/resources/xjc/citavi/citavi.xsd
clean
task.CitaviXmlImporter
does not compileNegleted Implementation Option
Thus, it seems to be "just" to include the dependency to jackson module jakarta-xmlbind and to use Jackson's XMLMapper. Code examples are at https://stackify.com/java-xml-jackson/.