From ab13b53854e0aa726c8112d8f31cc553484637bd Mon Sep 17 00:00:00 2001 From: Blou Date: Thu, 30 Aug 2018 10:33:44 -0400 Subject: [PATCH] Bug 21291: request-article.pl doesn't show MARC, LabeledMARC and ISBD in sidebar When on a detailed record in the intranet, any click on the sidebar will lead you to another page with the same sidebar EXCEPT for "Article requests". When clicking on article requests, you get a new sidebar without MARC Labeled MARC ISBD This fix adds the required C4::Biblio::enabled_staff_search_views that loads the required hash with the permissions. TEST 0) login with a user having all rights 1) go to any detailed notices, notice the sidebar on the left 2) click on MARC 3) notice the sidebar is the same in the new page 4) click on Request articles 5) notice the missing labels on the sidebar 6) apply patch, redo steps Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- circ/request-article.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/circ/request-article.pl b/circ/request-article.pl index 3d598ecf59..d32581809c 100755 --- a/circ/request-article.pl +++ b/circ/request-article.pl @@ -22,6 +22,7 @@ use Modern::Perl; use C4::Output; use C4::Auth; use C4::Utils::DataTables::Members; +use C4::Search; use Koha::Biblios; use Koha::Patrons; use Koha::ArticleRequests; @@ -109,6 +110,7 @@ if ( !$patron && $patron_cardnumber ) { $template->param( biblio => $biblio, patron => $patron, + C4::Search::enabled_staff_search_views, ); output_html_with_http_headers $cgi, $cookie, $template->output; -- 2.39.5