View | Details | Raw Unified | Return to bug 14345
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-2 / +1 lines)
Lines 1632-1638 Link Here
1632
        function parseIDBJSON( json ) {
1632
        function parseIDBJSON( json ) {
1633
            if(json.total_results > 0 && json.book.rating > 0){
1633
            if(json.total_results > 0 && json.book.rating > 0){
1634
                var isbn = $(".isbn:last").text().split(" ")[1];
1634
                var isbn = $(".isbn:last").text().split(" ")[1];
1635
                isbn = isbn.replace(/-/, '');
1635
                isbn = isbn.replace(/\W+/g, '');
1636
1636
1637
                [% IF ( IDreamBooksReadometer ) %]
1637
                [% IF ( IDreamBooksReadometer ) %]
1638
                    $(".title").append('<a href="'+json.book.detail_link+'" id="idreambooksreadometer"><img src="https://idreambooks.com/remotereadometer/'+isbn+'.jpg" alt="'+json.book.title+' by '+json.book.author+'" title="Rating based on reviews of '+json.book.title+'"></a>');
1638
                    $(".title").append('<a href="'+json.book.detail_link+'" id="idreambooksreadometer"><img src="https://idreambooks.com/remotereadometer/'+isbn+'.jpg" alt="'+json.book.title+' by '+json.book.author+'" title="Rating based on reviews of '+json.book.title+'"></a>');
1639
- 

Return to bug 14345