TextFacsimileSplitView: TEI Facsimile not loading
riedde opened this issue · comments
@bwbohl seems that the FacsimileView is renewed now, but the similar code for the TextFacsimileSplitView needs the same. I tried it, but my skills on this are not too bad to manage.
Side comment concerning tei-facsimileView: There is an Issue in the TaMuDi-Project to have the svg overlays also in TEI-facsimiles and not only in the (mei) sourceView. When the facsimile view is touched it can be thought about activating the overlays there. I'm willing to help.
After comparing @bwbohl changes in FacsimileViewer.js
for a similar error maybe view.setImageSet(pages);
in line 66 of TextFacsimileSplitView.js
has to be changed to me.pagesLoaded(pages, view);
?
@obertsalome Is this facsimile also referenced via a IIIF-Uri like in the example in #339 ?
If the error is not fixed in the current version of develop
you could give fix/370-tei-split-view
a try. I implemented my suggestions from two weeks ago.
@Diginaut did you test this?
Also the probelm is, that the split view is missing a statement about openSeadragon as viewer.
@Diginaut I guess you will need to add the definition of pagesLoaded at the bottom as well, like in
Edirom-Online/app/controller/window/text/FacsimileView.js
Lines 89 to 91 in 9121944
And yes, I agree with @bwbohl that it looks like IIIF viewer is missing in https://github.com/Edirom/Edirom-Online/blob/develop/app/view/window/text/TextFacsimileSplitView.js .
Cf. https://github.com/Edirom/Edirom-Online/blob/develop/app/view/window/text/FacsimileView.js
@musicEnfanthen Thanks for the hint. I will have a look at this and try to implement the OpenSeadragon for the TextFaksimileSplitView.
@obertsalome Is this facsimile also referenced via a IIIF-Uri like in the example in #339 ?
@musicEnfanthen Yes, e.g.:
<facsimile>
<surface n="I">
<graphic xml:id="libretto-edition_page_i" url="https://content.staatsbibliothek-berlin.de/dc/1832534529-0001" height="2721px" width="2283px"/>
</surface>
</facsimile>
And yes, I agree with @bwbohl that it looks like IIIF viewer is missing in https://github.com/Edirom/Edirom-Online/blob/develop/app/view/window/text/TextFacsimileSplitView.js .
Cf. https://github.com/Edirom/Edirom-Online/blob/develop/app/view/window/text/FacsimileView.js
yeah, thx, already on it since the online meeting ;-)
Ok, principally I got it working but here are some prerequisites that have to be met, before the TextFacsimileSplitView will be available for your text:
- #TextFacsimileSplitView will be available if the XML file
getLinkTarget.xql
:exists($doc//tei:facsimile//tei:graphic) and exists($doc//tei:pb[@facs])
- is in the TEI namespace,
- has a
tei:facsimile
tree with at least onetei:graphic
and - contains at least one
tei:pb
with a@facs
attribute
- but the text will only be properly rendered if
- getText.qxl:
there is at least a second[EDITED]tei:pb
following the one associated with your page- the
tei:pb
elements have@n
attributes encoded
- getText.qxl:
LATER OBSERVATIONS:
- The
tei:pb/@facs
attributes have to point to atei:surface/@xml:id
@obertsalome and @peterstadler please test, you can download a deployable Edirom Online with this fix from the Action run at : https://github.com/Edirom/Edirom-Online/actions/runs/9780399110/artifacts/1664499941
@bwbohl: It got worse 😢 now only the facsimile-view is working...
@obertsalome Could you share a minimal XML file that can be used for testing?
for me it is working, so yes, a minimal XML example would be appreciated
@Diginaut, did your pagesLoaded function fix the issue for you?
@obertsalome added a LATER OBSERVATIONS
section to the above note #370 (comment) concerning the required TEI-MarkUp