Marcel de Rooy
d135f229cd
Trivial change. Speaks for itself. Since koha/detail.pl does not exist, we cannot break things ;) Test plan: [1] Copy the change in apache-shared-intranet.conf to your actual apache configuration. Probably in /etc/koha/. [2] Restart Apache. [3] Try a biblionumber say 123 on intranet with [your_staff_client]/bib/123. Does the detail page come up? Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
# Apache configuration settings that are shared for every Koha instance.
|
|
# This file contains settings for the intranet site.
|
|
#
|
|
# This file should be included from an instance's
|
|
# /etc/apache2/site-available file, from within the VirtualHost section
|
|
# for the intranet.
|
|
|
|
DocumentRoot /usr/share/koha/intranet/htdocs
|
|
|
|
ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/"
|
|
ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl"
|
|
ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/catalogue/search.pl"
|
|
|
|
|
|
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
|
|
RewriteRule (.+) $1?%1%2 [N,R,NE]
|
|
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/catalogue/detail.pl?biblionumber=$1 [PT]
|
|
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
|
|
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
|
|
RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L]
|
|
|
|
Alias "/api" "/usr/share/koha/api"
|
|
<Directory "/usr/share/koha/api">
|
|
Options +ExecCGI +FollowSymlinks
|
|
AddHandler cgi-script .pl
|
|
|
|
SetEnv MOJO_MODE "production"
|
|
|
|
RewriteBase /api/
|
|
RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
|
|
RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
|
|
</Directory>
|