|
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-908
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"> |
| 887 |
[% FOREACH key IN whole.keys %] |
897 |
[% IF auto_migrate %] |
| 888 |
[% value = whole.$key %] |
898 |
<a id="confirm-auto-migrate" data-illrequest_id="[% request.illrequest_id %]" class="btn btn-primary disabled">Confirm</a> |
| 889 |
[% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] |
899 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
| 890 |
<input type="hidden" name="[% key | html %]" value="[% value | html %]" /> |
900 |
[% ELSE %] |
|
|
901 |
[% FOREACH key IN whole.keys %] |
| 902 |
[% value = whole.$key %] |
| 903 |
[% IF key != 'op' && key != 'method' && key != 'custom_key' && key != 'custom_value' %] |
| 904 |
<input type="hidden" name="[% key | html %]" value="[% value | html %]" /> |
| 905 |
[% END %] |
| 891 |
[% END %] |
906 |
[% END %] |
|
|
907 |
[% custom_keys = whole.custom_key.split('\0') %] |
| 908 |
[% custom_values = whole.custom_value.split('\0') %] |
| 909 |
[% i = 0 %] |
| 910 |
[% FOREACH custom_key IN custom_keys %] |
| 911 |
<input type="hidden" name="custom_key" value="[% custom_key | html %]" /> |
| 912 |
<input type="hidden" name="custom_value" value="[% custom_values.$i | html %]" /> |
| 913 |
[% i = i + 1 %] |
| 914 |
[% END %] |
| 915 |
<input type="hidden" name="op" value="cud-create" /> |
| 916 |
<input type="hidden" name="stage" value="form" /> |
| 917 |
<input type="hidden" name="confirm_auto_submitted" value="1" /> |
| 918 |
<input type="submit" class="btn btn-primary" value="Confirm" /> |
| 919 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
| 892 |
[% END %] |
920 |
[% END %] |
| 893 |
[% custom_keys = whole.custom_key.split('\0') %] |
|
|
| 894 |
[% custom_values = whole.custom_value.split('\0') %] |
| 895 |
[% i = 0 %] |
| 896 |
[% FOREACH custom_key IN custom_keys %] |
| 897 |
<input type="hidden" name="custom_key" value="[% custom_key | html %]" /> |
| 898 |
<input type="hidden" name="custom_value" value="[% custom_values.$i | html %]" /> |
| 899 |
[% i = i + 1 %] |
| 900 |
[% END %] |
| 901 |
<input type="hidden" name="op" value="cud-create" /> |
| 902 |
<input type="hidden" name="stage" value="form" /> |
| 903 |
<input type="hidden" name="confirm_auto_submitted" value="1" /> |
| 904 |
<input type="submit" class="btn btn-primary" value="Confirm" /> |
| 905 |
<a class="cancel" href="ill-requests.pl">Cancel</a> |
| 906 |
</fieldset> |
921 |
</fieldset> |
| 907 |
</form> |
922 |
</form> |
| 908 |
</div> |
923 |
</div> |