Edirom-Online icon indicating copy to clipboard operation
Edirom-Online copied to clipboard

TextFacsimileSplitView: TEI Facsimile not loading

Open riedde opened this issue 1 year ago • 22 comments

The TEI facsimile view was fixed at #356 #339 Maybe a side-effect

riedde avatar Mar 20 '24 14:03 riedde

@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.

riedde avatar Mar 20 '24 16:03 riedde

@bwbohl and @nikobeer could you please provide some more information about this isse and what already was happening. could especially some information regarding openseadragon be helpful?

krHERO avatar Jun 05 '24 12:06 krHERO

The views of text and facsimile are working separately, but the split view of both text and facsimile is not working because the facsimile is not displayed: FacsimileOnly TextOnly SplitView

obertsalome avatar Jun 13 '24 08:06 obertsalome

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.

riedde avatar Jun 13 '24 10:06 riedde

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);?

Diginaut avatar Jun 17 '24 14:06 Diginaut

@obertsalome Is this facsimile also referenced via a IIIF-Uri like in the example in #339 ?

musicEnfanthen avatar Jul 03 '24 12:07 musicEnfanthen

If the error is not fixed in the current version of develop you could give fix/370-tei-split-viewa try. I implemented my suggestions from two weeks ago.

Diginaut avatar Jul 03 '24 13:07 Diginaut

@Diginaut did you test this?

Also the probelm is, that the split view is missing a statement about openSeadragon as viewer.

bwbohl avatar Jul 03 '24 13:07 bwbohl

@Diginaut I guess you will need to add the definition of pagesLoaded at the bottom as well, like in https://github.com/Edirom/Edirom-Online/blob/9121944b02f86ec178e9547b9334e0ee29f9a4c1/app/controller/window/text/FacsimileView.js#L89-L91

musicEnfanthen avatar Jul 03 '24 13:07 musicEnfanthen

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 avatar Jul 03 '24 13:07 musicEnfanthen

@musicEnfanthen Thanks for the hint. I will have a look at this and try to implement the OpenSeadragon for the TextFaksimileSplitView.

Diginaut avatar Jul 03 '24 13:07 Diginaut

https://github.com/Edirom/Edirom-Online/issues/370#issuecomment-2205992825

@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>

obertsalome avatar Jul 03 '24 13:07 obertsalome

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 ;-)

bwbohl avatar Jul 03 '24 14:07 bwbohl

cf. https://github.com/Edirom/Edirom-Online/tree/fix/339-facsimile-view-with-tei-documents

bwbohl avatar Jul 03 '24 14:07 bwbohl

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 one tei: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 tei:pb following the one associated with your page~~ [EDITED]
        • the tei:pb elements have @n attributes encoded

LATER OBSERVATIONS:

  • The tei:pb/@facs attributes have to point to a tei:surface/@xml:id

bwbohl avatar Jul 03 '24 14:07 bwbohl

Screenshot 2024-07-03 at 16 33 05

bwbohl avatar Jul 03 '24 14:07 bwbohl

@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 avatar Jul 03 '24 15:07 bwbohl

@bwbohl: It got worse 😢 now only the facsimile-view is working...

obertsalome avatar Jul 04 '24 09:07 obertsalome

@obertsalome Could you share a minimal XML file that can be used for testing?

musicEnfanthen avatar Jul 05 '24 08:07 musicEnfanthen

for me it is working, so yes, a minimal XML example would be appreciated

bwbohl avatar Jul 07 '24 20:07 bwbohl

@Diginaut, did your pagesLoaded function fix the issue for you?

bwbohl avatar Jul 07 '24 20:07 bwbohl

@obertsalome added a LATER OBSERVATIONS section to the above note https://github.com/Edirom/Edirom-Online/issues/370#issuecomment-2206307716 concerning the required TEI-MarkUp

bwbohl avatar Jul 09 '24 12:07 bwbohl