Bug 21291: request-article.pl doesn't show MARC, LabeledMARC and ISBD in sidebar
authorBlou <philippe.blouin@inlibro.com>
Thu, 30 Aug 2018 14:33:44 +0000 (10:33 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 15 Oct 2018 13:40:46 +0000 (13:40 +0000)
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 <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

circ/request-article.pl

index 3d598ec..d325818 100755 (executable)
@@ -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;