Skip to content

Jats import cleanup - #189

Draft
mbetamony wants to merge 5 commits into
masterfrom
jats-import-cleanup
Draft

mbetamony wants to merge 5 commits into
masterfrom
jats-import-cleanup

Conversation

@mbetamony

@mbetamony mbetamony commented Feb 11, 2025

Copy link
Copy Markdown
Contributor

This is the other concept i've been playing around with, having different parsers for our top levels node. Looking at this PR there are things i'd like to change (go from a class based approach to a more functional approach, i can't see what value these classes bring). But the main idea is the same, to have different parsers and build the article using these parsers.

The starting point here is https://github.com/Atypon-OpenSource/manuscripts-transform/pull/189/files#diff-ae38ba48813b65ce7c70536153b618cfaa8fed2fd8fbff6b58e0f774a8ee9ba9R1-R15

There also seems to be some not needed manipulating to the document, that we can remove i think. Something we can probably take advantage of with this approach

Please let me know your thoughts, and if you prefer any of these two approaches, or if we should just stick with what we have now.

Thanks!

Comment on lines +48 to +49
const journal = JournalProcessor.parse(this.doc)
return {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably sharing a similar structure to the other parsers would make more sense.

@mbetamony
mbetamony marked this pull request as draft May 28, 2025 19:02
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

Successfully merging this pull request may close these issues.

1 participant