[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
Fri Aug 12 00:23:46 CEST 2016


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

--- Comment #20 from Eric Phetteplace <ephetteplace at cca.edu> ---
If anyone else runs into this, I'm using a small bit of OPAC JavaScript as a
work-around since many of records are affected:

// fix 830$a series links ending in semicolons, see bug #14716
$('.results_summary.series a').each(function(){
    // URI-encoded semicolon
    var href = $(this).attr('href').replace(/;/g, '%3B')
    $(this).attr('href', href)
})

Stuffing unencoded text inside URLs seems like a bad idea. If Japanese
characters aren't working, maybe that's an issue with the url-encode function
itself but not the approach taken to resolve this bug? I would think that
almost anything being put in an href attribute would need to go through
url-encode.

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


More information about the Koha-bugs mailing list