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

Article Ingest work-in-progress [Partially complete, see notes below] #209

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

seanupton
Copy link
Collaborator

In our 2018-12-06 knowledge transfer meeting, we discussed the possibility of using a PR to document work done on the article-ingest branch, without the intent of actually merging the branch now.

At present, this branch is stuck in limbo, largely because we don’t have sufficient material to enumerate over, re: sample materials containing mulitple issues.

At this time, what’s in lib/newspaper_works/ingest/uu_article_segmented is interface-compatible (same methods) with what the methods in NewspaperWorks::Ingest::BatchIngestHelper mixin consume, work with, but there is no imperative ingest class.

Writing a NewspaperWorks::Ingest::UUArticleSegmented::BatchIssueIngester class — which could be done provided sufficient sample fixtures — would look much like the NewspaperWorks::Ingest::BatchIssueIngester class that handles PDF, JP2/TIFF (it would mix in both NewspaperWorks::Ingest::BatchIngestHelper, NewspaperWorks::Ingest::FromCommand). This ingest would also need to use NewspaperWorks::ImageTool to convert the PDFs to TIFF on ingest (_to avoid some peculiarities in how Hyrax::FileSetDerivativeService deals with PDF primary files.

Note: there is a minor refactoring in this branch of NewspaperWorks::Ingest::BatchIssueIngester and NewspaperWorks::Ingest::BatchIngestHelper at these two commits: 1074d84 and 6ed9fcf — these two commits might be worth cherry-picking independently to master, as they make re-use of much of that is in BatchIngestHelper easy for new ingests (including those written in other gems).

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

Successfully merging this pull request may close these issues.

1 participant