scaife-viewer / frontend

Skeleton, Widgets, and other frontend packages for the Scaife Viewer
0 stars 3 forks source link

Persist display mode / subdisplay options in querystring #25

Open jacobwegner opened 4 years ago

jacobwegner commented 4 years ago

Users should be able to copy the current URL and have the display mode / subdisplay options preserved (e.g, folio mode with only folios visible).

When users change to another display mode. that "subdisplay" state should reset (see discussion in #26).

jacobwegner commented 4 years ago

@jtauber This is ready for review via https://deploy-preview-47--sv-mini.netlify.app/reader/urn:cts:greekLit:tlg0012.tlg001.perseus-grc2:1.1-1.7

e.g. the following URL will open in metrical display mode:

https://deploy-preview-47--sv-mini.netlify.app/reader/urn:cts:greekLit:tlg0012.tlg001.perseus-grc2:1.1-1.7?mode=metrical

If you select another version from the library widget, we are currently reverting to default mode:

https://github.com/scaife-viewer/frontend/blob/f106dd6b4f289862ef68fc30be7a969b7572c923/packages/widget-library/src/Node.vue#L11