Milestone 17: TEI Präsentationsschicht - #315
Draft
sebhofmann wants to merge 2 commits into
Draft
Conversation
Seed commit so the milestone integration branch can host a merge PR into main. Milestone PRs (e.g. #311) target this branch and merge here first.
* [#294] - Embed TEI edition and XML source in viewer tabs The object viewer now shows one tab per readable derivate, titled by the derivate_types classification label. The rendering is chosen by the main file extension, not the derivate type: - xml/tei main files are rendered as a TEI text edition (XSLT 3.0/Saxon, loaded lazily via MCRDerivateContentTransformerServlet) and get an extra "<label> (XML)" tab showing the pretty printed, syntax highlighted source. - everything else (pdf, images) uses the mycore image viewer as before. Derivates without a main file no longer produce an empty tab. Also improves the upload boxes: uploading into an existing filespace is now visually separated from creating a new filespace. * [#294] - Make TEI the default viewer tab and render edition regions Render title/desc metadata, seriesStmt editors, witness sigla, metDecl prosody and blockLyrics text; resolve cross-object links; add critical apparatus with annotation popover. Move all UI labels to messages (de/en/tr) via mcri18n and fix apparatus link spacing. * [#294] - Add CLI commands to import TEI sources into mods derivates 'update tei sources from directory {0}' returns one 'update tei source from file {0}' command per XML file. The file command reads the linked mods object from milestone[@Unit='cite']/@source and uploads the TEI file to the object's edition_tei derivate, creating it if necessary. * [#294] - Refine TEI edition viewer: layout, Bootstrap popovers and i18n - Drop duplicated title/shelfmark from the edition header - Mirror the printed edition in the verse block: centred lines, bold main text, regular terennüm, italic performance directions, even-only line numbers, per-line @real scansion in a popup - Bracket <supplied> as [..] and resolve @reason/@resp, resolve editor @ROLE and rdg @type, split genre into music/text genre and text form - Move all edition popups (metre, supplied, editors, catalogue, reading types and the annotation apparatus preview) onto Bootstrap popovers sharing one .cmo-tei-bs-popover theme - Add de/en/tr messages for the new labels, roles, reasons and reading types taken from the editors' translation table * [#294] - Switch TEI popovers to click and show reading witnesses Popovers in the TEI edition viewer are now opened by click instead of hover, so they stay open and links inside them remain clickable. Only one popover is open at a time; a click outside closes it. Real links keep their hover tooltip so the click still navigates. Readings with a @wit attribute now get a popover listing the witness sigla resolved from the listWit. * [#294] - Use native Bootstrap click popovers with close button Drop the custom single-open tracking and outside-click handling in the TEI viewer and rely on Bootstrap's native click toggle instead. Nested triggers (a supplied span wrapping an annotation) now open both popovers on one click and close again on re-click. Each click popover gets a small close button in its top right corner.
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.
Integrations-PR für Milestone TEI Präsentationsschicht.
Sammelt die Arbeit des Milestones auf dem Branch
milestones/17-tei-praesentationsschichtund merged sie gebündelt nachmain. Einzelne Milestone-PRs (z.B. #311) targeten diesen Branch und werden dort zuerst gemerged.Als Draft offen halten, bis der Milestone vollständig ist. Der erste Commit ist ein leerer Seed-Commit, damit der PR schon jetzt geöffnet werden kann; der Diff füllt sich mit jedem gemergten Milestone-PR.
Enthaltene PRs