Koha/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc
Hayley Mapley 66877b780a
Bug 22099: Fixed ILL toolbar to say Refresh when displaying requests
On the ILL requests page that lists all requests, the List Request
button is displayed as part of the ILL toolbar. This patch fixes this by
instead changing the wording of the button to Refresh when on the main
page.

Test plan:
1) More -> ILL Requests, note that the List Requests button displays
while all the requests are already displayed
2) Apply the patch and restart things
3) More -> ILL Requests, note that the button now says Refresh, and
clicking it refreshes the page
4) Check that on all the other functions of the ILLs the button says
List Requests
5) Sign off!

Sponsored-by: Catalyst IT
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Small conflict resolved. Works as advertised.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-06-03 18:56:29 +01:00

36 lines
1.7 KiB
HTML

[% USE Koha %]
[% IF Koha.Preference('ILLModule ') && CAN_user_ill %]
<div id="toolbar" class="btn-toolbar">
[% IF backends_available %]
[% IF backends.size > 1 %]
<div class="dropdown btn-group">
<button class="btn btn-default dropdown-toggle" type="button" id="ill-backend-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fa fa-plus"></i> New ILL request <span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="ill-backend-dropdown">
[% FOREACH backend IN backends %]
<li><a href="/cgi-bin/koha/ill/ill-requests.pl?method=create&amp;backend=[% backend | uri %]">[% backend | html %]</a></li>
[% END %]
</ul>
</div>
[% ELSE %]
<a id="ill-new" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?method=create&amp;backend=[% backends.0 | html %]">
<i class="fa fa-plus"></i> New ILL request
</a>
[% END %]
[% ELSE %]
<a id="ill-new" class="btn btn-default disabled" href="">
<i class="fa fa-plus"></i> New ILL request
</a>
[% END %]
[% IF query_type == 'illlist' %]
<a id="ill-list" class="btn btn-sm btn-default btn-group" href="/cgi-bin/koha/ill/ill-requests.pl">
<i class="fa fa-list"></i> Refresh
</a>
[% ELSE %]
<a id="ill-list" class="btn btn-sm btn-default btn-group" href="/cgi-bin/koha/ill/ill-requests.pl">
<i class="fa fa-list"></i> List requests
</a>
[% END %]
</div>
[% END %]