[Koha-bugs] [Bug 27748] New: Encoding problem in link to OverDrive results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 22 15:31:22 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27748

            Bug ID: 27748
           Summary: Encoding problem in link to OverDrive results
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org

If you have OverDrive enabled and do a search in the OPAC, you get a link that
says e.g. "Found 1 results in the library's OverDrive collection". But if you
search contains non-ASCII characters, the search goes wrong. 

Example: 

Do a search for "göteborg":
https://kohaopac.alingsas.se/cgi-bin/koha/opac-search.pl?q=g%C3%B6teborg
(The URL shows the query as q=göteborg, but when I paste it here it is turned
into q=g%C3%B6teborg.)

The link says:
Found 4 results in the library's OverDrive collection

The actual link is:
https://kohaopac.alingsas.se/cgi-bin/koha/opac-overdrive-search.pl?q=g%F6teborg

If you foloow that link you get to this page:
https://kohaopac.alingsas.se/cgi-bin/koha/opac-overdrive-search.pl?q=g%F6teborg
which says "OverDrive search for 'g�teborg'" and shows 53 results, because the
query was cut off at the "ö", and a search was actually made for just the
letter "g" (whatever comes before the first non-ascii-char).

If I change the encoding in the link from:
https://kohaopac.alingsas.se/cgi-bin/koha/opac-overdrive-search.pl?q=g%F6teborg
to:
https://kohaopac.alingsas.se/cgi-bin/koha/opac-overdrive-search.pl?q=g%C3%B6teborg
or 
https://kohaopac.alingsas.se/cgi-bin/koha/opac-overdrive-search.pl?q=göteborg
the page shows 4 results, as promised.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list