From 439853757e1499e04b7821af81c0a933dd7aea41 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 4 Mar 2024 14:18:21 +0000 Subject: [PATCH] Bug 36221: OPAC Styling Test plan, dont apply patches yet: 1) Enable ILLModule 2) Create a new OPAC ILL request, visit: /cgi-bin/koha/opac-illrequests.pl?method=create&backend=Standard 3) Notice the style. Apply patches. Repeat Signed-off-by: Lisette Scheer Signed-off-by: Martin Renvoize Signed-off-by: Victor Grousset/tuxayo --- Koha/ILL/Backend/opac-includes/create.inc | 1 + .../Backend/shared-includes/custom_fields.inc | 16 +++++++++++++++- .../shared-includes/form_input_helpers.inc | 12 ++++++++++-- Koha/ILL/Backend/shared-includes/shared.js | 8 ++++++-- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/Koha/ILL/Backend/opac-includes/create.inc b/Koha/ILL/Backend/opac-includes/create.inc index a00ab33185..906f1cc821 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 cfd3fec65b..0ab4a51c6b 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 ab6e885b2c..eb4b361c78 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 = '
  • ' + - '' + - ' '+ + '' + + ' ' + '