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

[FEATURE] Remove client-side paging redundancies #938

Draft
wants to merge 78 commits into
base: master
Choose a base branch
from

Commits on Aug 1, 2024

  1. Add explanation about addHighlightField method

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    0f473ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ce1255 View commit details
    Browse the repository at this point in the history
  3. Refactor: Format code

    - Remove unused import
    - Replace tabs with spaces
    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    0eaeeb0 View commit details
    Browse the repository at this point in the history
  4. Refactor: Move JS from template to new Navigation.js

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    30da335 View commit details
    Browse the repository at this point in the history
  5. Make loaded document a global variable

    This will allow the navigation plugin to access the document, e.g., to
    get the number of pages.
    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    c2fa5d9 View commit details
    Browse the repository at this point in the history
  6. Fix naming pageBack vs. pageStepBack

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    be80aab View commit details
    Browse the repository at this point in the history
  7. Handle all forward/back navigation buttons

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    0e84acf View commit details
    Browse the repository at this point in the history
  8. Enable/disable nav buttons on client, + refactor

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3f92a0a View commit details
    Browse the repository at this point in the history
  9. Create WIP documentation page

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    d490a10 View commit details
    Browse the repository at this point in the history
  10. Include page object in pageChanged event, start typing

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    e41ba10 View commit details
    Browse the repository at this point in the history
  11. Update metadata table on page change

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    51301f2 View commit details
    Browse the repository at this point in the history
  12. Add Data Structure for Client Side Fulltext Reload

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    20ec213 View commit details
    Browse the repository at this point in the history
  13. Adapt Fulltext Datastructure to Metadata and Document

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    48c1be1 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3126339 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    86f2c7a View commit details
    Browse the repository at this point in the history
  16. Fix reference to fulltextControl

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    cbff479 View commit details
    Browse the repository at this point in the history
  17. Set navigation select value on page change

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    691cb46 View commit details
    Browse the repository at this point in the history
  18. Fix: First load data in Doc::getLogicalSectionsOnPage

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    dfe0392 View commit details
    Browse the repository at this point in the history
  19. Start implementing history/browser navigation

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    ac06bcf View commit details
    Browse the repository at this point in the history
  20. Refactor: In document JSON, store pages in subkey

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    f7624a8 View commit details
    Browse the repository at this point in the history
  21. Refactor: Wrap image URL & MIME type into subkey

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    63aa6c5 View commit details
    Browse the repository at this point in the history
  22. Extract Doc::getPageLink()

    Prepare listing download URLs in document JSON
    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    33f0206 View commit details
    Browse the repository at this point in the history
  23. List download URLs in document JSON

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6fbf835 View commit details
    Browse the repository at this point in the history
  24. Update page download links on page change

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    1d21c59 View commit details
    Browse the repository at this point in the history
  25. Refactor: Avoid manual JSON encoding

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    c7149f8 View commit details
    Browse the repository at this point in the history
  26. Include all file groups/URLs in document JSON

    Prepare to migrate the image download tool, which uses a configurable
    file group.
    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    fbf571f View commit details
    Browse the repository at this point in the history
  27. Update image download links on page change

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    7f7f50c View commit details
    Browse the repository at this point in the history
  28. Start implementing client-side double page mode

    - Consider in pageview, toolbox, navigation, metadata
    - Allow toggling single page / double page without page reload
    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    b976676 View commit details
    Browse the repository at this point in the history
  29. Simplify: Remove pageObj and target from event detail

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    d1c302e View commit details
    Browse the repository at this point in the history
  30. Simplify: Merge pageChanged and configChanged events

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    a71742d View commit details
    Browse the repository at this point in the history
  31. Fix back buttons when using route enhancers

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    b241a59 View commit details
    Browse the repository at this point in the history
  32. Generalize URL generation to work with slugs

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    5923985 View commit details
    Browse the repository at this point in the history
  33. Fix pdf and image download links

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    de9eeb0 View commit details
    Browse the repository at this point in the history
  34. TOC: Add option to render full table of contents

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    5ad4b40 View commit details
    Browse the repository at this point in the history
  35. Add client side navigation from table of contents

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    a615e96 View commit details
    Browse the repository at this point in the history
  36. Add separate marker for metadata list

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    b40dccf View commit details
    Browse the repository at this point in the history
  37. Start implementing dynamic TOC expansion

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    029aa23 View commit details
    Browse the repository at this point in the history
  38. Update URL on page change

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    474e40d View commit details
    Browse the repository at this point in the history
  39. Optimize document JSON generation for METS

    The `xpath()` calls in `getFileLocation` and `getFileMimeType` seem to
    be slow, which has been quite noticeable in documents that contain many
    files.
    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    2f85789 View commit details
    Browse the repository at this point in the history
  40. Fix disabling of lastPage navigation button

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    2f535f7 View commit details
    Browse the repository at this point in the history
  41. Cache pageview layers

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6b00732 View commit details
    Browse the repository at this point in the history
  42. Update Page URL Template for Use with Page Grid

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    6286c63 View commit details
    Browse the repository at this point in the history
  43. Add document plugin for JSON representation

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    7dd4391 View commit details
    Browse the repository at this point in the history
  44. Move document initialisation to document plugin

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    3b03dc1 View commit details
    Browse the repository at this point in the history
  45. Move document handling to dlfController via event

    Matthias Richter authored and beatrycze-volk committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    70d24e7 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Start moving getVisiblePages to dlfController

    Matthias Richter authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    cb2f04b View commit details
    Browse the repository at this point in the history
  2. Use getVisiblePages() of dlfController

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    dbfa82a View commit details
    Browse the repository at this point in the history
  3. Refactor: Extract dlfController::eventTarget

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    0030c3c View commit details
    Browse the repository at this point in the history
  4. Refactor: Don't dispatch stateChanged manually

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    85213aa View commit details
    Browse the repository at this point in the history
  5. Refactor: Dissolve global tx_dlf_loaded

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    5beac28 View commit details
    Browse the repository at this point in the history
  6. [EXT] Reinstate registry

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    d2e57fd View commit details
    Browse the repository at this point in the history
  7. [EXT] Memoize MetsDocument::getStructureDepth()

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    0f4d27e View commit details
    Browse the repository at this point in the history
  8. Fetch prerendererd metadata dynamically

    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.
    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    9277a7c View commit details
    Browse the repository at this point in the history
  9. Convert TODO to TODO(client-side)

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    155043e View commit details
    Browse the repository at this point in the history
  10. Update and extend documentation

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    024a677 View commit details
    Browse the repository at this point in the history
  11. Update .editorconfig (4 spaces for JS) to reflect actual use

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    6a4c8d0 View commit details
    Browse the repository at this point in the history
  12. Extend documentation

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    f1598ee View commit details
    Browse the repository at this point in the history
  13. Add and update notes about URL generation

    Kajetan Dvoracek authored and beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    69703f1 View commit details
    Browse the repository at this point in the history
  14. Fix Codacy warnings

    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    aa320e4 View commit details
    Browse the repository at this point in the history
  15. Fix toArray method in Doc class

    - remove dead variables
    - fix check for mime type
    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    4374ffe View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c0ceca2 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    8392ccf View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    d226b02 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    cdd288d View commit details
    Browse the repository at this point in the history
  20. Fix intend in css

    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    e03c0f8 View commit details
    Browse the repository at this point in the history
  21. Improve Metadata script

    - removed unused e param from onStateChanged
    - make fetchMetadata async so no spinner is needed
    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    c8e28fb View commit details
    Browse the repository at this point in the history
  22. Improve Navigation script

    - remove unused paramaters
    - decrease complexity of updateNavigationControls
    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    40f536b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    d31dbd9 View commit details
    Browse the repository at this point in the history
  24. Fix comment

    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    41301cf View commit details
    Browse the repository at this point in the history
  25. Allow console logs

    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    48e96b6 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    4704970 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    8f8ae48 View commit details
    Browse the repository at this point in the history
  28. Fix Codacy errors

    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    3ac619d View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    1f62fc1 View commit details
    Browse the repository at this point in the history
  30. Fix documentation build

    Error:  `Inventory link with key "t3tsref:data-type-page-id" (data-type-page-id) not found.`
    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    3bdcb82 View commit details
    Browse the repository at this point in the history
  31. Fix PHPStan warnings

    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    d647e5f View commit details
    Browse the repository at this point in the history
  32. Remove initDoc to avoid redundancy between Document and PageView cont…

    …rollers
    
    Logically the document should not be displayed if its controller is not loaded
    beatrycze-volk committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    cd32212 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    fea6f47 View commit details
    Browse the repository at this point in the history