View | Details | Raw Unified | Return to bug 35604
Collapse All | Expand All

(-)a/Koha/ILL/Backend/intra-includes/create.inc (-2 / +7 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% SET koha_version = Koha.Version %]
2
[% SET koha_version = Koha.Version %]
2
[% cwd = whole.cwd %]
3
[% cwd = whole.cwd %]
3
[% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %]
4
[% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %]
Lines 16-22 Link Here
16
[% END %]
17
[% END %]
17
18
18
[% IF whole.stage == "form" %]
19
[% IF whole.stage == "form" %]
19
<h2>Create a manual ILL request</h2>
20
[% IF Koha.Preference('AutoILLBackendPriority') %]
21
  <h2>Create an automatic ILL request</h2>
22
[% ELSE %]
23
  <h2>Create a manual ILL request</h2>
24
[% END %]
20
<form id="create_form" method="POST" action="">
25
<form id="create_form" method="POST" action="">
21
  [% INCLUDE 'csrf-token.inc' %]
26
  [% INCLUDE 'csrf-token.inc' %]
22
  <fieldset class="rows">
27
  <fieldset class="rows">
Lines 213-216 Link Here
213
[% ELSE %]
218
[% ELSE %]
214
<p>Unknown stage.  This should not have happened.
219
<p>Unknown stage.  This should not have happened.
215
220
216
[% END %]
221
[% END %]
(-)a/Koha/ILL/Backend/opac-includes/create.inc (-2 / +7 lines)
Lines 1-3 Link Here
1
[% USE Koha %]
1
[% PROCESS 'i18n.inc' %]
2
[% PROCESS 'i18n.inc' %]
2
[% cwd = whole.cwd %]
3
[% cwd = whole.cwd %]
3
[% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %]
4
[% PROCESS "${cwd}/shared-includes/form_input_helpers.inc" %]
Lines 29-35 Link Here
29
[% SET opac = whole.value.other.opac %]
30
[% SET opac = whole.value.other.opac %]
30
31
31
[% IF whole.stage == "form" %]
32
[% IF whole.stage == "form" %]
32
<h2>Create a manual ILL request</h2>
33
[% IF Koha.Preference('AutoILLBackendPriority') %]
34
  <h2>Create an automatic ILL request</h2>
35
[% ELSE %]
36
  <h2>Create a manual ILL request</h2>
37
[% END %]
33
<form id="create_form" method="POST" action="">
38
<form id="create_form" method="POST" action="">
34
  [% INCLUDE 'csrf-token.inc' %]
39
  [% INCLUDE 'csrf-token.inc' %]
35
    <fieldset class="rows">
40
    <fieldset class="rows">
Lines 128-131 Link Here
128
    [% INCLUDE "${cwd}/shared-includes/shared.js" %]
133
    [% INCLUDE "${cwd}/shared-includes/shared.js" %]
129
    // ]]>
134
    // ]]>
130
</script>
135
</script>
131
[% END %]
136
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-toolbar.inc (-1 / +3 lines)
Lines 2-8 Link Here
2
[% IF Koha.Preference('ILLModule') && CAN_user_ill %]
2
[% IF Koha.Preference('ILLModule') && CAN_user_ill %]
3
    <div id="toolbar" class="btn-toolbar ill-toolbar">
3
    <div id="toolbar" class="btn-toolbar ill-toolbar">
4
        [% IF backends_available %]
4
        [% IF backends_available %]
5
            [% IF backends.size > 1 %]
5
            [% IF Koha.Preference('AutoILLBackendPriority') %]
6
                <a id="ill-new" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?method=create&amp;backend=Standard"> <i class="fa fa-plus"></i> New auto ILL request </a>
7
            [% ELSIF backends.size > 1 %]
6
                <div class="dropdown btn-group">
8
                <div class="dropdown btn-group">
7
                    <button class="btn btn-default dropdown-toggle" type="button" id="ill-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <i class="fa fa-plus"></i> New ILL request </button>
9
                    <button class="btn btn-default dropdown-toggle" type="button" id="ill-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <i class="fa fa-plus"></i> New ILL request </button>
8
                    <ul class="dropdown-menu" aria-labelledby="ill-backend-dropdown">
10
                    <ul class="dropdown-menu" aria-labelledby="ill-backend-dropdown">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-2 / +3 lines)
Lines 113-119 Link Here
113
113
114
                            [% IF can_patron_place_ill_in_opac %]
114
                            [% IF can_patron_place_ill_in_opac %]
115
                                <div id="illrequests-create-button" class="dropdown btn-group">
115
                                <div id="illrequests-create-button" class="dropdown btn-group">
116
                                    [% IF backends.size > 1 %]
116
                                    [% IF Koha.Preference('AutoILLBackendPriority') %]
117
                                        <a id="ill-new" class="btn btn-primary" href="/cgi-bin/koha/opac-illrequests.pl?method=create&amp;backend=Standard"> <i class="fa fa-plus" aria-hidden="true"></i> Create a new request </a>
118
                                    [% ELSIF backends.size > 1 %]
117
                                        <button class="btn btn-primary dropdown-toggle" type="button" id="ill-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
119
                                        <button class="btn btn-primary dropdown-toggle" type="button" id="ill-backend-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
118
                                            <i class="fa fa-plus" aria-hidden="true"></i> Create a new request <span class="caret"></span>
120
                                            <i class="fa fa-plus" aria-hidden="true"></i> Create a new request <span class="caret"></span>
119
                                        </button>
121
                                        </button>
120
- 

Return to bug 35604