[Koha-bugs] [Bug 3954] New: rewrite rules for /issn and /isbn result in 404

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Thu Dec 17 21:20:09 CET 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3954

           Summary: rewrite rules for /issn and /isbn result in 404
           Product: Koha
           Version: HEAD
          Platform: PC
        OS/Version: Linux - Debian
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: OPAC
        AssignedTo: Ian.Walls at med.nyu.edu
        ReportedBy: Ian.Walls at med.nyu.edu
   Estimated Hours: 0.0
 Change sponsored?: ---


In koha-httpd.conf, there are two rewrite rules that allow for easy composition
of ISSN and ISBN searches:

RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]

Attempting to navigate to http://koha.url/issn/1000-1111 results in a 404
error, because http://koha.url/search?q=issn:1000-1111 also doesn't exist.

This should be written as:

RewriteRule ^/isbn/([^\/]*)/?$ /cgi-bin/koha/opac-search.pl?idx=nb&q=$1 [PT]
RewriteRule ^/issn/([^\/]*)/?$ /cgi-bin/koha/opac-search.pl?idx=nb&q=$1 [PT]

Additionally, these rules could be expanded to handle further common search
parameters, and perhaps even arbitrary OpenURL requests.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list