From 7118a01294c6eab2b79305d95ecf7cad64d69458 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 7 Jul 2023 23:12:56 +0000 Subject: [PATCH] Bug 34220: Only show biblio-view-menu.inc if their is an associated bib To test: - Go to Tools > Log viewer - Uncheck All modules - Check the 'Catalog' module - Make sure "To screen in the browser" is the selected output - Click Submit After the page loads, instead of the tools side navbar appearing on the left, a 'catalog detail' type navbar (Normal, MARC, ISBD, etc.) is present with links that error out as there's no associated bibnumber. -Apply patch -Try again, you should not see the biblio-view-menu -Try one more time but this time add a valid biblionumber to the Object: field. Now the biblio-view-menu should show with links to that particular bib. Works as advertised. Signed-off-by: Alexander Blanchard Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt index 234c2d9502..c840d16fcc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -430,7 +430,7 @@ [% IF ( circulation ) %] [% INCLUDE 'circ-menu.inc' %] [% ELSE %] - [% IF ( CATALOGUING ) %] + [% IF ( CATALOGUING && object ) %] [% INCLUDE 'biblio-view-menu.inc' %] [% ELSE %] [% INCLUDE 'tools-menu.inc' %] -- 2.39.5