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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-17 / +22 lines)
Lines 2076-2097 Link Here
2076
                KOHA.OpenLibrary.GetCoverFromIsbn();
2076
                KOHA.OpenLibrary.GetCoverFromIsbn();
2077
            }
2077
            }
2078
2078
2079
            [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
2080
                novSelect.loadContentForQuery(
2081
                    {
2082
                        ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
2083
                        ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
2084
                        version : '2.1'
2085
                    },
2086
                    '[% NovelistSelectProfile | html %]',
2087
                    '[% NovelistSelectPassword | html %]',
2088
                    function(d){
2089
                        if ( d.length > 0 ){ //If no content
2090
                            $(".NovelistSelect").show();
2091
                        }
2092
                    });
2093
            [% END %]
2094
2095
            if (prefs.OPACShelfBrowser){
2079
            if (prefs.OPACShelfBrowser){
2096
                // Focus on shelf browser if present
2080
                // Focus on shelf browser if present
2097
                var shelfbrowser = $("#shelfbrowser");
2081
                var shelfbrowser = $("#shelfbrowser");
Lines 2277-2280 Link Here
2277
2261
2278
        }
2262
        }
2279
    </script>
2263
    </script>
2264
2265
    [% IF ( NovelistSelectProfile && ( normalized_isbn || normalized_upc ) ) %]
2266
        <script>
2267
            $(document).ready(function() {
2268
                novSelect.loadContentForQuery(
2269
                    {
2270
                        ClientIdentifier : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
2271
                        ISBN : '[% IF normalized_isbn %][% normalized_isbn | html %][% ELSE %][% normalized_upc | html %][% END %]',
2272
                        version : '2.1'
2273
                    },
2274
                    '[% NovelistSelectProfile | html %]',
2275
                    '[% NovelistSelectPassword | html %]',
2276
                    function(d){
2277
                        if ( d.length > 0 ){ //If no content
2278
                            $(".NovelistSelect").show();
2279
                        }
2280
                    }
2281
                );
2282
            });
2283
        </script>
2284
    [% END %]
2285
2280
[% END %]
2286
[% END %]
2281
- 

Return to bug 41582