From 3b5f16adc654c3348481ebc4e1f76600972e2fa6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 24 Jul 2025 17:11:12 +0000 Subject: [PATCH] Bug 40498: Improve style of list transfer form This patch makes some style changes to the list transfer form. Since it needs the same CSS that is used on the circulation page, the CSS block is moved from circulation.tt to staff-global.scss. The patch also changes the behavior of the form so that the "New owner" line doesn't appear until after a patron has been selected. To test, apply the patch and rebuild the staff interface CSS. - If necessary, create a public list. - From the list of public lists, click the "Transfer" button. - Verify that the form looks correct. The patron search field should match the search field shown when you navigate directly to circulation.pl - Search for a patron who has permission to manage public lists. - After you select a patron, a new line should appear: "New owner: [name]" - Click "Transfer" and confirm that the process works correctly. Sponsored-by: Athens County Public Libraries Signed-off-by: Laura_Escamilla Signed-off-by: Pedro Amorim --- .../prog/css/src/staff-global.scss | 8 ++++ .../prog/en/modules/circ/circulation.tt | 11 +---- .../prog/en/modules/virtualshelves/shelves.tt | 47 ++++++++++--------- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index ad0b82e4b4..3c8fe19377 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1631,6 +1631,14 @@ dd { display: inline-block; } +.patron_autocomplete { + border: 1px solid #C7C7CE; + border-radius: .3rem; + line-height: 1.5; + padding: .375rem .75rem; + transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; +} + .patronviews { border-right: 1px solid #000; border-top: 1px solid #000; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index 1f4ba4f994..8b597b848a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -30,15 +30,6 @@ display: flex; gap: 0.5rem; } - #patron_checkout_search input[type="text"] { - border: 1px solid #c7c7ce; - border-radius: 0.3rem; - line-height: 1.5; - padding: 0.375rem 0.75rem; - transition: - border-color 0.15s ease-in-out, - box-shadow 0.15s ease-in-out; - } [% END %] @@ -1067,7 +1058,7 @@ [% ELSE %]