-
assigned issue to
Variables in the index URL field
I would be happy to use something like "$tom1" instead of e.g.
http://korpusy.klf.uw.edu.pl/djvus/linde-t/01/index.djvu
This would allow easily switch between a remote site and a local copy etc.
Comments (11)
-
repo owner -
repo owner - changed status to open
-
reporter Can it be done simply with the mechanism used for
#262? -
repo owner How should it work? What will be the source of variations and where they will be used? Is this for index URL? Or what?
-
reporter Yes, it's for index URK. The idea is that the master index whould not have the full address, but something like $tom1/index.djvu?djvuopts&page=131&zoom=width&showposition=0.649,0.721&highlight=3000,1747,183,76.
By default it should be expanded to https://djvu.szukajwslownikach.uw.edu.pl/linde-t/01/index.djvu?djvuopts&page=131&zoom=width&showposition=0.649,0.721&highlight=3000,1747,183,76, but the user should be allowed to overwrite the default and get something like file:///usr/share/Linde/Linde2wyd/01/index.djvu?djvuopts&page=131&zoom=width&showposition=0.649,0.721&highlight=3000,1747,183,76.
-
repo owner So, indeed the idea to replace parts of URL will work. But maybe instead of variables we can just use parts of URL? For example: https://djvu.szukajwslownikach.uw.edu.pl/linde-t/ = file:///home/someuser/djvu/linde/
And all the external links will be replaced with local copies.
-
reporter OK, this will do.
-
repo owner - changed status to closed
URL replacements. Closes
#246→ <<cset fb81a6907abe>>
-
repo owner Tested on
http://poliqarp.wbl.klf.uw.edu.pl/extra/linde=http://djvu.szukajwslownikach.uw.edu.pl/linde
-
reporter - changed status to open
http://korpusy.klf.uw.edu.pl/djvus/linde-t/01/=file:///home/jsbien/cachedLinde/1/
gives
QDjVuDocument::setUrl: cannot create QDjVuDocument::setFileName: cannot read file
-
reporter - changed status to closed
It was just a typo in the path.
- Log in to comment