#114 ✓resolved
Walter McGinnis

Related items results link from related topic fails when there is unicode in basket urlified name

Reported by Walter McGinnis | November 9th, 2008 @ 06:58 PM | in 1.1

The "n more like this link" for any type of related items from a topic fails for the related items' basket's urlified_name has characters that get escaped for http. Here's an image example:


In it's search record, which you can see at http://kete.taranakireo.co.nz/ta..., the topic is related like so:

... <dc:subject>Whare Ponga at Te Aro Pa</dc:subject> <dc:relation>http://kete.taranakireo.co.nz/ta...</dc:relation> ...

Notice that ā has been escaped to %C4%81 during the generation of the xml. The Zebra search at


will look for http://kete.taranakireo.co.nz/ta... and fail to find any results since all related items' search records' xml will have http://kete.taranakireo.co.nz/ta... instead.

This could cause problems in pretty much any part of the URL if it has escaped unicode in it. Our search needs to translate the unicode version of the URL to escaped version before the search is submitted.

This looks to be the cause of #15, too. Very annoying.

Cheers, Walter

Comments and changes to this ticket

  • Walter McGinnis

    Walter McGinnis November 13th, 2008 @ 12:57 PM

    • Assigned user changed from “Kete” to “Walter McGinnis”
    • Milestone changed from 1.2 to 1.1
    • State changed from “new” to “resolved”

    This, along with #15, has been fixed.

    Basically non-latin characters were be "escaped" to xml entities before being sent to our search engine. Thus when someone searched for the unescaped characters, no matches would be found in the search engine.

    We now send the search engine the correct characters and search works at it should.

    In this particular case, the basket urlified name wasn't matching in searches for related items (the URL for the related to item is its identifier in the related items search record) because of the escaping that the built in Rails method called url_for does.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.

People watching this ticket

Referenced by