Lines 112-117
Link Here
|
112 |
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] |
112 |
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] |
113 |
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] |
113 |
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] |
114 |
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] |
114 |
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] |
|
|
115 |
|
116 |
# REST API configuration |
117 |
Alias "/api" "__OPAC_CGI_DIR__/api" |
118 |
<Directory __OPAC_CGI_DIR__/api> |
119 |
Options +ExecCGI +FollowSymlinks |
120 |
AddHandler cgi-script .pl |
121 |
|
122 |
RewriteEngine On |
123 |
RewriteBase /api/ |
124 |
RewriteCond %{REQUEST_FILENAME} !-f |
125 |
RewriteCond %{REQUEST_FILENAME} !-d |
126 |
RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f |
127 |
RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L] |
128 |
</Directory> |
115 |
</IfModule> |
129 |
</IfModule> |
116 |
</VirtualHost> |
130 |
</VirtualHost> |
117 |
|
131 |
|
Lines 214-218
Link Here
|
214 |
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] |
228 |
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] |
215 |
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] |
229 |
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] |
216 |
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] |
230 |
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] |
|
|
231 |
|
232 |
|
233 |
# REST API configuration |
234 |
Alias "/api" "__INTRANET_CGI_DIR__/api" |
235 |
<Directory __INTRANET_CGI_DIR__/api> |
236 |
Options +ExecCGI +FollowSymlinks |
237 |
AddHandler cgi-script .pl |
238 |
|
239 |
RewriteEngine On |
240 |
RewriteBase /api/ |
241 |
RewriteCond %{REQUEST_FILENAME} !-f |
242 |
RewriteCond %{REQUEST_FILENAME} !-d |
243 |
RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f |
244 |
RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L] |
245 |
</Directory> |
217 |
</IfModule> |
246 |
</IfModule> |
218 |
</VirtualHost> |
247 |
</VirtualHost> |
|
|
248 |
|
249 |
# Uncomment this VirtualHost to enable API access through |
250 |
# api.__WEBSERVER_HOST__:__WEBSERVER_PORT__ |
251 |
#<VirtualHost __WEBSERVER_IP__:__WEBSERVER_PORT__> |
252 |
# ServerAdmin __WEBMASTER_EMAIL__ |
253 |
# DocumentRoot __INTRANET_CGI_DIR__/api |
254 |
# ServerName api.__WEBSERVER_HOST__:__WEBSERVER_PORT__ |
255 |
# SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml" |
256 |
# SetEnv PERL5LIB "__PERL_MODULE_DIR__" |
257 |
# ErrorLog __LOG_DIR__/koha-api-error_log |
258 |
# |
259 |
# <IfModule mod_rewrite.c> |
260 |
# <Directory __INTRANET_CGI_DIR__/api> |
261 |
# Options +ExecCGI +FollowSymlinks |
262 |
# AddHandler cgi-script .pl |
263 |
# |
264 |
# RewriteEngine on |
265 |
# |
266 |
# RewriteRule ^api/(.*) $1 [L] |
267 |
# |
268 |
# RewriteCond %{REQUEST_FILENAME} !-f |
269 |
# RewriteCond %{REQUEST_FILENAME} !-d |
270 |
# RewriteCond %{DOCUMENT_ROOT}/$1/app.pl -f |
271 |
# RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L] |
272 |
# </Directory> |
273 |
# </IfModule> |
274 |
#</VirtualHost> |