Repository navigation
Conversation
A CLI that reads published and scheduled submissions from the OJS REST API and maps them to the Pub, Release, PubAttribution and Collection records PubPub writes to Underlay. Articles, issues and type tags that are already on PubPub keep their ids and slugs (matched by DOI, or by title where OJS has another article's DOI). Writes the records, a summary and an OJS against PubPub difference report, and can push to a scratch collection with Underlay's delta protocol.
The scratch push could not run against Underlay (no write key), so a test checks the session flow: private collection creation, asset uploads, changed records only, deletes only with --prune, and the refusals for live, public and foreign collections.
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A first version of an exporter from OJS to Underlay, for publishing JOTE from OJS instead of PubPub. It writes the records the site already reads (
Pub,Release,PubAttribution,Collection), so the site doesn't need to know where they came from.apps/ojs-underlay, a Node CLI with no dependencies. Details in its README.What it does
metadata.ojsSubmissionId. Sections become type tags, issues become issue collections, galleys become release downloads (PDF, LaTeX, BibTeX), an HTML galley becomescontentFile.abstractHtmlandkeywordsare new onRelease.--dry-runwrites only.--push owner/slugpushes with Underlay's delta protocol, but only to a scratch collection:jote,jrnandblogare refused, so is any collection another app pushed to, and new ones are created private.Run against a local OJS 3.5
74 scheduled articles (one test submission left out), all 74 matched to PubPub (2 of them by title). 99 galley files. Differences found, articles affected: title 13, authors missing or extra 7, author names 11, ORCID 19 (33 missing in OJS), affiliation 44, publication date 66 (63 have none in OJS), type 23, issue 21, DOI 2. 22 articles the site shows are on PubPub only, mostly the 2020 ones and their peer reviews.
Not pushed: the only Underlay key available is read-only. The push is tested against a fake Underlay.
Checks
tsc,vitest(28 tests),oxlintandoxfmt --checkpass for the app. Record hashing reproduces all 724 record hashes ofjotev2.2.0.