Skip to content

[FEATURE] Client-side paging#878

Draft
beatrycze-volk wants to merge 74 commits into
kitodo:6.xfrom
beatrycze-volk:sprint-rebased
Draft

[FEATURE] Client-side paging#878
beatrycze-volk wants to merge 74 commits into
kitodo:6.xfrom
beatrycze-volk:sprint-rebased

Conversation

@beatrycze-volk

@beatrycze-volk beatrycze-volk commented Dec 7, 2022

Copy link
Copy Markdown
Collaborator

Changes are tested - paging works.

Known problems:

@beatrycze-volk
beatrycze-volk marked this pull request as draft December 7, 2022 11:47

<script>
window.addEventListener('tx-dlf-documentLoaded', (e) => {
// TODO(client-side): When there are multiple instances of metadata plugin?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This part should be tested and checked if the metadata is correctly displayed.

var cnt = Math.min(this.fulltexts.length, this.images.length);
dlfViewer.prototype.initLoadFulltexts = function (visiblePages) {
if (this.docController === null) {
// TODO(client-side): Make it work then docController === null

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Probably it should be: Make it work when docController === null

@sebastian-meyer sebastian-meyer added ↝ prototype A provisional pull request still work in progress. ↷ feature A new feature or enhancement. labels Jan 4, 2023
Comment thread Resources/Public/Javascript/PageView/PageView.js Fixed
Comment thread Resources/Public/Javascript/PageView/Navigation.js Fixed
Comment thread Resources/Private/Templates/Document/Main.html Dismissed
Comment thread Resources/Private/Templates/Metadata/Main.html Dismissed
Comment thread Resources/Private/Templates/Navigation/Main.html Dismissed
@sebastian-meyer sebastian-meyer changed the title Client sided paging [FEATURE] Client-side paging Jan 30, 2023
@beatrycze-volk
beatrycze-volk force-pushed the sprint-rebased branch 4 times, most recently from 7d9cbf1 to 4d07ae1 Compare February 3, 2023 16:47
@beatrycze-volk
beatrycze-volk force-pushed the sprint-rebased branch 2 times, most recently from 7507d50 to 14853a2 Compare February 6, 2023 17:48
Comment thread Resources/Public/JavaScript/PageView/PageView.js Fixed
Comment thread Resources/Public/JavaScript/PageView/Navigation.js Fixed
@beatrycze-volk
beatrycze-volk force-pushed the sprint-rebased branch 2 times, most recently from 03957df to c794dec Compare February 16, 2023 12:37
@beatrycze-volk
beatrycze-volk force-pushed the sprint-rebased branch 3 times, most recently from bbadfff to 0a03d63 Compare March 10, 2023 13:15
@beatrycze-volk
beatrycze-volk force-pushed the sprint-rebased branch 2 times, most recently from bcce7c6 to a135764 Compare March 28, 2023 08:43
@beatrycze-volk

Copy link
Copy Markdown
Collaborator Author

All warnings "..." is defined but never used. are false positives. Those classes are called from fluid templates.

Kajetan Dvoracek and others added 29 commits October 13, 2025 15:42
On large documents, rendering metadata of all sections can take a
considerable amount of time.

Instead, allow to just render the current metadata, and fetch the
additional metadata in an API call.
- remove dead variables
- fix check for mime type
- removed unused e param from onStateChanged
- make fetchMetadata async so no spinner is needed
- remove unused paramaters
- decrease complexity of updateNavigationControls
Error:  `Inventory link with key "t3tsref:data-type-page-id" (data-type-page-id) not found.`
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (7725468) to head (803717c).
⚠️ Report is 17 commits behind head on 6.x.

Additional details and impacted files
@@    Coverage Diff     @@
##   6.x   #878   +/-   ##
==========================
==========================

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

↷ feature A new feature or enhancement. javascript Pull requests that update Javascript code. php Pull requests that update PHP code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants