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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-3 / +3 lines)
Lines 147-165 Enhanced Content: Link Here
147
              choices:
147
              choices:
148
                  yes: Add
148
                  yes: Add
149
                  no: "Don't add"
149
                  no: "Don't add"
150
            - a tab on the OPAC details with book reviews from critics aggregated by <a href='http://idreambooks.com/'>IDreamBooks.com</a>.
150
            - a tab on the OPAC details with book reviews from critics aggregated by <a href='https://idreambooks.com/'>IDreamBooks.com</a>.
151
        -
151
        -
152
            - pref: IDreamBooksReadometer
152
            - pref: IDreamBooksReadometer
153
              choices:
153
              choices:
154
                  yes: Add
154
                  yes: Add
155
                  no: "Don't add"
155
                  no: "Don't add"
156
            - a "Readometer" that summarizes the reviews gathered by <a href='http://idreambooks.com/'>IDreamBooks.com</a> to the OPAC details page.
156
            - a "Readometer" that summarizes the reviews gathered by <a href='https://idreambooks.com/'>IDreamBooks.com</a> to the OPAC details page.
157
        -
157
        -
158
            - pref: IDreamBooksResults
158
            - pref: IDreamBooksResults
159
              choices:
159
              choices:
160
                  yes: Add
160
                  yes: Add
161
                  no: "Don't add"
161
                  no: "Don't add"
162
            - the rating from <a href='http://idreambooks.com/'>IDreamBooks.com</a> to OPAC search results.
162
            - the rating from <a href='https://idreambooks.com/'>IDreamBooks.com</a> to OPAC search results.
163
    OCLC:
163
    OCLC:
164
        -
164
        -
165
            - pref: XISBN
165
            - pref: XISBN
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-3 / +3 lines)
Lines 1612-1618 Link Here
1612
        if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1612
        if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
1613
        // Use Microsoft XDR for IE version 8 or above
1613
        // Use Microsoft XDR for IE version 8 or above
1614
            var xdr = new XDomainRequest();
1614
            var xdr = new XDomainRequest();
1615
            xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1615
            xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
1616
            xdr.onload = function() {
1616
            xdr.onload = function() {
1617
                json = 'json = '+xdr.responseText; // the string now looks like..  json = { ... };
1617
                json = 'json = '+xdr.responseText; // the string now looks like..  json = { ... };
1618
                eval(json); // json is now a regular JSON object
1618
                eval(json); // json is now a regular JSON object
Lines 1620-1626 Link Here
1620
            }
1620
            }
1621
            xdr.send();
1621
            xdr.send();
1622
        } else {
1622
        } else {
1623
            $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1623
            $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
1624
                parseIDBJSON(json);
1624
                parseIDBJSON(json);
1625
            });
1625
            });
1626
        }
1626
        }
Lines 1635-1641 Link Here
1635
                isbn = isbn.replace(/-/, '');
1635
                isbn = isbn.replace(/-/, '');
1636
1636
1637
                [% IF ( IDreamBooksReadometer ) %]
1637
                [% IF ( IDreamBooksReadometer ) %]
1638
                    $(".title").append('<a href="'+json.book.detail_link+'" id="idreambooksreadometer"><img src="http://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
                [% END %]
1639
                [% END %]
1640
1640
1641
                [% IF ( IDreamBooksReviews ) %]
1641
                [% IF ( IDreamBooksReviews ) %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-3 / +2 lines)
Lines 711-717 $(document).ready(function(){ Link Here
711
            if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
711
            if ($.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) {
712
            // Use Microsoft XDR for IE version 8 or above
712
            // Use Microsoft XDR for IE version 8 or above
713
                var xdr = new XDomainRequest();
713
                var xdr = new XDomainRequest();
714
                xdr.open("get", "http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
714
                xdr.open("get", "https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e");
715
                xdr.onload = function() {
715
                xdr.onload = function() {
716
                    json = 'json = '+xdr.responseText; // the string now looks like..  json = { ... };
716
                    json = 'json = '+xdr.responseText; // the string now looks like..  json = { ... };
717
                    eval(json); // json is now a regular JSON object
717
                    eval(json); // json is now a regular JSON object
Lines 724-730 $(document).ready(function(){ Link Here
724
                }
724
                }
725
                xdr.send();
725
                xdr.send();
726
            } else {
726
            } else {
727
                $.getJSON("http://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
727
                $.getJSON("https://idreambooks.com/newbooks/api.json?q="+encodeURIComponent(isbn)+"&key=8bf66516232d1b72f3e47df939653e1e", function(json){
728
                    if(json.total_results > 0 && json.book.rating > 0){
728
                    if(json.total_results > 0 && json.book.rating > 0){
729
                        $(element).children('a').html("<img src='"+json.book.to_read_or_not_small+"' alt='"+json.book.title+" by "+json.book.author+"' title='Rating based on reviews of "+json.book.title+"'>"+json.book.rating+"%");
729
                        $(element).children('a').html("<img src='"+json.book.to_read_or_not_small+"' alt='"+json.book.title+" by "+json.book.author+"' title='Rating based on reviews of "+json.book.title+"'>"+json.book.rating+"%");
730
                        $(element).show();
730
                        $(element).show();
731
- 

Return to bug 14318