diff --git a/Koha/ILL/Backend/opac-includes/create.inc b/Koha/ILL/Backend/opac-includes/create.inc index 68919b88d0..3eb9e36093 100644 --- a/Koha/ILL/Backend/opac-includes/create.inc +++ b/Koha/ILL/Backend/opac-includes/create.inc @@ -16,6 +16,7 @@

Unhandled error

[% END %] [% END %] +[% SET opac = whole.value.other.opac %] [% IF whole.stage == "form" %]

Create a manual ILL request

diff --git a/Koha/ILL/Backend/shared-includes/custom_fields.inc b/Koha/ILL/Backend/shared-includes/custom_fields.inc index 9f02f163f9..2b8c7a1914 100644 --- a/Koha/ILL/Backend/shared-includes/custom_fields.inc +++ b/Koha/ILL/Backend/shared-includes/custom_fields.inc @@ -6,7 +6,13 @@ [% i = 0 %] [% FOREACH key IN keys %]
  • - + [% IF opac %] + + + [% ELSE %] + + + [% END %] @@ -20,3 +26,11 @@ Add new field + + diff --git a/Koha/ILL/Backend/shared-includes/form_input_helpers.inc b/Koha/ILL/Backend/shared-includes/form_input_helpers.inc index 1ae8006bbd..8928f791e6 100644 --- a/Koha/ILL/Backend/shared-includes/form_input_helpers.inc +++ b/Koha/ILL/Backend/shared-includes/form_input_helpers.inc @@ -1,14 +1,22 @@ [% BLOCK ill_text_input_field %]
  • - + [% IF opac %] + + [% ELSE %] + + [% END %]
  • [% SET required = 0 %] [% END %] [% BLOCK ill_select_field %] - + [% ELSE %] + [% SET required = 0 %] diff --git a/Koha/ILL/Backend/shared-includes/shared.js b/Koha/ILL/Backend/shared-includes/shared.js index 52ec5eed2c..212d36d22f 100644 --- a/Koha/ILL/Backend/shared-includes/shared.js +++ b/Koha/ILL/Backend/shared-includes/shared.js @@ -1,10 +1,14 @@ var core = [ [% whole.core %] ]; +var opac = [ [% opac %] ]; document.addEventListener('DOMContentLoaded', function() { $('#add-new-fields').click(function(e) { e.preventDefault(); var row = '
  • ' + - '' + - ' '+ + '' + + ' ' + '