Pedro Amorim
298043edb7
1) Enable ILLmodule and install FreeForm, run: bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh) 2) Visit a request that doesn't exist (assuming empty illrequests table): INTRA/cgi-bin/koha/ill/ill-requests.pl?method=illview&illrequest_id=1 3) Verify an error 500 is returned with message "Can't call method "backend_illview"" 4) Apply patch 5) Repeat steps 1-3. Verify that a "ILL request not found." message is now displayed Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
37 lines
1.8 KiB
HTML
37 lines
1.8 KiB
HTML
[% INCLUDE 'blocking_errors.inc' %]
|
|
[% 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&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&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 %]
|