[Koha-bugs] [Bug 14716] opac-detail.pl -- Series link fails when series title ends with semicolon preceded by space.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 13 16:29:54 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14716

Kyle M Hall <kyle.m.hall at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kyle.m.hall at gmail.com

--- Comment #1 from Kyle M Hall <kyle.m.hall at gmail.com> ---
This is happening because the query is malformed.

Take for example the query se,phr:"Frank%20Einstein%20;" which is 

se,phr:"Frank Einstein"

but the semicolon is truncating the query so it looks to Koha 

se,phr:"Frank Einstein

which is not a problem on the staff side. Zebra seems to deal with this ok.

On the opac side though, we are adding on supression, so the query ends up like
this:

(se,phr:"Frank Einstein ) not Suppress=1

which zebra chokes on.

Removing the semicolon from the subject heading would fix this, but I imagine
that's a band-aid as the semi is part of the standard.

The semi is being treated as an ampersand. This is deep in the machinery (
http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2 )

Basically, the semi needs to be url encoded as %3B

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


More information about the Koha-bugs mailing list