Open mitra42 opened 4 years ago
On archive.org, clicking a page goes to https://archive.org/details/bdrc-W1FPL497/page/n29 This doesnt happen on dweb-mirror For now ....
Passing to bookreader ...
Examples http://localhost:4244/details/ArtOfCommunitySecondEdition/page/n10/mode/2up pr http://localhost:4244/details/ArtOfCommunitySecondEdition/page/leaf2/mode/2up or http://localhost:4244/details/ArtOfCommunitySecondEdition#page/n10/mode/2up
breakpoints in BookReader.js L460 "extendParams"
at L475 initParams - a bit below this checks enableUrlPlugin
at BookReader.init L550 calls initParams
/page/20 FAILS becase parsePageString doesnt like "20" wants "n20" or "leaf20". this is probably OK - its not clear what generates URLs of form /page/20
/page/n20
[x] test first with just /page/n20
[x] test with page/n20/mode/2up
[x] http://localhost:4244/details/ArtOfCommunitySecondEdition/page/leaf20/mode/2up
For #page/20/mode/2up
[x] Needs options.urlMode != "history"
[x] forwards to home ?
CLEANUP
CLEANUP
There are links such as ...
$wgArchiveLeafBaseURL.'/stream/'.$id.'/'.$subPrefix.'#page/n'.$imageNum.'/mode/1up'
which brings up an image browser such as: https://archive.org/stream/bdrc-W1FPL497/bdrc-W1FPL497#page/n2/mode/1upIn the code its at ArchiveLeaf.class.php > $leafBrowseUrl >ImageBrowse= in template EntryImage > sources/template_entryimage.txt > loaded into EntryImage template (in DB I think)
It is displayed as a link in the template
SHORT TERM:
MEDIUM TERM
Note also dev artifact in -transcriber/build/index.html:|ImageBrowse=https://archive.org/stream/tutur-smara-bhuwana/tutur-smara-bhuwana-300ppi#page/n2/mode/1up which is not significant