From 915ff938a1be12a83e2d3ddf259b286195481c26 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 1 Feb 2013 13:38:13 +0100 Subject: [PATCH] Bug 8733: Follow-up The isbn sent to idream contains dash Signed-off-by: Jared Camins-Esakov Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index a8e13be83b..07d4f68193 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -186,6 +186,7 @@ $(function () { var isbn = $(".isbn:last").text().split(" ")[1]; if (isbn) { isbn = isbn.replace(/\W*$/, ''); + isbn = isbn.replace(/-/, ''); if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) { // Use Microsoft XDR for IE version 8 or above @@ -210,6 +211,7 @@ $(function () { function parseIDBJSON( json ) { if(json.total_results > 0 && json.book.rating > 0){ var isbn = $(".isbn:last").text().split(" ")[1]; + isbn = isbn.replace(/-/, ''); [% IF ( IDreamBooksReadometer ) %] $(".title").append(''+json.book.title+' by '+json.book.author+''); -- 2.39.5