Skip to content

I12672#2333

Open
jardakotesovec wants to merge 3 commits into
pkp:mainfrom
jardakotesovec:i12672
Open

I12672#2333
jardakotesovec wants to merge 3 commits into
pkp:mainfrom
jardakotesovec:i12672

Conversation

@jardakotesovec
Copy link
Copy Markdown
Contributor

No description provided.

@jardakotesovec jardakotesovec force-pushed the i12672 branch 3 times, most recently from 6b77b93 to 74d590e Compare May 17, 2026 10:39
OMP's submissionFile schema and DAO overrides had drifted from
lib/pkp's media-files additions:

- schemas/submissionFile.json: the fileStage validation list rejected
  SUBMISSION_FILE_MEDIA (23), so media files could not be created.
- classes/submissionFile/DAO.php: primaryTableColumns lacked
  variantType/variantGroupId, so media variant data was written to
  submission_file_settings instead of the submission_files columns.

Sync both with lib/pkp so media files can be created and queried in OMP.
Embed publication-level media files (ASSOC_TYPE_PUBLICATION /
SUBMISSION_FILE_MEDIA, web variant only) in the HTML monograph file
viewer in addition to dependent files, and allow the catalog download
endpoint to serve them. Mirrors pkp/ojs#5534 for OMP.
Extract the HTML-content rendering (embeddable-file URL rewriting,
omp:// resolution, style injection, placeholder substitution) into a
standalone HtmlGalleyHelper so it can be reused by themes that embed the
body inline. Mirrors pkp/ojs#5534 for OMP.
Copy link
Copy Markdown
Contributor

@ewhanson ewhanson left a comment

Choose a reason for hiding this comment

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

Just the one question, but don't think it's a big deal either way.

return app()->get('file')->download($submissionFile->getData('fileId'), $filename);
case Application::ASSOC_TYPE_PUBLICATION: // Publication-level media file
if (
$submissionFile->getData('assocId') != $publication->getId()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know this isn't the pattern in the rest of the file, but it got me wondering if it would be better to do !=== or is !== necessary because one of them could come back as a string or int?

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.

2 participants