buda-base / public-digital-library

http://library.bdrc.io
4 stars 6 forks source link

etext viewer routing for outline node #882

Open eroux opened 6 days ago

eroux commented 6 days ago

There are many cases where it would be very useful to open the etext viewer on a specifix outline node, I'm thinking for instance having an etext block on https://library-dev.bdrc.io/show/bdr:MW4CZ5369_0448 that would have a little snippet of the etext (that will be designed in a separate issue) and would open the etext IE4CZ5369 at the volume / page corresponding to MW4CZ5369_0448. The URL could be either

https://library-dev.bdrc.io/show/bdr:IE4CZ5369?part=bdr:MW4CZ5369_0448

or

https://library-dev.bdrc.io/show/bdr:IE4CZ5369?loc_volnum=81&loc_imgnum=575

(actually ideally I think both of these should work)

eroux commented 6 days ago

actually I think this is a pretty interesting idea that we could leverage for other use cases... here's an example: someone finds an interesting passage and wants to create a link to it, which is currently quite impossible... so let's have some good routing like

the last 3 would be used to generate URLs for a passage