Bugzilla – Attachment 97444 Details for
Bug 22220
Error in ReWriteRule for 'bib' in apache-shared-intranet.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22220: Fix bib Apache rewrite rule for intranet
Bug-22220-Fix-bib-Apache-rewrite-rule-for-intranet.patch (text/plain), 2.25 KB, created by
Marcel de Rooy
on 2020-01-16 14:43:35 UTC
(
hide
)
Description:
Bug 22220: Fix bib Apache rewrite rule for intranet
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-01-16 14:43:35 UTC
Size:
2.25 KB
patch
obsolete
>From 3a60f08ca12832182afc20fb6db8c944b72e2f5f Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 16 Jan 2020 14:33:39 +0000 >Subject: [PATCH] Bug 22220: Fix bib Apache rewrite rule for intranet >Content-Type: text/plain; charset=utf-8 > >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> >--- > debian/templates/apache-shared-intranet.conf | 2 +- > etc/koha-httpd.conf | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/debian/templates/apache-shared-intranet.conf b/debian/templates/apache-shared-intranet.conf >index 1d347059a0..58de0b381b 100644 >--- a/debian/templates/apache-shared-intranet.conf >+++ b/debian/templates/apache-shared-intranet.conf >@@ -14,7 +14,7 @@ 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/detail\.pl?bib=$1 [PT] >+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] >diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf >index d0f619efdb..a139a8782f 100644 >--- a/etc/koha-httpd.conf >+++ b/etc/koha-httpd.conf >@@ -233,7 +233,7 @@ > #The following two directives are unnecessary to proper Koha functioning. > #RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) > #RewriteRule (.+) $1?%1%2 [N,R,NE] >- RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] >+ 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] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22220
:
97444
|
97452