Bug 31116: Add circulation sidebar to article requests

This patch adds the circulation sidebar menu to the article requests
page to make it consistent with other circulation module pages.

Test plan
1) Prior to applying the patch confirm that there is no sidebar on the
   article requests management page, regardless of the CircSidebar
   perference.
2) Apply the patch
3) Confirm there is still no sidebar when CircSidebar is disabled
4) Confirm there is now a sidebar present when CircSidebar is enabled
5) Confirm the current page is highlighted correctly in the sidebar when
   on the article requests page.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-07-07 12:39:01 +01:00 committed by Tomas Cohen Arazi
parent 797ebc65e8
commit 257ee57c80
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 23 additions and 1 deletions

View File

@ -32,6 +32,13 @@
[% END %]
</ul>
[% IF Koha.Preference('ArticleRequests') %]
<h5>Patron request</h5>
<ul>
<li><a href="/cgi-bin/koha/circ/article-requests.pl">Article requests</a></li>
</ul>
[% END %]
<h5>Circulation reports</h5>
<ul>
<li><a href="/cgi-bin/koha/circ/view_holdsqueue.pl">Holds queue</a></li>

View File

@ -1,8 +1,10 @@
[% USE KohaDates %]
[% USE Koha %]
[% USE ItemTypes %]
[% USE Branches %]
[% USE AuthorisedValues %]
[% USE Asset %]
[% USE Koha %]
[% USE raw %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
@ -148,7 +150,12 @@
<div class="main container-fluid starthidden">
<div class="row">
<div class="col-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1">
[% IF Koha.Preference('CircSidebar') %]
<div class="col-sm-10 col-sm-push-2">
[% ELSE %]
<div class="col-md-12 col-lg-10 col-lg-offset-1">
[% END %]
<h1>Article requests</h1>
[% PROCESS urls_modal %]
@ -511,6 +518,14 @@
<br/>
</div>
</div>
[% IF Koha.Preference('CircSidebar') %]
<div class="col-sm-2 col-sm-pull-10">
<aside>
[% INCLUDE 'circ-nav.inc' %]
</aside>
</div>
[% END %]
</div>
</div>
[% PROCESS cancel_modal %]