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 title="[% action.ui_method_name | html %]" id="ill-toolbar-btn-[% action.id | lower | html %]" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?op=[% action.method | uri %]&illrequest_id=[% request.illrequest_id | uri %]&auto_migrate=1"> |
503 |
<span class="fa [% action.ui_method_icon | html %]"></span> |
504 |
[% action.ui_method_name | html %] |
505 |
</a> |
506 |
[% ELSIF backends.size > 2 %] |
502 |
<div class="dropdown btn-group"> |
507 |
<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"> |
508 |
<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 %] |
509 |
<i class="fa [% action.ui_method_icon | html %]"></i> [% action.ui_method_name | html %] |
Lines 886-891
Link Here
|
886 |
<p id="autoillbackend-message" class="text-info"></p> |
891 |
<p id="autoillbackend-message" class="text-info"></p> |
887 |
</fieldset> |
892 |
</fieldset> |
888 |
<fieldset class="action"> |
893 |
<fieldset class="action"> |
|
|
894 |
[% IF auto_migrate %] |
895 |
<a id="confirm-auto-migrate" data-illrequest_id="[% request.illrequest_id %]" class="btn btn-primary disabled">Confirm</a> |
896 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
897 |
[% ELSE %] |
889 |
[% FOREACH key IN whole.keys %] |
898 |
[% FOREACH key IN whole.keys %] |
890 |
[% value = whole.$key %] |
899 |
[% value = whole.$key %] |
891 |
[% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] |
900 |
[% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] |
Lines 905-910
Link Here
|
905 |
<input type="hidden" name="confirm_auto_submitted" value="1" /> |
914 |
<input type="hidden" name="confirm_auto_submitted" value="1" /> |
906 |
<input type="submit" class="btn btn-primary" value="Confirm" /> |
915 |
<input type="submit" class="btn btn-primary" value="Confirm" /> |
907 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
916 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
|
|
917 |
[% END %] |
908 |
</fieldset> |
918 |
</fieldset> |
909 |
</form> |
919 |
</form> |
910 |
</div> |
920 |
</div> |