Closed csidirop closed 5 months ago
Updated description
For better recognition and differentiation of the METS link within the entire URL, url=
can also be placed in front of the link:
http://localhost/viewer/url=https://digi.bib.uni-mannheim.de/fileadmin/vl/ubmaosi/59088/59088.xml/page-150
routePath: '/url={id}/page-{page}/{pagegrid}-{double}'
Adding the routeEnhancer rule to the site config make urls more readable. As site effect non-specialist users can simply read and change the urls.
Example:
http://localhost/viewer?tx_dlf[double]=0&tx_dlf[id]=https%3A%2F%2Fdigi.bib.uni-mannheim.de%2Ffileadmin%2Fvl%2Fubmaosi%2F59088%2F59088.xml&tx_dlf[page]=150
http://localhost/viewer?tx_dlf[double]=0&tx_dlf[id]=https%3A%2F%2Fdigi.bib.uni-mannheim.de%2Ffileadmin%2Fvl%2Fubmaosi%2F59088%2F59088.xml&tx_dlf[page]=150&tx__[action]=create&tx__[controller]=Standard&
-->
http://localhost/viewer/https://digi.bib.uni-mannheim.de/fileadmin/vl/ubmaosi/59088/59088.xml/page-150/
http://localhost/viewer/https://digi.bib.uni-mannheim.de/fileadmin/vl/ubmaosi/59088/59088.xml/page-150/1/
http://localhost/viewer/https://digi.bib.uni-mannheim.de/fileadmin/vl/ubmaosi/59088/59088.xml/page-150/0-1/
http://localhost/viewer/https://digi.bib.uni-mannheim.de/fileadmin/vl/ubmaosi/59088/59088.xml/page-150?tx[][action]=create&tx[][controller]=Standard
At this point
not all sites redirect correctly to the new scheme and on top some errors found on the log. If this feature is interesting or wanted, they will be fixed.only the fixed links on the main site still lead to the old scheme. This can be changed if wanted. All other sites redirect automatic to the the scheme, even if they have the old one.After manually updating the config file you should delete the caches. Open the example page and click on any button that adds an parameter, like doublepage, gridview or just go one site forward.
Additionally it is possible to use language specific URLs. E.g. for german:
.../seite-150/...
http://localhost/en/viewer/https://digi.bib.uni-mannheim.de/fileadmin/vl/ubmaosi/59088/59088.xml/page-2
http://localhost/viewer/https://digi.bib.uni-mannheim.de/fileadmin/vl/ubmaosi/59088/59088.xml/seite-2