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

(-)a/koha-tmpl/intranet-tmpl/js/browser.js (-2 / +7 lines)
Lines 103-112 KOHA.browser = function (searchid, biblionumber) { Link Here
103
                        ev.preventDefault();
103
                        ev.preventDefault();
104
                        browseRecords(1);
104
                        browseRecords(1);
105
                    });
105
                    });
106
                    $('a[href*="biblionumber="]').not('a[target="_blank"]').click(function (ev) {
106
                    $('a[href*="biblionumber="]').not('a[target="_blank"]').not('a[href*=\\#]').click(function (ev) {
107
                        ev.preventDefault();
107
                        ev.preventDefault();
108
                        window.location = $(this).attr('href') + '&searchid=' + me.searchid;
108
                        window.location = $(this).attr('href') + '&searchid=' + me.searchid;
109
                    });
109
                    });
110
                    $('a[href*="biblionumber="][href*=\\#]').not('a[target="_blank"]').click(function (ev) {
111
                        ev.preventDefault();
112
                        var hash = $(this).attr('href').substring( $(this).attr('href').indexOf('#') + 1 )
113
                        var split = $(this).attr('href').split('#' + hash);
114
                        window.location = split[0] + '&searchid=' + me.searchid + '#' + hash;
115
                    });
110
                    $('form[name="f"]').append('<input type="hidden" name="searchid" value="' + me.searchid + '"></input>');
116
                    $('form[name="f"]').append('<input type="hidden" name="searchid" value="' + me.searchid + '"></input>');
111
                }
117
                }
112
            });
118
            });
113
- 

Return to bug 28196