Bug 7554: Clean newlines in browse script
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 17 Feb 2012 17:50:47 +0000 (12:50 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 20 Feb 2012 15:32:40 +0000 (16:32 +0100)
commit853676b2e3a4836c7e5e30eeece67ee7d3d81ed2
tree987dd2ec95075bb13b7f69fc9990efc39615c36e
parent803095a7989bd1cd4357ebe9736a19284d97b2db
Bug 7554: Clean newlines in browse script

Records with a newline in the title will break the Javascript search pagination
on the OPAC without this patch.

To test:
1. Import a record with a newline in the title (an example is attached to this
   bug)
2. Do a search that turns up the record and at least one other
3. View the detail page for one of the other records
4. Observe that there is a javascript error
5. Apply patch
6. Repeat search
7. Observe that there is no javascript error

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Simple template change, works well

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt