Bug 41014

Summary: Result browser not showing up in staff interface
Product: Koha Reporter: Andreas Jonsson <andreas.jonsson>
Component: SearchingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: phil
Version: 25.05   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Andreas Jonsson 2025-10-14 13:07:00 UTC
The result browser is rendered from a javascript and inserted before the element with id="menu".

But in bug 37222 the id changed to "biblio-view-menu", so the corresponding change needs to be made to the browser javascript.

diff --git a/koha-tmpl/intranet-tmpl/prog/js/browser.js b/koha-tmpl/intranet-tmpl/prog/js/browser.js
index 5a28fc8f198..a9cbf8ada97 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/browser.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/browser.js
@@ -165,7 +165,7 @@ KOHA.browser = function (searchid, biblionumber) {
                             __("Next") +
                             '"><i class="fa fa-arrow-right"></i></a>';
                     }
-                    $("#menu").before(
+                    $("#biblio-view-menu").before(
                         '<div class="browse-controls"><div class="browse-controls-inner"><div class="browse-label"><a href="' +
                             searchURL +
                             '" id="browse-return-to-results" class="searchwithcontext"><i class="fa fa-list"></i> ' +
Comment 1 Phil Ringnalda 2025-10-16 23:01:51 UTC

*** This bug has been marked as a duplicate of bug 40854 ***