Bug 7554

Summary: Newlines break search paging
Product: Koha Reporter: Jared Camins-Esakov <jcamins>
Component: OPACAssignee: Jared Camins-Esakov <jcamins>
Status: CLOSED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: normal    
Priority: P3 CC: chris, m.de.rooy, paul.poulain
Version: 3.6   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Example record
Bug 7554: Clean newlines in browse script
Bug 7554: Clean newlines in browse script
Signed patch

Description Jared Camins-Esakov 2012-02-17 15:53:56 UTC
If you have newlines in the title of an item in your search results, the javascript search pagination on the OPAC details page is broken.
Comment 1 Jared Camins-Esakov 2012-02-17 16:24:09 UTC
Further investigation reveals that newlines in titles generally break search results in the OPAC.
Comment 2 Jared Camins-Esakov 2012-02-17 18:15:09 UTC
Created attachment 7742 [details]
Example record

You will need to add an item to this example record so that it shows up on Master (due to bug 6488).
Comment 3 Jared Camins-Esakov 2012-02-17 18:18:20 UTC Comment hidden (obsolete)
Comment 4 Chris Cormack 2012-02-19 06:59:28 UTC Comment hidden (obsolete)
Comment 5 Marcel de Rooy 2012-02-20 13:35:04 UTC
Created attachment 7774 [details] [review]
Signed patch
Comment 6 Marcel de Rooy 2012-02-20 13:35:51 UTC
QA: Works. Small change. Marked as Passed QA.