faustedition / faust-web

Web frontend for the edition of Goethe's Faust
http://faustedition.net/
3 stars 1 forks source link

Act level in breadcrumbs #256

Closed gerritbruening closed 7 years ago

gerritbruening commented 7 years ago

@sbruemmer, @thvitt, did we ever discuss if the act level could be introduced in the breadcrumbs?

In the following user feedback, only the bar diagram is mentioned:

Breadcrumps im Ganttchart: Es wäre hilfreich, wenn hier auch zu erkennen wäre, in welchem Akt man sich befindet.

thvitt commented 7 years ago

Aber wohin soll's zeigen?

thvitt commented 7 years ago

As a closing remark:

How the genesis breadcrumbs work

The mapping from Schroer numbers to scenes is manually maintained in scenes.xml. This file is augmented by act entries for Faust II aggregated from scenes with id 2.n.x and then translated to JSON (data/scene_line_mapping.js).

When a verse range in the bar diagram is selected, the breadcrumb is formed of Genesis plus all enclosing scenes / acts from that json file. If the innermost interval doesn't match exactly the displayed verse range, the actual line range is appended. The last entry of the breadcrumbs bar is the heading, everything else is a clickable breadcrumb.

For the document viewer, we simply search for the first schroer verse, generate the breadcrumb from that as described above and append the document's sigil.

gerritbruening commented 7 years ago

If the innermost interval doesn't match exactly the displayed verse range, the actual line range is appended.

Can I see an example for this?

thvitt commented 7 years ago

See also #112