Lines 498-504
Link Here
|
498 |
[% END %] |
498 |
[% END %] |
499 |
[% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %] |
499 |
[% NEXT IF has_prefs_count < needs_prefs.size || has_perms_count < needs_perms.size || has_all_count < needs_all.size %] |
500 |
[% IF action.method == 'migrate' %] |
500 |
[% IF action.method == 'migrate' %] |
501 |
[% IF backends.size > 2 %] |
501 |
[% IF Koha.Preference('AutoILLBackendPriority') && backends.size > 1 %] |
|
|
502 |
<a |
503 |
title="[% action.ui_method_name | html %]" |
504 |
id="ill-toolbar-btn-[% action.id | lower | html %]" |
505 |
class="btn btn-default" |
506 |
href="/cgi-bin/koha/ill/ill-requests.pl?op=[% action.method | uri %]&illrequest_id=[% request.illrequest_id | uri %]&auto_migrate=1" |
507 |
> |
508 |
<span class="fa [% action.ui_method_icon | html %]"></span> |
509 |
[% action.ui_method_name | html %] |
510 |
</a> |
511 |
[% ELSIF backends.size > 2 %] |
502 |
<div class="dropdown btn-group"> |
512 |
<div class="dropdown btn-group"> |
503 |
<button class="btn btn-default dropdown-toggle" type="button" id="ill-migrate-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
513 |
<button class="btn btn-default dropdown-toggle" type="button" id="ill-migrate-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> |
504 |
<i class="fa [% action.ui_method_icon | html %]"></i> [% action.ui_method_name | html %] |
514 |
<i class="fa [% action.ui_method_icon | html %]"></i> [% action.ui_method_name | html %] |
Lines 884-889
Link Here
|
884 |
<p id="autoillbackend-message" class="text-info"></p> |
894 |
<p id="autoillbackend-message" class="text-info"></p> |
885 |
</fieldset> |
895 |
</fieldset> |
886 |
<fieldset class="action"> |
896 |
<fieldset class="action"> |
|
|
897 |
[% IF auto_migrate %] |
898 |
<a id="confirm-auto-migrate" data-illrequest_id="[% request.illrequest_id %]" class="btn btn-primary disabled">Confirm</a> |
899 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
900 |
[% ELSE %] |
887 |
[% FOREACH key IN whole.keys %] |
901 |
[% FOREACH key IN whole.keys %] |
888 |
[% value = whole.$key %] |
902 |
[% value = whole.$key %] |
889 |
[% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] |
903 |
[% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] |
Lines 903-908
Link Here
|
903 |
<input type="hidden" name="confirm_auto_submitted" value="1" /> |
917 |
<input type="hidden" name="confirm_auto_submitted" value="1" /> |
904 |
<input type="submit" class="btn btn-primary" value="Confirm" /> |
918 |
<input type="submit" class="btn btn-primary" value="Confirm" /> |
905 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
919 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
|
|
920 |
[% END %] |
906 |
</fieldset> |
921 |
</fieldset> |
907 |
</form> |
922 |
</form> |
908 |
</div> |
923 |
</div> |